Subject: Re: Adding cd9660 support to the i386/amd64 BIOS bootloader
To: Bang Jun-Young <junyoung@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-install
Date: 06/22/2005 00:57:14
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?
Unfortunately I don't have a CD-ROM on any of my pmaxen anymore so I
can't test this change there :-/
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/