如何烧写v5t板子的kernel

 开机按住空格进入U-Boot,

1.通过串口上传kernel到v5t板子
loadb 0xa0200000 115200
然后使用kermit协议传送zImage文件
2.通过tftp上传kernel
setenv serverip 192.168.0.184
setenv ipaddr 192.168.0.117
tftp  0xa0200000  zImage
3.将kernel写入falsh中
erase 0x80000 0x17ffff (擦去flash)
cp.b 0xa0200000 0x80000 0x100000 (将内存信息保存到flash)
4. bootm
从内存中启动kernel

注意尽量要用直连线连接板子和tftp服务器,避免外部网络打断.

--============================================================--
U-Boot 1.0.0 (Dec 18 2004 - 13:42:25)

U-Boot code: A3000000 -> A3019C70  BSS: -> A304D8F8
dram init.......
DRAM Configuration:
Bank #0: a0000000 64 MB
DRAM Configuration:
Bank #0: a0000000 64 MB
Flash: 32 MB
*** Warning - bad CRC, using default environment

setenv....serial
Hit any key to stop autoboot:  0
Ryoma# setenv serverip 192.168.0.116
Ryoma# setenv ipaddr 192.168.0.117
Ryoma# tftp 0xa0200000 zImage 
Hello1 .......
Hello2 .......
ether id=3300...
hihi,91c111...........1
hihi,91c111...........2
hihi,91c111...........3
Hello 3.......
TFTP from server 192.168.0.116; our IP address is 192.168.0.117
Filename 'zImage'.
Load address: 0xa0200000
Loading: T T T ########################################################T #########
         #################################################################
         ############################################
done
Bytes transferred = 888612 (d8f24 hex)
Ryoma# erase 0x80000 0x17ffff

Erasing sector  2 ...  done
Erasing sector  3 ...  done
Erasing sector  4 ...  done
Erasing sector  5 ...  done
Erased 4 sectors
Ryoma# cp.b 0xa0200000 0x80000 0x100000
Copy to Flash.../done
Ryoma#

你可能感兴趣的:(c,server,网络,Flash,hex)