還是模擬 VEXPRESS-A9.
起初,我用的還是qemu官網里的最新代碼編出的qemu程序。
u-boot從下面的網址獲得:
http://ftp.denx.de/pub/u-boot/
取得是最新的代碼。解壓后,配置,編譯:
make vexpress_ca9x4_config
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabi-
make vexpress_ca9x4_config
make
然后,用 qemu運行 u-boot:
qemu-system-arm -M vexpress-a9 -serial stdio -kernel u-boot
結果,qemu的窗口出來了,但卻沒有任何輸出,程序好像是deadlock 在某一個地方了。
根據網上建議的方法調試如下:
1. 先運行
qemu-system-arm -M vexpress-a9 -serial stdio -kernel u-boot -s -S
然后,在另一個虛擬終端窗口執(zhí)行:
arm-linux-gnueabi-gdb u-boot
.....
(gdb) target remote localhost:1234
最終發(fā)現,程序執(zhí)行了下面的匯編執(zhí)行后就 stuck 那里了
mcr p15, 0, r0, c12, c0, 0 @Set VBAR
(在文件 u-boot-2013.10/arch/arm/cpu/armv7/start.S里)
現在對arm的匯編還不熟悉,這個錯誤不知道如何解決。。
所以,就換了另一個對arm支持較好的qemu版本: qemu-linaro。可以用git拿到源碼。
git clone git://git.linaro.org/qemu/qemu-linaro.git
用編譯 qemu一樣的方法編譯 qemu-linaro.
然后,再嘗試運行u-boot:
-
Linux
+關注
關注
87文章
11351瀏覽量
210497 -
u-boot
+關注
關注
0文章
121瀏覽量
38329 -
qemu
+關注
關注
0文章
57瀏覽量
5411
發(fā)布評論請先 登錄
相關推薦
U-Boot介紹
U-boot的基本介紹
![<b class='flag-5'>U-boot</b>的基本介紹](https://file1.elecfans.com/web2/M00/8C/C4/wKgaomSxDC-AIi1QAACKegMzhAU876.png)
Porting U-Boot to the Control
NIOS軟核處理器的Linux引導程序U-boot設計
![NIOS軟核處理器的<b class='flag-5'>Linux</b>引導程序<b class='flag-5'>U-boot</b>設計](https://file1.elecfans.com//web2/M00/A5/0B/wKgZomUMNrGAM7TSAAB-O1NllNQ160.gif)
u-boot的Makefile分析
U-Boot結構功能介紹
![<b class='flag-5'>U-Boot</b>結構功能介紹](https://file1.elecfans.com//web2/M00/A5/A8/wKgZomUMOXeAD3-GAAAxLI3Aifs249.jpg)
嵌入式U-BOOT的啟動流程及移植
u-boot簡介
U-Boot架構淺析
![<b class='flag-5'>U-Boot</b>架構淺析](https://file.elecfans.com/web1/M00/D9/4E/pIYBAF_1ac2Ac0EEAABDkS1IP1s689.png)
評論