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

Grant Edwards grant.b.edwards@gmail.com
Thu Mar 24 19:06:00 GMT 2011


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

Yep, I missed that.

>> 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.

True, but how do you create a binary image without binutils and the
elf image?

-- 
Grant Edwards               grant.b.edwards        Yow! Loni Anderson's hair
                                  at               should be LEGALIZED!!
                              gmail.com            


-- 
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