I’m using a zynq-7000 SoC, running a custom petalinux build, which is on an SD card. The boot partition contains a boot.bin (the bootloaders etc) and an image (containing the kernel). The root partition contains a the root file system – the one I want to use on the target system.
When I power the board it boots from the SD and executes boot.bin then goes onto load the kernel and then I log in as root. I have a serial terminal connected to the target and I get no errors or anything to suggest something has gone wrong, but when I login the root filesystem I have in my root partition is not there and I have some sort of default one – I think this might be the initramfs, but really am not sure.
Is there something I can do to mount the rootfile system on the root partition of the SD card after I have booted?