Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created May 3, 2013 17:44
Show Gist options
  • Save RobertCNelson/5511869 to your computer and use it in GitHub Desktop.
Save RobertCNelson/5511869 to your computer and use it in GitHub Desktop.
#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