qemu-system-arm 命令用法
qemu-system-arm -M vexpress-a9 -m 512M -kernel ./uImage -dtb ./vexpress-v2p-ca9.dtb -nographic -append "console=ttyAMA0"
-M 指定开发板
-m 指定内存
-kernel 指定镜像
-nographic 不使用图形化
root@vm:~/tftpboot# ifconfig
br0 Link encap:Ethernet HWaddr 00:0c:29:17:3d:ea
inet addr:192.168.199.238 Bcast:192.168.199.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe17:3dea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3550 errors:0 dropped:0 overruns:0 frame:0
TX packets:2540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:267188 (267.1 KB) TX bytes:3633841 (3.6 MB)
U-boot编译
http://ftp.denx.de/pub/u-boot/
u-boot-2017.05.tar.bz2
Makefile: CROSS_COMPILE=arm-linux-gnueabi-
config.mk : ARCH=arm
u-boot-2017.05# vim include/configs/vexpress_common.h #支持tftp启动
/* Basic environment settings */
/*#define CONFIG_BOOTCOMMAND \
"run distro_bootcmd; " \
"run bootflash; "*/
#define CONFIG_BOOTCOMMAND \
"tftp 0x60003000 uImage;tftp 0x60500000 vexpress-v2p-ca9.dtb;