# You can either hardcode your fdtfile or use some sort of test # like I did here with findfdtfile. # If you do not provide an uEnv.txt, then am335x-boneblack.dtb # will be the default. (Hard coded in u-boot). # bbb-4dcape70t.dtb bootpart=0:2 bootdir=/boot bootfile=zImage console=ttyS0,115200n8 fdtaddr=0x88000000 fdtfile=bbb-gen4-4dcape50t.dtb loadaddr=0x82000000 mmcroot=/dev/mmcblk0p2 ro mmcrootfstype=ext4 rootwait optargs=consoleblank=0 vt.global_cursor_default=0 nohdmi=bbb-nohdmi.dtb mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype} findfdtfile=if test -e mmc ${bootpart} ${bootdir}/nohdmi; then setenv fdtfile ${nohdmi}; fi; loadfdt=run findfdtfile; load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile} loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} uenvcmd=if run loadfdt; then echo Loaded ${fdtfile}; if run loadimage; then run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi; fi;