当前位置:网站首页>编译生成busybox文件系统
编译生成busybox文件系统
2022-06-30 16:16:00 【曹乐乐爱学习】
1、解压busybox-1.29.0.tar.bz2
2、我的linaro交叉编译器路径:/opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/
3、修改顶层Makefile
164 CROSS_COMPILE ?= /opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
190 ARCH ?= arm4、(支持中文字符的先不看)
5、make defconfig
6、make menuconfig
报错:
<command-line>: fatal error: curses.h: No such file or directory
解决:
sudo apt-get install libncurses5-dev 7、(图形界面自己看着配,不懂)
8、make
9、make install CONFIG_PREFIX=/home/ckl/my_board/nfs/rootfs
10、从交叉编译器拷贝库文件(其实可以从BSP中编译,至少yocto可以)
/lib库
$ cd /opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/lib
$ cp *so* -d ~/my_board/nfs/rootfs/lib/
$ cp *.a -d ~/my_board/nfs/rootfs/lib/
但是教程上说:ld-linux-armhf.so.3这个库不可以是软链接
$ rm ~/my_board/nfs/rootfs/lib/ld-linux-armhf.so.3
$ cp /opt/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/lib/ld-linux-armhf.so.3 ~/my_board/nfs/rootfs/lib
/usr/lib库
同样cd到相应目录
cp *so* *.a -d ~/my_board/nfs/rootfs/usr/lib
我这出来一个警告,不知道啥原因:(先不管)

11、创建其他文件夹(是不是必要,不清楚,/root,应该必须吧?)
(然后压缩、替换烧录包中的文件系统;或者挂载起来使用)
边栏推荐
- Map集合
- Compile - compile for itop4412 development board makefile
- How can you choose to work in the county after graduation?
- Exch:修复丢失的系统邮箱
- 定时任务删除指定时间的的数据
- k线图精解与实战应用技巧(见位进场)
- Consolidate entry-C basic variables and constants
- Nouvelle version de shangdingyun | la fonction favorite est en ligne pour répondre aux besoins d'utilisation personnelle
- How to connect the Internet Reading Notes - Summary
- addmodule_ allmerge_ ams_ im
猜你喜欢

【网易云信】播放demo构建:无法将参数 1 从“AsyncModalRunner *”转换为“std::nullptr_t”**

How to connect the Internet Reading Notes - Summary

新技能:通过代码缓存加速 Node.js 的启动

【C语言】详解线程 — 线程分离函数 pthread_detach

商鼎云新版来袭 | 收藏夹功能已上线,满足个人使用需求

Redis elimination strategy

MySQL8 NDB Cluster安装部署

Implementation of graduation project management system based on SSM

水平视觉错误效果js特效代码

differential analysis between different groups nichenet for silicosis成功运行!
随机推荐
[200 opencv routines] 215 Drawing approximate ellipse based on polyline
Redis elimination strategy
Network: principle and practice of server network card group technology
js 从原型链到继承
【OpenCV 例程200篇】215. 基于多段线绘制近似椭圆
Hyper-V: enable SR-IOV in virtual network
Construction schedule of intelligent management and control platform in Shanxi Chemical Industry Park
Differential analysis between different groups nichenet for silicosis runs successfully!
定时任务删除指定时间的的数据
Consolidate entry-C basic variables and constants
Cesium-1.72 learning (model attitude control)
Bridge emqx cloud data to AWS IOT through the public network
商鼎雲新版來襲 | 收藏夾功能已上線,滿足個人使用需求
redis淘汰策略
Compile - compile for itop4412 development board makefile
A scheduled task deletes data at a specified time
每日刷题记录 (九)
列表变成向量 列表变向量 list vector
The new version of Shangding cloud | favorites function has been launched to meet personal use needs
Booking UI effect implemented by svg