1.打开tftp:tftpd32.exe(用来传输烧写的文件)
2.打开串口
3.启动目标板,一直按ESC键或者0,
使之进入yamon命令行下
YAMON>
4、在yamon命令行下初始化网络配置。
YAMON> net
init (查看网络设置)
Ethernet driver for EM86XX
(v1.0)
(MAC 00:16:e8:ee:d6:ee, tx_desc/rx_desc = 16/32)
em86xx_eth::open(em86xx_eth)
- Full-duplex mode
em86xx_eth::open(em86xx_eth) - 100 Mbit/s
em86xx_eth
ethernet start
ipaddr: 10.0.0.20
subnetmask: 255.255.255.0
gateway:
10.0.0.1
YAMON> setxenv y.ipaddr "192.168.73.244"(设置IP)
Original
value: "10.0.0.20", New value: "192.168.73.244"
Updating XENV block
at 0x48000000.
.
XENV verification OK.
YAMON> setxenv
y.gateway "192.168.73.1" (设置网关)
Original value: "10.0.0.1", New
value: "192.168.73.1"
Updating XENV block at 0x48000000.
.
XENV
verification OK.
YAMON> net init
(查看网络设置)
net have been initialized
ipaddr: 192.168.73.244
subnetmask:
255.255.255.0
gateway: 192.168.73.1
3、烧写zboot
3.1、按
下面命令通过tftp下载目标代码到目标板
YAMON> load -b
tftp://192.168.0.37/zboot2.bin 0xb0100000 (将文件下载至以0xb0100000为起始地址的空间)
About
to load tftp://192.168.0.83/zboot2.bin
Press Ctrl-C to break
.....
Start
= 0xb0100000, range = (0xb0100000,0xb012f193), format = BINARY
Length
= 0x2f194 (192916)
Checksum = 0x86457147
3.2、按下面命令烧写目标代码到目标板
YAMON>
pflash write 0x0 0xb0100000 0x2f194
(将起始地址为0xb0100000,长度为0x2f194的文件烧写到以0x0为起始地址的空间)
0x00000000 -
0x0002ffff will be erased
0x00000000 - 0x0002f193 will be written
Erasing
:
..........
Writing :
.................................................
Verifying
(RAM 0xb0100000, size 0x2f194) : OK.
YAMON>
4、烧写yamon
4.1、
按下面命令通过tftp下载目标代码到目标板
YAMON> load -b
tftp://192.168.0.37/zbimage-yamon 0xb0100000(将文件下载至以0xb0100000为起始地址的空间)
About
to load tftp://192.168.0.83/zbimage-yamon
Press Ctrl-C to break
......
Start
= 0xb0100000, range = (0xb0100000,0xb01303ff), format = BINARY
Length
= 0x30400 (197632)
Checksum = 0xd5974852
4.2、按下面命令烧写目标代码到目标板
YAMON>
pflash write 0x40000 0xb0100000
0x30400(将起始地址为0xb0100000,长度为0x30400的文件烧写到以0x0为起始地址的空间)
0x00040000 -
0x0007ffff will be erased
0x00040000 - 0x000703ff will be written
Erasing
:
....
Writing :
..................................................
Verifying
(RAM 0xb0100000, size 0x30400) : OK.
YAMON>
5、烧写内核及文件系统
5.1、
按下面命令通过tftp下载目标代码到目标板
YAMON>load -b
tftp://192.168.0.37/zbimage-linux-xrpc 0xb0100000
5.2、按下面命令烧写目标代码
到目标板
YAMON>pflash write -f 0x80000 0xb0100000 0x46e400 //Length =
0x46e400
阅读(3423) | 评论(0) | 转发(0) |