[FS#86] Can't generate Solidrun Clearfog A1 Pro image

LEDE Bugs lede-bugs at lists.infradead.org
Thu Aug 11 19:12:46 PDT 2016


The following task has a new comment added:

FS#86 - Can't generate Solidrun Clearfog A1 Pro image
User who did this - Christophe Prevotaux (cp)

----------
After patching lede trunk with the following patch from jow:

https://git.lede-project.org/?p=lede/jow/staging.git;a=commitdiff;h=7cda79fefd85ddc6b4a14ef735e6462cb49d668a


Image generated with default clearfog config yields the following files: 


lede-mvebu-armada-388-clearfog-bundle.tar.gz
lede-mvebu-armada-388-clearfog-initramfs-kernel.bin
lede-mvebu-armada-388-clearfog-kernel.bin
lede-mvebu-device-armada-388-clearfog-rootfs.tar.gz
packages
sha256sums
u-boot-kwboot
uboot-mvebu-clearfog



and the following u-boot (Solidrun 2013 version) env vars set as: 


bootcmd=ext4load mmc 0:1 0x02000000 armada-388-clearfog-kernel.bin; ext4load mmc 0:1 0x01800000 armada-388-clearfog-kernel.bin.dtb; bootz 0x02000000 - 0x01800000
bootargs=console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootwait
saveenv


yields the following bootlog:


BootROM - 1.73

Booting from MMC


General initialization - Version: 1.0.0
Detected Device ID 6828
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  3   |  SATA0      |
 |   1    |  0   |  SGMII1     |
 |   2    |  5   |  PCIe1      |
 |   3    |  5   |  USB3 HOST1 |
 |   4    |  5   |  PCIe2      |
 |   5    |  0   |  SGMII2     |
 -------------------------------
PCIe, Idx 1: detected no link
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.39.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-g6109ead (Jun 30 2016 - 10:28:11) Marvell version: 2015_T1.0p11

Board: A38x-Customer-Board-1
SoC:   MV88F6828 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 250 [MHz]
       DDR3    @ 800 [MHz]
       DDR3 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
PCI-e 1: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:                    0x3fed3000:0x3ff97774
       BSS:                     0x3ffef164
       Stack:                   0x3f9c2f20
       Heap:                    0x3f9c3000:0x3fed3000
       U-Boot Environment:      0x000f0000:0x00100000 (MMC)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |   In-Band    |
| egiga2 |   SGMII   |   In-Band    |
egiga0 [PRIME], egiga1, egiga2
Hit any key to stop autoboot:  0 
2046688 bytes read in 133 ms (14.7 MiB/s)
18588 bytes read in 13 ms (1.4 MiB/s)
## Flattened Device Tree blob at 01800000
   Booting using the fdt blob at 0x01800000
   Loading Device Tree to 00ff8000, end 00fff89b ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.15 (nighty at nijo) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1266) ) #1 SMP Fri Aug 12 01:35:38 UTC 2016
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: SolidRun Clearfog A1
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 12 pages/cpu @ef7ce000 s17984 r8192 d22976 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p1 rw rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1033020K/1048576K available (4063K kernel code, 171K rwdata, 1524K rodata, 256K init, 295K bss, 15556K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc057d08c   (5589 kB)
[    0.000000]       .init : 0xc057e000 - 0xc05be000   ( 256 kB)
[    0.000000]       .data : 0xc05be000 - 0xc05e8e34   ( 172 kB)
[    0.000000]        .bss : 0xc05e8e34 - 0xc0632aac   ( 296 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000002] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000009] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000105] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.000111] pid_max: default: 32768 minimum: 301
[    0.000146] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000151] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000337] CPU: Testing write buffer coherency: ok
[    0.000436] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.000460] Setting up static identity map for 0x8280 - 0x82d8
[    0.000543] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.000626] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001019] Booting CPU 1
[    0.001185] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.001212] Brought up 2 CPUs
[    0.001217] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.001220] CPU: All CPU(s) started in SVC mode.
[    0.002902] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.002976] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.003012] pinctrl core: initialized pinctrl subsystem
[    0.003330] NET: Registered protocol family 16
[    0.003803] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.029931] cpuidle: using governor ladder
[    0.032553] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.032561] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.060724] SCSI subsystem initialized
[    0.060991] usbcore: registered new interface driver usbfs
[    0.061020] usbcore: registered new interface driver hub
[    0.061043] usbcore: registered new device driver usb
[    0.061492] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.061899] NET: Registered protocol family 2
[    0.062109] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.062152] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.062215] TCP: Hash tables configured (established 8192 bind 8192)
[    0.062245] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.062264] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.062343] NET: Registered protocol family 1
[    0.062738] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.062793] Crashlog allocated RAM at address 0x3f00000
[    0.065900] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.065910] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.066550] bounce: pool size: 64 pages
[    0.066558] io scheduler noop registered
[    0.066563] io scheduler deadline registered (default)
[    0.066980] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.067296] irq: Cannot allocate irq_descs @ IRQ50, assuming pre-allocated
[    0.067434] irq: Cannot allocate irq_descs @ IRQ82, assuming pre-allocated
[    0.067685] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.101933] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.102013] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.141914] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.142058] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.142328] console [ttyS0] disabled
[    0.162396] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 15625000) is a 16550A
[    0.723609] console [ttyS0] enabled
[    0.747289] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 15625000) is a 16550A
[    0.756607] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.765686] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.775065] scsi host0: ahci-mvebu
[    0.778624] scsi host1: ahci-mvebu
[    0.782128] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 45
[    0.790063] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 45
[    0.798093] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.807169] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.816639] scsi host2: ahci-mvebu
[    0.820187] scsi host3: ahci-mvebu
[    0.823691] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 46
[    0.831633] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 46
[    0.840574] libphy: Fixed MDIO Bus: probed
[    0.844798] libphy: orion_mdio_bus: probed
[    0.850111] mvneta f1030000.ethernet eth0: Using device tree mac address 00:50:43:9c:6c:c4
[    0.859245] mvneta f1034000.ethernet eth1: Using device tree mac address 00:50:43:c9:6c:9c
[    0.868286] mvneta f1070000.ethernet eth2: Using device tree mac address 00:50:43:9c:c9:c4
[    0.876631] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.883182] ehci-pci: EHCI PCI platform driver
[    0.887660] ehci-platform: EHCI generic platform driver
[    0.892989] ehci-orion: EHCI orion driver
[    0.897075] orion-ehci f1058000.usb: EHCI Host Controller
[    0.902502] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    0.910146] orion-ehci f1058000.usb: irq 40, io mem 0xf1058000
[    0.931493] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    0.937651] hub 1-0:1.0: USB hub found
[    0.941420] hub 1-0:1.0: 1 port detected
[    0.945636] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    0.950967] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    0.958567] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    0.967131] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    0.973102] hub 2-0:1.0: USB hub found
[    0.976870] hub 2-0:1.0: 1 port detected
[    0.980878] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    0.986215] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    0.993745] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.002051] hub 3-0:1.0: USB hub found
[    1.005818] hub 3-0:1.0: 1 port detected
[    1.009873] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.015211] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.022800] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.031357] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    1.037322] hub 4-0:1.0: USB hub found
[    1.041089] hub 4-0:1.0: 1 port detected
[    1.045146] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.050473] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.058006] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.066309] hub 5-0:1.0: USB hub found
[    1.070076] hub 5-0:1.0: 1 port detected
[    1.074204] usbcore: registered new interface driver usb-storage
[    1.080370] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.088009] i2c /dev entries driver
[    1.102353] orion_wdt: Initial timeout 171 sec
[    1.107769] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.115445] NET: Registered protocol family 10
[    1.120372] NET: Registered protocol family 17
[    1.124855] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.137501] 8021q: 802.1Q VLAN Support v1.8
[    1.141752] Registering SWP/SWPB emulation handler
[    1.147324] armada38x-rtc f10a3800.rtc: setting system clock to 2101-11-06 19:41:35 UTC (4160749295)
[    1.151515] ata1: SATA link down (SStatus 0 SControl 300)
[    1.151538] ata2: SATA link down (SStatus 0 SControl 300)
[    1.171503] ata4: SATA link down (SStatus 0 SControl 300)
[    1.176929] ata3: SATA link down (SStatus 0 SControl 300)
[    1.182390] Waiting for root device /dev/mmcblk0p1...  



More information about the lede-bugs mailing list