根文件系统移植——busybox配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了根文件系统移植——busybox配置相关的知识,希望对你有一定的参考价值。

一:下载busybox

www.busybox.net

二:make menuconfig配置

因为busybox比较简单,配置项目不多,所以直接make menuconfig进行配置既可以,不需要make xxxconfig。配置如下

Busybox Settings--->
	Build Options--->
		[*]Build BusyBox as a static binary(no shared libs)  配置为静态链接库
        
        Installation Options ("make install" behavior)  --->    配置busybox的默认安装路径
             /x210_kernel/rootfs/rootfs  配置为我们nfs服务器挂载根文件系统的目录下
        Busybox Library Tuning--->
	    [*]vi-style line editing commands  选择vi风格的行命令
	    [*]Fancy shell prompts
	
	
Linux Module Utilities--->  驱动开发相关的
	[ ]Simplified modutils
	[*]insmod
	[*]rmmod
	[*]lsmod
	[*]modprobe
	[*]depmod

	
Linux System Utilities--->[*]mdev   驱动开发相关
	[*]Support /etc/mdev.conf
	[*]Support subdirs/symlinks
	[*]Support regular expressions substitutions when renaming dev
	[*]Support command execution at device addition/removal
	[*]Support loading of firmwares

三:make 编译

当我们在根目录下看到文件busybox时,说明我们的busybox就编译好了


四:make install安装

    make install 将我们的busybox安装到我们设置的目录下。对应的卸载是make uninstall


五:启动

    重新启动uboot,下载并启动内核,则我们的根文件系统busybox就能够被加载了。

本文出自 “11664570” 博客,请务必保留此出处http://11674570.blog.51cto.com/11664570/1932513

以上是关于根文件系统移植——busybox配置的主要内容,如果未能解决你的问题,请参考以下文章

Linux系统移植:根文件系统构建

Linux系统移植:根文件系统构建

Linux基于busybox移植rootfs根文件系统

Linux基于busybox移植rootfs根文件系统

Linux基于busybox移植rootfs根文件系统

i.MX6ULL系统移植 | 使用busybox制作根文件系统(1.29.0)