diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2021-08-07 16:07:22 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-02 02:25:37 +0300 |
commit | f64011e11e283b34b6792165a36c42b8241f2a24 (patch) | |
tree | 795ef40ff62a7f39088d0f5f04842b6cf8c61140 /include | |
parent | fc9d4b123d50f95185baf37bea58b8ec499f3e66 (diff) | |
download | u-boot-f64011e11e283b34b6792165a36c42b8241f2a24.tar.xz |
board: stemmy: Add basic Fastboot support
Make use of the new drivers for ARM U8500 introduced in the U-Boot
2021.10 merge window by adding basic support for USB Fastboot with
the "stemmy" board. As a first step this will always boot directly
into USB Fastboot for now with the console displayed on the screen
to make that obvious.
Samsung uses quite strange GPT partition labels on these boards,
so also add a bunch of fastboot_partition_alias_* to make this more
easy to use.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/stemmy.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/configs/stemmy.h b/include/configs/stemmy.h index b3a17c5b4f..b250a53e60 100644 --- a/include/configs/stemmy.h +++ b/include/configs/stemmy.h @@ -22,4 +22,31 @@ /* Generate initrd atag for downstream kernel (others are copied in stemmy.c) */ #define CONFIG_INITRD_TAG +/* Linux does not boot if FDT / initrd is loaded to end of RAM */ +#define BOOT_ENV \ + "fdt_high=0x6000000\0" \ + "initrd_high=0x6000000\0" + +#define CONSOLE_ENV \ + "stdin=serial\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + +#define FASTBOOT_ENV \ + "fastboot_partition_alias_boot=Kernel\0" \ + "fastboot_partition_alias_recovery=Kernel2\0" \ + "fastboot_partition_alias_system=SYSTEM\0" \ + "fastboot_partition_alias_cache=CACHEFS\0" \ + "fastboot_partition_alias_hidden=HIDDEN\0" \ + "fastboot_partition_alias_userdata=DATAFS\0" + +#define BOOTCMD_ENV \ + "fastbootcmd=echo '*** FASTBOOT MODE ***'; fastboot usb 0\0" + +#define CONFIG_EXTRA_ENV_SETTINGS \ + BOOT_ENV \ + CONSOLE_ENV \ + FASTBOOT_ENV \ + BOOTCMD_ENV + #endif |