I am creating a minimal image for my Raspberry Pi 3b+ with an Preemptive RT Linux Kernel using Yocto Project's
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
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.
Initially I found that
partedisn't available as a binary on the base image hence I used
fdisk -u /dev/mmcblk0
which provides me two partitions
I delete partition 2 and create a new one with the start value as one normally does.
Upon writing the partition (
fdisk) I get an
resource is busy
I also do not have
resize2fsavailable on the image. I only have a binary called
resizewhich 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.