/ # fw_printenv
stat /dev/env OK
attemptboot=if test ${reboot_mode} = charging; then run try_auto_burn; fi;echo Attempting booting...;setenv bootcmd run storeboot; saveenv; run logodisplay; run switchbootonce; run switchrootfspartonce;run resetinitargs; run storeargs;save; if unifykey get usid; then setenv bootargs ${bootargs} androidboot.serialno=${usid};fi;if unifykey get mac; then setenv bootargs ${bootargs} mac=${mac};fi;imgread kernel ${bootpart} ${loadaddr};bootm;run bootrecovery
baudrate=115200
boardname=m8_board
bootargs=root=/dev/system rootfstype=ext4 init=/sbin/init console=ttyS0,115200n8 no_console_suspend ramoops.mem_address=0x04e00000 ramoops.mem_size=0x100000 ramoops.record_size=0x8000 ramoops.console_size=0x4000 cvbsdrv=0 vdaccfg=0xa000 logo=osd1,loaded,0x7900000,1080p,full hdmimode=1080p cvbsmode=576cvbs androidboot.firstboot=1 hdmitx=1080p
bootcmd=run storeboot
bootdelay=1
bootfile=boot.img
bootm_low=0x00000000
bootm_size=0x80000000
bootpart=kernel
bootpath=u-boot.bin
bootrecovery=run revertbootpart; run storeboot
bootsdargs=setenv bootargs root=/dev/mmcblk0p1 rw rootfstype=ext2 rootwait init=/sbin/init console=ttyS0,115200n8 no_console_suspend cvbsdrv=${cvbs_drv} vdaccfg=${vdac_config} logo=osd1,loaded,${fb_addr},${outputmode},full hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${hdmimode}
bootsdcard=echo Booting ...;run bootsdargs; mmcinfo;ext2load mmc 0 ${loadaddr} boot.img;bootm
bootsize=100000
bootstart=0
bootupdate=echo Updating...;run bootupdateargs; mmcinfo;fatload mmc 0 ${loadaddr} boot.img;bootm
bootupdateargs=setenv bootargs root=/dev/mmcblk0p1 rw rootfstype=vfat rootwait init=/sbin/init console=ttyS0,115200n8 no_console_suspend cvbsdrv=${cvbs_drv} vdaccfg=${vdac_config} logo=osd1,loaded,${fb_addr},${outputmode},full hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${hdmimode} firmware=rootfs.tar.gz
check_rebootmode=get_rebootmode; clear_rebootmode; echo reboot_mode=${reboot_mode};if test ${reboot_mode} = factory_reset; then defenv; fi;
checkbootpart=if test ${second_image_load} = off; then setenv bootpart boot;else if test ${second_image_load} = on; then setenv bootpart kernel; fi;fi;
checkrootfspart=if test ${second_rootfs_load} = off; then setenv rootfs_part system;else if test ${second_rootfs_load} = on; then setenv rootfs_part backup; fi;fi;
chipname=8726m8
console=ttyS0,115200n8
cvbs_drv=0
cvbsmode=576cvbs
display_bpp=16
display_color_bg=0
display_color_fg=0xffff
display_color_format_index=16
display_height=1080
display_layer=osd2
display_width=1920
do_preloaddtb=if test ${second_image_load} = on; then imgread dtb kernel ${loadaddr}; else imgread dtb boot ${loadaddr}; fi;
enable_halt=0
ethact=Meson_Ethernet
ethaddr=00:15:18:01:81:31
fb_addr=0x7900000
fb_height=1080
fb_width=1920
firstboot=1
gatewayip=10.18.9.1
get_dt=checkhw
hdmimode=1080p
hostname=arm_m8
identifyWaitTime=750
initargs=root=/dev/system rootfstype=ext4 init=/sbin/init console=ttyS0,115200n8 no_console_suspend ramoops.mem_address=0x04e00000 ramoops.mem_size=0x100000 ramoops.record_size=0x8000 ramoops.console_size=0x4000
initrd_high=60000000
ipaddr=10.18.9.97
led_factory=green
loadaddr=0x12000000
loadaddr_logo=0x13000000
logodisplay=store read logo ${loadaddr_logo} 0 0x400000;bmp display ${loadaddr_logo}; bmp scale;
netmask=255.255.255.0
normalsize=400000
normalstart=1000000
outputmode=1080p
p0path=uImage
p0size=400000
p0start=1000000
p1path=android.rootfs
p1size=8000000
p1start=1400000
partnum=2
preboot=run test_facreset;if itest ${upgrade_step} == 3; then run prepare; run storeargs; run update; fi; if itest ${upgrade_step} == 1; then defenv_reserve_env; setenv upgrade_step 2; saveenv;fi; run check_rebootmode;run prepare;run storeargs;run update_ir; run switch_bootmode
preloaddtb=run do_preloaddtb
prepare=logo size ${outputmode}; video open; video clear; video dev open ${outputmode};imgread pic logo bootup ${loadaddr_logo}; bmp display ${bootup_offset}; bmp scale;
reboot_mode=charging
recovery=echo enter recovery;setenv bootargs ${bootargs};wipeisb;if mmcinfo; then if fatload mmc 0 ${loadaddr} recovery.img; then bootm;fi;fi; if usb start 0; then if fatload usb 0 ${loadaddr} recovery.img; then bootm; fi;fi;if imgread kernel recovery ${loadaddr}; then bootm; else echo no recovery in flash; fi;
resetinitargs=setenv initargs root=/dev/${rootfs_part} rootfstype=ext4 init=/sbin/init console=ttyS0,115200n8 no_console_suspend ramoops.mem_address=0x04e00000 ramoops.mem_size=0x100000 ramoops.record_size=0x8000 ramoops.console_size=0x4000
revertbootpart=if test ${second_image_load} = off; then setenv second_image_load on; else if test ${second_image_load} = on;then setenv second_image_load off; fi; fi; saveenv
rootfs_part=system
sdc_burning=sdc_burn ${sdcburncfg}
sdcburncfg=aml_sdc_burn.ini
second_image_load=on
second_rootfs_load=off
serverip=10.18.9.113
stderr=serial
stdin=serial
stdout=serial
stop_dcdn=0
store=2
storeargs=setenv bootargs ${initargs} cvbsdrv=${cvbs_drv} vdaccfg=${vdac_config} logo=osd1,loaded,${fb_addr},${outputmode},full hdmimode=${hdmimode} cvbsmode=${cvbsmode} androidboot.firstboot=${firstboot} hdmitx=${hdmimode}
storeboot=if test ${reboot_mode} = charging; then run try_auto_burn; fi;echo Booting...; run logodisplay; run checkbootpart; run checkrootfspart; run resetinitargs; run storeargs;save; if unifykey get usid; then setenv bootargs ${bootargs} androidboot.serialno=${usid};fi;if unifykey get mac; then setenv bootargs ${bootargs} mac=${mac};fi;imgread kernel ${bootpart} ${loadaddr};bootm;run bootrecovery
switch_bootmode=if test ${reboot_mode} = factory_reset; then run recovery;else if test ${reboot_mode} = update; then run update;else if test ${reboot_mode} = usb_burning; then run usb_burning;else if test ${wipe_data} = failed; then echo wipe_data=${wipe_data}; run recovery;else fi;fi;fi;fi
switchbootonce=if test ${second_image_load} = off; then setenv bootpart kernel;else if test ${second_image_load} = on; then setenv bootpart boot; fi;fi;
switchrootfspartonce=if test ${second_rootfs_load} = off; then setenv rootfs_part backup;else if test ${second_rootfs_load} = on; then setenv rootfs_part system;fi;fi;
test_facreset=if test ${wipe_data} = failed; then echo -wipe_data=${wipe_data}; run prepare; run storeargs; run recovery;fi; if test ${wipe_cache} = failed; then echo -wipe_cache=${wipe_cache}; run prepare; run storeargs; run recovery;fi;
testaddr=0x12400000
try_auto_burn=update 700 750;
update=run usb_burning; if mmcinfo; then if fatexist mmc 0 ${sdcburncfg}; then run sdc_burning; else if fatload mmc 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;run recovery;fi;else run recovery;fi;
update_ir=if irdetect; then run update; fi
upgrade_step=2
usb_burning=update 1000
vdac_config=0xa000
video_dev=tvout
wipe_cache=success
wipe_data=success
xl_kernel_ver=V1.0.427
xl_rootfs_version=V1.0.427
xl_softmode=usermode
xl_system_ver=V1.0.427
xl_test_flag=false
xl_uboot_version=V1.0.2