Hello all, A while back i have created a ticket (https://dev.openwrt.org/ticket/17609) detailing kernel 3.14.x failure to boot on ar71xx (wndr3700v4 router) platform. Today i have successfully used serial console attached to the router and got a boot log which shows a wrong checksum of kernel image when trying to attach it from UBI to MTD, please see output below ... i hope this helps in identifying and narrows the issue for a possible fix.
Cheers! -paul U-Boot 1.1.4 (Jun 21 2012 - 11:09:33) DNI HW ID: 29763948 flash 128MB RAM 128MB U-boot dni29 V1.8 DRAM: 128 MB Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd. Ath Nand ID[87ff0178]: 2c:f1:80:95:02 ONFI MICRON MT29F1G08ABADAWP Micron NAND 128MiB 3,3V 8-bit [128MB] ====== NAND Parameters ====== sc = 0x87ff0158 bbt = 0x87f68008 bbt_size = 0x100 nf_ctrl = 0x344 page = 0x800 block = 0x20000 oob = 0x40 size = 128MB Setting 0xb8116290 to 0x4a942d0f Using default environment In: serial Out: serial Err: serial Net: ag934x_enet_initialize... 4096 bytes read: OK Fetching MAC Address from 0x87fe7928 wasp reset mask:c02300 WASP ----> S17 PHY * : cfg1 0x80000000 cfg2 0x7114 eth0: 44:94:fc:73:9a:fc athrs17_reg_init: complete eth0 up eth0 Hit any key to stop autoboot: 0 dup 1 speed 1000 Client starts...[Listening] for ADVERTISE...checksum bad checksum bad checksum bad checksum bad checksum bad Tchecksum bad checksum bad TT Retry count exceeded; boot the image as usual nmrp server is stopped or failed ! Loading from device 0: ath-nand (offset 0x6c0000) ** check kernel image ** Verifying Checksum ... OK ** check rootfs image ** Verifying Checksum ... OK ## Booting image at 81000000 ... Image Name: MIPS OpenWrt Linux-3.10.55 Created: 2014-09-30 15:48:31 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1965951 Bytes = 1.9 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel ... [ 0.000000] Linux version 3.10.55 (diffie@blaze) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42682) ) #1 Tue Sep 30 11:48:14 EDT 2014 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 0001974c (MIPS 74Kc) [ 0.000000] SoC: Atheros AR9344 rev 2 [ 0.000000] Clocks: CPU:560.000MHz, DDR:400.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=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata),512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),121856k(ubi),123904k@0x6c0000(firmware),256k(caldata_backup),-(reserved) rootfstype=squashfs 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: 125868k/131072k available (2570k kernel code, 5204k reserved, 653k data, 228k 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... 278.93 BogoMIPS (lpj=1394688) [ 0.070000] pid_max: default: 32768 minimum: 301 [ 0.070000] Mount-cache hash table entries: 512 [ 0.080000] NET: Registered protocol family 16 [ 0.080000] MIPS: machine is NETGEAR WNDR3700v4 [ 0.300000] bio: create slab <bio-0> at 0 [ 0.310000] Switching to clocksource MIPS [ 0.310000] NET: Registered protocol family 2 [ 0.320000] TCP established hash table entries: 1024 (order: 1, 8192 bytes) [ 0.320000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.330000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.330000] TCP: reno registered [ 0.340000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.340000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.350000] NET: Registered protocol family 1 [ 0.370000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.370000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.380000] msgmni has been set to 245 [ 0.390000] io scheduler noop registered [ 0.390000] io scheduler deadline registered (default) [ 0.400000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.420000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A [ 0.430000] console [ttyS0] enabled, bootconsole disabled [ 0.430000] console [ttyS0] enabled, bootconsole disabled [ 0.450000] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64 [ 0.460000] Scanning device for bad blocks [ 0.550000] mtd: ar934x-nfc: skipping zero sized partition [ 0.550000] 11 cmdlinepart partitions found on MTD device ar934x-nfc [ 0.560000] Creating 11 MTD partitions on "ar934x-nfc": [ 0.560000] 0x000000000000-0x000000040000 : "u-boot" [ 0.570000] 0x000000040000-0x000000080000 : "u-boot-env" [ 0.580000] 0x000000080000-0x0000000c0000 : "caldata" [ 0.580000] 0x0000000c0000-0x000000140000 : "pot" [ 0.590000] 0x000000140000-0x000000340000 : "language" [ 0.600000] 0x000000340000-0x0000003c0000 : "config" [ 0.600000] 0x0000003c0000-0x0000006c0000 : "traffic_meter" [ 0.610000] 0x0000006c0000-0x0000008c0000 : "kernel" [ 0.620000] 0x0000008c0000-0x000007fc0000 : "ubi" [ 0.620000] 0x0000006c0000-0x000007fc0000 : "firmware" [ 1.770000] 0x000007fc0000-0x000008000000 : "caldata_backup" [ 1.810000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0 [ 3.010000] libphy: ag71xx_mdio: probed [ 3.560000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316] [ 3.570000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII [ 3.580000] TCP: cubic registered [ 3.590000] NET: Registered protocol family 17 [ 3.590000] 8021q: 802.1Q VLAN Support v1.8 [ 3.600000] UBI: auto-attach mtd8 [ 3.600000] UBI: attaching mtd8 to ubi0 [ 3.710000] UBI: EOF marker found, PEBs from 89 will be erased [ 3.720000] UBI: scanning is finished [ 3.750000] UBI: volume 1 ("rootfs_data") re-sized from 9 to 841 LEBs [ 3.760000] UBI: attached mtd8 (name "ubi", size 119 MiB) to ubi0 [ 3.770000] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes [ 3.770000] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 [ 3.780000] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.790000] UBI: good PEBs: 952, bad PEBs: 0, corrupted PEBs: 0 [ 3.790000] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128 [ 3.800000] UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1122340664 [ 3.810000] UBI: available PEBs: 0, total reserved PEBs: 952, PEBs reserved for bad PEB handling: 20 [ 3.820000] UBI: background thread "ubi_bgt0d" started, PID 276 [ 3.830000] UBI: ubiblock0_0 created from ubi0:0(rootfs) [ 3.830000] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem [ 3.860000] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. [ 3.870000] Freeing unused kernel memory: 228K (80387000 - 803c0000) procd: Console is alive procd: - watchdog - [ 7.710000] usbcore: registered new interface driver usbfs [ 7.720000] usbcore: registered new interface driver hub [ 7.730000] usbcore: registered new device driver usb [ 7.810000] SGI XFS with security attributes, large block/inode numbers, no debug enabled [ 7.840000] SCSI subsystem initialized [ 7.860000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 7.870000] ehci-platform: EHCI generic platform driver [ 7.870000] ehci-platform ehci-platform: EHCI Host Controller [ 7.880000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 [ 7.890000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 [ 7.910000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 [ 7.910000] hub 1-0:1.0: USB hub found [ 7.920000] hub 1-0:1.0: 1 port detected [ 7.930000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 7.950000] usbcore: registered new interface driver usb-storage 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 [ 9.560000] eth0: link up (1000Mbps/Full duplex) kmod: ran 1 iterations block: extroot: unable to locate rootfs mtdblock [ 12.230000] UBIFS: default file-system created [ 12.230000] UBIFS: background thread "ubifs_bgt0_1" started, PID 386 [ 12.430000] UBIFS: mounted UBI device 0, volume 1, name "rootfs_data" [ 12.440000] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes [ 12.450000] UBIFS: FS size: 105390080 bytes (100 MiB, 830 LEBs), journal size 5332992 bytes (5 MiB, 42 LEBs) [ 12.460000] UBIFS: reserved for root: 4952683 bytes (4836 KiB) [ 12.460000] UBIFS: media format: w4/r0 (latest is w4/r0), UUID C4A3F395-71FB-4CE9-8CA7-236ECAA45C3B, small LPT model switching to overlay [ 12.500000] eth0: link down procd: - early - procd: - watchdog - procd: - ubus - procd: - init - Please press Enter to activate this console. BusyBox v1.22.1 (2014-09-30 10:39:48 EDT) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- BARRIER BREAKER (14.07, r42682) ----------------------------------------------------- * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffee an irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao ----------------------------------------------------- root@(none):/# [ 17.040000] NET: Registered protocol family 38 [ 17.110000] NET: Registered protocol family 10 [ 17.140000] NTFS driver 2.1.30 [Flags: R/O MODULE]. [ 17.160000] Initializing XFRM netlink socket [ 17.170000] NET: Registered protocol family 15 [ 17.180000] tun: Universal TUN/TAP device driver, 1.6 [ 17.180000] tun: (C) 1999-2004 Max Krasnyansky <m...@qualcomm.com> [ 17.250000] l2tp_core: L2TP core driver, V2.0 [ 17.270000] l2tp_netlink: L2TP netlink interface [ 17.270000] sit: IPv6 over IPv4 tunneling driver [ 17.300000] gre: GRE over IPv4 demultiplexor driver [ 17.330000] ip_gre: GRE over IPv4 tunneling driver [ 17.340000] ip6_gre: GRE over IPv6 tunneling driver [ 17.370000] NET: Registered protocol family 5 [ 17.380000] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns...@maroon.tc.umn.edu> [ 17.390000] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns...@maroon.tc.umn.edu> [ 17.420000] nf_conntrack version 0.5.0 (1970 buckets, 7880 max) [ 17.440000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 17.590000] Netfilter messages via NETLINK v0.30. [ 17.600000] ip_set: protocol 6 [ 17.830000] batman_adv: B.A.T.M.A.N. advanced 2014.3.0 (compatibility version 15) loaded [ 17.870000] u32 classifier [ 17.870000] input device check on [ 17.880000] Actions configured [ 17.890000] Mirror/redirect action on [ 17.890000] Failed to load ipt action [ 17.960000] fuse init (API version 7.22) [ 17.980000] arp_tables: (C) 2002 David S. Miller [ 18.000000] usbcore: registered new interface driver cdc_acm [ 18.010000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 18.050000] usbcore: registered new interface driver cdc_wdm [ 18.070000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea [ 18.080000] Backport generated by backports.git backports-20140320-37-g5c33da0 [ 18.100000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 18.130000] ctnetlink v0.93: registering with nfnetlink. [ 18.190000] usbcore: registered new interface driver ums-alauda [ 18.200000] usbcore: registered new interface driver ums-cypress [ 18.220000] usbcore: registered new interface driver ums-datafab [ 18.230000] usbcore: registered new interface driver ums-freecom [ 18.250000] usbcore: registered new interface driver ums-isd200 [ 18.260000] usbcore: registered new interface driver ums-jumpshot [ 18.280000] usbcore: registered new interface driver ums-karma [ 18.300000] usbcore: registered new interface driver ums-sddr09 [ 18.310000] usbcore: registered new interface driver ums-sddr55 [ 18.310000] usbcore: registered new interface driver ums-usbat [ 18.330000] usbcore: registered new interface driver usblp [ 18.390000] usbcore: registered new interface driver usbserial [ 18.410000] usbcore: registered new interface driver usbserial_generic [ 18.410000] usbserial: USB Serial support registered for generic [ 18.580000] xt_time: kernel timezone is -0000 [ 18.630000] usbcore: registered new interface driver ftdi_sio [ 18.650000] usbserial: USB Serial support registered for FTDI USB Serial Device [ 18.670000] cfg80211: Calling CRDA to update world regulatory domain [ 18.730000] cfg80211: World regulatory domain updated: [ 18.730000] cfg80211: DFS Master region: unset [ 18.730000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 18.740000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 18.750000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 18.760000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 18.770000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A) [ 18.780000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 18.790000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 18.790000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 18.800000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 18.850000] usbcore: registered new interface driver pl2303 [ 18.850000] usbserial: USB Serial support registered for pl2303 [ 18.870000] PPP generic driver version 2.4.2 [ 18.880000] PPP MPPE Compression module registered [ 18.880000] NET: Registered protocol family 24 [ 18.900000] PPTP driver version 0.8.5 [ 18.940000] usbcore: registered new interface driver sierra [ 18.940000] usbserial: USB Serial support registered for Sierra USB modem [ 18.960000] usbcore: registered new interface driver sierra_net [ 19.040000] l2tp_ppp: PPPoL2TP kernel driver, V2.0 [ 19.060000] usbcore: registered new interface driver option [ 19.060000] usbserial: USB Serial support registered for GSM modem (1-port) [ 19.080000] usbcore: registered new interface driver qcserial [ 19.100000] usbserial: USB Serial support registered for Qualcomm USB modem [ 19.360000] cfg80211: Calling CRDA for country: US [ 19.370000] cfg80211: Regulatory domain changed to country: US [ 19.370000] cfg80211: DFS Master region: FCC [ 19.380000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 19.390000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A) [ 19.390000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A) [ 19.400000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s) [ 19.410000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A) [ 19.420000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A) [ 19.430000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47 [ 28.840000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 28.860000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready [ 28.860000] device eth0.1 entered promiscuous mode [ 28.870000] device eth0 entered promiscuous mode [ 28.880000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 29.010000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready [ 30.310000] eth0: link up (1000Mbps/Full duplex) [ 30.440000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 30.450000] br-lan: port 1(eth0.1) entered forwarding state [ 30.450000] br-lan: port 1(eth0.1) entered forwarding state [ 30.460000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready [ 30.460000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready [ 30.470000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready [ 32.450000] br-lan: port 1(eth0.1) entered forwarding state root@OpenWrt:/# root@OpenWrt:/# [ 46.150000] device br-lan entered promiscuous mode procd: - init complete -
signature.asc
Description: This is a digitally signed message part
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel