active_part_file=sys_active altbootcmd= setenv fallback_active 1;setenv bootargs_base ${bootargs_base} fallback;run distro_bootcmd arch=arm baudrate=115200 board=imx/mx6ul board_name=imx/mx6ul boot_prefixes=/ /boot/ boot_targets=mfg mmc0 ubifs mmc1 bootargs_base=rootwait console=ttymxc3,115200 mtdparts=spi1.0:128k(spl),768k(u-boot),64k(env),64k(env_redundant);spi4.0:-(UBI) bootargs_prepend_A=ubi.mtd=0 rootfstype=ubifs root=ubi0:root_A bootargs_prepend_B=ubi.mtd=0 rootfstype=ubifs root=ubi0:root_B bootargs_prepend_mmc_0=root=/dev/mmcblk0p2 bootargs_prepend_mmc_1=root=/dev/mmcblk1p2 bootcmd=run distro_bootcmd bootcmd_mfg=run mfgtool_args; setenv bootargs ${bootargs} ${bootargs_base}; bootz ${loadaddr} ${ramdisk_addr_r} ${fdt_addr_r} bootcmd_mmc0= setenv devnum 0;setenv devpart 1;run mmc0_boot bootcmd_mmc1= setenv devnum 1;setenv devpart 1;run mmc1_boot bootcmd_net=run netargs; setenv bootargs ${bootargs} ${bootargs_base}; tftp ${loadaddr} fitImage; bootm ${loadaddr}${fiti_config} bootcmd_ubifs=if ubi part ubi || ubi part UBI ;then ubifsmount ubi0:boot; if ubifsload $loadaddr ${active_part_file} 2;then run determine_bootargs;if ubifsload $loadaddr $fiti_name; then if test ${upgrade_available} = 1 ;then run determine_wdog_addr; run enable_wdog;fi; bootm ${loadaddr}${fiti_config}; else echo ----------------------- ;echo fitImage $fiti_name not found. ;echo aborting boot and reset ;echo ----------------------- ;reset ; fi;else echo ----------------------- ;echo no partition file found ;echo aborting boot and reset ;echo ----------------------- ;reset ; fi;fi; bootdelay=3 bootlimit=3 bootubipart=spi-nand0 bootubivol=boot cpu=armv7 determine_bootargs=if test $fallback_active = 0;then echo Normal active boot ; setenv fiti_name ${fiti_name}_active; if itest.b *${loadaddr} == 41;then setenv bootargs ${bootargs_prepend_A} ${bootargs_base};echo using rootfs partition ${bootargs_prepend_A};else setenv bootargs ${bootargs_prepend_B} ${bootargs_base};echo using rootfs partition ${bootargs_prepend_B};fi;else echo fallback boot to inactive system ; setenv fiti_name ${fiti_name}_inactive; if itest.w *${loadaddr} == 0x4242 || itest.w *${loadaddr} == 0x4241;then setenv bootargs ${bootargs_prepend_B} ${bootargs_base};echo using rootfs partition ${bootargs_prepend_B};fi; if itest.w *${loadaddr} == 0x4141 || itest.w *${loadaddr} == 0x4142;then setenv bootargs ${bootargs_prepend_A} ${bootargs_base};echo using rootfs partition ${bootargs_prepend_A};fi; fi; determine_wdog_addr=if test ${soc} = mx6; then setenv wdog_wcr_addr 20bc000; elif test ${soc} = imx8m;then setenv wdog_wcr_addr 30280000;fi distro_bootcmd=for target in ${boot_targets}; do echo searching for u-boot.txt in $target;run load_extra_env_${target};done;echo No u-boot.txt found;for target in ${boot_targets}; do run bootcmd_${target}; done;reset; enable_wdog=if test ${wdog_wcr_addr} != ; then echo Watchdog enabled!; mw.w $wdog_wcr_addr b434 1; else echo wdog_wcr_addr not set. Watchdog cannot be enabled!;fi ethact=eth0 ethprime=eth0 extra_env_cmd=echo no extra env command extra_env_file=u-boot.txt fallback_active=0 fdt_addr_r=0x83000000 fdt_high=0xffffffff fiti_config= fiti_name=fitImage gatewayip=192.168.1.10 hostname=kontron-mx6ul import_and_load_env=env import -t $loadaddr $filesize;run extra_env_cmd; initrd_high=0xffffffff ipaddr=192.168.1.11 kernel_addr_r=0x82000000 load_extra_env_mmc0=setenv devnum 0;setenv devpart 1; run mmc0_env_load; load_extra_env_mmc1=setenv devnum 1;setenv devpart 1; run mmc1_env_load; load_extra_env_ubifs=run ubi_env_load; loadaddr=0x82000000 mfgtool_args=setenv bootargs rootfstype=ramfs init=/linuxrc spi_imx.use_dma=0 mmc0_boot=setenv bootargs ${bootargs_prepend_mmc_0} ${bootargs_base};if fatload mmc ${devnum}:${devpart} $loadaddr ${fiti_name};then bootm ${loadaddr}${fiti_config};fi mmc0_env_load=if fatload mmc ${devnum}:${devpart} $loadaddr ${extra_env_file};then run import_and_load_env;fi; mmc1_boot=setenv bootargs ${bootargs_prepend_mmc_1} ${bootargs_base};if ext4load mmc ${devnum}:${devpart} $loadaddr ${fiti_name};then bootm ${loadaddr}${fiti_config};fi mmc1_env_load=if ext4load mmc ${devnum}:${devpart} $loadaddr ${extra_env_file};then run import_and_load_env;fi; mtdids=nor0=spi1.0,spi-nand0=spi4.0 mtdparts=mtdparts=spi1.0:128k(spl),832k(u-boot),64k(env);spi4.0:-(UBI) netargs=setenv bootargs root=/dev/nfs ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:n8010:eth0:any: nfsroot=${serverip}:${nfsroot},v3,tcp netmask=255.255.255.0 nfsroot=/nfsroot pxefile_addr_r=0x83100000 ramdisk_addr_r=0x83200000 scriptaddr=0x83100000 serverip=192.168.1.10 soc=mx6 ubi_env_load=if ubi part ${bootubipart} || ubi part UBI ;then ubifsmount ubi0:${bootubivol}; if ubifsload $loadaddr ${extra_env_file} ;then run import_and_load_env;fi;fi; vendor=kontron upgrade_available=0