Linux-2.6.32 ported to mini2440 development board - ported to yaffs2

Publisher:温柔心绪Latest update time:2024-06-18 Source: elecfansKeywords:linux-2  6  mini2440 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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).


Keywords:linux-2  6  mini2440 Reference address:Linux-2.6.32 ported to mini2440 development board - ported to yaffs2

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

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号