The factory-preinstalled JZ2440 development board has already burned the bootloader, kernel and file system. However, during specific use, we found that the kernel partition divided on the board was only 2M, and the kernel we compiled was larger than 2M, so the kernel was programmed to nandflash and started unsuccessfully. How to do it? I looked up the information and found a solution.
2 methods, choose one: 1. Modify the file uboot-1.1.6/include/configs/100ask2440.h. If it is a non-jz2440 development board, this file cannot be found. However, the approximate path is correct. You can search using the following command first:
find ./ -name "*" | xargs grep "2m(kernel)"
That is to say, by searching for files containing 2m (kernel) in the current directory and its subdirectories, the file to be modified can be quickly located. Find the file and open it with VI. In the command line mode, enter:
/MTDPARTS_DEFAULT
. Find:
#define MTDPARTS_DEFAULT
"mtdparts=nandflash0:256k@0(bootloader),"
"128k(params),"
"2m(kernel),"
"-(root)"
Changing the kernel size above to 4m is almost enough. Recompile u-boot after modification.
2. Modify common-smdk.c in the kernel. Different versions of the kernel may have different locations. It is best to search before finding:
locate common-smdk.c
or
find ./ -name common-smdk.c
My kernel version is Linux -3.4.2, this file is in arch/arm/mach-s3c24xx/common-smdk.c. After opening the file, find the following content. The bold part is the partition size of nandflash. You can modify
the static struct mtd_partition smdk_default_nand_part[] = {
[0] = {
.name = “bootloader”,
.size = SZ_256K,
.offset = 0,
},
[1] = {
.name = “params”,
.offset = MTDPART_OFS_APPEND,
.size = SZ_128K,
},
[2] = {
.name = “kernel”,
.offset = MTDPART_OFS_APPEND,
.size = SZ_4M,
},
[3] = {
.name = “rootfs”,
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
}
};
After modification, just recompile the kernel. When U-BOOT is started, you can use the mtd command to check whether the partition is effective. My partition table is as follows:
Previous article:JZ2440 development board is directly connected to the computer to realize TFTP download
Next article:ARM Embedded Compiler (5) 4 ways to optimize loops
- 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
- MAX232cse chip introduction
- [Fudan Micro FM33LG0 Series Development Board Review] Driving SPI TFT Display
- Come to Infineon flagship store to find good things in autumn! Get coupons and win a 50-yuan JD card
- [2022 Digi-Key Innovation Design Competition] Material unboxing ESP32-S3 SHT30 LMG5200 and other devices
- Help, power circuit analysis
- If there is a bug in the third-party code, how can everyone adapt it to the original version after it is fixed?
- Share a general good book Digital Signal Processing C Language Program Collection-DSP Algorithm Encyclopedia C Language Version Original Book
- This article explains what parameters and indicators should be measured when designing a switching power supply.
- ATMEL SAM3N2C chip timing is inaccurate
- TMS320C6000 Image Library (IMGLIB)