[meta-freescale] imx7, runaway loop modprobe binfmt-464c

Bejar-Colonia, Carlos carlos.bejar-colonia at philips.com
Tue Sep 26 18:27:45 PDT 2017


Hi,

I am trying to bring up a Yocto build on a custom i.MX7 board that uses NAND flash. I am using yocto from fsl-community-bsp (Morty), MACHINE=imx7dsabresd (modified).
Here is part of the machine config I use:

IMAGE_FSTYPES := "ubifs cpio.gz"
MKUBIFS_ARGS = "--squash-uids --min-io-size 2048 --leb-size 126976 --max-leb-cnt 940"

KERNEL_CLASSES ?= " kernel-fitimage "
KERNEL_IMAGETYPE := "fitImage"

# imx7koji-initramfs is defined as a recipe in recipe-core/image/
INITRAMFS_IMAGE = "imx7koji-initramfs"

I created append recipes to customize u-boot (u-boot-imx_2016.03.bbappend); to add a new device tree and change kernel config (linux-imx_4.1.15.bbappend).
Yocto builds fine, however when tried to boot the board, the kernel is not able to run "/init":

...
Freeing unused kernel memory: 188K (804f7000 - 80526000)
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
Failed to execute /init (error -8)
request_module: runaway loop modprobe binfmt-464c
Starting init: /sbin/init exists but couldn't execute it (error -8)
request_module: runaway loop modprobe binfmt-464c
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Rebooting in 5 seconds..

I made sure the initramfs contains "/init" (it is a soft link to /sbin/init which is a soft link to /sbin/init.sysvinit). I also checked the architecture of the kernel and the user space init are the same (32bits), but still the board resets.

$ file ./linux-imx/4.1.15-r0/build/vmlinux
./linux-imx/4.1.15-r0/build/vmlinux: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, BuildID[sha1]=9d64e3cab02bd4ab3c548b18c1dc5228116cf913, not stripped

$ file sbin/init.sysvinit
deploy/images/imx7koji/mp/sbin/init.sysvinit: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.2.0, BuildID[sha1]=610388df391c1223d7522530fde8097537356288, stripped

Also enabled the kernel to support ELF. Still the board reset with the same error.

CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_SCRIPT=y

Any ideas on the root cause of this issue, did I miss something in the config?

Thanks,
Carlos

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20170927/d5762135/attachment.html>


More information about the meta-freescale mailing list