[LEDE-DEV] LEDE layerscape hangs with squash rootfs on QSPI flash

Y.b. Lu yangbo.lu at nxp.com
Wed Dec 20 23:54:37 PST 2017


Hi Matthew,

Here is the complete log. Please let me know if you have any clue.
Thanks a lot.

U-Boot 2017.07 (Nov 16 2017 - 03:14:05 +0000)

SoC:  LS1012AE Rev1.0 (0x87040010)
Clock Configuration:
       CPU0(A53):1000 MHz
       Bus:      250  MHz  DDR:      1000 MT/s
Reset Configuration Word (RCW):
       00000000: 0800000a 00000000 00000000 00000000
       00000010: 35080000 c000000c 40000000 00001800
       00000020: 00000000 00000000 00000000 00014571
       00000030: 00000000 18c2a120 00000096 00000000
I2C:   ready
DRAM:  958 MiB
Using SERDES1 Protocol: 13576 (0x3508)
PPA Firmware: Version LSDK-17.09-update-103017
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected s25fs512s with page size 512 Bytes, erase size 256 KiB, total 64 MiB
In:    serial
Out:   serial
Err:   serial
Model: LS1012A RDB Board
Board: LS1012ARDB Version: RevB, boot from QSPI: bank2
SATA link 0 timeout.
AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc apst
Found 0 device(s).
SCSI:  Net:   PFE class pe firmware
PFE tmu pe firmware
ls1012a_configure_serdes 0
PCIe0: pcie at 3400000 Root Complex: no link
pfe_eth0
Warning: pfe_eth0 (eth0) using random MAC address - ea:32:c8:de:39:16
, pfe_eth1
Warning: pfe_eth1 (eth1) using random MAC address - 06:3d:a2:e1:4a:8e

Hit any key to stop autoboot:  0
Stopping PFE...
SF: Detected s25fs512s with page size 512 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0xf00000, size 0x100000
SF: 1048576 bytes @ 0xf00000 Read: OK
device 0 offset 0x1000000, size 0x1000000
SF: 16777216 bytes @ 0x1000000 Read: OK
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   ARM64 LEDE Linux-4.9.54
   Image Type:   AArch64 Linux Kernel Image (gzip compressed)
   Data Size:    6996675 Bytes = 6.7 MiB
   Load Address: 80080000
   Entry Point:  80080000
## Flattened Device Tree blob at 8f000000
   Booting using the fdt blob at 0x8f000000
   Uncompressing Kernel Image ... OK
   Using Device Tree in place at 000000008f000000, end 000000008f005d74
