Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
  2. index 68ccf11..67d6cb3 100644
  3. --- a/include/configs/am335x_evm.h
  4. +++ b/include/configs/am335x_evm.h
  5. @@ -67,6 +67,10 @@
  6. "${optargs} " \
  7. "root=${mmcroot} " \
  8. "rootfstype=${mmcrootfstype}\0" \
  9. + "preenv=preEnv.txt\0" \
  10. + "loadpreenv=fatload mmc ${mmcdev} ${loadaddr} ${preenv}\0" \
  11. + "importpreenv=echo Importing preboot environment from mmc ...; " \
  12. + "env import -t $loadaddr $filesize\0" \
  13. "bootenv=uEnv.txt\0" \
  14. "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
  15. "importbootenv=echo Importing environment from mmc ...; " \
  16. @@ -94,6 +98,18 @@
  17. "if test $board_name = A335X_SK; then " \
  18. "setenv fdtfile am335x-evmsk.dtb; fi\0" \
  19.  
  20. +#define CONFIG_PREBOOT \
  21. + "echo checking for ${preenv};" \
  22. + "if mmc rescan ${mmcdev}; then " \
  23. + "if run loadpreenv; then " \
  24. + "echo Loaded environment from ${preenv};" \
  25. + "run importpreenv;" \
  26. + "if test -n $preenvcmd; then " \
  27. + "echo Running preenvcmd ...;" \
  28. + "run preenvcmd;" \
  29. + "fi;" \
  30. + "fi;" \
  31. + "fi"
  32.  
  33. #define CONFIG_BOOTCOMMAND \
  34. "run findfdt; " \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement