0001-arm-socfpga-Tweak-SoCkit-default-env-for-OpenWRT.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From f17c641b74fa067c07295e20c4392664388ef7ac Mon Sep 17 00:00:00 2001
  2. From: Marek Vasut <marex@denx.de>
  3. Date: Sun, 3 Apr 2016 19:27:23 +0200
  4. Subject: [PATCH] arm: socfpga: Tweak SoCkit default env for OpenWRT
  5. Tweak the default environment on SoCFPGA SoCkit to match OpenWRT.
  6. This means switching to fitImage, which is already available, but
  7. not used by the environment and weeding out completely dysfunctional
  8. pieces of the environment.
  9. Signed-off-by: Marek Vasut <marex@denx.de>
  10. ---
  11. include/configs/socfpga_sockit.h | 20 ++++++--------------
  12. 1 file changed, 6 insertions(+), 14 deletions(-)
  13. diff --git a/include/configs/socfpga_sockit.h b/include/configs/socfpga_sockit.h
  14. index 675f5d1..3111e46 100644
  15. --- a/include/configs/socfpga_sockit.h
  16. +++ b/include/configs/socfpga_sockit.h
  17. @@ -19,7 +19,7 @@
  18. /* Booting Linux */
  19. #define CONFIG_BOOTDELAY 3
  20. -#define CONFIG_BOOTFILE "fitImage"
  21. +#define CONFIG_BOOTFILE "openwrt-socfpga-socfpga_cyclone5_sockit-fit-uImage.itb"
  22. #define CONFIG_BOOTARGS "console=ttyS0," __stringify(CONFIG_BAUDRATE)
  23. #define CONFIG_BOOTCOMMAND "run mmcload; run mmcboot"
  24. #define CONFIG_LOADADDR 0x01000000
  25. @@ -35,28 +35,20 @@
  26. /* Extra Environment */
  27. #define CONFIG_EXTRA_ENV_SETTINGS \
  28. - "verify=n\0" \
  29. "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
  30. "ramboot=setenv bootargs " CONFIG_BOOTARGS ";" \
  31. - "bootm ${loadaddr} - ${fdt_addr}\0" \
  32. - "bootimage=zImage\0" \
  33. - "fdt_addr=100\0" \
  34. - "fdtimage=socfpga.dtb\0" \
  35. - "bootm ${loadaddr} - ${fdt_addr}\0" \
  36. + "bootm ${loadaddr}\0" \
  37. "mmcroot=/dev/mmcblk0p2\0" \
  38. "mmcboot=setenv bootargs " CONFIG_BOOTARGS \
  39. " root=${mmcroot} rw rootwait;" \
  40. - "bootz ${loadaddr} - ${fdt_addr}\0" \
  41. - "mmcload=mmc rescan;" \
  42. - "load mmc 0:1 ${loadaddr} ${bootimage};" \
  43. - "load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
  44. + "bootm ${loadaddr}\0" \
  45. + "mmcload=mmc rescan && load mmc 0:2 ${loadaddr} /boot/${bootfile}\0" \
  46. "qspiload=sf probe && mtdparts default && run ubiload\0" \
  47. "qspiboot=setenv bootargs " CONFIG_BOOTARGS \
  48. " ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
  49. - "bootz ${loadaddr} - ${fdt_addr}\0" \
  50. + "bootz ${loadaddr}\0" \
  51. "ubiload=ubi part UBI && ubifsmount ubi0 && " \
  52. - "ubifsload ${loadaddr} /boot/${bootimage} && " \
  53. - "ubifsload ${fdt_addr} /boot/${fdtimage}\0"
  54. + "ubifsload ${loadaddr} /boot/${bootfile}\0"
  55. /* The rest of the configuration is shared */
  56. #include <configs/socfpga_common.h>
  57. --
  58. 2.8.1