WARNING: fdt_fixup_stdout: could not read serial0 alias: FDT_ERR_NOTFOUND

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.54 (luyb at titan) (gcc version 5.4.0 (LEDE GCC 5.4.0 r5091-7df715d511) ) #0 SMP PREEMPT Thu Nov 16 03:14:05 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 16 MiB at 0x00000000bac00000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000000bbdfffff]
[    0.000000] NUMA: Adding memblock [0x80000000 - 0xbbdfffff] on node 0
[    0.000000] NUMA: Initmem setup node 0 [mem 0x80000000-0xbbdfffff]
[    0.000000] NUMA: NODE_DATA [mem 0xbbde59c0-0xbbde717f]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000bbdfffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000bbdfffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bbdfffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 23 pages/cpu @ffff80003bdc9000 s53336 r8192 d32680 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 241416
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mtdblock8 rootfstype=squash,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.quadspi:1M(rcw),2M(u-boot),1M(u-boot-env),5M(reserved-1),256k(fman),5888k(reserved-2),1M(dtb),16M(kernel),32M(rootfs)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Memory: 919412K/980992K available (10556K kernel code, 648K rwdata, 3340K rodata, 704K init, 946K bss, 45196K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008ad0000   ( 10560 KB)
[    0.000000]     .rodata : 0xffff000008ad0000 - 0xffff000008e20000   (  3392 KB)
[    0.000000]       .init : 0xffff000008e20000 - 0xffff000008ed0000   (   704 KB)
[    0.000000]       .data : 0xffff000008ed0000 - 0xffff000008f72200   (   649 KB)
[    0.000000]        .bss : 0xffff000008f72200 - 0xffff00000905ed24   (   947 KB)
[    0.000000]     fixed   : 0xffff7dfffe7fd000 - 0xffff7dfffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0000ef8000   (    14 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff80003be00000   (   958 MB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000004] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008398] Console: colour dummy device 80x25
[    0.012935] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000)
[    0.023394] pid_max: default: 32768 minimum: 301
[    0.028148] Security Framework initialized
[    0.032554] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.040682] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.047971] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.054748] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.062806] ASID allocator initialised with 65536 entries
[    0.100531] EFI services will not be available.
[    0.113144] Brought up 1 CPUs
[    0.116134] SMP: Total of 1 processors activated.
[    0.120895] CPU features: detected feature: 32-bit EL0 Support
[    0.126812] CPU: All CPU(s) started at EL2
[    0.130958] alternatives: patching kernel code
[    0.138738] DMI not present or invalid.
[    0.142950] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.152839] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.159630] xor: measuring software checksum speed
[    0.204590]    8regs     :  1979.000 MB/sec
[    0.248868]    8regs_prefetch:  1759.000 MB/sec
[    0.293490]    32regs    :  2194.000 MB/sec
[    0.337749]    32regs_prefetch:  1982.000 MB/sec
[    0.342412] xor: using function: 32regs (2194.000 MB/sec)
[    0.349300] NET: Registered protocol family 16
[    0.366063] cpuidle: using governor menu
[    0.370753] vdso: 2 pages (1 code @ ffff000008ad6000, 1 data @ ffff000008ed5000)
[    0.379151] DMA: preallocated 256 KiB pool for atomic allocations
[    0.385621] Serial: AMBA PL011 UART driver
[    0.391738] Machine: LS1012A RDB Board
[    0.396086] SoC family: QorIQ LS1012A
[    0.399865] SoC ID: svr:0x87040010, Revision: 1.0
[    0.449272] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.539883] raid6: int64x1  gen()   330 MB/s
[    0.612362] raid6: int64x1  xor()   305 MB/s
[    0.684807] raid6: int64x2  gen()   513 MB/s
[    0.757209] raid6: int64x2  xor()   446 MB/s
[    0.829673] raid6: int64x4  gen()   769 MB/s
[    0.902120] raid6: int64x4  xor()   552 MB/s
[    0.974525] raid6: int64x8  gen()   935 MB/s
[    1.046930] raid6: int64x8  xor()   604 MB/s
[    1.119372] raid6: neonx1   gen()   591 MB/s
[    1.191813] raid6: neonx1   xor()   585 MB/s
[    1.264205] raid6: neonx2   gen()   983 MB/s
[    1.336600] raid6: neonx2   xor()   833 MB/s
[    1.409033] raid6: neonx4   gen()  1313 MB/s
[    1.481448] raid6: neonx4   xor()   921 MB/s
[    1.553886] raid6: neonx8   gen()  1307 MB/s
[    1.626288] raid6: neonx8   xor()   946 MB/s
[    1.630598] raid6: using algorithm neonx4 gen() 1313 MB/s
[    1.636050] raid6: .... xor() 921 MB/s, rmw enabled
[    1.640975] raid6: using intx1 recovery algorithm
[    1.646022] ACPI: Interpreter disabled.
[    1.655301] RCPM: layerscape_rcpm_init: The RCPM driver initialized.
[    1.662621] vgaarb: loaded
[    1.666439] SCSI subsystem initialized
[    1.674996] usbcore: registered new interface driver usbfs
[    1.681122] usbcore: registered new interface driver hub
[    1.686726] usbcore: registered new device driver usb
[    1.692510] imx-i2c 2180000.i2c: can't get pinctrl, bus recovery not supported
[    1.700264] i2c i2c-0: IMX I2C adapter registered
[    1.705108] i2c i2c-0: can't use DMA, using PIO instead.
[    1.710685] pps_core: LinuxPPS API ver. 1 registered
[    1.715841] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
[    1.725162] PTP clock support registered
[    1.729499] dmi: Firmware registration failed.
[    1.734349] No BMan portals available!
[    1.738582] QMan: Allocated lookup table at ffff0000092a1000, entry count 65537
[    1.746077] No QMan portals available!
[    1.750053] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[    1.756565] Advanced Linux Sound Architecture Driver Initialized.
[    1.763862] clocksource: Switched to clocksource arch_sys_counter
[    1.770444] VFS: Disk quotas dquot_6.6.0
[    1.774505] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.781902] pnp: PnP ACPI: disabled
[    1.797064] NET: Registered protocol family 2
[    1.802646] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.810019] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    1.816870] TCP: Hash tables configured (established 8192 bind 8192)
[    1.823429] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.829454] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.836051] NET: Registered protocol family 1
[    1.840893] kvm [1]: 8-bit VMID
[    1.844101] kvm [1]: IDMAP page: 80ac2000
[    1.848163] kvm [1]: HYP VA range: 800000000000:ffffffffffff
[    1.854651] kvm [1]: Hyp mode initialized successfully
[    1.859876] kvm [1]: vgic-v2 at 1404000
[    1.863523] kvm [1]: vgic interrupt IRQ1
[    1.867494] kvm [1]: virtual timer IRQ4
[    1.873364] audit: initializing netlink subsys (disabled)
[    1.879471] audit: type=2000 audit(1.764:1): initialized
[    1.884942] No memory allocated for crashlog
[    1.893594] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    1.900661] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.906576] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.916765] fuse init (API version 7.26)
[    1.920982] SGI XFS with security attributes, realtime, no debug enabled
[    1.943007] async_tx: api initialized (async)
[    1.947676] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.959352] io scheduler noop registered
[    1.963406] io scheduler cfq registered (default)
[    1.969733] OF: PCI: host bridge /soc/pcie at 3400000 ranges:
[    1.975920] OF: PCI:    IO 0x4000010000..0x400001ffff -> 0x00000000
[    1.982278] OF: PCI:   MEM 0x4040000000..0x407fffffff -> 0x40000000
[    1.989037] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00
[    1.995939] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.001498] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    2.007758] pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])
[    2.018947] pci 0000:00:00.0: BAR 6: assigned [mem 0x4040000000-0x40400007ff pref]
[    2.026724] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.032124] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
[    2.041299] Freescale LS2 console driver
[    2.046047] fsl-ls2-console: device fsl_mc_console registered
[    2.052096] fsl-ls2-console: device fsl_aiop_console registered
[    2.058442] ftm-alarm 29d0000.ftm0: can't request region for resource [mem 0x01ee2140-0x01ee2143]
[    2.067460] ftm-alarm: probe of 29d0000.ftm0 failed with error -16
[    2.074155] xenfs: not registering filesystem on non-xen platform
[    2.085584] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.093854] console [ttyS0] disabled
[    2.098249] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 15, base_baud = 7812500) is a 16550A
[    2.107200] console [ttyS0] enabled
[    2.107200] console [ttyS0] enabled
[    2.114300] bootconsole [uart8250] disabled
[    2.114300] bootconsole [uart8250] disabled
[    2.123746] Unable to detect cache hierarchy from DT for CPU 0
[    2.205009] brd: module loaded
[    2.247051] loop: module loaded
[    2.251283] hisi_sas: driver version v1.6
[    2.261239] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    2.270608] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[    2.285436] scsi host0: ahci-qoriq
[    2.289339] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 23
[    2.298409] fsl-quadspi 1550000.quadspi: s25fl512s (65536 Kbytes)
[    2.304658] 9 cmdlinepart partitions found on MTD device 1550000.quadspi
[    2.311674] Creating 9 MTD partitions on "1550000.quadspi":
[    2.317676] 0x000000000000-0x000000100000 : "rcw"
[    2.327552] 0x000000100000-0x000000300000 : "u-boot"
[    2.337822] 0x000000300000-0x000000400000 : "u-boot-env"
[    2.348446] 0x000000400000-0x000000900000 : "reserved-1"
[    2.359001] 0x000000900000-0x000000940000 : "fman"
[    2.369017] 0x000000940000-0x000000f00000 : "reserved-2"
[    2.379597] 0x000000f00000-0x000001000000 : "dtb"
[    2.389523] 0x000001000000-0x000002000000 : "kernel"
[    2.399723] 0x000002000000-0x000004000000 : "rootfs"
[    2.409917] mtd: device 8 (rootfs) set to be root filesystem




