此时,文件传送完毕,且校验正确。这时我们可以用u-boot命令来将文件写入相应的nandflash地址中:
  MINI6410 # nand erase 80000 400000
  NAND erase: device 0 offset 0x80000, size 0x400000
  Erasing at 0x460000 -- complete.
  OK
  MINI6410 # nand write 50008000 80000 400000
  NAND write: device 0 offset 0x80000, size 0x400000
  4194304 bytes written: OK
  7.将S2调整到NAND启动位置,重启开发板后从NandFlash读取内核到内存,运行结果如下:
U-Boot 2011.06 (Mar 16 2012 - 13:58:27) for MINI6410
CPU: S3C6400@667MHz
Fclk = 667MHz, Hclk = 133MHz, Pclk = 66MHz (ASYNC Mode)
Board: MINI6410
DRAM: 256 MiB
NAND: 512 MiB
MMC: SAMSUNG SD/MMC: Host controler CH0
No SD/MMC card detected!
No MMC card for env!
Using default environment
Video: no Video params found, try bootargs~~ 640x480x24 31kHz 59Hz
[petworm] video_hw_init: <640, 480, 640, 480>
No SD/MMC card detected!
Video: No MMC card for background image!
In: serial
Out: serial
Err: serial
Net: dm9000
Hit any key to stop autoboot: 0
MINI6410 # nand read 50008000 80000 400000
NAND read: device 0 offset 0x80000, size 0x400000
4194304 bytes read: OK
  8.从内存中启动内核:
MINI6410 # bootm 50008000
## Booting kernel from Legacy Image at 50008000 ...
Image Name: petworm
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3763232 Bytes = 3.6 MiB
Load Address: 50008000
Entry Point: 50008040
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 2.6.38-FriendlyARM (root@jensen) (gcc version 4.5.1 (ctng-1.8.1-F1
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: MINI6410
。。。 。。。
  至此,Linux下用USB电缆烧写uImage成功完成!
  附:
  我们可以通过使用u-boot自带的mkimage命令来将zImage转换为uImage文件,命令如下:
  mkimage -A arm -O linux -T kernel -C none -a 0x50008000 -e
  0x50008040 -n "image-name" -d zImage_a70 uImage_a70
  此命令将zImage_a70文件转换为uImage_a70文件,镜像的名称为image-name。