Transplantation of ARMLinux Based on FL2440 Development Board in Ubuntu11.04

Source: Internet
Author: User
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:

  1. // You can change the partition name and delete it.
  2. Static StructPartition NandPart [] = {
  3. {0, 0x00020000,"Boot"},// 128 K one block
  4. {0x00020000, 0x00060000,"BootParam"},// 384 K three blocks
  5. {0x00080000, 0x00100000,"Pic"},// 1 M
  6. {0x00180000, 0x00380000,"MyApp"},// 3.5 M
  7. {0x00500000, 0x00300000,"Kernel"},// 3 M
  8. {0x00800000, 0x0f000000,"Fs_yaffs"},// 240 M
  9. // {0x09e00000, 0x00080000, "eboot"}, // 512 K
  10. // {0x09e80000, 0x06400000, "wince"}, // 100 M
  11. {0, 0, 0}
  12. };

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

  1. Static StructMtd_partition smdk_default_nand_part [] = {
  2. [0] = {
  3. . Name ="Boot",
  4. . Size = 0x00100000,
  5. . Offset = 0
  6. },
  7. [1] = {
  8. . Name ="MyApp",
  9. . Size = 0x003c0000,
  10. . Offset = 0x00140000,
  11. },
  12. [2] = {
  13. . Name ="Kernel",
  14. . Size = 0x00300000,
  15. . Offset = 0x00500000,
  16. },
  17. [3] = {
  18. . Name ="Fs_yaffs",
  19. . Size = 0x0f000000,// 240 M
  20. . Offset = 0x00800000,
  21. },
  22. /* [4] = { 
  23. . Name = "WINCE ", 
  24. . Size = 0x03c00000, 
  25. . Offset = 0x04400000, 
  26. */
  27. };

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.