QCA9558+QCA8337 bootloader问题

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周日 8月 27, 2017 10:49 pm

cloudq 写了:
terra 写了:
cloudq 写了:请问您的意思是否是如下面这样设置???不知道我理解的是否正确?

7500v5.jpg
7500v5.jpg (110.68 KiB) 查看 6302 次

不要选VLAN那个。其实你可以试试直接用TP 7500 v5的boot可以不


7500 V5的uboot启动信息如下,但是uboot下面 网还是不通

7500v5.jpg
7500v5.jpg (110.68 KiB) 查看 6302 次


SuperWRT Boot 1.3.4-gc05dbf2d-dirty (Jul 30 2017 - 14:54:41)

QCA955x - Scorpion 1.0

DRAM: 128 MB
Flash: 16 MB (c22018)
Using default environment

Frequency: CPU 720MHz / RAM 600MHz / AHB 240MHz
Bootstrap Config: 0x00031c5c
SuperWRT Board Info(0x9f01c000):
TP WDR7500 v5.0/terra@superwrt.com/2016-01-29
Auto extend mtd parts size to 16M!
WLAN0 info: cal:0x9f01e000, mac:0x9f01d80d
Device UID: none
GPIO: reset(16/L), system(14/L)
In: serial
Out: serial
Err: serial
Net: (02:54:65:72:72:61) S17phy S17 [RGMII CALED: XMII=0x00000000 ETH_CFG=0x0003c041] eth0, eth1
Set 0x18116290 = 0x458a214f
Try eth1 first.
eth1 link down
dup 1 speed 1000
starting httpd server eth0 192.168.17.1

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周日 8月 27, 2017 10:54 pm

terra 写了:
cloudq 写了:请问您的意思是否是如下面这样设置???不知道我理解的是否正确?

15.jpg

不要选VLAN那个。其实你可以试试直接用TP 7500 v5的boot可以不


使用7500 v5的uboot,切换了lan wan 依然不行,就是说无论我从eth0或者eth1 开启http,网都是不通的,无法ping通 192.168.17.1 网口我挨个插了个遍

Environment size: 566/65532 bytes
ath> http
Try eth0 first.
starting httpd server eth0 192.168.17.1

Environment size: 566/65532 bytes
ath> http
Try eth1 first.
eth1 link down
starting httpd server eth0 192.168.17.1

terra
Site Admin
帖子: 524
注册: 周二 11月 24, 2015 9:02 pm

Re: QCA9558+QCA8337 bootloader问题

帖子terra » 周一 8月 28, 2017 6:13 am

cloudq 写了:
terra 写了:
cloudq 写了:请问您的意思是否是如下面这样设置???不知道我理解的是否正确?

15.jpg

不要选VLAN那个。其实你可以试试直接用TP 7500 v5的boot可以不


使用7500 v5的uboot,切换了lan wan 依然不行,就是说无论我从eth0或者eth1 开启http,网都是不通的,无法ping通 192.168.17.1 网口我挨个插了个遍

Environment size: 566/65532 bytes
ath> http
Try eth0 first.
starting httpd server eth0 192.168.17.1

Environment size: 566/65532 bytes
ath> http
Try eth1 first.
eth1 link down
starting httpd server eth0 192.168.17.1

可能你的设计只用了SGMII,你试试只选一个PHY,然后选1,4,5,6。在启动系统前,要在boot中先清空一下配置。

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 6:21 am

可能你的设计只用了SGMII,你试试只选一个PHY,然后选1,4,5,6。在启动系统前,要在boot中先清空一下配置。[/quote]

只选一个phy的时候uboot 下面是通的,但是进入系统后就不通了,我再测试一下看看,贴结果出来

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 6:30 am

terra 写了:
cloudq 写了:
terra 写了:不要选VLAN那个。其实你可以试试直接用TP 7500 v5的boot可以不


使用7500 v5的uboot,切换了lan wan 依然不行,就是说无论我从eth0或者eth1 开启http,网都是不通的,无法ping通 192.168.17.1 网口我挨个插了个遍

Environment size: 566/65532 bytes
ath> http
Try eth0 first.
starting httpd server eth0 192.168.17.1

Environment size: 566/65532 bytes
ath> http
Try eth1 first.
eth1 link down
starting httpd server eth0 192.168.17.1

可能你的设计只用了SGMII,你试试只选一个PHY,然后选1,4,5,6。在启动系统前,要在boot中先清空一下配置。


这次试验如下

