From: Ben Wolsieffer <benwolsieffer@gmail.com>
To: u-boot@lists.denx.de
Cc: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>,
Tom Rini <trini@konsulko.com>,
Kever Yang <kever.yang@rock-chips.com>,
Ben Wolsieffer <benwolsieffer@gmail.com>
Subject: [PATCH] rockchip: rock64: store env in SPI flash
Date: Sat, 24 Feb 2024 18:50:11 -0500 [thread overview]
Message-ID: <20240224235011.290117-1-benwolsieffer@gmail.com> (raw)
Currently, U-Boot attempts to store the environment in MMC 0, which
doesn't work when an eMMC is used without an SD card. There is an SPI
flash chip on the board, so use that instead which should work in all
cases. Additionally, this brings the Rock64 into line with the
RockPro64.
Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
---
configs/rock64-rk3328_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig
index 0297d09876..589e5184ca 100644
--- a/configs/rock64-rk3328_defconfig
+++ b/configs/rock64-rk3328_defconfig
@@ -8,6 +8,7 @@ CONFIG_NR_DRAM_BANKS=1
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x300000
CONFIG_SF_DEFAULT_SPEED=20000000
+CONFIG_ENV_SIZE=0x8000
CONFIG_ENV_OFFSET=0x3F8000
CONFIG_DEFAULT_DEVICE_TREE="rk3328-rock64"
CONFIG_DM_RESET=y
@@ -54,7 +55,7 @@ CONFIG_SPL_OF_CONTROL=y
CONFIG_TPL_OF_CONTROL=y
CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_TPL_OF_PLATDATA=y
-CONFIG_ENV_IS_IN_MMC=y
+CONFIG_ENV_IS_IN_SPI_FLASH=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_SYS_MMC_ENV_DEV=1
CONFIG_NET_RANDOM_ETHADDR=y
--
2.43.2
next reply other threads:[~2024-02-24 23:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-24 23:50 Ben Wolsieffer [this message]
2024-02-25 10:05 ` [PATCH] rockchip: rock64: store env in SPI flash Matwey V. Kornilov
2024-02-25 19:05 ` Ben Wolsieffer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240224235011.290117-1-benwolsieffer@gmail.com \
--to=benwolsieffer@gmail.com \
--cc=kever.yang@rock-chips.com \
--cc=matwey.kornilov@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.