Subject: Re: Adding cd9660 support to the i386/amd64 BIOS bootloader
To: Simon Burge <simonb@wasabisystems.com>
From: Bang Jun-Young <junyoung@netbsd.org>
List: port-i386
Date: 06/22/2005 00:06:07
Simon Burge wrote:
> Bang Jun-Young wrote:
>
> > The only MI change is in sys/lib/libsa/cd9660.c:
> >
> > -#define cdb2devb(bno) ((bno) * ISO_DEFAULT_BLOCK_SIZE / DEV_BSIZE)
> > +#define cdb2devb(bno) (bno)
> >
> > On i386, DEV_BSIZE on CD-ROM drives should be the same as
> > ISO_DEFAULT_BLOCK_SIZE, otherwise CD-ROM can't boot.
>
> I wonder if that has something to do with pmax (and sparc?) where SCSI
> CD-ROMs use 2048 byte blocks instead of 512 byte blocks?
ISO-9660 defines the default block size 2048 bytes for all platforms that
supports it.
Jun-Young