I am creating a minimal image for my Raspberry Pi 3b+ with an Preemptive RT Linux Kernel using Yocto Project's warrior
branch.
I was able to create a base image for the same (bitbake -k core-image-base
) and the Pi boots up well with the PREEMPT RT
showing up when executing uname -a
.
The image is about ~300MB big on an SD-Card that is 16GB. I wish to expand the SD Card completely in order to use the extra space.
Problem
Initially I found that
parted
isn't available as a binary on the base image hence I usedfdisk
as follows:fdisk -u /dev/mmcblk0
which provides me two partitions mmcblk0p1
and mmcblk0p2
I delete partition 2 and create a new one with the start value as one normally does.
Upon writing the partition (
w
infdisk
) I get anioctl
Error statingresource is busy
I also do not have
resize2fs
available on the image. I only have a binary calledresize
which upon execution does not resize the SD Card even upon reboot.
Is there an alternative solution to resizing for Images creating using Yocto? There are no recipes for raspi-config
which makes it difficult to have other tools to expand an SD Card.