Kernel Panic in new hardware


#1

Hey there,

I’m working on getting Resin 2.12.5 working on a new device, the compulab imx7 gateway. Im getting a kernel panic at startup and it looks like it’s coming from Balena. I have aufs ported to the device, if i do overlay2 i get the same message.

Here is the git project: https://github.com/syncromatics/resin-compulab/tree/feature/update-version

Here is the logs from the failed startup:

U-Boot 2016.09-cl-som-imx7-0.91 (Apr 15 2018 - 14:10:24 -0700)

CPU:   Freescale i.MX7D rev1.2 996 MHz (running at 792 MHz)                  
CPU:   Extended Commercial temperature grade (-20C to 105C) at 26C
Reset cause: POR                        
Board: CL-SOM-iMX7 in secure mode       
I2C:   ready                            
DRAM:  1 GiB                            
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11 
NAND:  0 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected M25PX16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial
Net:   FEC0
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6219136 bytes read in 289 ms (20.5 MiB/s)
Booting from mmc ...
reading imx7d-sbc-iot-imx7.dtb
41978 bytes read in 19 ms (2.1 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x80800000 [ 0x000000 - 0x5ee580 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300d3f9

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.1.15-cl-1.0+g77f6154 (ubuntu@ci-build-1) (gcc version 5.3.0 (GCC) ) #10 SMP PREEMPT Sun Apr 15 19:50:36 PDT 2018
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: CompuLab CL-SOM-iMX7 on SB-IOT
Reserved memory: created CMA memory pool at 0xac000000, size 320 MiB
Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @ab61f000 s16844 r8192 d24116 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259840
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 698352K/1048576K available (7750K kernel code, 375K rwdata, 2624K rodata, 392K init, 438K bss, 22544K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80a29c4c   (10376 kB)
      .init : 0x80a2a000 - 0x80a8c000   ( 392 kB)
      .data : 0x80a8c000 - 0x80ae9c40   ( 376 kB)
       .bss : 0x80aec000 - 0x80b59acc   ( 439 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
        Additional per-CPU info printed with stalls.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 8.00MHz (phys).
clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
Switching to timer-based delay loop, resolution 125ns
mxc_clocksource_init 3000000
Ignoring duplicate/late registration of read_current_timer delay
clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80008280 - 0x800082f0
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (32.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
device-tree: Duplicate name in lcdif@30730000, renamed to "display#1"
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
DDR type is DDR3!
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
MU is ready for cross core communication!
mxs-dma 33000000.dma-apbh: initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
30800000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
30800000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
pca953x 1-0020: interrupt support not compiled in
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can't use DMA
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.20
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
fuse init (API version 7.23)
aufs 4.1.13+-20170220
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
MIPI DSI driver module loaded
30730000.lcdif supply lcd not found, using dummy regulator
mxsfb 30730000.lcdif: failed to find mxc display driver 
Console: switching to colour frame buffer device 128x48
mxsfb 30730000.lcdif: initialized
sil164_simple 3-0039: Error -5 reading from subaddress 0x1
sil164_simple 3-0039: Detected device 1:6.0
imx-sdma 30bd0000.sdma: no event needs to be remapped
imx-sdma 30bd0000.sdma: loaded firmware 4.2
imx-sdma 30bd0000.sdma: initialized
pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze3000 found.
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 273, base_baud = 1500000) is a IMX
console [ttymxc0] enabled
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 274, base_baud = 1500000) is a IMX
30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 275, base_baud = 5000000) is a IMX
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 281, base_baud = 5000000) is a IMX
30a90000.serial: ttymxc6 at MMIO 0x30a90000 (irq = 282, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
at24 1-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
at24 3-0054: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
m25p80 spi0.1: m25px16 (2048 Kbytes)
3 ofpart partitions found on MTD device spi0.1
Creating 3 MTD partitions on "spi0.1":
0x000000000000-0x0000000c0000 : "uboot"
0x0000000c0000-0x000000100000 : "uboot environment"
0x000000100000-0x000000200000 : "splash"
spi_imx 30820000.ecspi: probed
spi_imx 30840000.ecspi: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CAN device driver interface
30be0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30be0000.ethernet eth0: registered PHC device 0
30bf0000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 22:13:63:1f:72:e1
fec 30bf0000.ethernet eth1: registered PHC device 1
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
30b20000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
imx_usb 30b30000.usb: Can't register ci_hdrc platform device, err=-517
mousedev: PS/2 mouse device common for all mice
input: 30370000.snvs:snvs-powerkey as /devices/platform/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
rtc-em3027 1-0056: rtc core: registered rtc-em3027 as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
imx2-wdt 30280000.wdog: use WDOG_B to reboot.
imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc/aips-bus@30800000/usdhc@30b40000: voltage-ranges unspecified
sdhci-esdhc-imx 30b40000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b40000.usdhc: Got CD GPIO
sdhci-esdhc-imx 30b40000.usdhc: Got WP GPIO
sdhci-esdhc-imx 30b40000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 30b40000.usdhc: No vqmmc regulator found
mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
/soc/aips-bus@30800000/usdhc@30b60000: voltage-ranges unspecified
sdhci-esdhc-imx 30b60000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b60000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 30b60000.usdhc: No vqmmc regulator found
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
mmc0: new high speed SDHC card at address aaaa
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmcblk0: mmc0:aaaa SS04G 3.69 GiB 
 mmcblk0: p1 p2 p3 p4 < p5 p6 >
nf_conntrack version 0.5.0 (16031 buckets, 64124 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
Registering SWP/SWPB emulation handler
imx6_pcie_probe: phy_refclk = 1
mmc2: MAN_BKOPS_EN bit is not set
mmc2: new DDR MMC card at address 0001
mmcblk2: mmc2:0001 SEM04G 3.68 GiB 
mmcblk2boot0: mmc2:0001 SEM04G partition 1 2.00 MiB
mmcblk2boot1: mmc2:0001 SEM04G partition 2 2.00 MiB
mmcblk2rpmb: mmc2:0001 SEM04G partition 3 2.00 MiB
 mmcblk2: p1 p2
imx6q-pcie 33800000.pcie: phy link never came up
imx6q-pcie 33800000.pcie: failed to initialize host
imx6q-pcie: probe of 33800000.pcie failed with error -22
(stk) :sysfs entries created
ci_hdrc ci_hdrc.2: EHCI Host Controller
ci_hdrc ci_hdrc.2: new USB bus registered, assigned bus number 3
ci_hdrc ci_hdrc.2: USB 2.0 started, EHCI 1.00
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
/soc/aips-bus@30800000/usdhc@30b50000: voltage-ranges unspecified
sdhci-esdhc-imx 30b50000.usdhc: No vqmmc regulator found
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
1-001a supply AVDD not found, using dummy regulator
1-001a supply HPVDD not found, using dummy regulator
1-001a supply DCVDD not found, using dummy regulator
1-001a supply DBVDD not found, using dummy regulator
asoc-simple-card sound: wm8731-hifi <-> 308a0000.sai mapping ok
asoc-simple-card sound: ASoC: no source widget found for Line Jack
asoc-simple-card sound: ASoC: Failed to add route Line Jack -> direct -> LLINEIN
asoc-simple-card sound: ASoC: no source widget found for Line Jack
asoc-simple-card sound: ASoC: Failed to add route Line Jack -> direct -> RLINEIN
rtc-em3027 1-0056: hctosys: unable to read the hardware clock
ALSA device list:
  #0: cl-som-imx7
EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (244)
sdhci-esdhc-imx 30b50000.usdhc: card claims to support voltages below defined range
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 392K (80a2a000 - 80a8c000)
usb 3-1: new high-speed USB device number 2 using ci_hdrc
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
mmc1: new high speed SDIO card at address 0001
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 3 ports detected
random: init urandom read with 11 bits of entropy available
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
1970/01/01 00:00:02 error loading layer store:error initializing graphdriver: driver not supported
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.1.15-cl-1.0+g77f6154 #10
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<8001727c>] (unwind_backtrace) from [<80012d70>] (show_stack+0x10/0x14)
[<80012d70>] (show_stack) from [<80760878>] (dump_stack+0x80/0xc8)
[<80760878>] (dump_stack) from [<80015fe8>] (handle_IPI+0x15c/0x190)
[<80015fe8>] (handle_IPI) from [<800094e0>] (gic_handle_irq+0x58/0x60)
[<800094e0>] (gic_handle_irq) from [<80013900>] (__irq_svc+0x40/0x74)
Exception stack(0xa80a5f58 to 0xa80a5fa0)
5f40:                                                       00000000 ab631300
5f60: dc8ba30f dc8ba30f ab1215a5 00000000 00000002 ab62de18 80a8f508 80a96da8
5f80: ab77fb18 00000000 ffffffff a80a5fa0 80765914 8055b798 600f0013 ffffffff
[<80013900>] (__irq_svc) from [<8055b798>] (cpuidle_enter_state+0xd8/0x214)
[<8055b798>] (cpuidle_enter_state) from [<8006dfb4>] (cpu_startup_entry+0x1d0/0x314)
[<8006dfb4>] (cpu_startup_entry) from [<8000958c>] (__enable_mmu+0x0/0x14)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

#2

Hi, implicit storage driver is aufs, so if you intend on using aufs, this line can be removed: https://github.com/syncromatics/resin-compulab/blob/feature/update-version/layers/meta-resin-compulab/conf/samples/local.conf.sample#L4

BALENA_STORAGE is only needed when yuo want to use “overlay2”

Having said that, it is recommended to use overlay2 instead of aufs.
When using overlay2, do you see any warnings when configuring the kernel? does it complain about not being able to enable certain kernel configs?


#3

Let me reconfigure and I’ll post the boot for overlay2 here


#4

EDIT: This is the overlay2 attempt

The only complaint for kernel configs is

WARNING: linux-compulab-4.1.15-r0 do_kernel_resin_checkconfig: Checking for CONFIG_CRYPTO_LZO=m in the kernel configs failed for zram.

When i check the config from the build is has CONFIG_CRYPTO_LZO=y

The kernel config generated is here: https://gist.github.com/annymsMthd/0dd4ffe8bd32f7fbdae2973bc7721cc2

U-Boot 2016.09-cl-som-imx7-0.91 (Apr 15 2018 - 20:54:42 -0700)                                                                 
                                                                                                                               
CPU:   Freescale i.MX7D rev1.2 996 MHz (running at 792 MHz)                                                                    
CPU:   Extended Commercial temperature grade (-20C to 105C) at 25C
Reset cause: POR                        
Board: CL-SOM-iMX7 in secure mode       
I2C:   ready                            
DRAM:  1 GiB                            
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11 
NAND:  0 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected M25PX16 with page size 256 Bytes, erase size 64 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial
Net:   FEC0
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6219128 bytes read in 289 ms (20.5 MiB/s)
Booting from mmc ...
reading imx7d-sbc-iot-imx7.dtb
41978 bytes read in 19 ms (2.1 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x80800000 [ 0x000000 - 0x5ee578 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300d3f9

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.1.15-cl-1.0+g77f6154 (ubuntu@ci-build-1) (gcc version 5.3.0 (GCC) ) #5 SMP PREEMPT Mon Apr 16 11:56:55 PDT 2018
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: CompuLab CL-SOM-iMX7 on SB-IOT
Reserved memory: created CMA memory pool at 0xac000000, size 320 MiB
Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @ab61f000 s16844 r8192 d24116 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259840
Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 698352K/1048576K available (7750K kernel code, 375K rwdata, 2624K rodata, 392K init, 438K bss, 22544K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80a29c4c   (10376 kB)
      .init : 0x80a2a000 - 0x80a8c000   ( 392 kB)
      .data : 0x80a8c000 - 0x80ae9c40   ( 376 kB)
       .bss : 0x80aec000 - 0x80b59acc   ( 439 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
        Additional per-CPU info printed with stalls.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 8.00MHz (phys).
clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
Switching to timer-based delay loop, resolution 125ns
mxc_clocksource_init 3000000
Ignoring duplicate/late registration of read_current_timer delay
clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
CPU: Testing write buffer coherency: ok
/cpus/cpu@0 missing clock-frequency property
/cpus/cpu@1 missing clock-frequency property
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80008280 - 0x800082f0
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (32.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
device-tree: Duplicate name in lcdif@30730000, renamed to "display#1"
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
DDR type is DDR3!
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
MU is ready for cross core communication!
mxs-dma 33000000.dma-apbh: initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
30800000.aips-bus:usbphy_nop1 supply vcc not found, using dummy regulator
30800000.aips-bus:usbphy_nop2 supply vcc not found, using dummy regulator
pca953x 1-0020: interrupt support not compiled in
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can't use DMA
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.20
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
imx rpmsg driver is registered.
Bus freq driver module loaded
futex hash table entries: 512 (order: 3, 32768 bytes)
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
fuse init (API version 7.23)
aufs 4.1.13+-20170220
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
MIPI DSI driver module loaded
30730000.lcdif supply lcd not found, using dummy regulator
mxsfb 30730000.lcdif: failed to find mxc display driver 
Console: switching to colour frame buffer device 128x48
mxsfb 30730000.lcdif: initialized
sil164_simple 3-0039: Error -5 reading from subaddress 0x1
sil164_simple 3-0039: Detected device 1:6.0
imx-sdma 30bd0000.sdma: no event needs to be remapped
imx-sdma 30bd0000.sdma: loaded firmware 4.2
imx-sdma 30bd0000.sdma: initialized
pfuze100-regulator 1-0008: Full layer: 1, Metal layer: 1
pfuze100-regulator 1-0008: FAB: 0, FIN: 0
pfuze100-regulator 1-0008: pfuze3000 found.
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 273, base_baud = 1500000) is a IMX
console [ttymxc0] enabled
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 274, base_baud = 1500000) is a IMX
30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 275, base_baud = 5000000) is a IMX
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 281, base_baud = 5000000) is a IMX
30a90000.serial: ttymxc6 at MMIO 0x30a90000 (irq = 282, base_baud = 5000000) is a IMX
imx sema4 driver is registered.
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
at24 1-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
at24 3-0054: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
m25p80 spi0.1: m25px16 (2048 Kbytes)
3 ofpart partitions found on MTD device spi0.1
Creating 3 MTD partitions on "spi0.1":
0x000000000000-0x0000000c0000 : "uboot"
0x0000000c0000-0x000000100000 : "uboot environment"
0x000000100000-0x000000200000 : "splash"
spi_imx 30820000.ecspi: probed
spi_imx 30840000.ecspi: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CAN device driver interface
30be0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30be0000.ethernet eth0: registered PHC device 0
30bf0000.ethernet supply phy not found, using dummy regulator
pps pps1: new PPS source ptp1
fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
fec 30bf0000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: a2:bb:0b:96:f2:66
fec 30bf0000.ethernet eth1: registered PHC device 1
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver smsc75xx
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver MOSCHIP usb-ethernet driver
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
30b20000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
imx_usb 30b30000.usb: Can't register ci_hdrc platform device, err=-517
mousedev: PS/2 mouse device common for all mice
input: 30370000.snvs:snvs-powerkey as /devices/platform/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
rtc-em3027 1-0056: rtc core: registered rtc-em3027 as rtc0
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
imx2-wdt 30280000.wdog: use WDOG_B to reboot.
imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc/aips-bus@30800000/usdhc@30b40000: voltage-ranges unspecified
sdhci-esdhc-imx 30b40000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b40000.usdhc: Got CD GPIO
sdhci-esdhc-imx 30b40000.usdhc: Got WP GPIO
sdhci-esdhc-imx 30b40000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 30b40000.usdhc: No vqmmc regulator found
mmc0: SDHCI controller on 30b40000.usdhc [30b40000.usdhc] using ADMA
/soc/aips-bus@30800000/usdhc@30b60000: voltage-ranges unspecified
sdhci-esdhc-imx 30b60000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b60000.usdhc: No vmmc regulator found
sdhci-esdhc-imx 30b60000.usdhc: No vqmmc regulator found
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
mmc0: new high speed SDHC card at address aaaa
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
mmcblk0: mmc0:aaaa SS04G 3.69 GiB 
 mmcblk0: p1 p2 p3 p4 < p5 p6 >
nf_conntrack version 0.5.0 (16031 buckets, 64124 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Key type dns_resolver registered
cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
Registering SWP/SWPB emulation handler
imx6_pcie_probe: phy_refclk = 1
mmc2: MAN_BKOPS_EN bit is not set
mmc2: new DDR MMC card at address 0001
mmcblk2: mmc2:0001 SEM04G 3.68 GiB 
mmcblk2boot0: mmc2:0001 SEM04G partition 1 2.00 MiB
mmcblk2boot1: mmc2:0001 SEM04G partition 2 2.00 MiB
mmcblk2rpmb: mmc2:0001 SEM04G partition 3 2.00 MiB
 mmcblk2: p1 p2
imx6q-pcie 33800000.pcie: phy link never came up
imx6q-pcie 33800000.pcie: failed to initialize host
imx6q-pcie: probe of 33800000.pcie failed with error -22
(stk) :sysfs entries created
ci_hdrc ci_hdrc.2: EHCI Host Controller
ci_hdrc ci_hdrc.2: new USB bus registered, assigned bus number 3
ci_hdrc ci_hdrc.2: USB 2.0 started, EHCI 1.00
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
/soc/aips-bus@30800000/usdhc@30b50000: voltage-ranges unspecified
sdhci-esdhc-imx 30b50000.usdhc: No vqmmc regulator found
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
1-001a supply AVDD not found, using dummy regulator
1-001a supply HPVDD not found, using dummy regulator
1-001a supply DCVDD not found, using dummy regulator
1-001a supply DBVDD not found, using dummy regulator
asoc-simple-card sound: wm8731-hifi <-> 308a0000.sai mapping ok
asoc-simple-card sound: ASoC: no source widget found for Line Jack
asoc-simple-card sound: ASoC: Failed to add route Line Jack -> direct -> LLINEIN
asoc-simple-card sound: ASoC: no source widget found for Line Jack
asoc-simple-card sound: ASoC: Failed to add route Line Jack -> direct -> RLINEIN
rtc-em3027 1-0056: hctosys: unable to read the hardware clock
ALSA device list:
  #0: cl-som-imx7
EXT3-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
usb 3-1: new high-speed USB device number 2 using ci_hdrc
EXT2-fs (mmcblk0p2): error: couldn't mount because of unsupported optional features (240)
sdhci-esdhc-imx 30b50000.usdhc: card claims to support voltages below defined range
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
VFS: Mounted root (ext4 filesystem) on device 179:2.
mmc1: new high speed SDIO card at address 0001
devtmpfs: mounted
Freeing unused kernel memory: 392K (80a2a000 - 80a8c000)
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 3 ports detected
random: init urandom read with 12 bits of entropy available
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
1970/01/01 00:00:02 error loading layer store:error initializing graphdriver: driver not supported
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.1.15-cl-1.0+g77f6154 #5
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<8001727c>] (unwind_backtrace) from [<80012d70>] (show_stack+0x10/0x14)
[<80012d70>] (show_stack) from [<80760878>] (dump_stack+0x80/0xc8)
[<80760878>] (dump_stack) from [<80015fe8>] (handle_IPI+0x15c/0x190)
[<80015fe8>] (handle_IPI) from [<800094e0>] (gic_handle_irq+0x58/0x60)
[<800094e0>] (gic_handle_irq) from [<80013900>] (__irq_svc+0x40/0x74)
Exception stack(0xa80a5f58 to 0xa80a5fa0)
5f40:                                                       00000000 ab631300
5f60: dc8ba30f dc8ba30f afd7db92 00000000 00000002 ab62de18 80a8f508 80a96da8
5f80: b03cb37d 00000000 ffffffff a80a5fa0 80765914 8055b798 600f0013 ffffffff
[<80013900>] (__irq_svc) from [<8055b798>] (cpuidle_enter_state+0xd8/0x214)
[<8055b798>] (cpuidle_enter_state) from [<8006dfb4>] (cpu_startup_entry+0x1d0/0x314)
[<8006dfb4>] (cpu_startup_entry) from [<8000958c>] (__enable_mmu+0x0/0x14)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

Still getting the same error


#5

Is there perhaps a way to increase the logging of balena?


#6

I think the problem lies here: https://github.com/syncromatics/resin-compulab/blob/feature/update-version/layers/meta-resin-compulab/recipes-core/images/resin-image.bbappend#L12

You should be using the kernel with the embedded resin initramfs instead:

{KERNEL_IMAGETYPE}{KERNEL_INITRAMFS}-{MACHINE}.bin:/{KERNEL_IMAGETYPE} \


#7

Awesome that was it! Thank you very much!


#8

You are welcome