Linux kernel transplantation 2 Linux-4.1.4 transplantation process

Publisher:真诚的友谊Latest update time:2022-07-26 Source: csdnKeywords:linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.


Keywords:linux Reference address:Linux kernel transplantation 2 Linux-4.1.4 transplantation process

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

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号