Make a new root file system ---busybox-1.20.0--- (JZ2440-S3C2440)

Publisher:QuailLatest update time:2022-07-20 Source: csdnKeywords:JZ2440  S3C2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Unzip, compile and install busybox-1.20.0.tar.bz2


(1) Unzip: tar xjf busybox-1.20.0.tar.bz2

Enter the directory: cd busybox-1.20.0

cd busybox-1.20.0

Configuration: make menuconfig

(2) Then specify the cross-compiler.


The process of specifying a cross compiler is as follows:

Configure the cross-compiler, save and exit after completion.


(3) Compilation and installation


Compile command: make


After compiling, install:


Create a fs_mini_mdev_new in the /work/nfs_root/ directory.


Command: cd /work/nfs_root/


mkdir fs_mini_mdev_new


Installation: make install CONFIG_PREFIX=/work/nfs-root/fs_mini_mdev_new


The result after installation is as follows:

2. Install the library


(1) Check the directory where the cross-compilation tool is located: echo $PATH


The location is: /usr/local/arm/4.3.2/bin/

(2) Enter the directory where the cross-tool is located, /usr/local/arm/4.3.2/, and view the library.


Among them, only two armv4t related libraries will be used

(3) Create a lib directory in /work/nfs-root/fs_mini_mdev_new


Command: mkdir /work/nfs-root/fs_mini_mdev_new/lib


File copy:


Command: cp /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/*.so* /work/nfs-root/fs_mini_mdev_new/lib -d

Create a directory: mkdir /work/nfs-root/fs_mini_mdev_new/usr/lib -p

cp /usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib/*.so* /work/nfs-root/fs_mini_mdev_new/usr/lib -d


(4) Construct etc directory


Here we copy the etc directory in the /work/nfs_root/second_fs/ directory to /work/nfs-root/fs_mini_mdev_new/.


Copy command: cp /work/nfs_root/second_fs/etc /work/nfs-root/fs_mini_mdev_new/ -rf


The /etc/inittab file and /etc/init.d/rcS file are no longer modified here.


(5) Create dev and create file nodes


Command: mkdir /work/nfs_root/second_fs/dev

sudo mknod dev/console c 5 1

sudo mknod dev/null c 1 3 


(6) Create other proc, tmp, mnt, sys, and root directories


Command: mkdir proc tmp mnt sys root

3. Make jffs2 image file


Command: mkfs.jffs2 -n -s 2048 -e 128KiB -d fs_mini_mdev_new/ -o fs_mini_mdev_new.jffs2


The results are as follows:

Then you can perform the file system burning experiment using fs_mini_mdev_new.jffs2.


Secondly, you need to configure the kernel to support EABI.

Keywords:JZ2440  S3C2440 Reference address:Make a new root file system ---busybox-1.20.0--- (JZ2440-S3C2440)

Previous article:New version U-boot2012.04.01 transplantation (Part 2) (JZ2440-S3C2440)
Next article:Qt2.2.0 ported to ARM9 (IV) (JZ2440----S3c2440)

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号