1.用编程器清空flash芯片,写入生成的uboot文件,配置如下,启动后,再点一下清空配置,然后上传升级文件superwrt-qca-qca9k-std_v0.5.15_20170730.spkg


16.jpg
16.jpg (23.43 KiB) 查看 6292 次



SuperWRT Boot 1.3.3-g5a7c57f1-dirty (Jun 19 2017 - 15:47:47)

QCA955x - Scorpion 1.0

DRAM: 128 MB
Flash: 16 MB (c22018)
Using default environment

Frequency: CPU 720MHz / RAM 600MHz / AHB 240MHz
Bootstrap Config: 0x00031c5c
SuperWRT Board Info(0x9f01c000):
9557/mcpcloud@126.com/2017-08-28
WLAN0 info: cal:0x9fff1000, mac:0x9fff0000
Device UID: none
GPIO: reset(-1/L), system(-1/L)
In: serial
Out: serial
Err: serial
Net: (02:54:65:72:72:61) S17 eth0
Set 0x18116290 = 0x458a214f
Hit 'c' or 'Ctrl+c' to stop autoboot: 1
Net Command waiting: 2
Try eth1 first.
dup 1 speed 1000

config: Config magic check error!
config2: Config magic check error!
## Booting image at 9f020000 ...
## Booting image at 9f020000 ...
Magic: ffffffff
Bad Magic Number
Failed to boot.
Starting httpd to update firmware...
Try eth1 first.
starting httpd server eth0 192.168.17.1
HTTP: G /
HTTP: G /style.css
HTTP: G /
HTTP: G /style.css
HTTP: G /debug/
HTTP: G /style.css
HTTP: G /api/clear_custom
Write custom (0x0) to 0x9ffc0000 (0x20000)
Erasing flash...
First 0xfc0 last 0xfdf sector size 0x1000
=== erase 4032 64k
=== erase 4048 64k
Erased 32 sectors
HTTP: G /style.css
HTTP: G /
HTTP: G /style.css
HTTP: G /api/clear_config
Write config (0x0) to 0x9ff80000 (0x20000)
Erasing flash...
First 0xf80 last 0xf9f sector size 0x1000
=== erase 3968 64k
=== erase 3984 64k
Erased 32 sectors
Write config2 (0x0) to 0x9ffa0000 (0x20000)
Erasing flash...
First 0xfa0 last 0xfbf sector size 0x1000
=== erase 4000 64k
=== erase 4016 64k
Erased 32 sectors
No partition: cfg
No partition: cfg2
HTTP: G /style.css
HTTP: G /
HTTP: G /style.css
HTTP: P /
Store POST at 0x801C0000
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 6:31 am

整个启动过程如下

SuperWRT Boot 1.3.3-g5a7c57f1-dirty (Jun 19 2017 - 15:47:47)

QCA955x - Scorpion 1.0

DRAM: 128 MB
Flash: 16 MB (c22018)
Using default environment

Frequency: CPU 720MHz / RAM 600MHz / AHB 240MHz
Bootstrap Config: 0x00031c5c
SuperWRT Board Info(0x9f01c000):
9557/mcpcloud@126.com/2017-08-28
WLAN0 info: cal:0x9fff1000, mac:0x9fff0000
Device UID: none
GPIO: reset(-1/L), system(-1/L)
In: serial
Out: serial
Err: serial
Net: (02:54:65:72:72:61) S17 eth0
Set 0x18116290 = 0x458a214f
Hit 'c' or 'Ctrl+c' to stop autoboot: 1
Net Command waiting: 2
Try eth1 first.
dup 1 speed 1000

config: Config magic check error!
config2: Config magic check error!
## Booting image at 9f020000 ...
Image Name: SuperWrt qca/qca9k/std
Created: 2017-07-30 6:53:56 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1299492 Bytes = 1.2 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9f020178 ...OK
Uncompressing Kernel Image ... OK

Starting kernel ...

