It is now possible to embed an image of a floppy into a CBFS flash file and then boot from that image with SeaBIOS.
I've used this to boot FreeDOS directly from flash on my epia-cn. An lzma compressed bootable FreeDOS floppy uses about 95K (for the base kernel and command interpreter).
More information is available on the Coreboot SeaBIOS page:
http://www.coreboot.org/SeaBIOS#Adding_a_floppy_image
Cheers, -Kevin
On 8/18/09 3:23 AM, Kevin O'Connor wrote:
It is now possible to embed an image of a floppy into a CBFS flash file and then boot from that image with SeaBIOS.
I've used this to boot FreeDOS directly from flash on my epia-cn. An lzma compressed bootable FreeDOS floppy uses about 95K (for the base kernel and command interpreter).
More information is available on the Coreboot SeaBIOS page:
Any reason you are working around the lzma mechanism of cbfs?
Stefan
On Tue, Aug 18, 2009 at 12:07:40PM +0200, Stefan Reinauer wrote:
Any reason you are working around the lzma mechanism of cbfs?
Just ignorance - what is the lzma mechanism of cbfs?
I'm aware of the ability to add a compressed payload - I'm not aware of any way to add a compressed file which is not a payload. (It would be nice to have that feature, BTW.)
-Kevin
Am 18.08.2009 14:15, schrieb Kevin O'Connor:
Just ignorance - what is the lzma mechanism of cbfs?
I'm aware of the ability to add a compressed payload - I'm not aware of any way to add a compressed file which is not a payload. (It would be nice to have that feature, BTW.)
Segments can be compressed, too.. That all depends on the subheader, which we didn't implement yet for option roms.
Patrick
On Tue, Aug 18, 2009 at 05:46:50PM +0200, Patrick Georgi wrote:
Am 18.08.2009 14:15, schrieb Kevin O'Connor:
Just ignorance - what is the lzma mechanism of cbfs?
I'm aware of the ability to add a compressed payload - I'm not aware of any way to add a compressed file which is not a payload. (It would be nice to have that feature, BTW.)
Segments can be compressed, too.. That all depends on the subheader, which we didn't implement yet for option roms.
I think you're referring to a cbfs_stage. That's not really what I'm looking for here either.
-Kevin
we probably forgot to write up the option in the man page. What man page? Precisely.
ron
Hi Kevin,
this is really neat.
On 18.08.2009 03:23, Kevin O'Connor wrote:
It is now possible to embed an image of a floppy into a CBFS flash file and then boot from that image with SeaBIOS.
I've used this to boot FreeDOS directly from flash on my epia-cn.
Could you add a pointer to the download location for the FreeDOS floppy image you used? I don't know if all FreeDOS images on the net will work.
Regards, Carl-Daniel
On Tue, Aug 18, 2009 at 11:13:21PM +0200, Carl-Daniel Hailfinger wrote:
Hi Kevin,
this is really neat.
On 18.08.2009 03:23, Kevin O'Connor wrote:
It is now possible to embed an image of a floppy into a CBFS flash file and then boot from that image with SeaBIOS.
I've used this to boot FreeDOS directly from flash on my epia-cn.
Could you add a pointer to the download location for the FreeDOS floppy image you used? I don't know if all FreeDOS images on the net will work.
Thanks Carl-Daniel.
I put the floppy I used temporarily at:
http://linuxtogo.org/~kevin/SeaBIOS/test/freedos-floppy.lzma
It's simple to reproduce it. Grab a test floppy from:
http://odin.fdos.org/odin2005/odin1440.img
Create a new floppy image:
dd if=/dev/zero of=myfloppy.img bs=512 count=2880
Run it under qemu:
qemu -fda odin1440.img -fdb myfloppy.img
And then ask dos to format the new floppy:
format /s b:
Of course, you could just compress and use the original freedos floppy, but that will require a lot more flash space (>1MB).
-Kevin