Hardware Platform: fl2440 Development Board
Kernel version: 2.6.28
HOST: Ubuntu 11.04
Kernel version: 2.6.39
Original works, reprinted please indicate the source http://blog.csdn.net/yming0221/archive/2011/06/24/6566551.aspx
I thought the size of fl2440's NAND Flash was 128 MB. I only knew it after I asked the customer service. Now fl2440 uses modern flash, and now it is replaced with MB, however, no corresponding modification has been made to Feiling's bootloader. It uses neither U-boot nor Vivi, but its own bootloader. Modify the NAND. c In the source code of bootloader.
Modify as follows:
// You can modify or delete a partition. The partition name cannot be changed to static struct partition nandpart [] = {0, 0x00020000, "Boot "}, // 128 K one block {0x00020000, 0x00060000, "bootparam"}, // 384 K three blocks {0x00080000, 0x00100000, "pic "}, // 1 m {0x00180000, 0x00380000, "MyApp"}, // 3.5 m {0x00500000, 0x00300000, "kernel "}, // 3 m {0x00800000, 0x0f000000, "fs_yaffs"}, // 240 m // {0x09e00000, 0x00080000, "eboot "}, // 512 K // {0x09e80000, 0x06400000, "wince"}, // 100 m {0, 0, 0 }};
Use the ads tool to re-compile the bootloader, generate the. binfile, and then burn the bootloader. In this way, the flash size allocated to the Linux File System is 240 MB (because you do not need
Win CE)
In this way, Linux makes full use of flash and does not need to mount many library files into NFS.
Then modify the fl2440 built-in kernel (most drivers have been integrated) Modify Linux/ARCH/ARM/plat-s3c24xx/common-smdk.c
static struct mtd_partition smdk_default_nand_part[] = {[0] = {.name= "Boot",.size= 0x00100000,.offset = 0},[1] = {.name= "MyApp",.size= 0x003c0000,.offset = 0x00140000,},[2] = {.name= "Kernel",.size= 0x00300000,.offset = 0x00500000,},[3] = {.name= "fs_yaffs",.size= 0x0f000000, //240M.offset = 0x00800000,},/*[4] = {.name= "WINCE",.size= 0x03c00000,.offset = 0x04400000,}*/};
Then make zimage to re-compile the kernel. Burn and write the kernel.
Finally, simply burn the previously created file system into it.
(Note: Due to the 64 m sdram size, the file system is too large to use this bootloader to burn in, you can delete the QT Library first, start it, and use NFS to load, however
And then copy it ).
Enter CAT/proc/MTD to view partition information
The partition is successfully modified and the dual system is changed to a single system.