Editor: This is not to transplant the Yaffs2 file system, but just to patch the kernel to support the Yaffs2 file system.
1. Get the yaffs2 source code
Most development boards now support the yaffs2 file system, which is a file system created specifically for embedded devices, especially embedded devices that use nand flash as storage. Earlier yaffs only supported small-page (512byte/page) nand flash. Most development boards now have larger-capacity nand flash, which are generally in large-page mode (2K/page). Using yaffs2 can support large-page nand flash. The following are the detailed steps for porting yaffs2.
You can download the latest yaffs2 source code at http://www.yaffs.net/node/346 . You need to use the git tool and enter the following in the command line:
#git clone git://www.aleph1.co.uk/yaffs2
Wait for a moment, and you can download the latest yaffs2 source code directory. There is also a separate yaffs2 source code package in this CD (the file name is: yaffs2-src-20100329.tar.gz)
2. Apply the yaffs2 patch to the kernel
Then enter the yaffs2 source code directory and execute:
#cd yaffs2
#./patch-ker.sh c /opt/FriendlyARM/mini2440/linux-2.6.32.2
Now enter the linux-2.6.32.2/fs directory and you can see that there is an additional yaffs2 directory.
3 Configuring and compiling the kernel with YAFFS2 support
In the root directory of the Linux kernel source code, run: make menuconfig, move the up and down keys to find File Systems, press Enter to enter the submenu, then find the "Miscellaneous filesystems" menu item, press Enter to enter the submenu, find "YAFFS2 file system support", and press the space bar to select it. In this way, we have added support for the yaffs2 file system to the kernel, and press "Exit" to exit the kernel configuration.
Execute from the command line:
#make zImage
4 Burn to the development board and run the test
Finally, linux-2.6.32.2/arch/arm/boot/zImage will be generated. Use supervivi's "k" function to burn it to nand flash, and press "b" to start the system. At this time, if the nand flash already has a file system (you can use supervivi's "y" function to burn the ready-made yaffs2 file system image root_qtopia-128M.img provided by Friendly Arm for testing).
Previous article:linux-2.6.32 transplanted on mini2440 development board - transplanted Nand driver and modified partition information
Next article:Linux-2.6.32 ported on mini2440 development board* Ported DM9000 network card driver
- 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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Advanced FPGA Design is a must-read for beginners of FPGA
- LM358 pin diagram, function description and working principle detailed explanation
- IAR MSP430 "the stack pointer for stack is outside" error handling
- IIC protocol based on STM8--Example--Clock module (DS3231) reading
- A Implementation of Serial Interface Based on PCI Bus
- 【McQueen Trial】Blink
- EEWORLD University Hall----Design using TI's series capacitor buck converter
- 【Silicon Labs Development Kit Review 07】_freeRtos+UART+TH+IMU+PainterEngine
- Live broadcast at 2 pm today [Introduction to TI MSP430 capacitive touch development]
- Comparison of two PWM motor drives