summaryrefslogtreecommitdiff
path: root/libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch')
-rw-r--r--libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch b/libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch
new file mode 100644
index 000000000..19e61a257
--- /dev/null
+++ b/libre/uboot4extlinux-imx/0004-board-tbs2910_defconfig-Add-support-for-booting-gene.patch
@@ -0,0 +1,56 @@
+From e63ab4527ea4ee23de7ee3335d14ee597667b457 Mon Sep 17 00:00:00 2001
+From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+Date: Sat, 30 May 2020 05:24:22 +0200
+Subject: [PATCH 4/6] board: tbs2910_defconfig: Add support for booting general
+ purpose distributions
+
+This is needed to enable distro_boot support later on.
+
+Adding the necessary configuration to enable booting general
+purpose distributions is typically done by enabling
+CONFIG_DISTRO_DEFAULTS.
+
+However the resulting image size is is already very close to
+the size limit and PXE isn't strictly needed, so instead we
+made sure that all the configuration selected by
+CONFIG_DISTRO_DEFAULTS were selected, with the exception of
+PXE related configuration (CONFIG_BOOTP_PXE and
+CONFIG_CMD_PXE) that are both disabled.
+
+With arm-linux-gnueabi-gcc 9.3.0-1 from the Parabola
+GNU/Linux distribution, we have the following size
+differences:
+- text: +7526 bytes
+- data: +28 bytes
+- bss: -12 bytes
+- total: +7542 bytes
+
+Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+Reviewed-by: Soeren Moch <smoch@web.de>
+---
+ configs/tbs2910_defconfig | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig
+index d14ff45615..fc9095c859 100644
+--- a/configs/tbs2910_defconfig
++++ b/configs/tbs2910_defconfig
+@@ -9,6 +9,7 @@ CONFIG_NR_DRAM_BANKS=1
+ CONFIG_PRE_CON_BUF_ADDR=0x7c000000
+ CONFIG_CMD_HDMIDETECT=y
+ CONFIG_AHCI=y
++CONFIG_ENV_VARS_UBOOT_CONFIG=y
+ CONFIG_BOOTDELAY=3
+ CONFIG_USE_BOOTCOMMAND=y
+ CONFIG_BOOTCOMMAND="mmc rescan; if run bootcmd_up1; then run bootcmd_up2; else run bootcmd_mmc; fi"
+@@ -43,6 +44,7 @@ CONFIG_CMD_MII=y
+ CONFIG_CMD_PING=y
+ CONFIG_CMD_CACHE=y
+ CONFIG_CMD_TIME=y
++CONFIG_CMD_SYSBOOT=y
+ CONFIG_CMD_EXT2=y
+ CONFIG_CMD_EXT4=y
+ CONFIG_CMD_EXT4_WRITE=y
+--
+2.27.0
+