autoload=no
autostart=no
baudrate=115200
boot_mode=nand
bootargs_nfs=run default_bootargs;setenv bootargs ${bootargs} root=/dev/nfs nfsroot=${serverip}:${nfsroot},nolock ip=dhcp
bootargs_ubifs=run default_bootargs;setenv bootargs ${bootargs} ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs ubi.fm_autoconvert=1
bootargs_rescue=run default_bootargs;setenv bootargs ${bootargs}
bootcmd=run bootcmd_update bootm_cmd
bootcmd_nand=setenv autostart no;run bootargs_ubifs;nboot linux
bootcmd_net=setenv autoload y;setenv autostart n;run bootargs_nfs;
bootcmd_rescue=setenv autostart no;run bootargs_rescue;nboot rescue
bootfile=uImage
rescuefile=uImageRescue
fdtboot=1
bootm_cmd=if test $fdtboot = 1; then bootm ${loadaddr} - ${fdtaddr};else bootm; fi
cpu_clk=800
fdtaddr=11000000
fdtsave=nand erase.part dtb;nand write ${fdtaddr} dtb
loadaddr=18000000
mtdids=nand0=gpmi-nand
nfsroot=/tftpboot/rootfs
otg_mode=host
sdcard=2
updateaddr=12000000
rescuesave=nand erase.part rescue; nand write $updateaddr rescue $filesize
rescueupdate=if fatload mmc ${sdcard} ${updateaddr} ${rescuefile}; then run rescuesave; else echo "Rescue Update failed"; fi
dtbsave=nand erase.part dtb; nand write $loadaddr dtb $filesize
dtbupdate=if fatload mmc ${sdcard} ${loadaddr} ${dtbname}; then run dtbsave; else echo "dtb update fail"; fi
datasave=nand erase.part data; nand write.trimffs $updateaddr data $filesize
dataupdate=if fatload mmc ${sdcard} $updateaddr data.ubi; then run datasave; else echo "Data Update failed"; fi
rootfssave=nand erase.part rootfs; nand write.trimffs $updateaddr rootfs $filesize
rootfsupdate=if fatload mmc ${sdcard} $updateaddr rootfs.ubi; then run rootfssave; else echo "Rootfs Update failed"; fi
linuxsave=nand erase.part linux; nand write $updateaddr linux $filesize
linuxupdate=if fatload mmc ${sdcard} ${updateaddr} ${bootfile}; then run linuxsave; else echo "Update failed"; fi
mtdparts=mtdparts=gpmi-nand:1664k@0x40000(u-boot),384k(env),384k(env2),15m(rescue),6m(linux),200m(rootfs),32128k(data),512k@0xff00000(dtb),512k@0xff80000(bbt)ro
backlight_polarity=1
bootdelay=0
bootcmd_update=mmc dev ${sdcard}; mmc rescan; if fatload mmc ${sdcard} ${loadaddr} update.img = 0; then source ${loadaddr}; else run bootcmd_app_or_rescue; fi
bootcmd_app_or_rescue=if test ${rescuelinux} = 0; then run decValidapp; fi; if test ${rescuelinux} = 0; then run bootcmd_${boot_mode}; else run bootcmd_rescue; fi
displayargs=display.width=96 display.height=54 display.depth=32
default_bootargs=setenv bootargs console=ttymxc0,115200 rw quiet panic=1 video=mxcfb0:dev=lcd,${video_mode}-32,if=RGB24 ${vt_args} ${displayargs} ${append_bootargs}
vt_args=vt.global_cursor_default=0 consoleblank=0
touchpanel=edt-ft5x06
video_mode=MI0430J3T50
bootcmd_mmc=mmc dev ${mmcdev}; run loaduimage; run bootargs_mmc
bootargs_mmc=run default_bootargs;setenv bootargs ${bootargs} root=/dev/mmcblk0p3
loaduimage=ext2load mmc ${mmcdev}:1 ${loadaddr} uImage
mmcdev=0
dtbname=imx6dl-his-pm5-mmi21-2.dtb
rescuelinux=1
validapp=5
decValidapp=if test ${validapp} -lt 10; then if test ${validapp} -gt 0; then setexpr validapp ${validapp} - 1; saveenv; else setenv rescuelinux 1; fi; fi

