mmc_boot=if mmc dev ${devnum};thendevtype=mmc; run scan_dev_for_boot_part;fi
pxefile_addr_r=0x10000000
ramdisk_addr_r=0x02100000
scan_dev_for_boot=echo Scanning ${devtype}${devnum}:${distro_bootpart}...;for prefix in ${boot_prefixes};do run scan_dev_for_extlinux; run scan_dev_for_scripts;done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype}${devnum} -bootable devplist; env exists devplist || setenv devplist 1;for distro_bootpart in ${devplist};doif fstype ${devtype}${devnum}:${distro_bootpart} bootfstype;then run scan_dev_for_boot;fi;done; setenv devplist
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile};for prefix in ${efi_dtb_prefixes};doiftest -e ${devtype}${devnum}:${distro_bootpart}${prefix}${efi_fdtfile};then run load_efi_dtb;fi;done;iftest -e ${devtype}${devnum}:${distro_bootpart} efi/boot/bootaa64.efi;thenecho Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary;echo EFI LOAD FAILED: continuing...;fi; setenv efi_fdtfile
scan_dev_for_extlinux=iftest -e ${devtype}${devnum}:${distro_bootpart}${prefix}${boot_syslinux_conf};thenecho Found ${prefix}${boot_syslinux_conf}; run boot_extlinux;echo SCRIPT FAILED: continuing...;fi
scan_dev_for_scripts=for script in ${boot_scripts};doiftest -e ${devtype}${devnum}:${distro_bootpart}${prefix}${script};thenecho Found U-Boot script ${prefix}${script}; run boot_a_script;echo SCRIPT FAILED: continuing...;fi;done
script_offset_f=0x3e80000
script_size_f=0x80000
scriptaddr=0x20000000
usb_boot=usb start;if usb dev ${devnum};thendevtype=usb; run scan_dev_for_boot_part;fi
preboot=setenv boot_targets; setenv modeboot; run board_setup
som_mmc_boot=setenv boot_targets mmc0 && run distro_bootcmd
k26_starter=SMK-K26-XCL2G
k24_starter=SMK-K24-XCL2G
bootcmd=setenv model $board_name&&if setexpr model gsub .*$k24_starter* $k24_starter|| setexpr model gsub .*$k26_starter* $k26_starter;then run som_cc_boot;else run som_mmc_boot; run som_cc_boot;fi