Set up a file system directory in the referenced Linux directory.
Unzip the source into the directory configuration compiler and compile the schema:
Cross_compile? = arm-linux-
ARCH = arm.
Perform make menuconfig configuration
Choose Static Compilation,
Select the installation path in the installation options (you can directly select the directory you just created). Save exit.
Make
Make install to generate files.
Enter to set up the directory to the ETC directory to execute: CP-RF. /.. /busybox-1.13.0/examples/bootfloppy/etc/*./
Copy the partial configuration file and copy the native to passwd group shadow to the current directory.
Modify the Inittab file to:
:: Sysinit:/etc/init.d/rcs::respawn:-/bin/shhang_serial0::askfirst:-/bin/sh::once:/usr/sbin/telnetd-l/bin/login :: Ctrlaltdel:/bin/umount-a-R
Manually create a device file in the Dev directory:
[Email protected] dev]# Mknod console C 5 1[[email protected] dev]# lsconsole[[email protected] dev]# mknod null C 1 3[[em AIL protected] dev]# lltotal 0crw-r--r--. 1 root root 5, 1 May 5 19:51 consolecrw-r--r--. 1 root root 1, 3 May 5 19:51 null
Modify the ETC/INIT.D/RC. S file
#! /bin/shpath=/bin/:/sbin/:/usr/bin:/usr/sbinrunlevel=sprevlevel=numask 022export PATH runlevel Prevlevel/bin/mount- Amkdir/dev/ptsmount-t devpts devpts/dev/ptsecho/sbin/mdev >/proc/sys/kernel/hotplugmdev-smkdir-p/var/lock/bin/ Hostname-f/etc/sysconfig/hostname
In the ETC directory to create the directory sysconfig into the directory to add files hostname, the content is the name of the display.
Modify the contents of the profile file as:
#Ash profile#vim:syntas=sh#no core files by Default#ulimit-s-C 0 >/dev/null 2>&1user= "' Id-un '" Logname= $USERP S1= ' [\[email protected]\h \w]# ' path= $PATHHOSTNAM = '/bin/hostname ' echo ' Welcome home Sir ' echo ' Jarvis is ok! ' Export USER LOGNAME PS1 PATH
To copy a library file from the cross-compiler:
[Email protected] lib]# cp-f/opt/embedsky/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib/*.so*./-A
To make the bin file:
[Email protected] hakits]# mkyaffs2image my_root/ my_root.bin