AnsweredAssumed Answered

Booting LS1012a with Docker results in an error

Question asked by Idan Lahav on Sep 11, 2017
Latest reply on May 1, 2018 by Yiping Wang

Hi,

 

I have the LS1012ARDB and I'm trying to load an OS built with QorIQ Linux SDK and the docker package included.

Everything works well when I'm building the OS without docker using the following command: bitbake fsl-image-virt

However, when I'm adding docker by adding IMAGE_INSTALL_append = " docker docker-registry" to conf.local, loading the OS results in an error.

 

I'm deploying an ITB file (after running bitbake fsl-image-kernelitb) using TFTP and loading the file with bootm command.

 

All commands are executed as mentioned in the user manual here and here

 

This is the log of the command:

 

Bytes transferred = 176573119 (a864abf hex)
=> bootm $kernel_load
## Loading kernel from FIT Image at a0000000 ...
Using 'config@1' configuration
Trying 'kernel@1' kernel subimage
Description: ARM64 Linux kernel
Type: Kernel Image
Compression: uncompressed
Data Start: 0xa00000d0
Data Size: 12409344 Bytes = 11.8 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80080000
Entry Point: 0x80080000
## Loading ramdisk from FIT Image at a0000000 ...
Using 'config@1' configuration
Trying 'ramdisk@1' ramdisk subimage
Description: Ramdisk
Type: RAMDisk Image
Compression: uncompressed
Data Start: 0xa0bd859c
Data Size: 164151766 Bytes = 156.5 MiB
Architecture: AArch64
OS: Linux
Load Address: unavailable
Entry Point: unavailable
## Loading fdt from FIT Image at a0000000 ...
Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0xa0bd5b84
Data Size: 10645 Bytes = 10.4 KiB
Architecture: AArch64
Loading fdt from 0xa0bd5b84 to 0x90000000
Booting using the fdt blob at 0x90000000
Loading Kernel Image ... OK
Using Device Tree in place at 0000000090000000, end 0000000090005994

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 4.1.35-rt41 (dev@dev-VirtualBox) (gcc version 4.9.3 20150311 (prerelease) (Linaro GCC 4.9-2015.03) ) #1 SMP Sun Sep 3 18:37:53 IDT 2017
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] alternatives: enabling workaround for ARM erratum 845719
[ 0.000000] earlycon: Early serial console at MMIO 0x21c0500 (options '')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 16 MiB at 0x00000000bec00000
[ 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] PERCPU: Embedded 18 pages/cpu @ffff80003fdd3000 s34880 r8192 d30656 u73728
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 257544
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] software IO TLB [mem 0xb9a00000-0xbda00000] (64MB) mapped at [ffff800039a00000-ffff80003d9fffff]
[ 0.000000] Memory: 760556K/1046528K available (7770K kernel code, 582K rwdata, 3204K rodata, 480K init, 756K bss, 269588K reserved, 16384K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffff000000000000 - 0xffff7bffbfff0000 (126974 GB)
[ 0.000000] vmemmap : 0xffff7bffc0000000 - 0xffff7fffc0000000 ( 4096 GB maximum)
[ 0.000000] 0xffff7bffc0000000 - 0xffff7bffc0ff8000 ( 15 MB actual)
[ 0.000000] fixed : 0xffff7ffffabfd000 - 0xffff7ffffac00000 ( 12 KB)
[ 0.000000] PCI I/O : 0xffff7ffffae00000 - 0xffff7ffffbe00000 ( 16 MB)
[ 0.000000] modules : 0xffff7ffffc000000 - 0xffff800000000000 ( 64 MB)
[ 0.000000] memory : 0xffff800000000000 - 0xffff80003fe00000 ( 1022 MB)
[ 0.000000] .init : 0xffff800000b3a000 - 0xffff800000bb2000 ( 480 KB)
[ 0.000000] .text : 0xffff800000080000 - 0xffff800000b39934 ( 10983 KB)
[ 0.000000] .data : 0xffff800000bc4000 - 0xffff800000c55a00 ( 583 KB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] 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.000005] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[ 0.008379] Console: colour dummy device 80x25
[ 0.012869] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[ 0.023315] pid_max: default: 32768 minimum: 301
[ 0.028045] Security Framework initialized
[ 0.032220] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.038976] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.046721] Initializing cgroup subsys memory
[ 0.051139] Initializing cgroup subsys hugetlb
[ 0.055816] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[ 0.064015] EFI services will not be available.
[ 0.069346] Brought up 1 CPUs
[ 0.072335] SMP: Total of 1 processors activated.
[ 0.077098] CPU: All CPU(s) started at EL2
[ 0.081233] alternatives: patching kernel code
[ 0.086137] devtmpfs: initialized
[ 0.092165] DMI not present or invalid.
[ 0.096241] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.107229] pinctrl core: initialized pinctrl subsystem
[ 0.113602] NET: Registered protocol family 16
[ 0.118971] cpuidle: using governor ladder
[ 0.123105] cpuidle: using governor menu
[ 0.127121] fsl-mc bus type registered
[ 0.130979] MC object device driver fsl_mc_dprc registered
[ 0.136542] MC object device driver fsl_mc_allocator registered
[ 0.142681] vdso: 2 pages (1 code @ ffff800000bc9000, 1 data @ ffff800000bc8000)
[ 0.150166] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.159930] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.166315] Serial: AMBA PL011 UART driver
[ 0.172048] Machine: LS1012A RDB Board
[ 0.175824] SoC family: QorIQ LS1012A
[ 0.179509] SoC ID: svr:0x87040010, Revision: 1.0
[ 0.211456] RCPM: layerscape_rcpm_init: The RCPM driver initialized.
[ 0.218700] vgaarb: loaded
[ 0.221670] SCSI subsystem initialized
[ 0.226083] usbcore: registered new interface driver usbfs
[ 0.231699] usbcore: registered new interface driver hub
[ 0.237090] usbcore: registered new device driver usb
[ 0.242701] i2c i2c-0: IMX I2C adapter registered
[ 0.247444] i2c i2c-0: can't use DMA
[ 0.251132] pps_core: LinuxPPS API ver. 1 registered
[ 0.256147] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.265375] PTP clock support registered
[ 0.269623] No BMan portals available!
[ 0.275328] QMan: Allocated lookup table at ffff0000000d1000, entry count 65537
[ 0.282888] No QMan portals available!
[ 0.286834] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.294170] Switched to clocksource arch_sys_counter
[ 0.311729] NET: Registered protocol family 2
[ 0.316679] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.323905] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.330664] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.337188] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.343183] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.349782] NET: Registered protocol family 1
[ 0.355082] RPC: Registered named UNIX socket transport module.
[ 0.361053] RPC: Registered udp transport module.
[ 0.365826] RPC: Registered tcp transport module.
[ 0.370564] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.377249] Trying to unpack rootfs image as initramfs...
[ 0.383138] rootfs image is not initramfs (no cpio magic); looks like an initrd
[ 0.844009] Freeing initrd memory: 160300K (ffff800020bd9000 - ffff80002a864000)
[ 0.851702] hw perfevents: Failed to parse /pmu/interrupt-affinity[0]
[ 0.858511] kvm [1]: interrupt-controller@1404000 IRQ6
[ 0.864210] kvm [1]: timer IRQ3
[ 0.867375] kvm [1]: Hyp mode initialized successfully
[ 0.874840] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.881063] audit: initializing netlink subsys (disabled)
[ 0.886596] audit: type=2000 audit(0.820:1): initialized
[ 0.893176] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.900229] VFS: Disk quotas dquot_6.6.0
[ 0.904254] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.911881] NFS: Registering the id_resolver key type
[ 0.917027] Key type id_resolver registered
[ 0.921239] Key type id_legacy registered
[ 0.925630] fuse init (API version 7.23)
[ 0.930021] 9p: Installing v9fs 9p2000 file system support
[ 0.936701] io scheduler noop registered
[ 0.940711] io scheduler cfq registered (default)
[ 0.945675] ls-scfg-msi soc:msi-controller: ibs_shift:3 msir_irqs:32 msir_base:0x4
[ 0.953494] Find msi-controller /soc/msi-controller
[ 0.959611] PCI host bridge /soc/pcie@3400000 ranges:
[ 0.964733] IO 0x4000010000..0x400001ffff -> 0x00000000
[ 0.970267] MEM 0x4040000000..0x407fffffff -> 0x40000000
[ 0.975971] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00
[ 0.982735] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.988276] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.994526] pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])
[ 1.005485] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.013678] pci 0000:00:00.0: BAR 6: assigned [mem 0x4040000000-0x40400007ff pref]
[ 1.021324] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.026543] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
[ 1.034217] Freescale LS2 console driver
[ 1.039901] fsl-ls2-console: device fsl_mc_console registered
[ 1.046022] fsl-ls2-console: device fsl_aiop_console registered
[ 1.057422] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.065697] msm_serial: driver initialized
[ 1.070609] console [ttyS0] disabled
[ 1.074294] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 13, base_baud = 7812500) is a 16550A
[ 1.083080] console [ttyS0] enabled
[ 1.083080] console [ttyS0] enabled
[ 1.090088] bootconsole [uart0] disabled
[ 1.090088] bootconsole [uart0] disabled
[ 1.098732] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 13, base_baud = 7812500) is a 16550A
[ 1.108786] Unable to detect cache hierarcy from DT for CPU 0
[ 1.124911] brd: module loaded
[ 1.132957] loop: module loaded
[ 1.137417] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[ 1.146453] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[ 1.157851] scsi host0: ahci-qoriq
[ 1.161514] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 21
[ 1.171307] fsl-quadspi 1550000.quadspi: s25fs512s (65536 Kbytes)
[ 1.179648] tun: Universal TUN/TAP device driver, 1.6
[ 1.184769] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.193009] Freescale FM module, FMD API version 21.1.0
[ 1.198425] Freescale FM Ports module
[ 1.202096] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 1.207777] fsl_dpa: FSL DPAA Ethernet driver
[ 1.212205] fsl_advanced: FSL DPAA Advanced drivers:
[ 1.217190] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.222836] fsl_dpa_shared: FSL DPAA Shared Ethernet driver
[ 1.228492] fsl_dpa_macless: FSL DPAA MACless Ethernet driver
[ 1.234320] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.239716] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.246784] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.252610] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[ 1.258459] e1000e: Copyright(c) 1999 - 2014 Intel Corporation.
[ 1.264450] sky2: driver version 1.30
[ 1.270538] VFIO - User Level meta-driver version: 0.3
[ 1.276209] vfio_fsl_mc_driver_init: Driver registration fails as no fsl_mc_bus found
[ 1.685411] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.691962] ehci-pci: EHCI PCI platform driver
[ 1.696476] ehci-platform: EHCI generic platform driver
[ 1.701802] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.708014] ohci-pci: OHCI PCI platform driver
[ 1.712507] ohci-platform: OHCI generic platform driver
[ 1.718019] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 1.723528] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 1.732430] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 1.741248] xhci-hcd xhci-hcd.0.auto: irq 19, io mem 0x02f00000
[ 1.748066] hub 1-0:1.0: USB hub found
[ 1.751970] hub 1-0:1.0: 1 port detected
[ 1.756223] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 1.761727] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 1.769629] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.778392] hub 2-0:1.0: USB hub found
[ 1.782279] hub 2-0:1.0: 1 port detected
[ 1.786840] usbcore: registered new interface driver usb-storage
[ 1.793399] mousedev: PS/2 mouse device common for all mice
[ 1.799696] i2c /dev entries driver
[ 1.805513] imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)
[ 1.811744] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[ 1.818511] sdhci: Secure Digital Host Controller Interface driver
[ 1.824718] sdhci: Copyright(c) Pierre Ossman
[ 1.829122] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.836340] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.842206] sdhci-esdhc 1560000.esdhc: No vmmc regulator found
[ 1.848094] sdhci-esdhc 1560000.esdhc: No vqmmc regulator found
[ 1.893737] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 1.902889] sdhci-esdhc 1580000.esdhc: No vmmc regulator found
[ 1.908758] sdhci-esdhc 1580000.esdhc: No vqmmc regulator found
[ 1.953733] mmc1: SDHCI controller on 1580000.esdhc [1580000.esdhc] using ADMA 64-bit
[ 1.963251] caam 1700000.crypto: Instantiated RNG4 SH1
[ 1.968455] caam 1700000.crypto: device ID = 0x0a14040000000000 (Era 8)
[ 1.975092] caam 1700000.crypto: job rings = 4, qi = 0
[ 1.985676] caam algorithms registered in /proc/crypto
[ 1.992371] caam_jr 1710000.jr: registering rng-caam
[ 1.997785] caam 1700000.crypto: fsl,sec-v5.4 algorithms registered in /proc/crypto
[ 2.005565] MC object device driver fsl_dpaa2_caam registered
[ 2.011955] usbcore: registered new interface driver usbhid
[ 2.017564] usbhid: USB HID core driver
[ 2.025783] fsl-mc bus not found, restool driver registration failed
[ 2.032226] MC object device driver fsl_dpio_drv registered
[ 2.038178] No fsl,qman node
[ 2.041234] Freescale USDPAA process driver
[ 2.045438] fsl-usdpaa: no region found
[ 2.049281] Freescale USDPAA process IRQ driver
[ 2.054674] MC object device driver fsl_dpaa2_eth registered
[ 2.060391] MC object device driver dpaa2_mac registered
[ 2.065779] MC object device driver dpaa2_ethsw registered
[ 2.071301] MC object device driver dpaa2_evb registered
[ 2.076659] MC object device driver fsl_dce_api registered
[ 2.082189] MC object device driver dpaa2_rtc registered
[ 2.087747] Initializing XFRM netlink socket
[ 2.092103] NET: Registered protocol family 10
[ 2.097823] sit: IPv6 over IPv4 tunneling driver
[ 2.103001] NET: Registered protocol family 17
[ 2.107518] NET: Registered protocol family 15
[ 2.112012] 8021q: 802.1Q VLAN Support v1.8
[ 2.116248] 9pnet: Installing 9P2000 support
[ 2.120594] Key type dns_resolver registered
[ 2.126110] registered taskstats version 1
[ 2.130668] fsl_generic: FSL DPAA Generic Ethernet driver
[ 2.136296] hctosys: unable to open rtc device (rtc0)
[ 2.142370] RAMDISK: gzip image found at block 0
[ 7.946905] RAMDISK: incomplete write (5528 != 32768)
[ 7.951973] write error
[ 8.378905] VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
[ 8.385706] devtmpfs: mounted
[ 8.389093] Freeing unused kernel memory: 480K (ffff800000b3a000 - ffff800000bb2000)
[ 8.396901] Freeing alternatives memory: 48K (ffff800000bb2000 - ffff800000bbe000)
[ 8.404541] attempt to access beyond end of device
[ 8.409339] ram0: rw=0, want=662572, limit=524288
[ 8.414061] Buffer I/O error on dev ram0, logical block 331285, async page read
[ 8.421382] attempt to access beyond end of device
[ 8.426187] ram0: rw=0, want=669036, limit=524288
[ 8.430897] Buffer I/O error on dev ram0, logical block 334517, async page read
[ 8.438225] attempt to access beyond end of device
[ 8.443021] ram0: rw=0, want=674226, limit=524288
[ 8.447739] Buffer I/O error on dev ram0, logical block 337112, async page read
[ 8.455067] attempt to access beyond end of device
[ 8.459864] ram0: rw=0, want=676740, limit=524288
[ 8.464581] Buffer I/O error on dev ram0, logical block 338369, async page read
[ 8.471943] attempt to access beyond end of device
[ 8.476751] ram0: rw=0, want=677074, limit=524288
[ 8.481460] Buffer I/O error on dev ram0, logical block 338536, async page read
[ 8.488798] attempt to access beyond end of device
[ 8.493595] ram0: rw=0, want=678396, limit=524288
[ 8.498313] Buffer I/O error on dev ram0, logical block 339197, async page read
[ 8.505677] attempt to access beyond end of device
[ 8.510475] ram0: rw=0, want=653378, limit=524288
[ 8.515196] Buffer I/O error on dev ram0, logical block 326688, async page read
[ 8.522516] attempt to access beyond end of device
[ 8.527321] ram0: rw=0, want=656544, limit=524288
[ 8.532030] Buffer I/O error on dev ram0, logical block 328271, async page read
[ 8.539357] attempt to access beyond end of device
[ 8.544162] ram0: rw=0, want=660782, limit=524288
[ 8.548871] Buffer I/O error on dev ram0, logical block 330390, async page read
[ 8.556212] attempt to access beyond end of device
[ 8.561009] ram0: rw=0, want=653378, limit=524288
[ 8.565727] Buffer I/O error on dev ram0, logical block 326688, async page read
[ 8.573047] attempt to access beyond end of device
[ 8.577852] ram0: rw=0, want=656544, limit=524288
[ 8.582561] attempt to access beyond end of device
[ 8.587365] ram0: rw=0, want=660782, limit=524288
[ 8.592081] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 8.605238] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.35-rt41 #1
[ 8.611601] Hardware name: LS1012A RDB Board (DT)
[ 8.616308] Call trace:
[ 8.618764] [<ffff8000000898e4>] dump_backtrace+0x0/0x11c
[ 8.624173] [<ffff800000089a14>] show_stack+0x14/0x1c
[ 8.629236] [<ffff800000800880>] dump_stack+0x90/0xb0
[ 8.634296] [<ffff8000007ff854>] panic+0xe4/0x228
[ 8.639009] [<ffff8000007fdfd4>] create_mapping.constprop.14+0x0/0x6c
[ 8.645464] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

Outcomes