[U-Boot] [PATCH v3] rockchip: rk3288: Change method of loading u-boot

Simon Glass sjg at chromium.org
Tue Jul 12 01:50:25 CEST 2016


On 27 June 2016 at 02:30, Ziyuan Xu <xzy.xu at rock-chips.com> wrote:
> From: Xu Ziyuan <xzy.xu at rock-chips.com>
>
> If we would like to boot from SD card, we have to implement mmc driver
> in SPL stage, and get a slightly large spl binrary. RK3288's bootrom code
> has the ability to load spl and u-boot, then boot.
>
> If CONFIG_ROCKCHIP_RK3288_SPL_BACKTO_BROM is enabled, the spl will
> return to bootrom in board_init_f(), then bootrom load u-boot binrary.
>
> This patch does that.
>
> Loading sequence after rework:
> bootrom ==> spl ==> bootrom ==> u-boot
>
> Signed-off-by: Ziyuan Xu <xzy.xu at rock-chips.com>
> ---
>
> Changes in v3:
> - Add CONFIG_ROCKCHIP_RK3288_SPL_BACKTO_BROM for enabling this feature
> - Update doc/README.rockchip to instruct how to use it
> - Detailed commit message
>
> Changes in v2:
> - Add sdcard iomux initlization in board_init() to fix sdmmc command
> sending timeout issue when booting from eMMC
>
>  arch/arm/mach-rockchip/Makefile                    |  1 +
>  arch/arm/mach-rockchip/board.c                     | 33 ++++++++++++++++++++++
>  arch/arm/mach-rockchip/rk3036/Makefile             |  1 -
>  arch/arm/mach-rockchip/rk3288-board-spl.c          |  5 +++-
>  .../mach-rockchip/{rk3036 => }/save_boot_param.S   |  2 +-
>  doc/README.rockchip                                | 14 +++++++++
>  include/configs/rk3288_common.h                    |  4 +++
>  7 files changed, 57 insertions(+), 3 deletions(-)
>  rename arch/arm/mach-rockchip/{rk3036 => }/save_boot_param.S (90%)
>

Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list