Hi all,
thank you for all the help you provided with this thread.
With my Archer C2600, I moved a while ago to LEDE, it worked flawlessly, and it now makes several days I try to go back to TPL Factory firmware with no success.
I tryed flashing factory firmware with TFTP recovery mode, but while booting the routers reset itselfs and keeps rebooting for ever.
I connected serial interface to check what is going on at Boot prompt.
Hereafter I compare both factory boot log available at the beginning of this thread (forum.openwrt.org/viewtopic.php?pid=310048#p310048) and the boot log I get myself after flashing factory firmware.
The differences I identified between my log and the online official log are :
right after :
[ 0.488347] Partition(from smem) rootfs -- Offset:3f0000 Size:1b00000
I receive :
[ 0.488378] get_bootconfig_partition: no dual boot info in shared memory
Instead of :
[ 0.488784] get_bootconfig_partition: magic not found
I have tun loading here :
[ 9.153420] tun: Universal TUN/TAP device driver, 1.6
[ 9.157482] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
This one does not load into online official log, I don't know if it is an issue.
I experience an automatic Reboot right before :
[ 12.523024] nss_driver - fw of size 354048 bytes copied to load addr: 40000000, nss_id : 0
Here is the full log:
U-Boot 2012.07 [Standard IPQ806X.LN,unknown] (Dec 16 2015 - 15:12:29)
smem ram ptable found: ver: 0 len: 5
DRAM: 491 MiB
PCI0 Link Intialized
PCI1 Link Intialized
SF: Detected MX25U25635F with page size 4 KiB, total 32 MiB
00:01.0 - 17cb:0101 - Bridge device
01:00.0 - 168c:0040 - Network controller
02:01.0 - 17cb:0101 - Bridge device
03:00.0 - 168c:0040 - Network controller
NAND: ipq_nand: unknown NAND device manufacturer: 0 device: 0
ipq_nand: failed to identify device
SF: Detected MX25U25635F with page size 4 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x2000000
32 MiB
MMC:
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: MAC1 addr:0:3:7f:ba:db:1
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init done
MAC2 addr:0:3:7f:ba:db:2
eth0, eth1
boot in 2 seconds
FirmwareRecovery: Now doing bootipq
MMC Device 0 not found
MMC Device 0 not found
Loading from nand1, offset 0x1f0000
Image Name: Linux-3.4.103
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1868928 Bytes = 1.8 MiB
Load Address: 41508000
Entry Point: 41508000
Automatic boot of image at addr 0x44000000 ...
Image Name: Linux-3.4.103
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1868928 Bytes = 1.8 MiB
Load Address: 41508000
Entry Point: 41508000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
info: "mtdparts" not set
Using machid 0x1260 from environment
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.103 (HQL@localhost.localdomain) (gcc version 4.6.3 20120201 (prerelease) 6
[ 0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine: Qualcomm Atheros AP148 reference board
[ 0.000000] msm_reserve_memory: 0x44000000, 0x600000
[ 0.000000] msm_reserve_memory: 0x44600000, 0x200000
[ 0.000000] memory pool 3 (start 5fc00000 size 400000) initialized
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] smem_find(137, 80: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0, hw_plat_ver=6
[ 0.000000] accessory_chip=0 hw_plat_subtype=0
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0c48000 s10240 r8192 d14336 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 121642
[ 0.000000] Kernel command line: console=ttyHSL1,115200n8 root=mtd:rootfs rootfstype=squashfs
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 43MB 436MB = 479MB total
[ 0.000000] Memory: 477424k/489712k available, 13072k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xdf000000 - 0xff000000 ( 512 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdeb00000 ( 491 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0513000 (5164 kB)
[ 0.000000] .init : 0xc0600000 - 0xc0702800 (1034 kB)
[ 0.000000] .data : 0xc0704000 - 0xc07a0898 ( 627 kB)
[ 0.000000] .bss : 0xc07a08bc - 0xc0844b60 ( 657 kB)
[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:1689
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 31240ns, wraps every 134175798ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.150484] Calibrating delay using timer specific routine.. 12.55 BogoMIPS (lpj=62794)
[ 0.150515] pid_max: default: 32768 minimum: 301
[ 0.150984] Mount-cache hash table entries: 512
[ 0.152452] CPU: Testing write buffer coherency: ok
[ 0.152671] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.152702] Setting up static identity map for 0x4189b628 - 0x4189b6b0
[ 0.154982] CPU1: Booted secondary processor
[ 0.155045] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.155139] Brought up 2 CPUs
[ 0.155139] SMP: Total of 2 processors activated (25.11 BogoMIPS).
[ 0.171571] dummy:
[ 0.172289] NET: Registered protocol family 16
[ 0.173039] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.175320] meminfo_init: smem ram ptable found: ver: 0 len: 5
[ 0.175351] Found 1 memory banks grouped into 8 memory regions
[ 0.175351] TP-LINK Archer C2600 v1
[ 0.175382] Force flash type to SPI!
[ 0.175663] gpiochip_add: registered GPIOs 0 to 151 on device: msmgpio
[ 0.176319] smem_find(137, 80): wrong size 72
[ 0.176351] socinfo_init: v6, id=202, ver=2.0, raw_id=2064, raw_ver=2064, hw_plat=0, hw_plat_ver=65536
[ 0.176351] accessory_chip=0 hw_plat_subtype=0
[ 0.176382] msm_rpm_init: RPM firmware 3.0.16777364
[ 0.184317] clk_tbl_nss - loaded
[ 0.213058] msm_dmov_memcpy_init: Success
[ 0.220431] sps:BAM 0x12244000 enabled: ver:0x5, number of pipes:20
[ 0.220462] sps:BAM 0x12244000 is registered.
[ 0.220712] sps:sps is ready.
[ 0.261137] msm_pcie_setup: link initialized
[ 0.261512] PCI host bridge to bus 0000:00
[ 0.261512] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fefffff]
[ 0.262043] PCI: bus0: Fast back to back transfers disabled
[ 0.262043] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.262761] PCI: bus1: Fast back to back transfers disabled
[ 0.301155] msm_pcie_setup: link initialized
[ 0.301499] PCI host bridge to bus 0000:02
[ 0.301530] pci_bus 0000:02: root bus resource [mem 0x2e000000-0x31efffff]
[ 0.301999] PCI: bus2: Fast back to back transfers disabled
[ 0.301999] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.302842] PCI: bus3: Fast back to back transfers disabled
[ 0.421430] msm_pcie_setup: link initialization failed
[ 0.421680] pci 0000:02:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[ 0.421680] pci 0000:03:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[ 0.421743] pci 0000:02:00.0: PCI bridge to [bus 03-03]
[ 0.421774] pci 0000:02:00.0: bridge window [mem 0x2e000000-0x2e1fffff]
[ 0.421805] PCI: enabling device 0000:02:00.0 (0140 -> 0143)
[ 0.421868] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[ 0.421899] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[ 0.421930] pci 0000:00:00.0: PCI bridge to [bus 01-01]
[ 0.421961] pci 0000:00:00.0: bridge window [mem 0x08000000-0x081fffff]
[ 0.421993] PCI: enabling device 0000:00:00.0 (0140 -> 0143)
[ 0.443142] bio: create slab <bio-0> at 0
[ 0.444704] SCSI subsystem initialized
[ 0.446641] spi_qsd spi_qsd.5: master is unqueued, this is deprecated
[ 0.449203] spi_qsd spi_qsd.6: master is unqueued, this is deprecated
[ 0.454076] Switching to clocksource gp_timer
[ 0.473414] NET: Registered protocol family 2
[ 0.483348] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.484848] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.485035] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.485254] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.485254] TCP: reno registered
[ 0.485285] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.485285] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.485754] NET: Registered protocol family 1
[ 0.487503] smd: register irq failed on wcnss_a11
[ 0.487535] smd: deregistering IRQs
[ 0.487566] SMD: smd_core_platform_init() failed
[ 0.488347] Partition(from smem) ART -- Offset:1b0000 Size:40000
[ 0.488347] Partition(from smem) rootfs -- Offset:3f0000 Size:1b00000
[ 0.488378] smem_find(427, 88): wrong size 96
[ 0.488378] get_bootconfig_partition: no dual boot info in shared memory
[ 0.502061] acpuclk-ipq806x acpuclk-ipq806x: SPEED BIN: 0
[ 0.502093] acpuclk-ipq806x acpuclk-ipq806x: ACPU PVS: 1
[ 0.510871] acpuclk-ipq806x acpuclk-ipq806x: CPU0: 6 frequencies supported
[ 0.510871] acpuclk-ipq806x acpuclk-ipq806x: CPU1: 6 frequencies supported
[ 0.512464] msm_rpm_log_probe: OK
[ 0.532677] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.532708] jffs2: version 2.2. (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) �© 2001-2006 Red Hat, .
[ 0.534020] msgmni has been set to 932
[ 0.536457] io scheduler noop registered
[ 0.536488] io scheduler deadline registered (default)
[ 0.538300] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.541674] msm_serial_hs.0: ttyHS0 at MMIO 0x12490000 (irq = 227) is a MSM HS UART
[ 0.542268] msm_serial_hs module loaded
[ 0.542455] msm_serial_hsl: detected port #1
[ 0.542580] msm_serial_hsl.1: ttyHSL1 at MMIO 0x16340000 (irq = 184) is a MSM
[ 0.543017] msm_serial_hsl: console setup on port #1
[ 1.241049] console [ttyHSL1] enabled
[ 1.244517] msm_serial_hsl: driver initialized
[ 1.253514] ahci ahci.0: forcing PORTS_IMPL to 0x1
[ 1.257638] ahci ahci.0: AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[ 1.265198] ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc apst
[ 1.274226] scsi0 : ahci_platform
[ 1.277225] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 241
[ 1.287660] m25p80 spi5.0: found mx25u25635f, expected s25fl512s
[ 1.292627] m25p80 spi5.0: mx25u25635f (32768 Kbytes)
[ 1.298281] Creating 2 MTD partitions on "m25p80":
[ 1.302436] 0x0000001b0000-0x0000001f0000 : "ART"
[ 1.308965] 0x0000003f0000-0x000001ef0000 : "rootfs"
[ 1.314589] mtd: partition "rootfs" set to be root filesystem
[ 1.319556] flash_chrdev : flash_chrdev_init
[ 1.352108] GPIO Bitbanged MDIO: probed
[ 1.360293] cpuidle: using governor ladder
[ 1.363355] cpuidle: using governor menu
[ 1.368384] TCP: cubic registered
[ 1.370696] NET: Registered protocol family 17
[ 1.375288] Bridge firewalling registered
[ 1.379100] 8021q: 802.1Q VLAN Support v1.8
[ 1.383380] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[ 1.391034] Registering SWP/SWPB emulation handler
[ 1.395813] clock_late_init: Removing enables held for handed-off clocks
[ 1.410996] ipq_nss_get_mac_addr: MAC[0]: ff:ff:ff:ff:ff:ff
[ 1.415651] ipq_nss_get_mac_addr: MAC[1]: ff:ff:ff:ff:ff:ff
[ 1.421180] ipq_nss_get_mac_addr: MAC[2]: ff:ff:ff:ff:ff:ff
[ 1.426741] ipq_nss_get_mac_addr: MAC[3]: ff:ff:ff:ff:ff:ff
[ 1.432396] no pmic restart interrupt specified
[ 1.644142] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.674070] VFS: Mounted root (squashfs filesystem) readonly on device 31:1.
[ 1.680724] Freeing init memory: 1032K
[ 4.410059] tfat: module license 'Commercial. For support email exfat-support@tuxera.com' taints kernel.
[ 4.418525] Disabling lock debugging due to kernel taint
[ 4.425148] Tuxera FAT 12/16/32 driver version 3014.9.10 [Flags: R/W MODULE].
[ 4.558200] Tuxera exFAT driver version 3014.9.10 [Flags: R/W MODULE].
[ 4.825554] Tuxera NTFS driver 3015.1.29 [Flags: R/W MODULE].
[ 4.852358] Tuxera HFS+ driver 3014.7.28- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
jffs2 not ready yet; using ramdisk
- init -
Please press Enter to activate this console. ssdk_plat_init start
[ 7.271571] Register QCA PHY driver
[ 7.456669] qca-ssdk module init succeeded!
[ 7.665323] NET: Registered protocol family 10
[ 8.126304] usbcore: registered new interface driver usbfs
[ 8.130927] usbcore: registered new interface driver hub
[ 8.136238] usbcore: registered new device driver usb
[ 8.459262] md: linear personality registered for level -1
[ 8.596094] md: raid0 personality registered for level 0
[ 8.608747] md: raid1 personality registered for level 1
[ 8.909434] NTFS driver 2.1.30 [Flags: R/O MODULE].
[ 9.030802] PPP generic driver version 2.4.2
[ 9.153420] tun: Universal TUN/TAP device driver, 1.6
[ 9.157482] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 9.187910] PPP MPPE Compression module registered
[ 9.219993] **********************************************************
[ 9.225335] * Driver :NSS GMAC Driver for RTL v(3.72a)
[ 9.230677] * Version :1.0
[ 9.233552] * Copyright :Copyright (c) 2013-2014 The Linux Foundation. All rights reserved.
[ 9.242018] **********************************************************
[ 9.248859] GMAC1(dd992c80) Invalid MAC@ - using 72:73:74:75:76:77
[ 9.260731] GMAC2(dd994480) Invalid MAC@ - using a2:a3:a4:a5:a6:a7
[ 11.814589] L2TP core driver, V2.0
[ 11.825054] L2TP netlink interface
U-Boot 2012.07 [Standard IPQ806X.LN,unknown] (Dec 16 2015 - 15:12:29)
smem ram ptable found: ver: 0 len: 5
DRAM: 491 MiB
PCI0 Link Intialized
PCI1 Link Intialized
SF: Detected MX25U25635F with page size 4 KiB, total 32 MiB
00:01.0 - 17cb:0101 - Bridge device
01:00.0 - 168c:0040 - Network controller
02:01.0 - 17cb:0101 - Bridge device
03:00.0 - 168c:0040 - Network controller
NAND: ipq_nand: unknown NAND device manufacturer: 0 device: 0
ipq_nand: failed to identify device
SF: Detected MX25U25635F with page size 4 KiB, total 32 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x2000000
32 MiB
MMC:
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: MAC1 addr:0:3:7f:ba:db:1
athrs17_reg_init: complete
athrs17_vlan_config ...done
S17c init done
MAC2 addr:0:3:7f:ba:db:2
eth0, eth1
boot in 2 seconds
FirmwareRecovery: Now doing bootipq
MMC Device 0 not found
Crashdump magic found.
resetting ...
Resetting with watch dog!
Here is my boot env :
(IPQ) # printenv
baudrate=115200
bootargs=console=ttyHSL1,115200n8
bootcmd=firmrecovery
bootdelay=2
ethact=eth0
machid=1260
stderr=serial
stdin=serial
stdout=serial
Environment size: 167/262140 bytes
Not sure it is complete..
Finally I would like to try this method ("dump full flash with factory firmware" available here : forum.openwrt.org/viewtopic.php?pid=311703#p311703)] but unfortunatly the link seems to be dead. Can someone repost this dump file ?
Any feedback welcomed.
Thank you.