i found some uboot commands here but i don't understand:
setenv bootcmd 'run mytvboot; if test ${bootfromnand} = 1; then setenv bootfromnand 0; saveenv; else run bootfromsd; run bootfromusb; run bootfromemmc; fi; run storeboot'
setenv mytvboot "run boot_usb; run boot_mmc; run boot_emmc;"
setenv boot_usb 'usb start; for usbdev in 3 2 1 0; do if fatload usb ${usbdev} 1000000 u-boot.ext; then go 1000000; fi; if fatload usb ${usbdev} 1000000 s905_autoscript; then autoscr 1000000; fi; done'
setenv boot_mmc 'for mmcdev in 0 1 2; do if fatload mmc ${mmcdev} 1000000 u-boot.ext; then go 1000000; fi; if fatload mmc ${mmcdev} 1000000 s905_autoscript; then autoscr 1000000; fi; done'
setenv boot_emmc 'for mmcdev in 0 1 2; do if fatload mmc ${mmcdev} 1000000 u-boot.emmc; then go 1000000; fi; if fatload mmc ${mmcdev} 1000000 s905_autoscript; then autoscr 1000000; fi; done'
setenv upgrade_step "0"
saveenv