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.