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

Sjoerd Simons sjoerd.simons at collabora.co.uk
Sun Aug 16 14:01:48 CEST 2015


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.


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 +-
 doc/README.rockchip              |  9 ++++-----
 drivers/mmc/mmc.c                | 32 ++++++++++++++++++++++++++++----
 include/configs/firefly-rk3288.h |  1 -
 include/configs/rk3288_common.h  | 21 +++++++++++++++++++++
 tools/rksd.c                     |  9 ++-------
 7 files changed, 65 insertions(+), 24 deletions(-)

-- 
2.5.0



More information about the U-Boot mailing list