2009-04-10 16:25:58 +00:00
|
|
|
apt-get source qemu
|
|
|
|
|
2009-04-10 16:14:26 +00:00
|
|
|
use these files in place of those in the qemu tree
|
|
|
|
|
|
|
|
Build qemu
|
|
|
|
./configure --target-list=arm-softmmu
|
|
|
|
make
|
|
|
|
|
|
|
|
Run with
|
|
|
|
arm-softmmu/qemu-system-arm -S -M mc1322x -nographic -pflash /home/malvira/mc1322x-tests/tests/blink-red.bin
|
|
|
|
|
|
|
|
which will load the bin at 0x00400000 and execution will start there (type c).
|
|
|
|
|
|
|
|
I plan to add a way to load a rom image as well...
|
|
|
|
|
2009-04-10 16:25:58 +00:00
|
|
|
Debug with gdb:
|
|
|
|
|
|
|
|
Build gdb for an arm target:
|
|
|
|
|
|
|
|
apt-get source gdb
|
|
|
|
./configure --target=arm-linux
|
|
|
|
make
|
|
|
|
./gdb
|
|
|
|
(gdb) target remote localhost:1234
|
2009-04-10 16:14:26 +00:00
|
|
|
|