dm: rockchip: Enable booting from MMC
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 0 repliesNew
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | doc: Fix reference to Rock pro when Rock 2 is meantdoc/ | +3 | 0 replies | |
| 2/8 | mmc: Probe DM based mmc devices in u-bootdrivers/ | +39 | 1 reply | |
| 3/8 | rockchip: Disable sdio mmc slot on rk3288-fireflyarch/ | +1 | 0 replies | |
| 4/8 | rockchip: Turn off CONFIG_SPL_LED_SUPPORT for fireflyconfigs/ include/ | +0 | 1 reply | |
| 5/8 | rockchip: Add config_distro_bootcmd supportinclude/ | +21 | 0 replies | |
| 6/8 | arm: Turn of d-cache before i-cachearch/ | +9 | 0 replies | |
| 7/8 | rockchip: Drop first 32kb of zeros from the rkSD image typedoc/ tools/ | +3 | 0 replies | |
| 8/8 | rockchip: Update todo in README.rockchipdoc/ | +0 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Simon Glass |
|---|---|
| 1/8 | A-b |
| 2/8 | A-b |
| 3/8 | A-b |
| 4/8 | A-b |
| 5/8 | A-b |
| 6/8 | R-b |
| 7/8 | A-b |
| 8/8 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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