Skip to content

dm: rockchip: Enable booting from MMC

Sjoerd Simons u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v10 of 8 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Check error code from uclass_get and thread it through to mmc_initialize
- Also drop CONFIG_SPL_LED from the firefly defconfig
- Fixed various typos and inconsitencies in commit message

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8doc: Fix reference to Rock pro when Rock 2 is meantdoc/README.rockchip+3 -30 replies
2/8mmc: Probe DM based mmc devices in u-bootdrivers/mmc/mmc.c+39 -41 reply
3/8rockchip: Disable sdio mmc slot on rk3288-fireflyarch/arm/dts/rk3288-firefly.dtsi+1 -10 replies
4/8rockchip: Turn off CONFIG_SPL_LED_SUPPORT for fireflyconfigs/firefly-rk3288_defconfig include/configs/firefly-rk3288.h+0 -21 reply
5/8rockchip: Add config_distro_bootcmd supportinclude/configs/rk3288_common.h+21 -00 replies
6/8arm: Turn of d-cache before i-cachearch/arm/cpu/armv7/cpu.c+9 -60 replies
7/8rockchip: Drop first 32kb of zeros from the rkSD image typedoc/README.rockchip tools/rksd.c+3 -80 replies
8/8rockchip: Update todo in README.rockchipdoc/README.rockchip+0 -10 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8R-b
7/8A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/8] dm: rockchip: Enable booting from MMC

This patchset allows u-boot on RK3288 device to load and boot kernels from MMC using the standard distro boot commands. Patchset is on top of the rockchip-working branch of u-boot dm

There are some small oddities with the support:
- Linux crashes when try to use the FDT if it's re-allocated to memory locations above 512MB. So fdt_high is set to ensure it stays below that.
- This SoC seems sensitive to the order in which the caches are disabled, when disabling the i-cache before the d-cache starting linux fails (unsure if it fails before or after jumping to linux though)

To fix the latter ``arm: Turn of d-cache before i-cache'' changes the ordering in the general v7 code. However i have not tested this yet on other device, so it may well need to be handled in rockchip specific code.

Tested on a Radxa Rock 2 with square baseboard, booting from SD card. I haven't tested eMMC yet however i suspect the SPL will need modifications there to load u-boot from eMMC rather then SD (which has index 0) ideally by detecting where the SPL itself got loaded from.

Changes in v2:
- Check error code from uclass_get and thread it through to mmc_initialize
- Also drop CONFIG_SPL_LED from the firefly defconfig
- Fixed various typos and inconsitencies in commit message

Sjoerd Simons (8):
doc: Fix reference to Rock pro when Rock 2 is meant
mmc: Probe DM based mmc devices in u-boot
rockchip: Disable sdio mmc slot on rk3288-firefly
rockchip: Turn off CONFIG_SPL_LED_SUPPORT for firefly
rockchip: Add config_distro_bootcmd support
arm: Turn of d-cache before i-cache
rockchip: Drop first 32kb of zeros from the rkSD image type
rockchip: Update todo in README.rockchip

 arch/arm/cpu/armv7/cpu.c         | 15 ++++++++------
 arch/arm/dts/rk3288-firefly.dtsi |  2 +-
 configs/firefly-rk3288_defconfig |  1 -
 doc/README.rockchip              |  9 ++++-----
 drivers/mmc/mmc.c                | 43 ++++++++++++++++++++++++++++++++++++----
 include/configs/firefly-rk3288.h |  1 -
 include/configs/rk3288_common.h  | 21 ++++++++++++++++++++
 tools/rksd.c                     |  9 ++-------
 8 files changed, 76 insertions(+), 25 deletions(-)
Signature · 1 line
2.5.1