This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

2010年6月1日 星期二

QEMU mini2440 半殘教學!

[reference]
http://opencsl.openfoundry.org/
http://trac.mixam.info/mini2440/wiki/Qemu

最近把QEMU mini2440 跑起來了!做個半殘教學~因為網路跟flash部份沒做
這兩個部份其實qemu都有模擬出來了(強大阿)

1. http://repo.or.cz/w/qemu/mini2440.git
下載qemu,u-boot,kernel ~想辦法把他們都編譯過
kernel
make ARCH=arm mini2440_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux- uImage
kernel 啟動部份我使用initramfs(很偷懶)
u-boot
make mini2440_config
make CROSS_COMPILE=arm-linux-
qemu
./configure --target-list=arm-softmmu
make
我發現qemu mini2440啟動會從u-boot.bin開始.我是用絕對路徑
所以要到hw/mini2440.c中把load_image改成你u-boot.bin存放路徑
2.sudo ./qemu-system-arm -kernel uImage -M mini2440 -singlestep -d in_asm -mtdblock mini2440_nand.bin
接下來就啟動啦!!!

Demo
u-boot












kernel