Skip to content

Instantly share code, notes, and snippets.

@vDorst
Created May 8, 2013 18:25
Show Gist options
  • Save vDorst/5542461 to your computer and use it in GitHub Desktop.
Save vDorst/5542461 to your computer and use it in GitHub Desktop.
ATV1200 U-Boot default env.
MXBOX # printenv
1080ioutputheight=1042
1080ioutputwidth=1834
1080ioutputx=42
1080ioutputy=20
1080poutputheight=1034
1080poutputwidth=1832
1080poutputx=42
1080poutputy=22
480ioutputheight=462
480ioutputwidth=688
480ioutputx=14
480ioutputy=8
480poutputheight=462
480poutputwidth=688
480poutputx=14
480poutputy=8
576ioutputheight=554
576ioutputwidth=688
576ioutputx=14
576ioutputy=10
576poutputheight=552
576poutputwidth=688
576poutputx=14
576poutputy=12
720poutputheight=692
720poutputwidth=1224
720poutputx=25
720poutputy=14
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
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:0d:fe:59:79:2a
fb_addr=0x84900000
gatewayip=192.168.1.1
has.accelerometer=false
hdmicecswitch=false
hostname=stvmx
ipaddr=192.168.10.25
loadaddr=0x82000000
loadaddr_misc=0x83000000
loadlogoaddr=0x84100000
logo_name=logo
logo_size=0x400000
logo_start=0
macaddr=00:0d:fe:59:79:2a
machid=4e27
memsize=1024M
mmcargs=setenv bootargs console=${console} root=/dev/cardblksd2 rw rootfstype=ext3 rootwait init=/init logo=osd1,0x84100000,${outputmode},full 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=${hdmicecswitch}
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
preboot=get_rebootmode; clear_rebootmode; echo reboot_mode=${reboot_mode}; if test ${reboot_mode} = usb_burning; then tiny_usbtool 20000; fi; run upgrade_check; run switch_bootmode
readlogo=nand read ${logo_name} ${loadlogoaddr} ${logo_start} ${logo_size}
reboot_mode=charging
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 ...; sf probe 2; sf read ${loadaddr} 60000 3A0000; run nandargs;bootm ${loadaddr}
recoverymmc=echo Enter MMC Recovery mode ...; mmcinfo;fatload mmc 0 ${loadaddr} uImage_recovery; run nandargs;bootm ${loadaddr}
serverip=192.168.10.250
sleep_threshold=20
spifile=spi_MX.bin
subverhw=MX0
switch_bootmode=if test ${reboot_mode} = factory_reset; then run recovery;fi
testaddr=0x82400000
upgrade_check=if itest ${upgrade_step} == 1; then defenv_without reboot_mode;setenv upgrade_step 2; save; fi
upgrade_count=8
upgrade_step=2
usbtty=cdc_acm
verhw=MX_NORMAL
verrec=5fb319b(20121121.094306)
verubt=cd56cfa-dirty(20121121.102158)
video_dev=tvout
wifi=rtl8192cu
Environment size: 3670/32764 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment