1. Tftp将软件升级到板子上(绿色字体为升级命令)
U-Boot1.1.4-dirty (Apr 18 2016 - 20:41:39)
ap151 -Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278):(ddr2 init)
ath_sys_frequency:cpu 775 ddr 650 ahb 258
Tapvalues = (0xf, 0xf, 0xf, 0xf)
128 MB
Top ofRAM usable for U-Boot at: 88000000
Reserving199k for U-Boot at: 87fcc000
Reserving192k for malloc() at: 87f9c000
Reserving44 Bytes for Board Info at: 87f9bfd4
Reserving36 Bytes for Global Data at: 87f9bfb0
Reserving128k for boot params() at: 87f7bfb0
StackPointer at: 87f7bf98
Nowrunning in RAM - U-Boot at: 87fcc000
FlashManuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17
flashsize 8MB, sector count = 128
Flash: 8 MB
***Warning - bad CRC, using default environment
***Warning *** : PCIe WLAN Module not found !!!
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No validaddress in Flash. Using fixed address
No validaddress in Flash. Using fixed address
ath_gmac_enet_initialize:reset mask:c02200
Dragonfly---->S27 PHY *
: cfg10x80000000 cfg2 0x7114
eth0:00:03:7f:09:0b:ad
athrs27_phy_setupATHR_PHY_CONTROL 4 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 4 :10
eth0 up
ATHRS27:resetting s27
ATHRS27:s27 reset done
: cfg10x800c0000 cfg2 0x7214
eth1:00:03:7f:09:0b:ad
athrs27_phy_setupATHR_PHY_CONTROL 0 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setupATHR_PHY_CONTROL 1 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setupATHR_PHY_CONTROL 2 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setupATHR_PHY_CONTROL 3 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0,eth1
Setting0x181162c0 to 0x80
Hit anykey to stop autoboot: 0
ath>
ath>tftp 0x80060000 openwrt-ar71xx-ap151-8M-qca-legacy-uboot.bin
Tryingeth0
eth0 linkdown
FAIL
Tryingeth1
enet1port0 up
dup 1speed 1000
Usingeth1 device
TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1
Filename'openwrt-ar71xx-ap151-8M-qca-legacy-uboot.bin'.
Loadaddress: 0x80060000
Loading:#################################
done
Bytestransferred = 166892 (28bec hex)
ath> erase 0x9f000000 +0x28bec
Erasingflash...
First 0x0last 0x2 sector size 0x10000
2
Erased 3sectors
ath> cp.b 0x80060000 0x9f000000 0x28bec
Copy toFlash... write addr: 9f000000
done
ath>tftp 0x80060000 openwrt-ar71xx-generic-ap151-8M-kernel.bin
Tryingeth0
eth0 linkdown
FAIL
Tryingeth1
Usingeth1 device
TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1
Filename'openwrt-ar71xx-generic-ap151-8M-kernel.bin'.
Loadaddress: 0x80060000
Loading:#################################################################
#################################################################
#################################################################
done
Bytestransferred = 1114112 (110000 hex)
ath>erase 0x9f680000 +0x110000
Erasingflash...
First0x68 last 0x78 sector size 0x10000
120
Erased 17sectors
ath>cp.b 0x80060000 0x9f680000 0x110000
Copy toFlash... write addr: 9f680000
done
ath> tftp 0x80060000openwrt-ar71xx-generic-ap151-8M-rootfs-squashfs.bin
Tryingeth0
eth0 linkdown
FAIL
Tryingeth1
Usingeth1 device
TFTP fromserver 192.168.1.10; our IP address is 192.168.1.1
Filename'openwrt-ar71xx-generic-ap151-8M-rootfs-squashfs.bin'.
Loadaddress: 0x80060000
Loading:#################################################################
#################################################################
#################################################################
#################################################################
done
Bytestransferred = 6422528 (620000 hex)
ath> erase 0x9f050000 +0x620000
Erasingflash...
First 0x5last 0x66 sector size 0x10000
102
Erased 98sectors
ath> cp.b 0x800600000x9f050000 0x620000
Copy toFlash... write addr: 9f050000
Done
2. 重启设备
U-Boot1.1.4-dirty (Apr 18 2016 - 20:41:39)
ap151 -Dragonfly 1.0DRAM:
sri
ath_ddr_initial_config(278):(ddr2 init)
ath_sys_frequency:cpu 775 ddr 650 ahb 258
Tapvalues = (0xf, 0xf, 0xf, 0xf)
128 MB
Top ofRAM usable for U-Boot at: 88000000
Reserving199k for U-Boot at: 87fcc000
Reserving192k for malloc() at: 87f9c000
Reserving44 Bytes for Board Info at: 87f9bfd4
Reserving36 Bytes for Global Data at: 87f9bfb0
Reserving128k for boot params() at: 87f7bfb0
StackPointer at: 87f7bf98
Now runningin RAM - U-Boot at: 87fcc000
FlashManuf Id 0xc8, DeviceId0 0x40, DeviceId1 0x17
flashsize 8MB, sector count = 128
Flash: 8 MB
***Warning - bad CRC, using default environment
***Warning *** : PCIe WLAN Module not found !!!
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No validaddress in Flash. Using fixed address
No validaddress in Flash. Using fixed address
ath_gmac_enet_initialize:reset mask:c02200
Dragonfly---->S27 PHY *
: cfg10x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
athrs27_phy_setupATHR_PHY_CONTROL 4 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 4 :10
eth0 up
ATHRS27:resetting s27
ATHRS27:s27 reset done
: cfg10x800c0000 cfg2 0x7214
eth1:00:03:7f:09:0b:ad
athrs27_phy_setupATHR_PHY_CONTROL 0 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 0 :10
athrs27_phy_setupATHR_PHY_CONTROL 1 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 1 :10
athrs27_phy_setupATHR_PHY_CONTROL 2 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 2 :10
athrs27_phy_setupATHR_PHY_CONTROL 3 :1000
athrs27_phy_setupATHR_PHY_SPEC_STAUS 3 :10
eth1 up
eth0,eth1
Setting0x181162c0 to 0x80
Hit anykey to stop autoboot: 0
##Booting image at 9f680000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2016-05-17 6:29:33 UTC
Image Type: MIPS Linux Multi-File Image (lzma compressed)
Data Size: 1090209 Bytes = 1 MB
Load Address: 80060000
Entry Point: 80060000
Contents:
Image 0: 1090201 Bytes = 1 MB
Verifying Checksum at 0x9f680040 ...OK
Uncompressing Multi-File Image ... OK
No initrd
##Transferring control to Linux (at address 80060000) ...
## Givinglinux memsize in bytes, 134217728
Startingkernel ..