diff --git a/scripts/emb_mk_yocto_sdcard/emb-create-yocto-emmc.sh b/scripts/emb_mk_yocto_sdcard/emb-create-yocto-emmc.sh index 15df4e5..8f24ab0 100755 --- a/scripts/emb_mk_yocto_sdcard/emb-create-yocto-emmc.sh +++ b/scripts/emb_mk_yocto_sdcard/emb-create-yocto-emmc.sh @@ -22,7 +22,6 @@ ROOTFS_IMAGE=rootfs.tar.bz2 BOOTLOADER_RESERVED_SIZE=2 PART1_SIZE=48 BOOTLOADER_OFFSET=33 -DISPLAY=-hdmi PART=p BOOTPART=1 ROOTFSPART=2 @@ -30,16 +29,10 @@ BOOTDIR=/boot check_board() { - if grep -q "i.MX8M" /sys/devices/soc0/soc_id; then + if grep -q "i.MX8MM" /sys/devices/soc0/soc_id; then BOARD=smarc-imx8mm DTB_PREFIX=fsl-smarcimx8mm BLOCK=mmcblk0 - - if [[ $DISPLAY != "-lvds" && $DISPLAY != "-hdmi" && \ - $DISPLAY != "-dual-display" && $DISPLAY != "" ]]; then - red_bold_echo "ERROR: invalid display, should be lvds, hdmi, dual-display or empty" - exit 1 - fi else red_bold_echo "ERROR: Unsupported board" exit 1 @@ -244,6 +237,9 @@ do esac done + if grep -q "i.MX8MM" /sys/devices/soc0/soc_id; then + BOARD=smarc-imx8mm + fi printf "Board: " blue_bold_echo $BOARD