Skip to contentSkip to conversation

Making a CD that is readable under efi

Linux-ia64 Randall G Chan/Fremont/IBM 5 participants 5 messages Oct 24, 2000

lore
Share & tools
lore
#0 lore raw

I was wondering if someone could explain how I would make a small partition that is readable under efi (~50-100 megs) and then including about 500 or so megs of data. I have tried just creating a ISO9660 CD-Rom, but I can't read any of it's contents under efi.

Thanks,
Randy Chan
[email protected]

--------------------------------------------------------------------------

#1 lore raw
Quoted 4 lines · Randall G Chan/Fremont/IBM

I was wondering if someone could explain how I would make a small partition that is readable under efi (~50-100 megs) and then including about 500 or so megs of data. I have tried just creating a ISO9660 CD-Rom, but I can't read any of it's contents under efi.

The trick to have larger MS-DOS partitions is to create a file called boot.img and format it as MS-DOS partition. Place the file in the root directory of the ISO9660 filesystem that you wish to burn on the CD. For example, this script will create a 50M boot.img file and copy stuff from /boot/efi into it:

dd if=/dev/zero of=boot.img bs24k countP
/sbin/mkdosfs boot.img
mount -t msdos -o loop boot.img /mnt
cp -av /boot/efi/* /mnt
df /mnt
umount /mnt

Be careful with 2.4.0 kernels -- the loop device is broken. Run the above script on a 2.2 kernel.

Create ISO image with mkisofs (we use version 1.13a05) as follows:

mkisofs -no-emul-boot -b boot.img -c boot.catalog \
-R -T -J -o cdrom.img /path/to/the/cd/root

When you burn the ISO image be sure to disable MS Jolliet extensions.

Hope this helps,
Uros

--
Uros Prestor
[email protected]

#3 lore raw
In reply to Randall G Chan/Fremont/IBM
Quoted 6 lines

You need to create an El Torito bootable CD. An El Torito bootable CD contains a floppy image (boot.img typically) that EFI can read.

I've never created an El Torito bootable CD, so I can't give details on that.

http://www.cdpage.com/Compact_Disc_Variations/bootablecd.html

If EFI can *only* read the boot image off an El Torito CD, I'd have to put that in the "extremely lame" category. However, I wouldn't be surprised if EFI at the moment doesn't support the iso9660 filesystem; I certainly don't see anything in the EFI sample implementation which looks like it would do the trick.

You might want to poke the Intel boys and tell them to go steal some more code from the FreeBSD loader; they've done a great job so far turning it into platform firmware. 8)

Signature · 5 lines
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E
#4 lore raw
In reply to Randall G Chan/Fremont/IBM

Sorry, when I jump in here...

Quoted 7 lines · GMT Uros Prestor

Create ISO image with mkisofs (we use version 1.13a05) as follows:

mkisofs -no-emul-boot -b boot.img -c boot.catalog \
-R -T -J -o cdrom.img /path/to/the/cd/root

When you burn the ISO image be sure to disable MS Jolliet extensions.

What do you mean by that? The "-J" option to mkisofs selects adding the Joliet extension. AFAIL one cannot specify it in the burn program (cdrecord in my case).

regards,
chris