[U-Boot] [PATCH] powerpc/t1040qds: Add support of SD boot for T1040QDS Board

York Sun yorksun at freescale.com
Tue Dec 2 05:24:53 CET 2014


On 11/01/2014 12:31 AM, Vijay Rai wrote:
> Add support of 2 stage SD boot loader using SPL framework.
> here, PBL initialise the internal SRAM and copy SPL(160KB). This further
> initialise DDR using SPD environment and copy u-boot(768 KB) from NAND to DDR.
> Finally SPL transer control to u-boot.
> 
> Initialise/create followings required for SPL framework
>       - Add spl.c which defines board_init_f, board_init_r
>       - Update tlb and ddr accordingly
> 
> Add T1040QDS_SDCARD_defconfig
> Update t1040_pbi.cfg to support errata A-007662, A-008007 and LAW for CPC1
> 
> Signed-off-by: Vijay Rai <vijay.rai at freescale.com>
> ---
>  board/freescale/t1040qds/MAINTAINERS   |    5 ++
>  board/freescale/t1040qds/Makefile      |   10 ++-
>  board/freescale/t1040qds/ddr.c         |    5 +-
>  board/freescale/t1040qds/spl.c         |  155 ++++++++++++++++++++++++++++++++
>  board/freescale/t1040qds/t1040_pbi.cfg |   16 +++-
>  board/freescale/t1040qds/t1040qds.c    |    6 +-
>  board/freescale/t1040qds/tlb.c         |   11 +++
>  configs/T1040QDS_SDCARD_defconfig      |    5 ++
>  include/configs/T1040QDS.h             |   85 ++++++++++++++----
>  9 files changed, 275 insertions(+), 23 deletions(-)
>  create mode 100644 board/freescale/t1040qds/spl.c
>  create mode 100644 configs/T1040QDS_SDCARD_defconfig
> 


I don't know if you have tested this patch. It has at least two issues. First,
it fails compiling for T1040QDS_SDCARD target. I think you missed a change to
Kconfig.

Second, it breaks T1040QDS target. I guess your change to
include/configs/T1040QDS.h has ifdef/endif messed up.

Please try it on top of tree git://git.denx.de/u-boot.git, or u-boot-mpc85xx.git.

York



More information about the U-Boot mailing list