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

Sergei Gavrikov sergei.gavrikov@gmail.com
Fri Mar 25 08:26:00 GMT 2011

On Thu, 24 Mar 2011, Grant Edwards wrote:

> On 2011-03-24, Sergei Gavrikov <sergei.gavrikov@gmail.com> wrote:
> > On Thu, 24 Mar 2011, Grant Edwards wrote:
> >
> >> True, but how do you create a binary image without binutils and the
> >> elf image?
> >
> > I did mean: anyone can distribute 'super-app.bin' and offer to use it
> > with Qemu.
> Ah, it never occurred to me that sombeody who's not doing development
> would want to run eCos stuff on Qemu.

It is what is discuss-lists for :-)

Well, community knows about booting eCos applications with GRUB and
RedBoot[FLOPPY]+GDB on Qemu. It seems to me that it is good to know that
since Qemu 0.14 it is possible to use the built-in Qemu's tftp-server
with RedBoot

% qemu -S ... -serial pty -tftp `pwd`/install/tests/kernel/current/tests
char device redirected to /dev/pts/2
QEMU 0.14.50 monitor - type 'help' for more information

% minicom -o -D /dev/pts/2 -p pts/2

(qemu) c

Platform: PC (I386)                                                             
RAM: 0x00000000-0x000a0000 [0x0008a030-0x000a0000 available]                    
RedBoot> load bin_sem0
Using default protocol (TFTP)                                                   
Entry point: 0x00108000, address range: 0x00108000-0x0010d820                   
RedBoot> go                                                                     
PASS:<Binary Semaphore 0 OK>                                                    

NOTE: This won't work with Qemu 0.13.XX or elder. They have broken TFTP
server:  http://ecos.sourceware.org/ml/ecos-devel/2011-01/msg00008.html

FYI: They applied my patch and now it works (no need tun/taps).


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