Hardware Platform: FL2440 Development Board kernel version: 2.6.28 HOST: Ubuntu11.04 kernel version: 2.6.39 originally thought that the nandflash size of fl2440 was 128 M. I only knew it after I asked the customer service, currently, FL2440 uses modern flash and is now replaced with MB, but the bootloader of Feiling has not been modified. It uses neither u-boot nor vivi, it is your own bootloader. Modify bootl now
Hardware Platform: FL2440 Development Board
Kernel version: 2.6.28
HOST: Ubuntu 11.04
Kernel version: 2.6.39
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 change the partition name and delete it.
- Static StructPartition 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 StructMtd_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,// 240 M
- . 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