[ 0.000000] Linux version 3.18.47 (terra@localhost.localdomain) (gcc version 4.8.3 (SuperWrt/Linaro GCC 4.8-2014.04 r44747) ) #1 Sun Jul 30 14:52:15 CST 2017
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=spi0.0:112k(uboot),16k(SBI),11520k(firmware),4160k(udata),64k(elog),128k(config),128k(config2),128k(custom),64k(DTB),64k(CAL) mem=128M sbi=0x9f01c000 rootfstype=squashfs,jffs2 init=/sbin/init noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 125428K/131072K available (3100K kernel code, 167K rwdata, 420K rodata, 208K init, 171K bss, 5644K reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:240.000MHz, Ref:40.000MHz
[ 0.000000] Calibrating delay loop... 359.42 BogoMIPS (lpj=718848)
[ 0.028000] pid_max: default: 32768 minimum: 301
[ 0.032000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.036000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.040000] NET: Registered protocol family 16
[ 0.044000] MIPS: machine is SuperWRT
[ 0.048000] registering PCI controller with io_map_base unset
[ 0.052000] ar724x-pci ar724x-pci.1: PCIe link is down
[ 0.056000] registering PCI controller with io_map_base unset
[ 0.272000] SCSI subsystem initialized
[ 0.276000] usbcore: registered new interface driver usbfs
[ 0.280000] usbcore: registered new interface driver hub
[ 0.284000] usbcore: registered new device driver usb
[ 0.288000] PCI host bridge to bus 0000:00
[ 0.292000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.296000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.300000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.304000] pci 0000:00:00.0: invalid calibration data
[ 0.308000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.312000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.316000] PCI host bridge to bus 0000:01
[ 0.320000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.324000] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.328000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.332000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.336000] Switched to clocksource MIPS
[ 0.340000] NET: Registered protocol family 2
[ 0.344000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.352000] TCP bind hash table entries: 1024 (order: 2, 20480 bytes)
[ 0.360000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.368000] TCP: reno registered
[ 0.372000] UDP hash table entries: 256 (order: 1, 12288 bytes)
[ 0.376000] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[ 0.384000] NET: Registered protocol family 1
[ 0.392000] futex hash table entries: 256 (order: 0, 7168 bytes)
[ 0.412000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.416000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.428000] msgmni has been set to 244
[ 0.440000] io scheduler noop registered
[ 0.444000] io scheduler deadline registered (default)
[ 0.448000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.456000] console [ttyS0] disabled
[ 0.480000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.492000] console [ttyS0] enabled
[ 0.492000] console [ttyS0] enabled
[ 0.496000] bootconsole [early0] disabled
[ 0.496000] bootconsole [early0] disabled
[ 0.512000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.520000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.524000] 10 cmdlinepart partitions found on MTD device spi0.0
[ 0.528000] Creating 10 MTD partitions on "spi0.0":
[ 0.536000] 0x000000000000-0x00000001c000 : "uboot"
[ 0.540000] 0x00000001c000-0x000000020000 : "SBI"
[ 0.544000] 0x000000020000-0x000000b60000 : "firmware"
[ 0.552000] Split rootfs Part: off:0x15d5a0 len:0xa02a60
[ 0.556000] 0x00000015d5a0-0x000000b60000 : "rootfs"
[ 0.564000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.568000] 0x000000380000-0x000000b60000 : "rootfs_data"
[ 0.576000] mtd: device 3 (rootfs) set to be root filesystem
[ 0.580000] 0x000000b60000-0x000000f70000 : "udata"
[ 0.588000] 0x000000f70000-0x000000f80000 : "elog"
[ 0.592000] mtdoops: MTD partition 6 not big enough for mtdoops
[ 0.600000] 0x000000f80000-0x000000fa0000 : "config"
[ 0.604000] 0x000000fa0000-0x000000fc0000 : "config2"
[ 0.612000] 0x000000fc0000-0x000000fe0000 : "custom"
[ 0.616000] 0x000000fe0000-0x000000ff0000 : "DTB"
[ 0.620000] 0x000000ff0000-0x000001000000 : "CAL"
[ 0.636000] libphy: ag71xx_mdio: probed. phys=0x00000000
[ 1.208000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[ 1.212000] PPP generic driver version 2.4.2
[ 1.220000] PPP MPPE Compression module registered
[ 1.224000] NET: Registered protocol family 24
[ 1.228000] PPTP driver version 0.8.5
[ 1.232000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.240000] ehci-pci: EHCI PCI platform driver
[ 1.244000] ehci-platform: EHCI generic platform driver
[ 1.248000] ehci-platform ehci-platform.0: EHCI Host Controller
[ 1.256000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 1.264000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 1.272000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 1.292000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 1.296000] hub 1-0:1.0: USB hub found
[ 1.300000] hub 1-0:1.0: 1 port detected
[ 1.304000] ehci-platform ehci-platform.1: EHCI Host Controller
[ 1.312000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 1.324000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 1.328000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 1.348000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 1.352000] hub 2-0:1.0: USB hub found
[ 1.356000] hub 2-0:1.0: 1 port detected
[ 1.360000] usbcore: registered new interface driver usblp
[ 1.368000] usbcore: registered new interface driver usb-storage
[ 1.372000] Netfilter messages via NETLINK v0.30.
[ 1.380000] nf_conntrack version 0.5.0 (1959 buckets, 7836 max)
[ 1.384000] xt_time: kernel timezone is -0000
[ 1.392000] gre: GRE over IPv4 demultiplexor driver
[ 1.396000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.400000] TCP: cubic registered
[ 1.404000] NET: Registered protocol family 10
[ 1.412000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.416000] NET: Registered protocol family 17
[ 1.420000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.432000] Ebtables v2.0 registered
[ 1.436000] 8021q: 802.1Q VLAN Support v1.8
[ 1.448000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.456000] Freeing unused kernel memory: 208K (803fc000 - 80430000)
init started: BusyBox v1.22.1 (2017-07-30 14:47:25 CST)
starting pid 309, tty '': 'sh /etc/init.d/rcS S start'
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
mount: mounting nodev on /sys/kernel/debug failed: No such file or directory
Fri Jan 1 00:00:00 UTC 2010
Try backup config
[ 3.504000] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 3.512000] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 3.904000] swd: module license 'Proprietary' taints kernel.
[ 3.908000] Disabling lock debugging due to kernel taint
[ 3.916000] SuperWRT Network Engine installed!
[ 4.156000] ath: phy0: Unable to initialize hardware; initialization status: -5
[ 4.160000] ath9k qca955x_wmac: failed to initialize device
[ 4.168000] ath9k: probe of qca955x_wmac failed with error -5
[ 4.172000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 4.184000] ath: phy1: Unable to initialize hardware; initialization status: -5
[ 4.192000] ath9k 0000:00:00.0: Failed to initialize device
[ 4.196000] ath9k: probe of 0000:00:00.0 failed with error -5
[ 4.476000] SWD sbi: No valid hw sign.
[ 4.484000] random: svld urandom read with 17 bits of entropy available
[ 5.360000] eth0: link up (1000Mbps/Full duplex)
[ 5.380000] device eth0.1 entered promiscuous mode
[ 5.384000] device eth0 entered promiscuous mode
[ 5.392000] lan: port 1(eth0.1) entered forwarding state
[ 5.400000] lan: port 1(eth0.1) entered forwarding state
udhcpc (v1.22.1) started
Setting IP address 0.0.0.0 on eth0.2
Sending discover...
Performing a DHCP renew
Sending discover...
Sending discover...
no schk found; none killed
Jan 1 08:00:11 crond[682]: crond: crond (busybox 1.22.1) started, log level 8. random: 780666579.

