[PATCH v2 0/5] rockchip: Fix SPI flash SPL and payload overlap
Jonas Karlman
jonas at kwiboo.se
Fri Jul 28 13:38:33 CEST 2023
This series fixes a build issue introduced in commit 5713135ecc75
("rockchip: rockpro64: Build u-boot-rockchip-spi.bin"), reported by
Peter Robinson.
Closer inspection into how SPI flash is used revealed that current
payload offset, 0x60000, is not enough to accommodate a worst-case
scenario and may overlap SPL if written to SPI flash.
This series fixes this by adjusting payload offset to 0xE0000, adjusting
SPL max size to 0x40000, enables build of u-boot-rockchip-spi.bin for
affected boards and update the SPI flashing documentation.
Changes in v2:
- Rebase on u-boot-rockchip/master
- Collect r-b tags
Jonas Karlman (5):
rockchip: rk3399-rockpro64: Fix SPL max size and SPI flash payload
offset
rockchip: rk3399-pinebook-pro: Fix SPL max size and SPI flash payload
offset
rockchip: rk3399-pinephone-pro: Fix SPL max size and SPI flash payload
offset
rockchip: rk3399-roc-pc: Fix SPL max size and SPI flash payload offset
doc: rockchip: Update SPI flashing instruction
arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi | 4 ---
arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi | 4 ---
arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 4 ---
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ---
configs/pinebook-pro-rk3399_defconfig | 4 ++-
configs/pinephone-pro-rk3399_defconfig | 4 ++-
configs/roc-pc-mezzanine-rk3399_defconfig | 4 ++-
configs/roc-pc-rk3399_defconfig | 4 ++-
configs/rockpro64-rk3399_defconfig | 5 ++--
doc/board/rockchip/rockchip.rst | 26 ++++---------------
10 files changed, 19 insertions(+), 44 deletions(-)
--
2.41.0
More information about the U-Boot
mailing list