qemu + uC5282 (was Re: Converting RTEMS ELF files into Linux bootimages)

Joel Sherrill joel.sherrill at OARcorp.com
Wed Sep 9 14:28:58 UTC 2009

Till Straumann wrote:
Holy moley!! Great job!!!  Thank you!!!

This will let us start to test the tools on
Coldfire.  That was the most commonly
used target architecture we had no
way to test on a simulator.

Will you please submit this to qemu?

And make it apply against the couverture project's
qemu source?

I am really looking forward to being able to test
using this.

I have added an initial version of the wrapper script
to gcc-testing/sim-scripts.
> I was able to hack qemu so that the uC5282 BSP can be run.
> I tested 'hello.exe', 'ticker.exe' and my usual, pretty
> complete 'GeSys.exe' application which includes the cexpsh
> shell and full networking.
> 1) patch qemu-0.11.0-rc1 to add some missing features,
>    some dummy-registers and a bug-fix.
>    The following hardware is (partly) emulated:
>      - interrupt-controller
>      - 3 UARTs
>      - 4 PITs (timers)
>      - reset controller (software-reset)
>      - FEC ethernet (MIB counters not implemented)
> 2) patch the uC5282 BSP (patch has already been added to RTEMS HEAD)
> build qemu
> mkdir build-m68k
> cd    build-m68k
> ../configure --target-list=m68k-softmmu
> make
> Run qemu using the RTEMS ELF binary:
> m68k-softmmu/qemu-system-m68k -M uc5282 -nographic -kernel hello.exe
> -- Till

Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985

More information about the users mailing list