Please press Enter to activate this console.

Jan 1 08:00:11 crond[682]: crond: crond (busybox 1.22.1) started, log level 8. random: 780666579.

Please press Enter to activate this console. [ 32.448000] random: nonblocking pool is initialized

starting pid 685, tty '': '/sbin/getty -L -a'

SuperWRT login:
SuperWRT login:
SuperWRT login:
SuperWRT login:
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利

C:\Users\Administrator>ping 192.168.17.1 -t

正在 Ping 192.168.17.1 具有 32 字节的数据:
请求超时。
来自 192.168.17.10 的回复: 无法访问目标主机。
来自 192.168.17.10 的回复: 无法访问目标主机。



奇怪的是,uboot下面明明通的网口,现在却不通了。。。

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 6:35 am

我的机器通过8337出来有4个千兆网口,而不是5个,就做了4个,但是这四个口我无论插哪个,进入系统后都不通,在uboot下面都是好用的

我刷了一个网上的7500 v3 openwrt,这个是好用的,随后我贴启动信息出来

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 7:03 am

可能你的设计只用了SGMII,你试试只选一个PHY,然后选1,4,5,6。在启动系统前,要在boot中先清空一下配置。[/quote]

我现在刷7500 v2的一个编程器固件是好用的,希望启动信息对您分析解决问题有所帮助

U-Boot 1.1.4 (Jul 11 2014 - 10:13:58)

AP135 (QCA9558 - Scorpion 1.0) U-Boot
DRAM: 128 MB
Flash: Macronix MX25L12805D (16 MB)
Using default environment

