[PATCH V3 0/4] board: ti: Add support for BeaglePlay
Mattijs Korpershoek
mkorpershoek at baylibre.com
Tue Aug 22 17:33:09 CEST 2023
On mar., août 15, 2023 at 11:44, Nishanth Menon <nm at ti.com> wrote:
> Add support for BeaglePlay - rev 3
>
> Boot log: https://gist.github.com/nmenon/3e99b44380873263e39ba4d84788db89
>
> Full series(including dependencies) can be found at:
> https://github.com/nmenon/fix-k3-dt-u-boot/commits/beagleplay-v3
>
> Caveats:
> * I have kept networking out of picture for now as it is still in debug
> (See
> https://github.com/nmenon/fix-k3-dt-u-boot/commits/beagleplay-v3-enet-debug
> if anyone is interested)
>
> Changes since V2:
> * I have rebased to latest next branch
> bdc682437a67 (origin/next) Merge branch '2023-08-14-assorted-general-updates' into next
> * Uses config fragments by default.
> * Updated MAINTAINER file as well
>
> V2: https://lore.kernel.org/u-boot/20230727234446.3651836-1-nm@ti.com/
> V1: https://lore.kernel.org/all/20230725185253.2123433-1-nm@ti.com/
>
> Nishanth Menon (3):
> arm: dts: k3-am625-sk-binman: Add labels for unsigned binary
> board: ti: am62x: Add am62x_beagleplay_* defconfigs
> doc: board: ti: Add BeaglePlay documentation
>
> Robert Nelson (1):
> arm: dts: Add k3-am625-beagleplay
I tried these series on top of next on my beagleplay with the intention of
booting U-Boot from eMMC.
Base commit: 7e6e40c57233 ("Merge tag 'v2023.10-rc3' into next")
I can't get this to boot. Seems to be stuck in the r5 spl.
Boot log is:
U-Boot SPL 2023.10-rc3-01591-ga4f9ddf99438 (Aug 22 2023 - 17:11:47 +0200)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 13400 bytes
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
Partition 1 invalid on device 0
spl_register_fat_device: fat register err - -1
spl_load_image_fat: error reading image tispl.bin, err - -1
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
It seems that when we try to find tispl.bin, we read from the mmc0boot0
hw partition instead of from the user partition.
Per my understanding, BeaglePlay has the following (simplified) boot
flow:
1. boot rom loads tiboot3 from mmc0boot0
2. tiboot3 loads tispl.bin from mmc(user), first partition (on a FAT filesystem)
3. tispl loads u-boot.img from mmc(user), first partition (on a FAT filesystem)
With the folllowing diff, I can boot all the way to U-Boot proper:
diff --git a/board/ti/am62x/beagleplay_a53.config b/board/ti/am62x/beagleplay_a53.config
index 4889e1bc6f2b..d59a3ca6926e 100644
--- a/board/ti/am62x/beagleplay_a53.config
+++ b/board/ti/am62x/beagleplay_a53.config
@@ -18,3 +18,8 @@ CONFIG_SPI=n
CONFIG_SPI_FLASH=n
CONFIG_SPL_DM_SPI_FLASH=n
CONFIG_SPL_SPI_FLASH_SUPPORT=n
+
+CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG=y
+CONFIG_SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION=0
diff --git a/board/ti/am62x/beagleplay_r5.config b/board/ti/am62x/beagleplay_r5.config
index ce64561bee92..239d0d6a55bd 100644
--- a/board/ti/am62x/beagleplay_r5.config
+++ b/board/ti/am62x/beagleplay_r5.config
@@ -9,3 +9,8 @@ CONFIG_SPI=n
CONFIG_SPI_FLASH=n
CONFIG_SPL_DM_SPI_FLASH=n
CONFIG_SPL_SPI_FLASH_SUPPORT=n
+
+CONFIG_SUPPORT_EMMC_BOOT=y
+CONFIG_SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG=y
+CONFIG_SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION=0
The above is probably not the proper way of doing things, but it seems
to resolve my booting issue.
>
> arch/arm/dts/Makefile | 2 +
> .../dts/k3-am625-beagleplay-ddr4-1600MTs.dtsi | 2195 +++++++++++++++++
> arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 172 ++
> arch/arm/dts/k3-am625-beagleplay.dts | 758 ++++++
> arch/arm/dts/k3-am625-r5-beagleplay.dts | 87 +
> arch/arm/dts/k3-am625-sk-binman.dtsi | 4 +-
> board/ti/am62x/MAINTAINERS | 7 +
> board/ti/am62x/beagleplay_a53.config | 20 +
> board/ti/am62x/beagleplay_r5.config | 11 +
> doc/board/ti/am62x_beagleplay.rst | 121 +
> doc/board/ti/k3.rst | 1 +
> 11 files changed, 3376 insertions(+), 2 deletions(-)
> create mode 100644 arch/arm/dts/k3-am625-beagleplay-ddr4-1600MTs.dtsi
> create mode 100644 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi
> create mode 100644 arch/arm/dts/k3-am625-beagleplay.dts
> create mode 100644 arch/arm/dts/k3-am625-r5-beagleplay.dts
> create mode 100644 board/ti/am62x/beagleplay_a53.config
> create mode 100644 board/ti/am62x/beagleplay_r5.config
> create mode 100644 doc/board/ti/am62x_beagleplay.rst
>
> --
> 2.40.0
More information about the U-Boot
mailing list