Create an embedded Linux root file system

Source: Internet
Author: User
Embedded Linux root file system operating system: fedora17 (linux-3.3.4) development board: friendly arm Tiny6410gcc & amp; g ++: 4.7.2arm-linux-gcc & amp; arm-linux-g ++: 4.5.1busybox-1.20.21. create directory rootfs # mkdirrootfs # c... embedded Linux root file system operating system: fedora 17 (linux-3.3.4) development board: friendly arm Tiny6410gcc & g ++: 4.7.2arm-linux-gcc & arm-linux-g ++: 4.5.1busybox-1.20.21. create the directory rootfs # mkdir rootfs # cd rootfs www.2cto.com 2. compile and install Busybox unzip busybox source package # tar jxvf busybox-1.20.2.tar.bz2 configuration compilation option # c D busybox-1.20.2 # make menuconfig in Busybox Settings-> Build Options-> Cross Compiler prefix set the Compiler prefix to arm-linux-compile and install, by default, it is installed in the _ install directory # make & make install # cp _ install/*/home/sunke/work/rootfs-r to generate bin sbin usr linuxrc, go to the usr directory and create several additional directories # cd usr # mkdir lib local development 3.create and fill in the lib Directory # mkdir lib # cd lib copy the corresponding dynamic library from the installation path of the cross compiler # cp-d/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/lib /*. so *./ Create another modules Directory # mkdir modules4. create and fill in the etc Directory # mkdir etc # cd etcetc directory is complicated, but the content is fixed, you can directly copy the friendly etc directory, this manual directly uses The etc directory # tar zxvf etc.tar.gz # cp etc/*/home/sunke/work/rootfs-r5. create and fill the dev directory # mkdir dev # cd dev manually create two devices, other devices are automatically created by mdev # mknod-m 666 console c 5 1 # mknod-m 666 null c 1 36. create another directory # mkdir proc sys mnt/nfs tmp var home root7. package rootfs into an ubi image and unzip the tools provided by the friendly arm to/usr/sbinmkubimage-mlc2 rootfs rootfs-2 01212262052. ubi8. download to the development board via USB or SD card. the boot is successful. PS: It can be found in/etc/init. d/add a startup item (configure the network, set environment variables, and self-start programs) PS: the command for configuring the network is as follows: ifconfig eth0 10.206.130 netmask 255.255.255.0route add default gw 10.10.206.254
 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.