Kernel panic - not syncing: Attempted to kill init!

On our own board based on iMX7 Dual uCOM from Embedded Artists we built our own balena image with yocto using our BSP (cloudplugedge) and the balena yocto layers meta-balena, meta-rust and poky.

We built the images “resin-image” and “resin-image-flasher” with the following yocto configuration:

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "cloudplugedge"
DISTRO               = "balena-os"
DISTRO_VERSION       = "2.36.0"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"
TARGET_FPU           = "hard"
meta
meta-poky            = "HEAD:1cab405d88149fd63322a867c6adb4a80ba68db3"
meta-oe
meta-filesystems
meta-networking
meta-python          = "HEAD:4cd3a39f22a2712bfa8fc657d09fe2c7765a4005"
meta-cloudplugedge   = "master:f617c8111ed57da6a94f181da54a57d4df1978df"
meta-balena-cloudplugedge = "master:af53c7705f909af28efdcd1916b624078b2c932e"
meta-freescale       = "<unknown>:<unknown>"
meta-resin-common
meta-balena-thud     = "HEAD:2fc8e3c0534277a0ab078fbd830ef060f7828540"
meta-rust            = "HEAD:84710b341be53cc2af13ecc8ae87773cf84687bf"

After burning the whole resin-image-cloudplugedge.resinos-img onto MMC with the MfG-Tool from Embedded Artists and adding kernel and device tree file on boot partition the system boots but we get the error in the boot log:

...
ALSA device list:
  No soundcards found.
EXT4-fs (mmcblk2p2): recovery complete 
EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
2000/01/01 12:06:18 could not get mounts:open /proc/self/mountinfo: no such file or directory
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

For my understanding the init process /sbin/init (which is a symbolic link to /current/boot/init) returns unexpected with code x100. I have no chance to say why. Due to the boot log I guess systemd tries to get mount info from /proc FS but this is not mounted yet.

After burning the flasher image “resin-image-flasher” with the MfG-Tool the OS starts:

