M 0 0# Automatic mounting when the mount-a command is executed4.3 create a file/Etc/inittabContent:: Sysinit:/etc/init. d/rcS: Askfirst:/bin/sh# TtyS0: 2345: respawn:/sbin/getty 115200 ttyS0 # I haven't figured it out yet: Ctrlaltdel:/sbin/reboot: Shutdown:/bin/umount-a-r: Restart:/sbin/init# Init process execution4.4 create a file/Etc/init. d/rcSContent:#! /Bin/shPATH =/bin:/sbin:/usr/bin:/usr/sbinRunlevel = SPrevlevel = NUmask 022Export PATH runlev
path of the compiler here.
(2) configure and compile the kernel module
You can copy the friendly built-in configuration file in the kernel. Then execute:
make menuconfigmake zImage
(3) Compile the kernel module
make modules ARCH=arm CROSS_COMPILE=arm-linux-
(4) install the kernel module
make modules_install ARCH=arm INSTALL_MOD_PATH=/opt/FriendlyARM/mini6410/rootfs
10. Create a configuration file under the etc directory A. Create the ETC/mdev. conf file. The content is blank.B. Copy the passwd
PATH =/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:Runlevel = SPrevlevel = NUmask 022Export PATH runlevel prevlevel
## Trap CTRL-C c only in this shell so we can interrupt subprocesses.#Trap ":" INT QUIT TSTP/Bin/hostname FriendlyARM
/Bin/mount-n-t proc none/proc/Bin/mount-n-t sysfs none/sys/Bin/mount-n-t usbfs none/proc/bus/usb/Bin/mount-t ramfs none/dev
Echo/sbin/mdev>/proc/sys/kernel/hotplug/Sbin/mdev-s/Bin/hotplug# Mounting file system specified
/lib$ CP-D/home/mxzh/smartphone/ww21/pxalinux/toolchain/arm-linux-4.1.1/ARM-iwmmxt-Linux-gnueabi/lib/LD *./$ CP/home/mxzh/smartphone/ww21/pxalinux/toolchain/arm-linux-4.1.1/ARM-iwmmxt-Linux-gnueabi/lib/libc. so.6 ./In this way, you can. (4) add commands and initialization scripts Copy the bin and sbin directories under the _ install directory generated by the compilation of busybox to the directory of the file system. For linuxrc, it is just a link instead of a copy. Add the/etc/init. d/RCS fil
$GatewayFiecho nameserver $DNS >/etc/resolv.confElseIf Grep-q "^/dev/root/nfs"/ETC/MTAB; ThenEcho-n NFS root ... >/dev/ttysac2Else/sbin/ifconfig eth0 192.168.253.12 netmask 255.255.255.0 upFiFiecho Done >/dev/ttysac2:Then save and exit Ifconfig-eth0 and use the chmod command to modify the Ifconfig-eth0 permissions: VimThen use the VI command under the INIT.D folder to create the RCS file:/home/cym/system/etc/init.dThen enter the following content in the RCS file:#! /bin/shPath=/sbin:/bin:/usr/s
Init.d folder, create a Ifconfig-eth0 file under the Init.d folder, and then enter the following content in the Ifconfig-eth0 file. Save and exit, modify the Ifconfig-eth0 file's permission bit 755.#!/bin/shEcho-n Try to bring eth0 interface Up......>/dev/ttysac2if [-f/etc/eth0-setting]; ThenSource/etc/eth0-settingIf Grep-q "^/dev/root/nfs"/ETC/MTAB; ThenEcho-n NFS root ... >/dev/ttysac2ElseIfconfig eth0 Downifconfig eth0 hw ether $MACIfconfig eth0 $IP netmask $Mask upRoute add default GW $Gate
restarting the shutdown:: Shutdown:/bin/umount-a-R3. Execute the/etc/init.d/rcs fileThis is a script file where you can add commands that you want to run automatically. The contents are as follows:#! /bin/shPath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:Runlevel=sPrevlevel=nUmask 022Export PATH runlevel Prevlevel# Network Configuration Script. /etc/init.d/network.sh# load Zlg_fsInsmod/bin/zlg_fs.koInsmod/bin/zlg_ffs.koMKNOD/DEV/ZLG_FSA B 125 0MKNO
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.