此问题是由于SD卡写保护导致,修改设备树即可:
修改project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi设备树文件,添加:
/*emmc*/
&sdhci0{
xlnx,mio-bank=<0>;
disable-wp;
status = "okay";
};
/* sd */
&sdhci1{
xlnx,mio-bank=<1>;
disable-wp;
no-1-8-v;
status = "okay";
};
保存之后执行petalinux-build -c device-tree;