*** Warning *** : PCIe WLAN Module not found !!!
Clocks: CPU:720MHz, DDR:600MHz, AHB:200MHz, Ref:40MHz
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
athrs_sgmii_res_cal: cal value = 0x1
Fetching MAC Address from 0xbf01fc00
Fetching MAC Address from 0xbf01fc00
Scorpion ----> S17 PHY *
athrs17_reg_init: complete
GMAC: cfg1 0x80000000 cfg2 0x7114
eth0: 9c:21:6a:fc:30:09
eth0 up
athrs17_reg_init_wan done
SGMII in forced mode
Max resets limit reached exiting...
athr_gmac_sgmii_setup SGMII done
GMAC: cfg1 0x800c0000 cfg2 0x7214
eth1: 9c:21:6a:fc:30:0a
eth1 up
eth0, eth1

Push the reset/WPS button for 3s to start Web Failsafe.

Hit any key to stop autoboot: 0
dup 1 speed 1000
HTTP server started at 192.168.1.1

启动后eth0口已经通了,从Dhcp服务器获取到了ip,说明硬件上还是没问题的.不死uboot下面set ethact=eth0 也可以登录不死的web,但如果默认ethact=eth1 那还是不通的.

# Booting image at 9f020000 ...
Image Name: Unknown board (75000001)
Created: 1970-01-01 0:00:00 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 16252416 Bytes = 15.5 MB
Load Address: 80060000
Entry Point: 80060000
Uncompressing Kernel Image ... OK

Starting kernel ...

