QEMU is a generic and open source machine emulator and virtualizer.
Targets Supported:
- lm3s6963-ek
NOTE:
Tizen RT supports two memory options for lm3s6963-ek board;
- 64KB RAM requirement configuration which matches with real memory of lm3s6963-ek board
- 16MB RAM requirement which can be run on QEMU only with the patch in TizenRT/build/configs/qemu/qemu-2.10.0-rc2_increase_ram_size.patch
wget http://download.qemu-project.org/qemu-2.10.0-rc2.tar.xz
tar xvJf qemu-2.10.0-rc2.tar.xz
cd qemu-2.10.0-rc2
/* Copy qemu-2.10.0-rc2_increase_ram_size.patch from TizenRT/build/configs/qemu */
patch -p1 < qemu-2.10.0-rc2_increase_ram_size.patch
./configure --target-list=arm-softmmu
make -j 4
cd arm-softmmu/
sudo ln qemu-system-arm /usr/local/bin/qemu-system-arm
There are two methods, using QEMU command or make command.
After building Tizen RT, follow below steps at $TIZENRT_BASEDIR/os folder.
TIZENRT_BASEDIR was set at [Getting the sources] tab of Quick Start.
qemu-system-arm -M lm3s6965evb -kernel ../build/output/bin/tinyara -nographic -gdb tcp::3333
make download
To debug Tizen RT on QEMU, GDB should be connected through below commands.
arm-none-eabi-gdb
(gdb) file ../build/output/bin/tinyara
(gdb) target remote:3333
for running tash under 256KB flash and 64KB sram
for running tash under 128MB flash and 16MB sram
If you want to set your sram to 64KB or 16MB, follow these steps.
make menuconfig
Enter Board Selection
-> Build for qemu hardware
Select NONE
(64KB) or Build for SRAM increased QEMU Hardware
(16MB)
Enter Chip Selection
-> Boot Memory Configuration
Set Primary RAM size
to 65536
(64KB) or 16777216
(16MB)