petalinux-config filesystem type选择 ext4
更改/home/ljp/Desktop/tsn/tct_tsn_peta22.2_0718/tct_tsn/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
增加bootargs配置
chosen {
bootargs = "console=ttyPS0,115200 root=/dev/mmcblk1p2 rw rootwait earlycon";
};
更改SD卡配置
&sdhci1 {
status = "okay";
max-frequency = <50000000>;
no-1-8-v; /* for 1.0 silicon */
disable-wp;
broken-cd;
xlnx,mio-bank = <1>;
/* Do not run SD in HS mode from bootloader */
sdhci-caps-mask = <0 0x200000>;
sdhci-caps = <0 0>;
max-frequency = <19000000>;
};
去除掉SD卡文件系统及分区
SD卡分区制作
SD卡分区制作完成
格式化分区和添加rootfs
如果镜像启动报错:
通过U-Boot的命令行检查设备和分区是否存在,然后更改bootargs配置。