[ECOS] Re: HOWTO: eCos on QEMU PC emulator

Sergei Gavrikov sergei.gavrikov@gmail.com
Thu Mar 24 18:51:00 GMT 2011


On Thu, 24 Mar 2011, Grant Edwards wrote:

> 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.
 
$ dd install/bin/redboot.bin of=/tmp/floppy.img conv=notrunc

> I like John's solution best:
> 
> i386-elf-objcopy -O binary --pad-to=$((1440*1024)) redboot.elf floppy.bin

a matter of a test (I sure that I'll forget '--pad-to' then and I do
not forget dd's options never :-)

and they have to have ELF image and binutils for the target to create
image.


Sergei

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



More information about the Ecos-discuss mailing list