Teach you how to burn, write, and write u-boot, kernel, and rootfs (target platform S3C2410)

Source: Internet
Author: User

Kernel partition space:

Creating 4 MTD partitions on "NAND 64mib, 3 V 8-bit ":

0x00000000-0x00080000: "bootloader"

0x00080000-0x00280000: "Linux kernel"

0x00280000-0x00680000: "root file system"

0x00680000-0x04000000: "user space"

Run U-boot:

TFTP 0x30008000 u-boot.bin

Nand erase 0x0 0x80000

Nand write 0x30008000 0x0 0x80000

Run the following command to write the kernel:

TFTP 0x30008000 uimage

Nand erase 0x80000 0x200000

Nand write 0x30008000 0x80000 0x200000

Write a file system:

TFTP 0x30008000 root. cramfs

Nand erase 0x280000 0x400000

Nand write 0x30008000 0x280000 0x400000

[Smdk2410 #] setenv bootcmd NAND read 0x30008000 0x80000 0x200000 \; bootm

[Smdk2410 #] saveenv

[Smdk2410 #] setenv bootargs root =/dev/mtdblock2 init =/linuxrc console = ttysac0, 115200

[Smdk2410 #] saveenv

Saving environment to Nand...

Erasing Nand... writing to Nand... Done

[Smdk2410 #] printenv

Bootargs = root =/dev/mtdblock3 init =/linuxrc console = ttysac0, 115200

Bootcmd = TFTP; bootm

Bootdelay = 3

Baudrate = 115200

Ethaddr = 08: 00: 3E: 26: 0a: 5b

Ipaddr = 192.168.1.131

Serverip = 192.168.1.132

Netmask = 255.255.255.0

Bootfile = "uimage"

Stdin = serial

Stdout = serial

Stderr = serial

Modify root Partition

[Smdk2410 #] setenv bootargs root =/dev/mtdblock2 init =/linuxrc

Console = fig, 115200

[Smdk2410 #] saveenv

Modify TFTP to nandflash

[Smdk2410 #] setenv bootcmd NAND read 0x30008000 0x80000 0x200000 \; bootm

[Smdk2410 #] printenv

Bootargs = root =/dev/mtdblock2 init =/linuxrc console = ttysac0, 115200

Bootdelay = 3

Baudrate = 115200

Ethaddr = 08: 00: 3E: 26: 0a: 5b

Ipaddr = 192.168.1.131

Serverip = 192.168.1.132

Netmask = 255.255.255.0

Bootfile = "uimage"

Stdin = serial

Stdout = serial

Stderr = serial

Bootcmd = NAND read 0x30008000 0x80000 0x160000; bootm

Environment size: 298/16380 bytes

[Smdk2410 #] saveenv

Saving environment to Nand...

Erasing Nand... writing to Nand... Done

[Smdk2410 #] Reset

After the restart, the system will enter the transplanted Linux system, and all the burning and writing work will be completed.

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.