Mail: bookworepeng@Hotmail.com
QQ: 196568501
Phone: 13410905075
Author: drivermonkey
-Welcome to the discussion
1) create a root file system. To create a root file system, copy the required root file to a directory and compress it with the compression command in the specified format.
2) Compile the file system into the kernel. The specific method is to specify the root file path generated in the first step when compiling the kernel, and then compile it.
Kernel options:
# General setup #... config_blk_dev_initrd = yConfig_initramfs_source = "<path_to>/target_fs>"... # Ubi-unsorted block images #... config_blk_dev_ram = yconfig_blk_dev_ram_count = 1config_blk_dev_ram_size = 8192config_blk_dev_ram_blocksize = 1024
3) Put the kernel directly in the SD or NAND system.
The following problems were encountered during system startup:
1. Wa
Rning: Unable to open an initial Console
Solution: add the following content to the root file:
CD/dev
Mknod-M 660 console C 5 1
Mknod-M 660 null C 1 3
2. init cannot be found during system startupProgram
Solution:
Create a link to direct it to the INIT program
3. The library file may not be found when Level 5 is started.
Solution:
Directly copy the missing library file to the root file system
References:
Http://processors.wiki.ti.com/index.php/Initrd