On 2011-03-24, Sergei Gavrikov <[email protected]> wrote:

>>   $ dd if=install/bin/redboot.bin of=redboot_pc_rltk8139.flp 
>> conv=notrunc,sync count=1 bs=$(( 1024*1440 ))

> The below is ever more elegant

> $ qemu-img create /tmp/floppy.img 1440k

> So, use 'qemu-img'.

I don't understand how your solution gets the eCos/redboot binary into
the image.

I like John's solution best:

i386-elf-objcopy -O binary --pad-to=$((1440*1024)) redboot.elf floppy.bin

-- 
Grant Edwards               grant.b.edwards        Yow! Send your questions to
                                  at               ``ASK ZIPPY'', Box 40474,
                              gmail.com            San Francisco, CA 94140,
                                                   USA


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to