Ubuntu16.04安装qemu模拟2440开发板

本文解决Ubuntu环境下QEMU编译错误,如“recipe for target 'qemu-system-arm' failed”,通过修改Makefile及安装libm解决。同时分享Buildroot 2015.02版本编译中遇到问题的解决方法,包括使用gcc5.4编译mtd-utils-1.5.1的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考教程:

1、https://www.cnblogs.com/zwxwill/p/9431774.html

2、https://blog.youkuaiyun.com/maxwell_nc/article/details/44279553

3、http://www.cnblogs.com/jinmu190/archive/2011/03/21/1990698.html

 

其他版本的ubuntu安装qemu模拟mini2440应该类似,只是安装过程中错误可能不一样

 

一、解决编译qemu的报错问题

qemu编译过程中的报错:“recipe for target 'qemu-system-arm' failed”

解决方法:

1、修改Makefile.target

将497行里的LIBS+=-lz 改为LIBS+=-lz -lrt -lm

2、再次make后报找不到libm,所以安装libm吧,执行如下就OK了

sudo apt-get install apt-file
sudo apt-file upgdate
apt-file search libm.a
apt-file search libm.so

二、编译bulidroot

我使用的bulidroot版本下载地址:https://git.busybox.net/buildroot/tag/?h=2015.02

 

1)解决编译buildroot可能会遇到的各种问题,太多了,下面列出来我遇到的问题,解决方法:

https://blog.youkuaiyun.com/laohuang1122/article/details/44098291/

https://blog.youkuaiyun.com/wxh0000mm/article/details/83994116

https://blog.youkuaiyun.com/u014449366/article/details/73250513

https://blog.youkuaiyun.com/huangminilong/article/details/80507008

https://blog.youkuaiyun.com/thinkerleo1997/article/details/52412042

 

2)还有遇到安装mtd-untils-1.5.1软件包,用gcc 5.4编译不过的问题,解决方法是到mtd.mk修改下载的版本,改为1.5.2

3)flashimg工具下载命令:git clone https://github.com/cailiwei/flashimg

 

最后成功跑起来了,截图

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值