#18418: Laguna (cns3xxx) not booting after upgrade
-------------------------+----------------------------------
 Reporter:  mario_lopes  |      Owner:  developers
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
Component:  kernel       |    Version:  Trunk
 Keywords:               |
-------------------------+----------------------------------
 Hi there.

 I did compile r43400 and flashed via LuCI. After about 5 minutes, the LuCI
 page continues to say "System - Flashing...".
 Then I connected a serial cable, reset and saw that the kernel was stuck
 at "PCI: enabling device 0000:02:0c.0 (0340 -> 0342)"

 I then did erase memory and flash with loady.

 Serial port output after reset:
 {{{
 U-Boot 2008.10-mpcore-svn404 (Dec 12 2012 - 13:03:07)

 CPU: Cavium Networks CNS3000
 ID Code: -------- (Part number: -----, Revision number: 4)
 CPU ID: ---
 I2C:   ready
 DRAM:  256 MB
 Flash: 16 MB
 *** Warning - bad CRC, using default environment

 Gateworks Corporation Copyright 2010
 Model Number: GW2388-SP208-F
 Manufacturer Date: ------2013
 Serial #: ------
 ### Setting environment from ROM MAC address = "00:D0:-----------"
 ### Setting environment from ROM MAC address = "00:D0:-----------"
 ### Setting environment from ROM MAC address = "00:D0:-----------"
 Net:   phy0:0=0x------- phy1:1=0x------- eth0, eth1, eth2
 Hit any key to stop autoboot:  0
 ## Booting kernel from Legacy Image at 10060000 ...
    Image Name:   OpenWrt Linux-3.14.18
    Created:      2014-11-27   9:57:43 UTC
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    1470192 Bytes =  1.4 MB
    Load Address: 20008000
    Entry Point:  20008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
 OK

 Starting kernel ...

 [    0.000000] Booting Linux on physical CPU 0x---
 [    0.000000] Linux version 3.14.18 (------------) (gcc version 4.8.3
 (OpenWrt/
 Linaro GCC 4.8-2014.04 r43100) ) #1 SMP Thu Nov 27 09:57:36 WET 2014
 [    0.000000] CPU: ARMv6-compatible processor [410fb024] revision 4
 (ARMv7), cr
 =00c5387d
 [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
 instructio
 n cache
 [    0.000000] Machine: Gateworks Corporation Laguna Platform
 [    0.000000] Memory policy: Data cache writealloc
 [    0.000000] PERCPU: Embedded 7 pages/cpu @cfde8000 s6624 r8192 d13856
 u32768
 [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
 Total pag
 es: 65024
 [    0.000000] Kernel command line: console=ttyS0,115200
 root=/dev/mtdblock3 roo
 tfstype=squashfs,jffs2 noinitrd init=/etc/preinit
 [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072
 bytes)
 [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
 [    0.000000] Memory: 255600K/262144K available (2935K kernel code, 98K
 rwdata,
  812K rodata, 162K init, 187K bss, 6544K reserved)
 [    0.000000] Virtual kernel memory layout:
 [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
 [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
 [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
 [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
 [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
 [    0.000000]       .text : 0xc0008000 - 0xc03b0dfc   (3748 kB)
 [    0.000000]       .init : 0xc03b1000 - 0xc03d99e0   ( 163 kB)
 [    0.000000]       .data : 0xc03da000 - 0xc03f2860   (  99 kB)
 [    0.000000]        .bss : 0xc03f2860 - 0xc0421784   ( 188 kB)
 [    0.000000] Hierarchical RCU implementation.
 [    0.000000] NR_IRQS:16 nr_irqs:16 16
 [    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns,
 wraps ever
 y 21474836480000000ns
 [    0.110000] console [ttyS0] enabled
 [    0.110000] Calibrating delay loop... 238.38 BogoMIPS (lpj=1191936)
 [    0.190000] pid_max: default: 32768 minimum: 301
 [    0.190000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
 [    0.200000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096
 bytes)
 [    0.210000] CPU: Testing write buffer coherency: ok
 [    0.210000] Setting up static identity map for 0x20012d18 - 0x20012d50
 [    0.220000] CPU1: Booted secondary processor
 [    0.300000] Brought up 2 CPUs
 [    0.300000] SMP: Total of 2 processors activated.
 [    0.310000] VFP support v0.3: implementor 41 architecture 1 part 20
 variant b
  rev 4
 [    0.320000] NET: Registered protocol family 16
 [    0.320000] DMA: preallocated 256 KiB pool for atomic coherent
 allocations
 [    0.330000] L310 cache controller enabled
 [    0.340000] l2x0: 8 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x02540000,
 Cache siz
 e: 256 kB
 [    0.350000] laguna: using shared PCI interrupts: irq61
 [    0.350000] PCIe: Port[0] Enable PCIe LTSSM
 [    0.350000] PCIe: Port[0] Check data link layer...
 [    0.360000] Link up.
 [    0.360000] PCIe: Set Device Max_Read_Request_Size to 128 byte
 [    0.370000] PCI host bridge to bus 0000:00
 [    0.370000] pci_bus 0000:00: root bus resource [io
 0xac000000-0xacffffff]
 [    0.380000] pci_bus 0000:00: root bus resource [mem
 0xa0000000-0xa0ffffff]
 [    0.390000] pci_bus 0000:00: No busn resource found for root bus, will
 use [b
 us 00-ff]
 [    0.390000] PCI: bus0: Fast back to back transfers disabled
 [    0.400000] pci 0000:00:01.0: bridge configuration invalid ([bus
 00-00]), rec
 onfiguring
 [    0.410000] PCI: bus1: Fast back to back transfers enabled
 [    0.420000] PCI: bus2: Fast back to back transfers enabled
 [    0.420000] PCIe map irq: 0000:00:00.00 slot 0, pin 1, irq: 87
 [    0.430000] PCIe map irq: 0000:02:0c.00 slot 1, pin 1, irq: 61
 [    0.430000] pci 0000:00:01.0: BAR 8: assigned [mem
 0xa0000000-0xa00fffff]
 [    0.440000] pci 0000:00:00.0: PCI bridge to [bus 01]
 [    0.440000] pci 0000:02:0c.0: BAR 0: assigned [mem
 0xa0000000-0xa000ffff]
 [    0.450000] pci 0000:00:01.0: PCI bridge to [bus 02]
 [    0.460000] pci 0000:00:01.0:   bridge window [mem
 0xa0000000-0xa00fffff]
 [    0.460000] PCIe: Port[1] Enable PCIe LTSSM
 [    0.470000] PCIe: Port[1] Check data link layer...
 [    0.980000] Device not found.
 [    0.980000] pci 0000:00:00.0: PCI bridge to [bus 01]
 [    0.980000] pci 0000:00:01.0: PCI bridge to [bus 02]
 [    0.990000] pci 0000:00:01.0:   bridge window [mem
 0xa0000000-0xa00fffff]
 [    1.010000] bio: create slab <bio-0> at 0
 [    1.020000] SCSI subsystem initialized
 [    1.020000] usbcore: registered new interface driver usbfs
 [    1.030000] usbcore: registered new interface driver hub
 [    1.030000] usbcore: registered new device driver usb
 [    1.040000] pps_core: LinuxPPS API ver. 1 registered
 [    1.040000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
 Giome
 tti <[email protected]>
 [    1.060000] Switched to clocksource freerun
 [    1.060000] NET: Registered protocol family 2
 [    1.070000] Clockevents: could not switch to one-shot mode: dummy_timer
 is no
 t functional.
 [    1.070000] Could not switch to high resolution mode on CPU 0
 [    1.080000] Clockevents: could not switch to one-shot mode: dummy_timer
 is no
 t functional.
 [    1.090000] Could not switch to high resolution mode on CPU 1
 [    1.100000] TCP established hash table entries: 2048 (order: 1, 8192
 bytes)
 [    1.100000] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
 [    1.110000] TCP: Hash tables configured (established 2048 bind 2048)
 [    1.120000] TCP: reno registered
 [    1.120000] UDP hash table entries: 256 (order: 1, 8192 bytes)
 [    1.130000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
 [    1.130000] NET: Registered protocol family 1
 [    1.140000] futex hash table entries: 512 (order: 2, 16384 bytes)
 [    1.150000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [    1.150000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
 (CMODE_PRIORIT
 Y) (c) 2001-2006 Red Hat, Inc.
 [    1.160000] msgmni has been set to 499
 [    1.170000] io scheduler noop registered
 [    1.170000] io scheduler deadline registered (default)
 [    1.180000] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
 [    1.180000] serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud =
 15000
 00) is a 16550A
 [    1.200000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [    1.200000] ehci-pci: EHCI PCI platform driver
 [    1.210000] ehci-platform: EHCI generic platform driver
 [    1.210000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [    1.220000] ohci-platform: OHCI generic platform driver
 [    1.230000] i2c /dev entries driver
 [    1.230000] pca953x 0-0027: failed reading register
 [    1.240000] pca953x: probe of 0-0027 failed with error -11
 [    1.250000] at24 0-0050: 1024 byte 24c08 EEPROM, read-only, 0
 bytes/write
 [    1.260000] rtc-ds1672 0-0068: chip found, driver version 0.4
 [    1.270000] rtc-ds1672 0-0068: rtc core: registered rtc-ds1672 as rtc0
 [    1.280000] gsp 0-0029: gsp chip found
 [    1.280000] sdhci: Secure Digital Host Controller Interface driver
 [    1.290000] sdhci: Copyright(c) Pierre Ossman
 [    1.290000] sdhci-pltfm: SDHCI platform and OF driver helper
 [    1.300000] TCP: cubic registered
 [    1.300000] NET: Registered protocol family 17
 [    1.310000] 8021q: 802.1Q VLAN Support v1.8
 [    1.310000] Running on Gateworks Laguna GW2388-SP208-F
 [    1.340000] libphy: CNS3xxx MII Bus: probed
 [    1.430000] eth0: RGMII PHY 0 on cns3xxx Switch
 [    1.510000] eth1: RGMII PHY 1 on cns3xxx Switch
 [    2.460000] dwc2 dwc2.0: DWC OTG Controller
 [    2.460000] dwc2 dwc2.0: new USB bus registered, assigned bus number 1
 [    2.470000] dwc2 dwc2.0: irq 63, io mem 0x00000000
 [    2.470000] usb usb1: New USB device found, idVendor=1d6b,
 idProduct=0002
 [    2.480000] usb usb1: New USB device strings: Mfr=3, Product=2,
 SerialNumber=
 1
 [    2.490000] usb usb1: Product: DWC OTG Controller
 [    2.490000] usb usb1: Manufacturer: Linux 3.14.18 dwc2_hsotg
 [    2.500000] usb usb1: SerialNumber: dwc2.0
 [    2.500000] hub 1-0:1.0: USB hub found
 [    2.500000] hub 1-0:1.0: 1 port detected
 [    2.510000] ehci-platform ehci-platform.0: EHCI Host Controller
 [    2.520000] ehci-platform ehci-platform.0: new USB bus registered,
 assigned b
 us number 2
 [    2.520000] ehci-platform ehci-platform.0: irq 64, io mem 0x82000000
 [    2.550000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
 [    2.550000] usb usb2: New USB device found, idVendor=1d6b,
 idProduct=0002
 [    2.560000] usb usb2: New USB device strings: Mfr=3, Product=2,
 SerialNumber=
 1
 [    2.570000] usb usb2: Product: EHCI Host Controller
 [    2.570000] usb usb2: Manufacturer: Linux 3.14.18 ehci_hcd
 [    2.580000] usb usb2: SerialNumber: ehci-platform.0
 [    2.580000] hub 2-0:1.0: USB hub found
 [    2.590000] hub 2-0:1.0: 1 port detected
 [    2.590000] ohci-platform ohci-platform.0: Generic Platform OHCI
 controller
 [    2.600000] ohci-platform ohci-platform.0: new USB bus registered,
 assigned b
 us number 3
 [    2.610000] ohci-platform ohci-platform.0: irq 91, io mem 0x88000000
 [    2.670000] usb usb3: New USB device found, idVendor=1d6b,
 idProduct=0001
 [    2.680000] usb usb3: New USB device strings: Mfr=3, Product=2,
 SerialNumber=
 1
 [    2.680000] usb usb3: Product: Generic Platform OHCI controller
 [    2.690000] usb usb3: Manufacturer: Linux 3.14.18 ohci_hcd
 [    2.690000] usb usb3: SerialNumber: ohci-platform.0
 [    2.700000] hub 3-0:1.0: USB hub found
 [    2.700000] hub 3-0:1.0: 1 port detected
 [    2.750000] mmc0: SDHCI controller on sdhci-cns3xxx.0 [sdhci-cns3xxx.0]
 using
  PIO
 [    2.750000] serial8250.0: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud
 = 150
 0000) is a 16550A
 [    2.760000] serial8250.0: ttyS1 at MMIO 0x78400000 (irq = 46, base_baud
 = 150
 0000) is a 16550A
 [    2.770000] serial8250.0: ttyS2 at MMIO 0x78800000 (irq = 47, base_baud
 = 150
 0000) is a 16550A
 [    2.780000] physmap platform flash device: 01000000 at 10000000
 [    2.790000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank.
 Manuf
 acturer ID 0x000001 Chip ID 0x002101
 [    2.800000] Amd/Fujitsu Extended Query Table at 0x0040
 [    2.800000]   Amd/Fujitsu Extended Query version 1.3.
 [    2.810000] number of CFI chips: 1
 [    2.810000] Creating 4 MTD partitions on "physmap-flash.0":
 [    2.820000] 0x000000000000-0x000000040000 : "uboot"
 [    2.820000] 0x000000040000-0x000000060000 : "params"
 [    2.830000] 0x000000060000-0x000000260000 : "kernel"
 [    2.840000] 0x000000260000-0x000001000000 : "rootfs"
 [    2.840000] mtd: device 3 (rootfs) set to be root filesystem
 [    2.850000] 1 squashfs-split partitions found on MTD device rootfs
 [    2.860000] 0x0000006a0000-0x000001000000 : "rootfs_data"
 [    2.860000] cns3xxx_spi_probe: setup CNS3XXX SPI Controller
 [    2.870000] m25p80 spi1.0: found m25p32, expected m25p80
 [    2.880000] m25p80 spi1.0: m25p32 (4096 Kbytes)
 [    2.880000] Creating 4 MTD partitions on "spi1.0":
 [    2.890000] 0x000000000000-0x000000040000 : "uboot"
 [    2.890000] 0x000000040000-0x000000080000 : "params"
 [    2.900000] 0x000000080000-0x000000200000 : "kernel"
 [    2.910000] 0x000000200000-0x000000400000 : "rootfs"
 [    2.920000] rtc-ds1672 0-0068: setting system clock to 1970-12-15
 05:28:21 UT
 C (30086901)
 [    2.940000] VFS: Mounted root (squashfs filesystem) readonly on device
 31:3.
 [    2.950000] Freeing unused kernel memory: 160K (c03b1000 - c03d9000)
 procd: Console is alive
 procd: WDT failed to write: Bad file descriptor
 [    5.440000] PTP clock support registered
 procd: WDT failed to write: Bad file descriptor
 procd: - preinit -
 [    6.150000] random: mktemp urandom read with 44 bits of entropy
 available
 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
 jffs2 is not ready - marker found
 procd: - early -
 procd: - ubus -
 procd: - init -
 Please press Enter to activate this console.
 [   12.090000] NET: Registered protocol family 10
 [   12.100000] natsemi dp8381x driver, version 2.1, Sept 11, 2006
 [   12.100000]   originally by Donald Becker <[email protected]>
 [   12.100000]   2.4.x kernel port by Jeff Garzik, Tjeerd Mulder
 [   12.130000] RPC: Registered named UNIX socket transport module.
 [   12.140000] RPC: Registered udp transport module.
 [   12.140000] RPC: Registered tcp transport module.
 [   12.150000] RPC: Registered tcp NFSv4.1 backchannel transport module.
 [   12.160000] tun: Universal TUN/TAP device driver, 1.6
 [   12.160000] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
 [   12.170000] e1000: Intel(R) PRO/1000 Network Driver - version
 7.3.21-k8-NAPI
 [   12.180000] e1000: Copyright (c) 1999-2006 Intel Corporation.
 [   12.200000] ip6_tables: (C) 2000-2006 Netfilter Core Team
 [   12.210000] Loading modules backported from Linux version
 master-2014-11-04-0
 -gf3660a2
 [   12.220000] Backport generated by backports.git
 backports-20141023-2-g4ff890b

 [   12.240000] cfg80211: Calling CRDA to update world regulatory domain
 [   12.260000] cfg80211: World regulatory domain updated:
 [   12.270000] cfg80211:  DFS Master region: unset
 [   12.270000] cfg80211:   (start_freq - end_freq @ bandwidth),
 (max_antenna_gai
 n, max_eirp), (dfs_cac_time)
 [   12.280000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A,
 2000 m
 Bm), (N/A)
 [   12.290000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A,
 2000 m
 Bm), (N/A)
 [   12.300000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A,
 2000 m
 Bm), (N/A)
 [   12.310000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A,
 2000
 mBm), (N/A)
 [   12.310000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A,
 2000
 mBm), (0 s)
 [   12.320000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A,
 2000
 mBm), (0 s)
 [   12.330000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A,
 2000 m
 Bm), (N/A)
 [   12.340000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz),
 (N/A, 0
 mBm), (N/A)
 [   12.360000] 8139too: 8139too Fast Ethernet driver 0.9.28
 [   12.380000] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
 [   12.390000] e100: Copyright(c) 1999-2006 Intel Corporation
 [   12.400000] ip_tables: (C) 2000-2006 Netfilter Core Team
 [   12.410000] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
 [   12.420000] nf_conntrack version 0.5.0 (3996 buckets, 15984 max)
 [   12.500000] Netfilter messages via NETLINK v0.30.
 [   12.510000] pcnet32: pcnet32.c:v1.35 21.Apr.2008
 [email protected]
 [   12.520000] sis900.c: v1.08.10 Apr. 2 2006
 [   12.530000] via_rhine: v1.10-LK1.5.1 2010-10-09 Written by Donald
 Becker
 [   12.560000] xt_time: kernel timezone is -0000
 [   12.570000] ctnetlink v0.93: registering with nfnetlink.
 [   12.580000] PPP generic driver version 2.4.2
 [   12.590000] NET: Registered protocol family 24
 [   12.600000] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
 [   12.610000] PCI: enabling device 0000:02:0c.0 (0340 -> 0342)
 }}}

 And system doesn't boot.
 I have a Microtik R52n-M connected to mainboard only.

 Thanks.

--
Ticket URL: <https://dev.openwrt.org/ticket/18418>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to