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
partedisn't available as a binary on the base image hence I usedfdiskas 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 (
winfdisk) I get anioctlError statingresource is busyI also do not have
resize2fsavailable on the image. I only have a binary calledresizewhich 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.