[ 0.000000] Linux version 3.10.36 (hackpascal@HackPascalPC) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r40820) ) #42 Thu Jun 5 02:03:07 CST 2014
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA9558 rev 0
[ 0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=ARCHER-C7 console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 126184k/131072k available (2227k kernel code, 4888k reserved, 598k data, 244k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 512
[ 0.070000] NET: Registered protocol family 16
[ 0.070000] MIPS: machine is TP-LINK Archer C7
[ 0.080000] registering PCI controller with io_map_base unset
[ 0.080000] ar724x-pci ar724x-pci.1: PCIe link is down
[ 0.090000] registering PCI controller with io_map_base unset
[ 0.500000] bio: create slab <bio-0> at 0
[ 0.500000] PCI host bridge to bus 0000:00
[ 0.510000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[ 0.510000] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.520000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.520000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.530000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.530000] PCI host bridge to bus 0000:01
[ 0.540000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[ 0.540000] pci_bus 0000:01: root bus resource [io 0x0001]
[ 0.550000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.550000] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.560000] Switching to clocksource MIPS
[ 0.560000] NET: Registered protocol family 2
[ 0.570000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.570000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.580000] TCP: reno registered
[ 0.580000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.600000] NET: Registered protocol family 1
[ 0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.620000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.630000] msgmni has been set to 246
[ 0.630000] io scheduler noop registered
[ 0.630000] io scheduler deadline registered (default)
[ 0.640000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[ 0.670000] console [ttyS0] enabled, bootconsole disabled
[ 0.670000] console [ttyS0] enabled, bootconsole disabled
[ 0.690000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[ 0.690000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.700000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.710000] 5 tp-link partitions found on MTD device spi0.0
[ 0.710000] Creating 5 MTD partitions on "spi0.0":
[ 0.720000] 0x000000000000-0x000000020000 : "u-boot"
[ 0.720000] 0x000000020000-0x00000011d84c : "kernel"
[ 0.730000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.740000] 0x00000011d84c-0x000000ff0000 : "rootfs"
[ 0.750000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.760000] mtd: device 2 (rootfs) set to be root filesystem
[ 0.770000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.770000] 0x0000009b0000-0x000000ff0000 : "rootfs_data"
[ 0.780000] 0x000000ff0000-0x000001000000 : "art"
[ 0.780000] 0x000000020000-0x000000ff0000 : "firmware"
[ 0.800000] libphy: ag71xx_mdio: probed
[ 1.350000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
[ 1.910000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[ 1.920000] TCP: cubic registered
[ 1.920000] NET: Registered protocol family 17
[ 1.930000] 8021q: 802.1Q VLAN Support v1.8
[ 1.940000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.950000] Freeing unused kernel memory: 244K (80323000 - 80360000)
procd: Console is alive
procd: - watchdog -
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 7.260000] usbcore: registered new interface driver usbfs
[ 7.260000] usbcore: registered new interface driver hub
[ 7.270000] usbcore: registered new device driver usb
[ 7.300000] SCSI subsystem initialized
[ 7.310000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 7.320000] ehci-platform: EHCI generic platform driver
[ 7.330000] ehci-platform ehci-platform.0: EHCI Host Controller
[ 7.330000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[ 7.340000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
[ 7.350000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[ 7.380000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[ 7.390000] hub 1-0:1.0: USB hub found
[ 7.390000] hub 1-0:1.0: 1 port detected
[ 7.390000] ehci-platform ehci-platform.1: EHCI Host Controller
[ 7.400000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[ 7.410000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
[ 7.420000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[ 7.440000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[ 7.440000] hub 2-0:1.0: USB hub found
[ 7.450000] hub 2-0:1.0: 1 port detected
[ 7.450000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 7.470000] usbcore: registered new interface driver usb-storage
[ 7.470000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
[ 9.060000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
kmod: ran 1 iterations
kmod: 1 module could not be probed
kmod: - gpio_keys_polled - 0
[ 9.600000] jffs2: notice: (323) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 28 of xref (0 dead, 2 orphan) found.
block: extroot: no root or overlay mount defined
jffs2 is ready
jffs2 is ready
[ 9.730000] jffs2: notice: (318) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 28 of xref (0 dead, 2 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
Failed to connect to ubus
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[ 13.330000] NET: Registered protocol family 10
[ 13.350000] tun: Universal TUN/TAP device driver, 1.6
[ 13.360000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 13.370000] l2tp_core: L2TP core driver, V2.0
[ 13.370000] l2tp_netlink: L2TP netlink interface
[ 13.390000] gre: GRE over IPv4 demultiplexor driver
[ 13.390000] ip_gre: GRE over IPv4 tunneling driver
[ 13.410000] nf_conntrack version 0.5.0 (1975 buckets, 7900 max)
[ 13.440000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 13.510000] u32 classifier
[ 13.520000] input device check on
[ 13.520000] Actions configured
[ 13.530000] Mirror/redirect action on
[ 13.550000] fuse init (API version 7.22)
[ 13.550000] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)



BusyBox v1.19.[ 13.580000] 8139too: 8139too Fast Ethernet driver 0.9.28
4 (2014-06-04 22:39:40 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 9C:21:6A:FC:30:08
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd77:abec:20c5::1/60 Scope:Global
inet6 addr: fd00:8ed3:6402:4::1/62 Scope:Global
inet6 addr: fe80::9e21:6aff:fefc:3008/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:8474 (8.2 KiB)

eth0 Link encap:Ethernet HWaddr 9C:21:6A:FC:30:09
inet addr:192.168.100.147 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fd00:8ed3:6402:0:9e21:6aff:fefc:3009/64 Scope:Global
inet6 addr: fd00:8ed3:6402::cdf/128 Scope:Global
inet6 addr: fe80::9e21:6aff:fefc:3009/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18147 (17.7 KiB) TX bytes:5517 (5.3 KiB)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1759 (1.7 KiB) TX bytes:1759 (1.7 KiB)

wlan0 Link encap:Ethernet HWaddr 9C:21:6A:FC:30:08
inet6 addr: fe80::9e21:6aff:fefc:3008/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:10016 (9.7 KiB)

wlan1 Link encap:Ethernet HWaddr E4:CE:8F:5F:04:8B
inet6 addr: fe80::e6ce:8fff:fe5f:48b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:10016 (9.7 KiB)

root@OpenWrt:/#

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 7:05 am

[ 0.800000] libphy: ag71xx_mdio: probed
[ 1.350000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
[ 1.910000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII

这信息应该对您有用,麻烦看看是怎么回事,eth0的确是好用的

cloudq
帖子: 46
注册: 周五 3月 18, 2016 8:43 am

Re: QCA9558+QCA8337 bootloader问题

帖子cloudq » 周一 8月 28, 2017 7:05 am

terra 写了:
cloudq 写了:
terra 写了:不要选VLAN那个。其实你可以试试直接用TP 7500 v5的boot可以不


使用7500 v5的uboot,切换了lan wan 依然不行,就是说无论我从eth0或者eth1 开启http,网都是不通的,无法ping通 192.168.17.1 网口我挨个插了个遍

Environment size: 566/65532 bytes
ath> http
Try eth0 first.
starting httpd server eth0 192.168.17.1

Environment size: 566/65532 bytes
ath> http
Try eth1 first.
eth1 link down
starting httpd server eth0 192.168.17.1

可能你的设计只用了SGMII,你试试只选一个PHY,然后选1,4,5,6。在启动系统前,要在boot中先清空一下配置。


[ 0.800000] libphy: ag71xx_mdio: probed
[ 1.350000] ag71xx ag71xx.0: no PHY found with phy_mask=00000001
[ 1.910000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII

这信息应该对您有用,麻烦看看是怎么回事,eth0的确是好用的


回到 “bootloader”