|
楼主 |
发表于 2020-7-7 13:40
|
显示全部楼层
ath> tftp 0x80000000 0101A8C0.img
Trying eth0
eth0 link down
FAIL
Trying eth1
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.1
Filename '0101A8C0.img'.
Load address: 0x80000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###
done
Bytes transferred = 15985093 (f3e9c5 hex)
ath> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),8256k(mib0),64k(ART)
bootdelay=2
baudrate=115200
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
lu=tftp 0x80060000 u-boot.bin&&erase 0x9f000000 +&&cp.b 0x9f000000
lf=tftp 0x80060000 ap135-jffs2&&erase 0x9f050000 +0x630000&&cp.b 0x9f050000
lk=tftp 0x80060000 vmlinux.lzma.uImage&&erase 0x9fe80000 +&&cp.b 0x9fe80000
crc_result=pass
mode=normal
upgrade_flag=2
bootcmd=bootm 0x9fe80000
stdin=serial
stdout=serial
stderr=serial
ethact=eth1
filesize=f3e9c5
fileaddr=80000000
ipaddr=192.168.1.1
serverip=192.168.1.10
Environment size: 657/65532 bytes
ath> erase 0x9fe80000 +0x20000
Erasing flash...
First 0xe8 last 0xe9 sector size 0x10000
233
Erased 2 sectors
ath> cp.b 0x80000000 0x9fe80000 0x20000
Copy to Flash... write addr: 9fe80000
done
ath> bootm 0x9fe80000
## Booting image at 9fe80000 ...
Bad Magic Number
ath> reset
U-Boot 1.1.4-gfacc17ef-dirty (Sep 4 2015 - 17:55:33)
ap135 - Scorpion 1.0DRAM:
sri
Scorpion 1.0
ath_ddr_initial_config(196): (32bit) ddr2 init
tap = 0x00000003
Tap (low, high) = (0x3, 0x1a)
Tap values = (0xe, 0xe, 0xe, 0xe)
256 MB
Top of RAM usable for U-Boot at: 90000000
Reserving 256k for U-Boot at: 8ffbc000
Reserving 192k for malloc() at: 8ff8c000
Reserving 44 Bytes for Board Info at: 8ff8bfd4
Reserving 36 Bytes for Global Data at: 8ff8bfb0
Reserving 128k for boot params() at: 8ff6bfb0
Stack Pointer at: 8ff6bf98
Now running in RAM - U-Boot at: 8ffbc000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
*** Warning *** : PCIe WLAN Module not found !!!
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0xe
No valid address in Flash. Using fixed address
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
Scorpion ----> S17 PHY *
Vlan config...
s17 phy0 register value 0x00004140
TEST: FINAL REG VAL after TX Calibration - 0x86000000
TEST: FINAL XMII VAL after RX Calibration - 0x96000000
TEST: FINAL ETH_CFG VAL after RX Calibration - 0x00000001
athrs17_reg_init: complete
: cfg1 0x80000000 cfg2 0x7335
eth0: 00:03:7f:09:0b:ad
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x800c0000 cfg2 0x7214
eth1: 00:03:7f:09:0b:ad
eth1 up
eth0, eth1
Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
Ath Nand ID[8ffee17c]: 01:f1:80:1d:01
ONFI SPANSION S34ML01G2
NAND 128MiB 3,3V 8-bit [128MB]
====== NAND Parameters ======
sc = 0x8ffee158 bbt = 0x8ff9c538 bbt_size = 0x100 nf_ctrl = 0x344
page = 0x800 block = 0x20000 oob = 0x40
size = 128MB
Setting 0x18116290 to 0x3468214f
last reboot failed.
NAND read: device 0 offset 0x6000000, size 16777216 ... 16777216 bytes read: OK
CRC32 for 80060000 ... 80f9ffff ==> 97ead771
backup crc:b7190af0 image crc:97ead771
Hit any key to stop autoboot: 0
## Booting image at 9fe80000 ...
Bad Magic Number
删除9fe80000字段的flash后,重启提示“Bad Magic Number"了。 |
|