Created
July 9, 2015 21:59
-
-
Save dlintw/96799f668c78ba34570d to your computer and use it in GitHub Desktop.
xbmc sample uboot.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uboot.sh - TWPDA UBOOT modification for setting boot parameters | |
# Read TWPDA UBOOT logic http://www.twpda.com/2013/08/uboot-code.html | |
# hush script syntax http://www.stlinux.com/u-boot/using | |
# boot settings for sh4twbox install disk | |
# * bootargs: root=8:1 means sda1, sda2 8:2, sdb1 8:17, sdb2 8:18 | |
# * bootcmd: 0:1 first usb parition, 0:2 2nd usb parition | |
setenv bootargs 'console=ttyAS0,115200 rootdelay=0 root=/dev/sda2 rootfstype=ext4 rw rootflags=data=journal nwhwconf=device:eth0,hwaddr:10:08:E2:12:06:BD phyaddr:0,watchdog:5000 mem=256M bigphysarea=2048' | |
#setenv bootcmd 'usbcfg 0; usb start; usb info; usb part; ext2load usb 0:1 80000000 vmlinux.ub; bootm 80000000' | |
setenv bootcmd 'fatload usb 0:2 80000000 vmlinux.ub; bootm 80000000' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment