Search code examples
kernelsystemdbuildroot

systemd[1] failed to mount tmpfs at /sys/fs/cgroup no such file or directory


I'm trying to load my custom zImage which was built with help of buildroot (using jumpnow_bbb_4_9_defconfig, jumpnow_bbb_defconfig etc...) The kernel versions that I used - 4.9.1, 4.14.96. In both cases an error occurs during boot:

    systemd[1] failed to mount tmpfs at /sys/fs/cgroup no such file or directory

my u-boot bootargs: console=ttyO0,115200 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait

The boarg that I'm using is PH8700 system on module(I believe the PCB design is similar to Beagle Bone Black board).

The filesystem is on emmc. zImage provided from the manufacturer loads fine. What could be the problem?

log pics: log1

log2

log3


Solution

  • systemd uses cgroups, you need to enable them in your custom kernel. With Buildroot:

    1. make linux-menuconfig
    2. General setup -> Control Group support
    3. exit saving your changes
    4. make