Kernel version: linux-3.0
u-boot version: u-boot-2010.09
Development board model: FL2440
1. Modify the root file system
No modification
2. Add kernel support for cramfs
[lingyun@localhost linux-3.0]$ vt100
[lingyun@localhost linux-3.0]$ make menuconfig
File systems --->
Miscellaneous filesystems --->
<*> Compressed ROM file system support (cramfs)
Modify Makefile
[lingyun@localhost linux-3.0]$ vim Makefile
Modify lines 195 and 196
[lingyun@localhost linux-3.0]$ make
Compilation process omitted
[lingyun@localhost linux-3.0]$ ls
Displaying directory results is the same as Transplant (I).
ky-cramfs.bin is the compiled kernel.
3. Make an image file
[lingyun@localhost keyue]$ mkcramfs rootfs_tree ky-rootfs.cramfs
Copy the image file to tftp.
[lingyun@localhost keyue]$ cp ky-rootfs.cramfs /tftp/
4. Burn the file system into the development board
4.1. Set startup parameters
[u-boot@keyue]# set bcramfs 'tftp 30800000 ky-rootfs.cramfs;nand erase f00000 600000;nand write 30800000 f00000 600000'
[u-boot@keyue]# set bootargs 'noinitrd root=/dev/mtdblock3 rootfstype=cramfs init=/linuxrc console=ttyS0,115200'
[u-boot@keyue]# set bootcmd_cramfs 'nand read 30008000 100000 400000;bootm 30008000'
[u-boot@keyue]# set bootcmd 'run bootcmd_cramfs'
[u-boot@keyue]#set bkr 'tftp 30008000 ky-cramfs.bin;nand erase 100000 800000;nand write 30008000 100000 800000'
[u-boot@keyue]# save
Parameters were set successfully.
4.2. Burn the file system and kernel into the development board
[u-boot@keyue]# run bkr
The operation process is omitted.
[u-boot@keyue]# run bcramfs
The operation process is omitted.
[u-boot@keyue]# boot
The burning process is omitted, and the results are as follows:
At this point, the file system has been burned into the development board, and you can see the file system you made.
Previous article:File system migration (Part 3): Ramdisk file system migration
Next article:File system migration (V): jiffs2 file system migration
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- ESP32-S2-Saola-1 Development Board
- Problems with using transistors as followers
- Did EE change its logo?
- What is the difference between single-ended audio and differential audio? One is mono and the other is stereo?
- 【Qinheng Trial】ch554 lights up lcd1602
- How is 5G charged?
- 【NXP Rapid IoT Review】+ 5. Comprehensive application of sensors
- WiFi 6 and "CHIP" will strongly promote the popularization of the Internet of Things. What do you think?
- OMRON H3Y-2 0-10s TIMER
- Cortex-M3 Technical Reference Manual