uboot-am335x_evm_boot-on-grub.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. diff -Nur a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
  2. --- a/include/configs/am335x_evm.h 2015-07-14 14:32:21.000000000 -0300
  3. +++ b/include/configs/am335x_evm.h 2015-09-29 03:46:04.805107365 -0300
  4. @@ -58,9 +58,8 @@
  5. "nandrootfstype=ubifs rootwait=1\0" \
  6. "nandboot=echo Booting from nand ...; " \
  7. "run nandargs; " \
  8. - "nand read ${fdtaddr} NAND.u-boot-spl-os; " \
  9. "nand read ${loadaddr} NAND.kernel; " \
  10. - "bootz ${loadaddr} - ${fdtaddr}\0"
  11. + "bootm ${loadaddr}\0"
  12. #else
  13. #define NANDARGS ""
  14. #endif
  15. @@ -70,11 +69,9 @@
  16. #ifndef CONFIG_SPL_BUILD
  17. #define CONFIG_EXTRA_ENV_SETTINGS \
  18. DEFAULT_LINUX_BOOT_ENV \
  19. - "boot_fdt=try\0" \
  20. - "bootpart=0:2\0" \
  21. + "bootpart=0:1\0" \
  22. "bootdir=/boot\0" \
  23. - "bootfile=zImage\0" \
  24. - "fdtfile=undefined\0" \
  25. + "bootfile=grub/arm-uboot/core.img\0" \
  26. "console=ttyO0,115200n8\0" \
  27. "partitions=" \
  28. "uuid_disk=${uuid_gpt_disk};" \
  29. @@ -98,7 +95,7 @@
  30. "${optargs} " \
  31. "root=${spiroot} " \
  32. "rootfstype=${spirootfstype}\0" \
  33. - "bootenv=uEnv.txt\0" \
  34. + "bootenv=uboot-grub-am335x_evm/uEnv.txt\0" \
  35. "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
  36. "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
  37. "source ${loadaddr}\0" \
  38. @@ -111,21 +108,8 @@
  39. "rootfstype=${ramrootfstype}\0" \
  40. "loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz\0" \
  41. "loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
  42. - "loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
  43. "mmcloados=run mmcargs; " \
  44. - "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
  45. - "if run loadfdt; then " \
  46. - "bootz ${loadaddr} - ${fdtaddr}; " \
  47. - "else " \
  48. - "if test ${boot_fdt} = try; then " \
  49. - "bootz; " \
  50. - "else " \
  51. - "echo WARN: Cannot load the DT; " \
  52. - "fi; " \
  53. - "fi; " \
  54. - "else " \
  55. - "bootz; " \
  56. - "fi;\0" \
  57. + "bootm ${loadaddr}; " \
  58. "mmcboot=mmc dev ${mmcdev}; " \
  59. "if mmc rescan; then " \
  60. "echo SD/MMC found on device ${mmcdev};" \
  61. @@ -149,28 +133,16 @@
  62. "run spiargs; " \
  63. "sf probe ${spibusno}:0; " \
  64. "sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; " \
  65. - "bootz ${loadaddr}\0" \
  66. + "bootm ${loadaddr}\0" \
  67. "ramboot=echo Booting from ramdisk ...; " \
  68. "run ramargs; " \
  69. - "bootz ${loadaddr} ${rdaddr} ${fdtaddr}\0" \
  70. - "findfdt="\
  71. - "if test $board_name = A335BONE; then " \
  72. - "setenv fdtfile am335x-bone.dtb; fi; " \
  73. - "if test $board_name = A335BNLT; then " \
  74. - "setenv fdtfile am335x-boneblack.dtb; fi; " \
  75. - "if test $board_name = A33515BB; then " \
  76. - "setenv fdtfile am335x-evm.dtb; fi; " \
  77. - "if test $board_name = A335X_SK; then " \
  78. - "setenv fdtfile am335x-evmsk.dtb; fi; " \
  79. - "if test $fdtfile = undefined; then " \
  80. - "echo WARNING: Could not determine device tree to use; fi; \0" \
  81. + "bootm ${loadaddr} ${rdaddr}\0" \
  82. NANDARGS \
  83. NETARGS \
  84. DFUARGS
  85. #endif
  86. #define CONFIG_BOOTCOMMAND \
  87. - "run findfdt; " \
  88. "run mmcboot;" \
  89. "setenv mmcdev 1; " \
  90. "setenv bootpart 1:2; " \
  91. @@ -379,7 +351,6 @@
  92. #define DFU_ALT_INFO_RAM \
  93. "dfu_alt_info_ram=" \
  94. "kernel ram 0x80200000 0xD80000;" \
  95. - "fdt ram 0x80F80000 0x80000;" \
  96. "ramdisk ram 0x81000000 0x4000000\0"
  97. #define DFUARGS \
  98. "dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \