LXR | KVM | PM | Time | Interrupt | Systems Performance | Bootup Optimization

Buildroot+ARM+QEMU:搭建ARM-Linux虚拟开发环境

 

1. 配置工作环境

sudo apt install gcc build-essential bison flex gettext tcl sharutils libncurses-dev zlib1g-dev exuberant-ctags g++ texinfo patch vim libtool bc git

安装qemu工具:

sudo apt install qemu-system-arm

2. 下载buildroot

到buildroot.org官网下载相应的压缩包:buildroot-2017.05.2.tar.gz

然后解压tar -zxvf buildroot-2017.05.2.tar.gz

或者通过git下载指定branch。

git clone https://github.com/arnoldlu/buildroot.git -b arnoldlu_2017_05_2

然后新建分支,上传git push origin your_branch

3. 配置编译buildroot

make qemu_arm_vexpress_defconfig--------选择虚拟qemu配置

make-------------------------------------------------下载并且编译包

 结果在output/images下生成zImage、vexpress-v2p-ca9.dtb、rootfs.ext2三个文件,分别是内核、DeviceTree文件和文件系统。

qemu-system-arm -M vexpress-a9 -smp 4 -m 1024M -kernel output/images/zImage -append "root=/dev/mmcblk0 console=ttyAMA0 loglevel=8" -dtb output/images/vexpress-v2p-ca9.dtb -sd output/images/rootfs.ext2 -nographic

 但需要停止qemu的时候通过killall qemu-system-arm

然后就进入如下console,输入root:

posted on   ArnoldLu  阅读(14210)  评论(0编辑  收藏  举报

编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示