There is already a driver for mini2440 in linux-4.1.4, so the porting work is relatively small.
1. Modification of the partition table
Modify the partition table mini2440_default_nand_part in arch/arm/mach-s3c24xx/mach-mini2440.c to make the partition consistent with the partition definition of the transplanted u-boot, as follows:
0 - 0x100000 1M u-boot
0x100000 - 0x140000 256K u-boot environment parameters
0x140000 - 0x540000 4M Linux kernel
0x540000 - Last file system
2. Modify the configuration file
cp arch/arm/configs/s3c2410_defconfig arch/arm/configs/s3c2440_defconfig
s3c2410_defconfig actually already contains a series of information about S3C24xx. Therefore, you can configure it directly.
3. Execute make s3c2440_defconfig
4. Generate kernel
make zImage
Note: You can also copy mkimage to /usr/local/bin and execute make uImage. Here, zImag is manually converted to uImage.
5. Create uImage
mkimage -n 'linux-4.1.4' -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d zImage uImage
6. Then burn the kernel and boot. "Stuck" at Uncompressing Linux... done, booting the kernel
Modify the CONFIG_BOOTARGS parameter of uboot to "console=ttySAC0,115200 mtdparts=nandflash0:1M(uboot)ro,256K(env),5M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2"
Or manually change it in the u-boot command.
Previous article:Linux kernel transplantation one linux-4.1.4 zImage generation (Makefile analysis)
Next article:Getting the ARM instruction set right (Part 1) --- Data storage and loading instructions
- 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
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- About the 2021 E-Sports Championship
- Classic Books on Signal Integrity Design
- How to avoid copper between the pins of AD18 chip
- [ST waterproof pressure sensor LPS27HHW evaluation 1] Hardware preparation and data collection
- Live broadcast at 10 am today [Design considerations for the precision acquisition signal chain of ADI vibration signals]
- How to implement data exchange between FPGA and HPS on DE1-SOC development board? Free. Help can be 200 RMB
- Can AD drag and drop components like PADS? After clicking, the component sticks to the cursor, and the component will be placed only after clicking again.
- [National Technology N32G430] 6. Porting FreeRtos
- Anti-interference technology for industrial measurement and control systems
- Technical article: The magic of energy monitoring in DC systems