qemu-system-arm 启动系统

本文详细介绍了如何使用qemu-system-arm命令启动U-boot和Linux内核,包括设置开发板类型、内存大小、指定镜像文件,并讲解了U-boot和Linux内核的编译过程,以及如何配置支持NFS文件系统和制作根文件系统。
摘要由CSDN通过智能技术生成

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;
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值