0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From e63ab4527ea4ee23de7ee3335d14ee597667b457 Mon Sep 17 00:00:00 2001
  2. From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  3. Date: Sat, 30 May 2020 05:24:22 +0200
  4. Subject: [PATCH 4/6] board: tbs2910_defconfig: Add support for booting general
  5. purpose distributions
  6. This is needed to enable distro_boot support later on.
  7. Adding the necessary configuration to enable booting general
  8. purpose distributions is typically done by enabling
  9. CONFIG_DISTRO_DEFAULTS.
  10. However the resulting image size is is already very close to
  11. the size limit and PXE isn't strictly needed, so instead we
  12. made sure that all the configuration selected by
  13. CONFIG_DISTRO_DEFAULTS were selected, with the exception of
  14. PXE related configuration (CONFIG_BOOTP_PXE and
  15. CONFIG_CMD_PXE) that are both disabled.
  16. With arm-linux-gnueabi-gcc 9.3.0-1 from the Parabola
  17. GNU/Linux distribution, we have the following size
  18. differences:
  19. - text: +7526 bytes
  20. - data: +28 bytes
  21. - bss: -12 bytes
  22. - total: +7542 bytes
  23. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
  24. Reviewed-by: Soeren Moch <smoch@web.de>
  25. ---
  26. configs/tbs2910_defconfig | 2 ++
  27. 1 file changed, 2 insertions(+)
  28. diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
  29. index d14ff45615..fc9095c859 100644
  30. --- a/configs/tbs2910_defconfig
  31. +++ b/configs/tbs2910_defconfig
  32. @@ -9,6 +9,7 @@ CONFIG_NR_DRAM_BANKS=1
  33. CONFIG_PRE_CON_BUF_ADDR=0x7c000000
  34. CONFIG_CMD_HDMIDETECT=y
  35. CONFIG_AHCI=y
  36. +CONFIG_ENV_VARS_UBOOT_CONFIG=y
  37. CONFIG_BOOTDELAY=3
  38. CONFIG_USE_BOOTCOMMAND=y
  39. CONFIG_BOOTCOMMAND="mmc rescan; if run bootcmd_up1; then run bootcmd_up2; else run bootcmd_mmc; fi"
  40. @@ -43,6 +44,7 @@ CONFIG_CMD_MII=y
  41. CONFIG_CMD_PING=y
  42. CONFIG_CMD_CACHE=y
  43. CONFIG_CMD_TIME=y
  44. +CONFIG_CMD_SYSBOOT=y
  45. CONFIG_CMD_EXT2=y
  46. CONFIG_CMD_EXT4=y
  47. CONFIG_CMD_EXT4_WRITE=y
  48. --
  49. 2.27.0