Created
May 3, 2013 17:44
-
-
Save RobertCNelson/5511869 to your computer and use it in GitHub Desktop.
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
#define CONFIG_BOOTCOMMAND \ | |
"gpio set 53; " \ | |
"i2c mw 0x24 1 0x3e; " \ | |
"run findfdt; " \ | |
"mmc dev 0; if mmc rescan ; then " \ | |
"gpio set 54; " \ | |
"setenv mmcdev 0; " \ | |
"echo SD/MMC found on device ${mmcdev}; " \ | |
"if run loadbootenv; then " \ | |
"run importbootenv; " \ | |
"fi; " \ | |
"gpio set 55; " \ | |
"if test -n $uenvcmd; then " \ | |
"gpio set 56; " \ | |
"echo Running uenvcmd ...; " \ | |
"run uenvcmd;" \ | |
"fi; " \ | |
"fi;" \ | |
"mmc dev 1; if mmc rescan ; then " \ | |
"gpio set 54; " \ | |
"setenv mmcdev 1; " \ | |
"echo SD/MMC found on device ${mmcdev}; " \ | |
"if run loadbootenv; then " \ | |
"run importbootenv; " \ | |
"fi; " \ | |
"gpio set 55; " \ | |
"if test -n $uenvcmd; then " \ | |
"gpio set 56; " \ | |
"echo Running uenvcmd ...; " \ | |
"run uenvcmd;" \ | |
"fi; " \ | |
"fi;" \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment