public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] configs: mediatek:  define default variables
@ 2022-09-07 14:22 Julien STEPHAN
  2022-09-07 14:22 ` [PATCH 2/2] configs: mediatek: enable boot via extlinux Julien STEPHAN
  0 siblings, 1 reply; 3+ messages in thread
From: Julien STEPHAN @ 2022-09-07 14:22 UTC (permalink / raw)
  To: u-boot; +Cc: Jerome Brunet, Alexandre Mergnat, Julien STEPHAN

From: Jerome Brunet <jbrunet@baylibre.com>

define some default addresses and variables to help distro boot

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
---
 include/configs/mt8183.h | 5 +++++
 include/configs/mt8516.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/include/configs/mt8183.h b/include/configs/mt8183.h
index c93d70ddf1..f2a0d71556 100644
--- a/include/configs/mt8183.h
+++ b/include/configs/mt8183.h
@@ -26,6 +26,11 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"scriptaddr=0x40000000\0" \
+	"fdt_addr_r=0x44000000\0" \
+	"fdtoverlay_addr_r=0x44c00000\0" \
+	"kernel_addr_r=0x45000000\0" \
+	"ramdisk_addr_r=0x46000000\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
 	BOOTENV
 
 #endif
diff --git a/include/configs/mt8516.h b/include/configs/mt8516.h
index 7228f3e428..a9041aed46 100644
--- a/include/configs/mt8516.h
+++ b/include/configs/mt8516.h
@@ -26,6 +26,11 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"scriptaddr=0x40000000\0" \
+	"fdt_addr_r=0x44000000\0" \
+	"fdtoverlay_addr_r=0x44c00000\0" \
+	"kernel_addr_r=0x45000000\0" \
+	"ramdisk_addr_r=0x46000000\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \
 	BOOTENV
 
 #endif
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] configs: mediatek: enable boot via extlinux
  2022-09-07 14:22 [PATCH 1/2] configs: mediatek: define default variables Julien STEPHAN
@ 2022-09-07 14:22 ` Julien STEPHAN
  2022-10-07  1:04   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Julien STEPHAN @ 2022-09-07 14:22 UTC (permalink / raw)
  To: u-boot; +Cc: Alexandre Mergnat, Jerome Brunet, Julien STEPHAN

From: Alexandre Mergnat <amergnat@baylibre.com>

Enable FAT and SYSBOOT to use extlinux boot script

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: Julien STEPHAN <jstephan@baylibre.com>
---
 configs/mt8183_pumpkin_defconfig | 3 +++
 configs/mt8516_pumpkin_defconfig | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/configs/mt8183_pumpkin_defconfig b/configs/mt8183_pumpkin_defconfig
index 3c96d4eacb..9a7ad160d1 100644
--- a/configs/mt8183_pumpkin_defconfig
+++ b/configs/mt8183_pumpkin_defconfig
@@ -48,8 +48,11 @@ CONFIG_CMD_PART=y
 # CONFIG_CMD_ITEST is not set
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_BLOCK_CACHE is not set
+CONFIG_CMD_SYSBOOT=y
 CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
+# CONFIG_DOS_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_MMC_ENV_PART=2
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
diff --git a/configs/mt8516_pumpkin_defconfig b/configs/mt8516_pumpkin_defconfig
index 0425ffd0f9..97212ea6bb 100644
--- a/configs/mt8516_pumpkin_defconfig
+++ b/configs/mt8516_pumpkin_defconfig
@@ -49,6 +49,12 @@ CONFIG_CMD_PART=y
 # CONFIG_CMD_SETEXPR is not set
 # CONFIG_CMD_BLOCK_CACHE is not set
 # CONFIG_CMD_SLEEP is not set
+CONFIG_CMD_SYSBOOT=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+# CONFIG_DOS_PARTITION is not set
+CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
 CONFIG_CLK=y
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] configs: mediatek: enable boot via extlinux
  2022-09-07 14:22 ` [PATCH 2/2] configs: mediatek: enable boot via extlinux Julien STEPHAN
@ 2022-10-07  1:04   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2022-10-07  1:04 UTC (permalink / raw)
  To: Julien STEPHAN; +Cc: u-boot, Alexandre Mergnat, Jerome Brunet

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

On Wed, Sep 07, 2022 at 04:22:51PM +0200, Julien STEPHAN wrote:

> From: Alexandre Mergnat <amergnat@baylibre.com>
> 
> Enable FAT and SYSBOOT to use extlinux boot script
[snip]
> diff --git a/configs/mt8516_pumpkin_defconfig b/configs/mt8516_pumpkin_defconfig
> index 0425ffd0f9..97212ea6bb 100644
> --- a/configs/mt8516_pumpkin_defconfig
> +++ b/configs/mt8516_pumpkin_defconfig
> @@ -49,6 +49,12 @@ CONFIG_CMD_PART=y
>  # CONFIG_CMD_SETEXPR is not set
>  # CONFIG_CMD_BLOCK_CACHE is not set
>  # CONFIG_CMD_SLEEP is not set
> +CONFIG_CMD_SYSBOOT=y
> +CONFIG_CMD_EXT4=y
> +CONFIG_CMD_FAT=y
> +CONFIG_CMD_FS_GENERIC=y
> +# CONFIG_DOS_PARTITION is not set
> +CONFIG_ENV_IS_IN_MMC=y

This sets CONFIG_ENV_IS_IN_MMC but doesn't provide CONFIG_ENV_OFFSET so
the build fails.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-07  1:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 14:22 [PATCH 1/2] configs: mediatek: define default variables Julien STEPHAN
2022-09-07 14:22 ` [PATCH 2/2] configs: mediatek: enable boot via extlinux Julien STEPHAN
2022-10-07  1:04   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox