root@arm2410s:/#
root@arm2410s:/# exit #退出当前 shell
Please press Enter to activate this console. #再按回车开启一个新的login shell
starting pid 799, tty '/dev/console': '-/bin/sh '
Processing /etc/profile #再次执行/etc/profile配置文 件
set user path
set search library path
set PS1
lingd@ubuntu:~/arm2410s/rootfs/mnt/etc$ ls
init.d inittab profile rc.local
3.7、/etc/fstab
文件/etc/fstab存放的是系统中的文件系统信息。当正确的设置了该 文件,则可以通过'mount /directoryname'命令来加载一个文件系统,或mount -a来加载该文件中所有文件系统。每种文件系统都对应一个独立的行,每行中的字段都有空格或tab键分开。同时fsck、mount、umount的等命 令都利用该程序。
lingd@ubuntu:~/arm2410s/rootfs/mnt/etc$ vi fstab
fstab文件内容如下: 3.8、/etc/passwd /etc/passwd文件存放着所有用户的信息,包括账号和密码。内容如下: #username:password:User ID:Group ID:comment:home directory:shell root:x:0:0:root:/root:/bin/sh BusyBox下载地址:http://www.busybox.net/ 这两项必须选上,不然BusyBox将无法识别环境变量PS1里的参数。
#/etc/fstab: static file system information.
#
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
mdev /dev ramfs defaults 0 0
none /tmp ramfs defaults 0 0
注意: 已单独mount了的文件系统,就不要出现在/etc/fstab文件中,以免使用mount -a时把先前已经mount上的文件系统被覆盖了。
4、编译busybox
lingd@ubuntu:~/arm2410s$ tar xjvf busy-1.11.1.tar.bz2
lingd@ubuntu:~/arm2410s$ cd busybox-1.11.1
lingd@ubuntu:~/arm2410s/busybox-1.11.1$ vi Makefile
首先修改 Makefile ,将以下两项改为
CROSS_COMPILE = arm-linux-
ARCH = arm
配置busybox,修改以下选项(其他选项默认就可 以了,或者根据需要再裁减一下):
lingd@ubuntu:~/arm2410s/busybox-1.11.1$ make menuconfig
Busybox Settings --->
Build Options --->
[*] Build BusyBox as a static binary (no shared libs)
[ ] Build with Large File Support (for accessing files > 2 GB)
Installation Options --->
[*] Don't use /usr #这项必选选上,否则BusyBox默认安装路径是/usr,原/usr下的东西可能会被覆盖了
Applets links (as soft-links) --->
(./_install) BusyBox installation prefix
Busybox Library Tuning --->
[*] Command line editing
(1024) Maximum length of input
[*] vi-style line editing commands
(15) History size
[*] History saving
[*] Tab completion
[*] Username completion
[*] Fancy shell prompts
Linux Module Utilities --->
[*] insmod
[*] Enable load map (-m) option
[*] Symbols in load map
[*] rmmod
[*] lsmod
[*] Pretty output for 2.6.x Linux kernels
[*] modprobe
[ ] Multiple options parsing
[ ] Fancy alias parsing
[ ] Blacklist support
--- Options common to multiple modutils
[ ] Support tainted module checking with new kernels
[ ] Support version 2.2.x to 2.4.x Linux kernels
[*] Support version 2.6.x Linux kernels
(/lib/modules) Default directory containing modules
(modules.dep) Default name of modules.dep
保存退出 Busybox
lingd@ubuntu:~/arm2410s/busybox-1.11.1$ make
lingd@ubuntu:~/arm2410s/busybox-1.11.1$ make install
上一篇:常用 U-boot命令详解
下一篇:使用Busybox制作CRAMFS文件系统成功
- 热门资源推荐
- 热门放大器推荐
- 一款用于手机的 LED 闪光灯 LED 驱动器
- AR0132AT6C00XPEAH3-S215-GEVB: 1.2 MP Sunex DSL215 1/3" iBGA CIS HB
- LT8631IFE 400kHz、3.3V、1A 降压转换器的典型应用电路
- AD5342 并行接口、双电压输出、12 位 DAC 的典型应用
- AZ7031ZTR低压指示检测器典型应用电路
- TAR5SB35 点稳压器(低压降稳压器)的典型应用
- LT3692AHFE、3.3V 和 1.2V 2 级双路降压多频转换器的典型应用电路
- 具有 400mA 突发模式操作、2.25MHz 同步降压稳压器的 LTC3621HMS8E-2 5Vout 的典型应用
- LT1300 两节电池至 5V DC/DC 转换器在 2V 输入时提供大于 200mA 的电流
- EVAL-AD7658-1CBZ,用于 AD7658、12 位、6 通道同步采样 ADC 的评估板



非常经典的关于LLC的杨波博士论文
LT1782HS5#TRM

XC6406PP60DL






京公网安备 11010802033920号