...
Freeing unused kernel memory: 1024K
systemd[1]: System time before build time, advancing clock.
systemd[1]: systemd 239 running in system mode. (-PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
systemd[1]: Detected architecture arm.

Welcome to balenaOS 2.36.0+rev2!

systemd[1]: No hostname configured.
systemd[1]: Set hostname to <localhost>.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Initializing machine ID from random generator.
systemd[1]: Hardware watchdog 'imx2+ watchdog', version 0
systemd[1]: Set hardware watchdog to 10s.
systemd[1]: File /lib/systemd/system/systemd-journald.service:36 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
random: systemd: uninitialized urandom read (16 bytes read)
[  OK  ] Listening on udev Control Socket.
.....

Has anyone an idea what’s the reason for this behavior. How can I achieve that the /proc FS ist mounted first?

1 Like

Can you share the yocto layers so we can have a look?

The link to our layer files as tar archive:

The Freescale layer:
https://github.com/Freescale/meta-freescale

Hi. Is your board able to boot from an USB thumb drive? If yes, you would only need Mfg Tools to write a bootloader to the board f it does not come with one. If your board already has a bootloader and it is able to boot from an USB drive, then you should write the flasher image to the USB drive and boot that image. The flasher image is an installer which will install balenaOS into the internal media, provided you also declare your board’s internal media such as here for example: https://github.com/balena-os/balena-asus-tinker-board/blob/master/layers/meta-balena-asus-tinker-board/recipes-support/resin-init/resin-init-flasher.bbappend

I believe these commands run from the u-boot shell will make your board boot off the USB thumb drive:

usb start
fatload usb 0:1 0x10800000 <your kernel image>
fatload usb 0:1 0x18000000 <your dtb>
setenv bootargs 'root=/dev/sda2 rootfstype=ext4 rootwait console=ttymxc0,115200n8'
bootz 0x10800000 - 0x18000000

Also, make sure you build a development image so that you can access the board over the serial connection (if available and set-up correctly - the above ttymxc0 is just an example from another board)

Hi, thanks for the reply.
Using USB boot is a nice idea for booting the flasher image having the MMC unused and available for flashing onto it.
But I believe it will not solve our problem: The 2 step way “boot flasher image -> burn with Resin init flasher service” I’ve tested by booting the flasher system via NFS-boot and manual starting the flasher service with slight modification. After successful run the new boot of the final balena image raised the same error as booting the balena image burned with Mfg tool.

Is there any functional difference in this two proceedings? Have I overlooked any step in the flasher service which have to be done by burning with Mfg tool?
Burning the final “resin-image” with Mfg tool should work in general, isn’t it? I believe the issue is in the “resin-image” itself.
I’ve build a development image and have access to the board over the serial interface but in case of kernel panic this does not help …

Hi,

Could you please paste the full boot log?

The full boot log:

Starting kernel …

Booting Linux on physical CPU 0x0
Linux version 4.14.78-1.0.0+g87ab26fffb48 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Tue Jun 4 09:32:00 UTC 2019
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Embedded Artists i.MX7 Dual uCOM Kit
Memory policy: Data cache writealloc
Reserved memory: created CMA memory pool at 0xac000000, size 320 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
percpu: Embedded 16 pages/cpu @ab618000 s35468 r8192 d21876 u65536
Built 1 zonelists, mobility grouping on. Total pages: 259840

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw brcmfmac.sdio_wq_highpri=1

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: 692512K/1048576K available (11264K kernel code, 545K rwdata, 3568K rodata, 1024K init, 456K bss, 28384K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80c00000 (12256 kB)
.init : 0x81000000 - 0x81100000 (1024 kB)
.data : 0x81100000 - 0x811885a0 ( 546 kB)
.bss : 0x8118a000 - 0x811fc2e0 ( 457 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
arch_timer: 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
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
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs …
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated (32.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
OF: Duplicate name in lcdif@30730000, renamed to “display#1”
random: get_random_u32 called from bucket_table_alloc+0x100/0x230 with crng_init=0
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
futex hash table entries: 512 (order: 3, 32768 bytes)
xor: measuring software checksum speed
arm4regs : 992.400 MB/sec
8regs : 689.200 MB/sec
32regs : 634.800 MB/sec
xor: using function: arm4regs (992.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
vdd1p0d: supplied by regulator-dummy
vdd1p2: supplied by regulator-dummy
DDR type is LPDDR3!
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!
raid6: int32x1 gen() 141 MB/s
raid6: int32x1 xor() 129 MB/s
raid6: int32x2 gen() 183 MB/s
raid6: int32x2 xor() 136 MB/s
raid6: int32x4 gen() 182 MB/s
raid6: int32x4 xor() 128 MB/s
raid6: int32x8 gen() 169 MB/s
raid6: int32x8 xor() 119 MB/s
raid6: using algorithm int32x2 gen() 183 MB/s
raid6: … xor() 136 MB/s, rmw enabled
raid6: using intx1 recovery algorithm
GPIO line 8 (SD1 VSELECT) hogged as output/high
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb_phy_generic 30800000.aips-bus:usbphynop1: 30800000.aips-bus:usbphynop1 supply vcc not found, using dummy regulator
usb_phy_generic 30800000.aips-bus:usbphynop2: 30800000.aips-bus:usbphynop2 supply vcc not found, using dummy regulator
bd7181x 0-004b: BD7181x: Device ID=0x41
bd7181x->chip_irq=85
random: fast init done
bd7181x-pmic bd7181x-pmic: Buck0: I2C DVS Enabled !
bd7181x-pmic bd7181x-pmic: Buck0: DVS High-Low[1150000 - 950000].
bd7181x-pmic bd7181x-pmic: Buck1: I2C DVS Enabled !
bd7181x-pmic bd7181x-pmic: Buck1: DVS High-Low[1150000 - 950000].
i2c i2c-0: Failed to register i2c client sitronix_i2c at 0x55 (-16)
i2c i2c-0: of_i2c: Failure registering /soc/aips-bus@30800000/i2c@30a20000/sitronix_rgb
i2c i2c-0: Failed to create I2C device for /soc/aips-bus@30800000/i2c@30a20000/sitronix_rgb
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can’t use DMA, using PIO instead.
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can’t use DMA, using PIO instead.
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can’t use DMA, using PIO instead.
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
MIPI CSI2 driver module loaded
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
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
clocksource: Switched to clocksource arch_sys_counter
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
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.
Bus freq driver module loaded
workingset: timestamp_bits=14 max_order=18 bucket_order=4
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.26)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
pwm-backlight backlight: backlight supply power not found, using dummy regulator
mxsfb 30730000.lcdif: 30730000.lcdif supply lcd not found, using dummy regulator
Console: switching to colour frame buffer device 100x30
sii902x bound to mxs-lcdif from 30730000.lcdif
mxsfb 30730000.lcdif: initialized
imx-sdma 30bd0000.sdma: no iram assigned, using external mem
imx-sdma 30bd0000.sdma: Falling back to user helper
mxs-dma 33000000.dma-apbh: initialized
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 51, base_baud = 1500000) is a IMX
console [ttymxc0] enabled
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 52, base_baud = 5000000) is a IMX
30880000.serial: ttymxc2 at MMIO 0x30880000 (irq = 53, base_baud = 500000) is a IMX
imx sema4 driver is registered.
[drm] Initialized vivante 1.0.0 20120216 for platform:Vivante GCCore on minor 0
[drm] Initialized vivante 1.0.0 20120216 on minor 0
brd: module loaded
loop: module loaded
at24 0-0055: 8192 byte 24c64 EEPROM, writable, 32 bytes/write
fsl-quadspi 30bb0000.qspi: unrecognized JEDEC id bytes: ff, ff, ff
fsl-quadspi 30bb0000.qspi: Freescale QuadSPI probe failed
fsl-quadspi: probe of 30bb0000.qspi failed with error -2
libphy: Fixed MDIO Bus: probed
vcan: Virtual CAN interface driver
CAN device driver interface
flexcan 30a00000.can: device registered (reg_base=f5a00000, irq=55)
flexcan 30a10000.can: device registered (reg_base=f5a10000, irq=56)
fec 30be0000.ethernet: 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
usbcore: registered new interface driver rtl8192cu
usbcore: registered new interface driver qmi_wwan
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 cdc_wdm
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usb_ehset_test
usbmisc_imx 30b10200.usbmisc: 30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
usbmisc_imx 30b30200.usbmisc: 30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
usbmisc_imx 30b20200.usbmisc: 30b20200.usbmisc supply vbus-wakeup 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 1
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
input: 30370000.snvs:snvs-powerkey as /devices/soc0/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
input: ar1021 I2C Touchscreen as /devices/soc0/soc/30800000.aips-bus/30a20000.i2c/i2c-0/0-004d/input/input1
ilitek_init, add i2c device, success
ilitek_init, no i2c board information
Sitronix touch driver 2.9.15
Release date: 20140916
bd7181x-rtc bd7181x-rtc: rtc core: registered bd7181x-rtc as rtc0
snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs-rtc-lp as rtc1
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
pxp-v4l2 pxp_v4l2_out: initialized
bd7181x-power bd7181x-power: battery_cycle = 0
(NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
bd7181x 0-004b: bd7181x_power_interrupt() in.
bd7181x 0-004b: INT_STAT_03 = 0x02
bd7181x 0-004b:

bd7181x 0-004b: bd7181x_vbat_interrupt() in.
bd7181x 0-004b: INT_STAT_08 = 0x02
bd7181x 0-004b: 
~~~ VBAT LOW Detected ... 
bd7181x-power bd7181x-power: BD7181X_REG_INT_EN_11=0xff
imx2-wdt 30280000.wdog: timeout 60 sec (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
bd7181x 0-004b: bd7181x_vbat_interrupt() in.
bd7181x 0-004b: INT_STAT_08 = 0x01
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
bd7181x 0-004b: 
~~~ VBAT LOW Resumed ... 
sdhci-esdhc-imx 30b50000.usdhc: Got CD GPIO
mmc1: SDHCI controller on 30b50000.usdhc [30b50000.usdhc] using ADMA
usb 1-1: new high-speed USB device number 2 using ci_hdrc
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
caam 30900000.caam: ERA source: CCBVID.
caam 30900000.caam: device ID = 0x0a16030000000000 (Era 8)
caam 30900000.caam: job rings = 3, qi = 0, dpaa2 = no
caam algorithms registered in /proc/crypto
caam_jr 30901000.jr0: registering rng-caam
caam 30900000.caam: caam pkc algorithms registered in /proc/crypto
platform caam_sm: blkkey_ex: 8 keystore units available
platform caam_sm: 64-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: 64-bit black key:
platform caam_sm: [0000] c7 4c e7 df f9 73 06 7c
platform caam_sm: [0008] 43 f9 32 87 3d 58 ae 4a
platform caam_sm: 128-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: 128-bit black key:
platform caam_sm: [0000] 9e 2e 23 cc 89 a1 15 d6
platform caam_sm: [0008] 6f ab 9a fe f6 d8 c8 1e
platform caam_sm: 192-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: [0016] 10 11 12 13 14 15 16 17
platform caam_sm: 192-bit black key:
platform caam_sm: [0000] 06 7e cc b8 26 cd da f2
platform caam_sm: [0008] ea 6b 47 e0 6a c0 ed 71
platform caam_sm: [0016] 69 2e 5e 45 7e 08 24 35
platform caam_sm: [0024] 39 40 23 d7 c8 29 26 ed
mmc2: new HS400 MMC card at address 0001
mmcblk2: mmc2:0001 Q2J95Q 7.28 GiB 
mmcblk2boot0: mmc2:0001 Q2J95Q partition 1 4.00 MiB
mmcblk2boot1: mmc2:0001 Q2J95Q partition 2 4.00 MiB
mmcblk2rpmb: mmc2:0001 Q2J95Q partition 3 4.00 MiB
 mmcblk2: p1 p2 p3 p4 < p5 p6 >
platform caam_sm: 256-bit clear key:
platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
platform caam_sm: [0016] 10 11 12 13 14 15 16 17
platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
platform caam_sm: 256-bit black key:
platform caam_sm: [0000] 33 5f 7c 54 22 0e dc 70
platform caam_sm: [0008] aa cc b7 7c 6e de 2f 13
platform caam_sm: [0016] 51 b9 26 ba 76 88 31 f0
platform caam_sm: [0024] 10 de 49 cb 9e 18 60 38
platform caam_sm: 64-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 128-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 196-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 256-bit unwritten blob:
platform caam_sm: [0000] 00 00 00 00 00 00 00 00
platform caam_sm: [0008] 00 00 00 00 00 00 00 00
platform caam_sm: [0016] 00 00 00 00 00 00 00 00
platform caam_sm: [0024] 00 00 00 00 00 00 00 00
platform caam_sm: [0032] 00 00 00 00 00 00 00 00
platform caam_sm: [0040] 00 00 00 00 00 00 00 00
platform caam_sm: [0048] 00 00 00 00 00 00 00 00
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 64-bit black key in blob:
platform caam_sm: [0000] 61 c4 ee d2 a7 aa bb e1
platform caam_sm: [0008] 22 cb ef 6a 64 aa d9 12
platform caam_sm: [0016] ba 36 32 1c 1a 4f ef f8
platform caam_sm: [0024] 90 cf c6 a9 39 1e ae f7
platform caam_sm: [0032] ba 5b b2 55 72 c0 51 47
platform caam_sm: [0040] a2 2f 98 20 f7 ef 1b 30
platform caam_sm: [0048] 64 80 eb c9 2f f3 2a 97
platform caam_sm: [0056] 00 00 00 00 00 00 00 00
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 128-bit black key in blob:
platform caam_sm: [0000] b9 26 4a 0a 36 f2 ad 9c
platform caam_sm: [0008] 99 d4 3b de 9b fc ea 56
platform caam_sm: [0016] 6e e4 84 ff 98 ad 92 44
platform caam_sm: [0024] b3 d9 42 22 1e 7d 21 1b
platform caam_sm: [0032] 51 bb 98 b5 21 0f 4b e4
platform caam_sm: [0040] 31 71 27 44 51 a2 34 6f
platform caam_sm: [0048] 72 52 ea ba 93 d4 26 34
platform caam_sm: [0056] 56 a7 db 48 0a 61 b3 d2
platform caam_sm: [0064] 00 00 00 00 00 00 00 00
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 192-bit black key in blob:
platform caam_sm: [0000] 57 ff b0 e3 69 08 25 b1
platform caam_sm: [0008] 81 18 d4 50 a4 58 a5 77
platform caam_sm: [0016] 20 14 7f 9a 75 8c b5 24
platform caam_sm: [0024] 21 2c 3c 4f 4b 7c 11 db
platform caam_sm: [0032] f3 ef f0 4d 81 2c af c8
platform caam_sm: [0040] 94 70 07 a0 86 3a 6a ea
platform caam_sm: [0048] 19 4e 12 8c 0c 50 d8 52
platform caam_sm: [0056] 72 13 49 0a f9 cb a4 85
platform caam_sm: [0064] f0 0f b6 e1 0a 1c 6f 94
platform caam_sm: [0072] 00 00 00 00 00 00 00 00
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: 256-bit black key in blob:
platform caam_sm: [0000] 07 fb 22 f9 27 a8 7a 9e
platform caam_sm: [0008] d4 1d a6 26 48 70 56 fb
platform caam_sm: [0016] 90 9c b6 bb 74 4c 74 b2
platform caam_sm: [0024] 1c 95 ed 9a dd f5 c6 59
platform caam_sm: [0032] 20 bf a8 11 e8 e9 b9 5c
platform caam_sm: [0040] 68 9a 95 86 cb 2c 9f 0c
platform caam_sm: [0048] 8b 4c 0b d7 59 45 58 89
platform caam_sm: [0056] ef e6 65 4f a0 f0 c9 75
platform caam_sm: [0064] a2 53 87 ba 19 3d 2d 04
platform caam_sm: [0072] b8 61 16 d8 42 f7 78 ae
platform caam_sm: [0080] 00 00 00 00 00 00 00 00
platform caam_sm: [0088] 00 00 00 00 00 00 00 00
platform caam_sm: restored 64-bit black key:
platform caam_sm: [0000] 05 6c 8b bd fc df 3c 3b
platform caam_sm: [0008] d6 7f fb 4a da 1c 81 c5
platform caam_sm: restored 128-bit black key:
platform caam_sm: [0000] 9e 2e 23 cc 89 a1 15 d6
platform caam_sm: [0008] 6f ab 9a fe f6 d8 c8 1e
platform caam_sm: restored 192-bit black key:
platform caam_sm: [0000] 06 7e cc b8 26 cd da f2
platform caam_sm: [0008] ea 6b 47 e0 6a c0 ed 71
platform caam_sm: [0016] 99 63 c9 ee 32 70 18 08
platform caam_sm: [0024] 7d 9a 7d 17 3e b5 c5 84
platform caam_sm: restored 256-bit black key:
platform caam_sm: [0000] 33 5f 7c 54 22 0e dc 70
platform caam_sm: [0008] aa cc b7 7c 6e de 2f 13
platform caam_sm: [0016] 51 b9 26 ba 76 88 31 f0
platform caam_sm: [0024] 10 de 49 cb 9e 18 60 38
caam-snvs 30370000.caam-snvs: can't get snvs clock
caam-snvs 30370000.caam-snvs: violation handlers armed - non-secure state
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
wm8731 0-001a: Assuming static MCLK
wm8731 0-001a: 0-001a supply AVDD not found, using dummy regulator
wm8731 0-001a: 0-001a supply HPVDD not found, using dummy regulator
wm8731 0-001a: 0-001a supply DCVDD not found, using dummy regulator
wm8731 0-001a: 0-001a supply DBVDD not found, using dummy regulator
wm8731 0-001a: Failed to issue reset: -6
imx-wm8731 sound: ASoC: CODEC DAI wm8731-hifi not registered
imx-wm8731 sound: snd_soc_register_card failed (-517)
NET: Registered protocol family 26
Initializing XFRM netlink socket
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
Btrfs loaded, crc32c=crc32c-generic
(NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
imx_thermal 30000000.aips-bus:tempmon: Commercial CPU temperature grade - max:95C critical:90C passive:85C
imx-wm8731 sound: ASoC: CODEC DAI wm8731-hifi not registered
imx-wm8731 sound: snd_soc_register_card failed (-517)
bd7181x-rtc bd7181x-rtc: setting system clock to 2000-01-01 12:06:18 UTC (946728378)
usb_otg1_vbus: disabling
can2-3v3: disabling
VDD_SD2: disabling
ALSA device list:
  No soundcards found.
EXT4-fs (mmcblk2p2): recovery complete
EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
2000/01/01 12:06:18 could not get mounts:open /proc/self/mountinfo: no such file or directory
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.78-1.0.0+g87ab26fffb48 #1
Hardware name: Freescale i.MX7 Dual (Device Tree)
[<8010f9b0>] (unwind_backtrace) from [<8010b288>] (show_stack+0x10/0x14)
[<8010b288>] (show_stack) from [<80b2a59c>] (dump_stack+0x78/0x8c)
[<80b2a59c>] (dump_stack) from [<8010e80c>] (handle_IPI+0x180/0x1ac)
[<8010e80c>] (handle_IPI) from [<80101504>] (gic_handle_irq+0x8c/0x90)
[<80101504>] (gic_handle_irq) from [<8010bfcc>] (__irq_svc+0x6c/0xa8)
Exception stack(0x81101f18 to 0x81101f60)
1f00:                                                       00000000 ab623200
1f20: 00000001 ab623200 ffffe000 81103d7c 00000001 00000001 ab61f528 00000001
1f40: 43b0a696 434bad77 00000000 81101f68 80b41ce4 8084c940 200f0013 ffffffff
[<8010bfcc>] (__irq_svc) from [<8084c940>] (cpuidle_enter_state+0x88/0x300)
[<8084c940>] (cpuidle_enter_state) from [<8016965c>] (do_idle+0x1b8/0x200)
[<8016965c>] (do_idle) from [<8016995c>] (cpu_startup_entry+0x18/0x1c)
[<8016995c>] (cpu_startup_entry) from [<81000c78>] (start_kernel+0x3a4/0x3b0)
---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

Hi Andreas,

I found your problem. In the kernel command line: Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw brcmfmac.sdio_wq_highpri=1.

The root parameter should be of type root=PARTUUID=9fb1643b-02 and not root=/dev/mmcblk2p2.

This means that you are lacking the Balena u-boot intergration patches. If you do have these patches applied then it means that the u-boot doesn’t run the Balena commands.

This is how the Balena u-boot patches look like:

Thanks, for the response but it does not solve the problem.
I’ve identified the PARTUUID used for the Partition 2 of the Balena Image and manual booted the system on u-boot prompt.
The kernel cmdline is now:

Kernel command line: console=ttymxc0,115200 root=PARTUUID=a37d30bb-02 rootwait rw brcmfmac.sdio_wq_highpri=1

This results in the same error behavior as reported:

Freeing unused kernel memory: 1024K
2000/01/01 12:00:28 could not get mounts:open /proc/self/mountinfo: no such file or directory
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

To verify the correctness and effectiveness of the used PARTUUID I did two more tests:
1.) PARTUUID=a37d30bb-01 – that is the BOOT partition and must raise an error
→ boot log

ALSA device list:
No soundcards found.
List of all partitions:
0100 65536 ram0
(driver?)

010f 65536 ram15
(driver?)
b300 7634944 mmcblk2
driver: mmcblk
b301 40960 mmcblk2p1 a37d30bb-01

b302 319488 mmcblk2p2 a37d30bb-02

b303 319488 mmcblk2p3 a37d30bb-03

b304 1 mmcblk2p4

b305 20480 mmcblk2p5 a37d30bb-05

b306 1052672 mmcblk2p6 a37d30bb-06

b318 4096 mmcblk2rpmb
(driver?)
b310 4096 mmcblk2boot1
(driver?)
b308 4096 mmcblk2boot0
(driver?)
No filesystem could mount root, tried:
ext3
ext4
ext2
fuseblk

2.) PARTUUID=a37d3000-02 – wrong disc ID → non existent partition

ALSA device list:
No soundcards found.
Waiting for root device PARTUUID=a37d30aa-02…

Your mentioned patch for the yocto build I’ve not applied since I manually boot the board for test purposes

Dear balena team, do you have any other ideas how to get this resolved? We are stuck.
Thanks a lot!

Hi, I’m facing the exactly same issue while porting to STM32MP157. I did every U-Boot patches (I believe) mentioned here, but init still complains there is no /proc/self/mountinfo.

Here is my full boot message after firing U-Boot booting command:

U-BOOT-STM32MP> run bootcmd 
Scanning mmc devices 0 1 2
** Unable to read file resin-image-flasher **
24 bytes read in 0 ms
Card did not respond to voltage select!
Found resin image on mmc 0
Loading resinOS_uEnv.txt from mmc device 0 partition 4
** Unable to read file resinOS_uEnv.txt **
Loading bootcount.env from mmc device 0 partition 4
** Unable to read file bootcount.env **
No bootcount.env file. Setting bootcount=0 in environment
70485 bytes read in 5 ms (13.4 MiB/s)
6772656 bytes read in 314 ms (20.6 MiB/s)
## Booting kernel from Legacy Image at c2000000 ...
Image Name:   Linux-4.19.9
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    6772592 Bytes = 6.5 MiB
Load Address: c2000040
Entry Point:  c2000040
Verifying Checksum ... OK
## Flattened Device Tree blob at c4000000
Booting using the fdt blob at 0xc4000000
XIP Kernel Image ... OK
Using Device Tree in place at c4000000, end c4014354

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.9 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP PREEMPT Mon Sep 2 11:51:50 UTC 2019
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STMicroelectronics STM32MP157C-DK2 configured to run M4 examples
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created DMA memory pool at 0x10000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram2@0x10000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10040000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring0@10040000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10042000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0vring1@10042000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x10044000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@10044000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x30000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node mcuram@0x30000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x38000000, size 0 MiB
[    0.000000] OF: reserved mem: initialized node retram@0x38000000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 128 MiB at 0xd4000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x494 with crng_init=0
[    0.000000] percpu: Embedded 17 pages/cpu @(ptrval) s40524 r8192 d20916 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: root=PARTUUID=fd37e09a-176c-433b-97c1-59f72719afa7 rootwait rw console=ttySTM0,115200 rootfstype=ext4
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 306120K/458752K available (10240K kernel code, 830K rwdata, 2876K rodata, 1024K init, 216K bss, 21560K reserved, 131072K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff800000   ( 560 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (11232 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 831 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 217 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] /soc/interrupt-controller@5000d000: bank0
[    0.000000] /soc/interrupt-controller@5000d000: bank1
[    0.000000] /soc/interrupt-controller@5000d000: bank2
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000028] Switching to timer-based delay loop, resolution 41ns
[    0.001954] Console: colour dummy device 80x30
[    0.002009] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.002033] pid_max: default: 32768 minimum: 301
[    0.002282] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002302] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003323] CPU: Testing write buffer coherency: ok
[    0.003827] CPU0: update cpu_capacity 1024
[    0.003849] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.059772] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.079759] rcu: Hierarchical SRCU implementation.
[    0.119910] smp: Bringing up secondary CPUs ...
[    0.200517] CPU1: update cpu_capacity 1024
[    0.200529] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.200738] smp: Brought up 1 node, 2 CPUs
[    0.200768] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.200779] CPU: All CPU(s) started in SVC mode.
[    0.201956] devtmpfs: initialized
[    0.228710] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.229217] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.229251] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.235299] pinctrl core: initialized pinctrl subsystem
[    0.237439] NET: Registered protocol family 16
[    0.243153] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.245657] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.245679] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.245959] Serial: AMBA PL011 UART driver
[    0.248148] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
[    0.248184] stm32-pm-domain pm_domain: subdomain core-power-domain registered
[    0.248200] stm32-pm-domain pm_domain: domains probed
[    0.262447] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOA bank added
[    0.262811] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOB bank added
[    0.263095] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOC bank added
[    0.263381] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOD bank added
[    0.263661] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOE bank added
[    0.263928] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOF bank added
[    0.264193] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOG bank added
[    0.264484] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOH bank added
[    0.264770] stm32mp157-pinctrl soc:pin-controller@50002000: GPIOI bank added
[    0.264981] stm32mp157-pinctrl soc:pin-controller@50002000: Pinctrl STM32 initialized
[    0.265814] stm32mp157-pinctrl soc:pin-controller-z@54004000: GPIOZ bank added
[    0.265843] stm32mp157-pinctrl soc:pin-controller-z@54004000: Pinctrl STM32 initialized
[    0.286241] stm32-mdma 58000000.dma: STM32 MDMA driver registered
[    0.291343] SCSI subsystem initialized
[    0.292105] usbcore: registered new interface driver usbfs
[    0.292187] usbcore: registered new interface driver hub
[    0.292330] usbcore: registered new device driver usb
[    0.292644] pps_core: LinuxPPS API ver. 1 registered
[    0.292658] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.292691] PTP clock support registered
[    0.292974] EDAC MC: Ver: 3.0.0
[    0.293852] Advanced Linux Sound Architecture Driver Initialized.
[    0.295536] clocksource: Switched to clocksource arch_sys_counter
[    0.389823] NET: Registered protocol family 2
[    0.391003] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.391056] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.391123] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.391221] TCP: Hash tables configured (established 4096 bind 4096)
[    0.391364] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.391411] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.391720] NET: Registered protocol family 1
[    0.392672] RPC: Registered named UNIX socket transport module.
[    0.392693] RPC: Registered udp transport module.
[    0.392704] RPC: Registered tcp transport module.
[    0.392715] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.393834] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.396078] Initialise system trusted keyrings
[    0.396443] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.407828] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.408678] NFS: Registering the id_resolver key type
[    0.408729] Key type id_resolver registered
[    0.408741] Key type id_legacy registered
[    0.408962] jffs2: version 2.2. (NAND)  2001-2006 Red Hat, Inc.
[    0.409898] fuse init (API version 7.27)
[    0.410592] pstore: using deflate compression
[    0.413499] NET: Registered protocol family 38
[    0.413531] Key type asymmetric registered
[    0.413544] Asymmetric key parser 'x509' registered
[    0.413639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.413657] io scheduler noop registered
[    0.413670] io scheduler deadline registered
[    0.413931] io scheduler cfq registered (default)
[    0.413948] io scheduler mq-deadline registered
[    0.413960] io scheduler kyber registered
[    0.415433] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
[    0.415656] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
[    0.415795] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.2
[    0.415906] stm32-usbphyc 5a006000.usbphyc: Dropping the link to regulator.1
[    0.420592] stm32-dma 48000000.dma: STM32 DMA driver registered
[    0.504193] STM32 USART driver initialized
[    0.505668] 4000e000.serial: ttySTM3 at MMIO 0x4000e000 (irq = 25, base_baud = 4000000) is a stm32-usart
[    0.505980] serial serial0: tty port ttySTM3 registered
[    0.506041] stm32-usart 4000e000.serial: interrupt mode used for rx (no dma)
[    0.506060] stm32-usart 4000e000.serial: interrupt mode used for tx (no dma)
[    0.507299] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 27, base_baud = 4000000) is a stm32-usart
[    1.449165] console [ttySTM0] enabled
[    1.453398] stm32-usart 40010000.serial: interrupt mode used for rx (no dma)
[    1.459893] stm32-usart 40010000.serial: interrupt mode used for tx (no dma)
[    1.474727] stm32-display-dsi 5a000000.dsi: Linked as a consumer to regulator.2
[    1.483934] panel-orisetech-otm8009a 5a000000.dsi.0: 5a000000.dsi.0 supply power not found, using dummy regulator
[    1.493059] panel-orisetech-otm8009a 5a000000.dsi.0: Linked as a consumer to regulator.0
[    1.517060] brd: module loaded
[    1.531653] loop: module loaded
[    1.539564] libphy: Fixed MDIO Bus: probed
[    1.543619] tun: Universal TUN/TAP device driver, 1.6
[    1.547862] CAN device driver interface
[    1.553503] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    1.557993] stm32-dwmac 5800a000.ethernet: no reset control found
[    1.564043] stm32-dwmac 5800a000.ethernet: No phy clock provided...
[    1.571362] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42
[    1.577426] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    1.582249] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    1.589619] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    1.596943] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    1.603809] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    1.610122] stm32-dwmac 5800a000.ethernet: TSO supported
[    1.615421] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    1.621292] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.629397] libphy: stmmac: probed
[    1.646712] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.651836] ehci-platform: EHCI generic platform driver
[    1.657658] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.663264] ohci-platform: OHCI generic platform driver
[    1.669219] usbcore: registered new interface driver usb-storage
[    1.679490] stm32_rtc 5c004000.rtc: rtc core: registered 5c004000.rtc as rtc0
[    1.685741] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    1.691304] stm32_rtc 5c004000.rtc: registered rev:1.2
[    1.697040] i2c /dev entries driver
[    1.720680] stm32f7-i2c 40012000.i2c: can't use DMA
[    1.727944] sii902x 0-0039: Failed to get supply 'iovcc': -517
[    1.733280] stm32f7-i2c 40012000.i2c: STM32F7 I2C-0 bus adapter
[    1.759281] stm32f7-i2c 5c002000.i2c: can't use DMA
[    1.765222] typec_stusb 1-0028: STUSB driver registered
[    1.770948] stpmic1 1-0033: PMIC Chip Version: 0x10
[    1.780196] BUCK1: supplied by regulator-dummy
[    1.787175] BUCK2: supplied by regulator-dummy
[    1.793612] BUCK3: supplied by regulator-dummy
[    1.800578] BUCK4: supplied by regulator-dummy
[    1.807114] LDO1: supplied by v3v3
[    1.814658] LDO2: supplied by regulator-dummy
[    1.821466] LDO3: supplied by vdd_ddr
[    1.827599] LDO4: supplied by regulator-dummy
[    1.832091] LDO5: supplied by regulator-dummy
[    1.838914] LDO6: supplied by v3v3
[    1.844713] VREF_DDR: supplied by regulator-dummy
[    1.851232] BOOST: supplied by regulator-dummy
[    1.855369] VBUS_OTG: supplied by bst_out
[    1.859415] SW_OUT: supplied by bst_out
[    1.864561] random: fast init done
[    1.868426] input: pmic_onkey as /devices/platform/soc/5c002000.i2c/i2c-1/1-0033/5c002000.i2c:stpmic@33:onkey/input/input0
[    1.878756] stm32f7-i2c 5c002000.i2c: STM32F7 I2C-1 bus adapter
[    1.887694] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    1.898383] mmci-pl18x 58005000.sdmmc: Linked as a consumer to regulator.8
[    1.903989] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 48,0 (pio)
[    1.941262] mmci-pl18x 58007000.sdmmc: allocated mmc-pwrseq
[    1.945799] mmci-pl18x 58007000.sdmmc: Linked as a consumer to regulator.8
[    1.953525] mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev1 at 0x58007000 irq 49,0 (pio)
[    1.987498] sdhci: Secure Digital Host Controller Interface driver
[    1.992362] sdhci: Copyright(c) Pierre Ossman
[    1.996682] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.005770] Synopsys Designware Multimedia Card Interface Driver
[    2.011299] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.017576] mmc0: new high speed SDHC card at address 0001
[    2.021897] ledtrig-cpu: registered to indicate activity on CPUs
[    2.023707] mmcblk0: mmc0:0001 JB1RT 29.8 GiB
[    2.028806] hidraw: raw HID events driver (C) Jiri Kosina
[    2.038215] usbcore: registered new interface driver usbhid
[    2.043332] usbhid: USB HID core driver
[    2.049212] stm32-ipcc 4c001000.mailbox: ipcc rev:1.0 enabled, 6 chans, proc 0
[    2.056663] stm32-rproc m4@0: wdg irq registered
[    2.060216] remoteproc remoteproc0: m4 is available
[    2.068013] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.073181] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    2.079662] GPT:1826815 != 62521343
[    2.082301] NET: Registered protocol family 10
[    2.083043] GPT:Alternate GPT header not at the end of the disk.
[    2.093640] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.099009] GPT:1826815 != 62521343
[    2.102468] GPT: Use GNU Parted to correct GPT errors.
[    2.107914]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[    2.112602] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.118986] Segment Routing with IPv6
[    2.121600] NET: Registered protocol family 17
[    2.125963] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.138821] can: controller area network core (rev 20170425 abi 9)
[    2.144918] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.144995] NET: Registered protocol family 29
[    2.154837] can: raw protocol (rev 20170425)
[    2.159145] can: broadcast manager protocol (rev 20170425 t)
[    2.164785] can: netlink gateway (rev 20170425) max_hops=1
[    2.170618] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.170894] Key type dns_resolver registered
[    2.180251] ThumbEE CPU extension supported.
[    2.184337] Registering SWP/SWPB emulation handler
[    2.190179] registered taskstats version 1
[    2.193228] Loading compiled-in X.509 certificates
[    2.198132] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[    2.223743] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.1
[    2.229871] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.2
[    2.237151] stm32-usbphyc 5a006000.usbphyc: Linked as a consumer to regulator.12
[    2.245214] stm32-usbphyc 5a006000.usbphyc: registered rev:1.0
[    2.252462] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_d not found, using dummy regulator
[    2.260236] dwc2 49000000.usb-otg: Linked as a consumer to regulator.0
[    2.266638] dwc2 49000000.usb-otg: 49000000.usb-otg supply vusb_a not found, using dummy regulator
[    2.287739] dwc2 49000000.usb-otg: EPs: 9, dedicated fifos, 952 entries in SPRAM
[    2.295467] ehci-platform 5800d000.usbh-ehci: EHCI Host Controller
[    2.300347] ehci-platform 5800d000.usbh-ehci: new USB bus registered, assigned bus number 1
[    2.309105] ehci-platform 5800d000.usbh-ehci: irq 53, io mem 0x5800d000
[    2.335589] ehci-platform 5800d000.usbh-ehci: USB 2.0 started, EHCI 1.00
[    2.342218] hub 1-0:1.0: USB hub found
[    2.344679] hub 1-0:1.0: 2 ports detected
[    2.351945] sii902x 0-0039: Linked as a consumer to regulator.10
[    2.356711] sii902x 0-0039: Linked as a consumer to regulator.14
[    2.366813] i2c i2c-0: Added multiplexed i2c bus 2
[    2.371529] cs42l51 0-004a: Linked as a consumer to regulator.8
[    2.376320] cs42l51 0-004a: Linked as a consumer to regulator.9
[    2.384803] cs42l51 0-004a: Cirrus Logic CS42L51, Revision: 01
[    2.393133] asoc-audio-graph-card sound: cs42l51-hifi0 <-> 4400b004.audio-controller mapping ok
[    2.401547] asoc-audio-graph-card sound: cs42l51-hifi1 <-> 4400b024.audio-controller mapping ok
[    2.409498] asoc-audio-graph-card sound: i2s-hifi <-> 4000b000.audio-controller mapping ok
[    2.418869] cs42l51 0-004a: ASoC: mux DAC Mux has no paths
[    2.426086] mmc1: new high speed SDIO card at address 0001
[    2.658543] [drm] ltdc hw version 0x00010300 - ready
[    2.662152] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.668767] [drm] Driver supports precise vblank timestamp query.
[    2.675752] [drm] Initialized stm 1.0.0 20170330 for 5a001000.display-controller on minor 0
[    2.684306] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01 00:01:30 UTC (946684890)
[    2.692944] vref: supplied by vdd
[    2.695399] vref: disabling
[    2.698095] vdda: disabling
[    2.701225] ALSA device list:
[    2.703787]   #0: STM32MP1[    2.715639] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    2.721993] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    2.729555] VFS: Mounted root (ext4 filesystem) on device 179:5.
[    2.737867] devtmpfs: mounted
[    2.741248] Freeing unused kernel memory: 1024K
[    2.744651] Run /sbin/init as init process
[    2.917182] hub 1-1:1.0: USB hub found
[    2.919818] hub 1-1:1.0: 4 ports detected
2000/01/01 00:01:30 could not get mounts:open /proc/self/mountinfo: no such file or directory
[    3.115721] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    3.115721]
[    3.123440] CPU: 1 PID: 1 Comm: init Not tainted 4.19.9 #1
[    3.128930] Hardware name: STM32 (Device Tree Support)
[    3.134120] [<c0111f68>] (unwind_backtrace) from [<c010dc28>] (show_stack+0x10/0x14)
[    3.141866] [<c010dc28>] (show_stack) from [<c0a3dfdc>] (dump_stack+0x7c/0x90)
[    3.149114] [<c0a3dfdc>] (dump_stack) from [<c0125980>] (panic+0xf0/0x25c)
[    3.156009] [<c0125980>] (panic) from [<c012b39c>] (do_exit+0xaf8/0xb04)
[    3.162731] [<c012b39c>] (do_exit) from [<c012b410>] (do_group_exit+0x3c/0xbc)
[    3.169978] [<c012b410>] (do_group_exit) from [<c012b4a0>] (__wake_up_parent+0x0/0x18)
[    3.177923] CPU0: stopping
[    3.180620] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.19.9 #1
[    3.186551] Hardware name: STM32 (Device Tree Support)
[    3.191719] [<c0111f68>] (unwind_backtrace) from [<c010dc28>] (show_stack+0x10/0x14)
[    3.199483] [<c010dc28>] (show_stack) from [<c0a3dfdc>] (dump_stack+0x7c/0x90)
[    3.206729] [<c0a3dfdc>] (dump_stack) from [<c0110ce0>] (handle_IPI+0x3f0/0x418)
[    3.214151] [<c0110ce0>] (handle_IPI) from [<c04d5f98>] (gic_handle_irq+0x8c/0x90)
[    3.221743] [<c04d5f98>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
[    3.229241] Exception stack(0xc1001f30 to 0xc1001f78)
[    3.234309] 1f20:                                     00000000 000032b4 d3b7048c c011b420
[    3.242517] 1f40: ffffe000 c1005cf4 c1005d34 00000001 c10a8d6d c0ca5ef0 d3fffd80 c0f58a38
[    3.250720] 1f60: 00000000 c1001f80 c010a364 c010a368 600f0013 ffffffff
[    3.257362] [<c0101a0c>] (__irq_svc) from [<c010a368>] (arch_cpu_idle+0x38/0x3c)
[    3.264781] [<c010a368>] (arch_cpu_idle) from [<c0156370>] (do_idle+0x114/0x154)
[    3.272197] [<c0156370>] (do_idle) from [<c0156678>] (cpu_startup_entry+0x18/0x20)
[    3.279794] [<c0156678>] (cpu_startup_entry) from [<c0f00e5c>] (start_kernel+0x46c/0x494)
[    3.288004] Rebooting in 1 seconds..

I think it is not the problem of U-Boot env/config. If it was the root path problem the kernel won’t find init program at the beginning.

Any progresses on this issue?

@andreas @matthias I think I figured it out.
We should’ve check if a correct initramfs image is used. (zImage, uImage…)
It might be yocto/vendor default initramfs, not kernel-image-initramfs with resin-specific patches.

As we can see from the full boot logs, the kernel goes straight to mounting root and run /sbin/init (mobynit in this case). However, if it was the correct resin’s initramfs it must have run initrdscripts such as fsck,rootfs,finish before running /sbin/init.

The vendor default bitbake scripts might override the resin initramfs, so check your bitbake configuration. As a note the correct resin initramfs is still installed in {resin-rootA partition}/current/boot/zImage (you need to be root user to see this), so compare it with your {resin-boot partition}/zImage using md5sum.

Hi all, is this issue solved given the latest comments here?

I am also having the same /proc/self/mount problem
Can you help me with that

Did you solve this?