This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HOWTO: eCos on QEMU PC emulator


On 2011-03-24, Sergei Gavrikov <sergei.gavrikov@gmail.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]