Can't change rootfs configs in bulided image

i trying to transplant PYNQ v2.7 in my custom board witch has 8GM eMMC and 64G SDcard.When i builded image in SDcard,then power-on the board,alawys send me

VFS: Cannot open root device “mmcblk0p2” or unknown-block

But i set ‘mmcblk1p2’ in petalinux-config and add ‘disable-wp’ in sdhci1 that location in /home/zynq/PYNQ/sdbuild/build/pynqtest/petalinux_project/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

1 Like

Hi there,

Does the error message have any followup error codes? A fuller log would be helpful to debug.

Do you also change the bootargs in the devicetree? There was a similar forum post here where that was the solution.


Hi,thanks for your reply.
I find out where the problem was. In /PYNQ/sdbuild/boot/meta-pynq/recipes-bsp/device-tree/files/pynq_bootargs.dtsi, the parameter still is mmcblk0p2.When i change it and rebuild,the terminal send to me

VFS: Cannot open root device “mmcblk1p2” or unknown-block(179,2): error -6␍

So that has been corrected,but i received new error.

mmcblk1: unable to read partition table␍

The kernel can’t read SD card partition table.Then i find a image that build in last week. It can read partition table but root device is "mmcblk0p2". I didn’t change any parameters in petalinux-config.