When I unzip a SPI update it has uboot and recovery but this file env_MX.img.
Looking at that with a hex editor it has this inside. Looks like a DTD in some way?
a9_clk_max=1512000000 batfull_threshold=98 batlow_threshold=10 baudrate=115200 boardname=stvmx bootcmd=run nandboot bootdelay=1 bootfile=uImage burnspi=mmcinfo;fatload mmc 0:1 82000000 ${spifile};sf probe 2;sf erase 0 400000;sf write 82000000 0 400000 cecconfig=false chipname=8726m6 console=ttyS0,115200n8 cvbscheck=setenv outputtemp ${outputmode};if test ${outputmode} = 480i; then if test ${cvbsenable} = true; then setenv outputtemp 480cvbs;fi;fi; if test ${outputmode} = 576i; then if test ${cvbsenable} = true; then setenv outputtemp 576cvbs;fi;fi cvbsenable=false display_bpp=24 display_color_bg=0 display_color_fg=0xffff display_color_format_index=24 display_height=480 display_layer=osd1 display_width=720 emac=efuse ethact=Meson_Ethernet ethaddr=00:01:02:03:04:06 fb_addr=0x84900000 gatewayip=192.168.1.1 hdmicecswitch=false hostname=stvmx ipaddr=192.168.1.2 loadaddr=0x82000000 loadaddr_misc=0x83000000 loadlogoaddr=0x84100000 logo_name=logo logo_size=0x400000 logo_start=0 machid=4e27 memsize=1024M mmcargs=setenv bootargs console=${console} root=/dev/cardblksd2 rw rootfstype=ext3 rootwait init=/init logo=osd1,0x84100000,${outputmode} androidboot.resolution=${outputmode} nohlt mem=${memsize} vmalloc=256m mac=${ethaddr} nandargs=run cvbscheck; run readlogo;setenv bootargs console=${console} a9_clk_max=${a9_clk_max} logo=osd1,0x84100000,${outputtemp},full androidboot.resolution=${outputmode} nohlt mem=${memsize} vmalloc=256m mac=${ethaddr} verhw=${verhw} subverhw=${subverhw} hdmitx=${cecconfig} nandboot=echo Booting from nand ...; nand read ${normal_name} ${loadaddr} ${normal_start} ${normal_size}; run nandargs; bootm ${loadaddr} netmask=255.255.255.0 normal_name=boot normal_size=0x800000 normal_start=0 outputmode=720p outputtemp=720p preboot=get_rebootmode; clear_rebootmode; echo reboot_mode=${reboot_mode}; if test ${reboot_mode} = usb_burning; then tiny_usbtool 20000; fi; run upgrade_check; echo updatekeytype=${updatekeytype}; if test ${updatekeytype} = gpio; then run updategpiokey_or_not;else run updatekey_or_not; fi; run switch_bootmode readlogo=nand read ${logo_name} ${loadlogoaddr} ${logo_start} ${logo_size} recovery=run recoveryboot recoveryargs=run readlogo;setenv bootargs console=${console} verhw=${verhw} subverhw=${subverhw} logo=osd1,0x84100000,${outputtemp},full nohlt mem=${memsize} vmalloc=256m mac=${ethaddr} recoveryboot=echo Enter Recovery mode ...; led recovery; sf probe 2; sf read ${loadaddr} 60000 3A0000; run nandargs;bootm ${loadaddr}; run recoverymmc recoverymmc=echo Enter MMC Recovery mode ...; led recovery; mmcinfo;fatload mmc 0 ${loadaddr} uImage_recovery; run nandargs;bootm ${loadaddr} serverip=192.168.1.5 sleep_threshold=20 spifile=spi_mx.bin switch_bootmode=if test ${reboot_mode} = factory_reset; then run recovery;fi; led normal testaddr=0x82400000 update=if mmcinfo; then if fatload mmc 0 ${loadaddr} factory_update_param.ubt; then autoscr ${loadaddr}; fi;fi;run recovery updategpiokey_or_not=if getupdatekey; then msleep 500; if getupdatekey; then run update; fi; fi updatekey_or_not=saradc open 4;if saradc get_in_range 0x0 0x50 ;then msleep 500;if saradc get_in_range 0x0 0x50; then run update; fi; fi upgrade_check=if itest ${upgrade_step} == 1; then setenv upgrade_step 2; save; run recovery; fi upgrade_count=8 upgrade_step=2 usbtty=cdc_acm video_dev=tvout 720poutputx=25 720poutputy=14 720poutputwidth=1224 720poutputheight=692 1080poutputx=42 1080poutputy=22 1080poutputwidth=1832 1080poutputheight=1034 480poutputx=14 480poutputy=8 480poutputwidth=688 480poutputheight=462 480ioutputx=14 480ioutputy=8 480ioutputwidth=688 480ioutputheight=462 576ioutputx=14 576ioutputy=10 576ioutputwidth=688 576ioutputheight=554 576poutputx=14 576poutputy=12 576poutputwidth=688 576poutputheight=552 1080ioutputx=42 1080ioutputy=20 1080ioutputwidth=1834 1080ioutputheight=1042
Bob
Comment