Best regards,
Yangbo Lu


> -----Original Message-----
> From: Matthew McClintock [mailto:msm-oss at mcclintock.net]
> Sent: 2017年12月21日 14:52
> To: Y.b. Lu <yangbo.lu at nxp.com>
> Cc: lede-dev at lists.infradead.org; Hauke Mehrtens <hauke at hauke-m.de>; Wes
> Li <wes.li at nxp.com>; John Crispin <john.crispin at gmail.com>
> Subject: Re: [LEDE-DEV] LEDE layerscape hangs with squash rootfs on QSPI flash
> 
> On Sun, Dec 17, 2017 at 9:20 PM, Y.b. Lu <yangbo.lu at nxp.com> wrote:
> > Hi,
> >
> > (Resent the email since HTML format email was rejected by mailing list...)
> >
> > Has anyone seen below issue when LEDE started up. The system would hang
> when created jffs2 area.
> > This issue occurred on QSPI flash on layerscape like ls1046ardb, but Nor flash
> worked fine with same rootfs like ls1043ardb.
> >
> > [    2.298409] fsl-quadspi 1550000.quadspi: s25fl512s (65536 Kbytes)
> > [    2.304658] 9 cmdlinepart partitions found on MTD device
> 1550000.quadspi
> > [    2.311674] Creating 9 MTD partitions on "1550000.quadspi":
> > [    2.317676] 0x000000000000-0x000000100000 : "rcw"
> > [    2.327552] 0x000000100000-0x000000300000 : "u-boot"
> > [    2.337822] 0x000000300000-0x000000400000 : "u-boot-env"
> > [    2.348446] 0x000000400000-0x000000900000 : "reserved-1"
> > [    2.359001] 0x000000900000-0x000000940000 : "fman"
> > [    2.369017] 0x000000940000-0x000000f00000 : "reserved-2"
> > [    2.379597] 0x000000f00000-0x000001000000 : "dtb"
> > [    2.389523] 0x000001000000-0x000002000000 : "kernel"
> > [    2.399723] 0x000002000000-0x000004000000 : "rootfs"
> > [    2.409917] mtd: device 8 (rootfs) set to be root filesystem
> >
> > Actually jffs2 rootfs worked fine on QSPI flash, but we don't know why it
> failed with LEDE squashfs when create jffs2 area.
> > Any suggestion to find out the root casue? Or any config may casue this
> issue?
> >
> > Appreciate your help.
> 
> Do you have a more complete log?
> 
> -M


More information about the Lede-dev mailing list