Sorry for the frequent posting and the almost same problem in the forum.
I have searched in the forum for the information.Refer to this post I add mmc and squashfs modules to the initrd.But it’s still the same.Here is my yaml file.
kconfigs:
- CONFIG_LOCALVERSION="-4.9"
- CONFIG_SQUASHFS=m
- CONFIG_SQUASHFS_XATTR=y
- CONFIG_SQUASHFS_XZ=y
- CONFIG_MMC_BLOCK=m
kernel-initrd-modules:
- squashfs
- mmc-block
When starting kernel it will block at
Begin: Running /scripts/local-premount ...
The code in scripts is
wait-for-root "LABEL=writable" "${ROOTDELAY:-180}" >/dev/null || true
And in initramfs mode, ls cannot show /dev/mmc*.
If i build mmc_block and squashfs in kernel,it’ll will block at kernel-initrd-modules.
If i use this yaml show below
kconfigs:
- CONFIG_LOCALVERSION="-4.9"
- CONFIG_SQUASHFS=y
- CONFIG_SQUASHFS_XATTR=y
- CONFIG_SQUASHFS_XZ=y
- CONFIG_MMC_BLOCK=y
kernel-initrd-modules:
- squashfs
- mmc-block
It will report:
FileNotFoundError: [Errno 2] No such file or directory: 'mmc_block' -> './parts/kernel/build/initrd-staging/../../../mmc_block'
Refer to this post,I need to build it as module
And refer to this post, it’s same to build in kernel or in kernel-initrd-modules.So my yaml file change to this:
kconfigs:
- CONFIG_LOCALVERSION="-4.9"
- CONFIG_SQUASHFS=y
- CONFIG_SQUASHFS_XATTR=y
- CONFIG_SQUASHFS_XZ=y
- CONFIG_MMC_BLOCK=y
It’s still the same problem. But /dev/mmc* can be showed in initrd mode.
(initramfs) ls /dev/mmcblk1*
/dev/mmcblk1rpmb /dev/mmcblk1p1 /dev/mmcblk1boot0
/dev/mmcblk1p2 /dev/mmcblk1boot1 /dev/mmcblk1
I burn uboot.imx in UDA,not in bootpartion. I enable mmc boot from UDA not from boot_partion_1. I’m not sure if it will influence the initrd.
In the image,there is no lable writable…
And i do not modify apparmor…If it need to modify apparmor first?