From: Rommel G Custodio Date: Fri, 11 Apr 2014 04:03:24 +0000 (UTC) Subject: [U-Boot] =?utf-8?q?=5BPATCH_10/10=5D=5Bv2=5D_board/t104xrdb=3A_Ad?= =?utf-8?q?d_support_of_NAND=2C_SD=2C=09SPI_boot_for_T104xRDB?= References: <1396964636-15025-1-git-send-email-prabhakar@freescale.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Prabhakar Kushwaha, Prabhakar Kushwaha freescale.com> writes: > > Add support of 2 stage NAND, SD, SPI boot loader using SPL framework. > here, PBL initialise the internal SRAM and copy SPL(160KB). This further > initialise DDR using SPD and 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 > > Signed-off-by: Prabhakar Kushwaha freescale.com> I've copied these modifications and changed them for T1040QDS (it's the only board I have). SPL boot does not proceed. SPL stops in spi_xfer() during spi_spl_load_image(). The Data TLB error seems to be caused by an stbx but the register operands contain zeroes. SPL hangs with a Data TLB error at this time CPC-SRAM is also corrupted. There are 4-bytes mangled in the [U-boot SPL] area. Original: 0000000: 27051956 552d426f 6f742032 3031332e '..VU-Boot 2013. After: 0000000: 27051956 fffd9584 6f742032 3031332e '..V....ot 2013. fffd9584 is the address of trap_init(). These errors also occurs in u-boot-fsl-qoriq tree (2014.04). Tried different compilers from ELDK 5.3, ELDK 5.4 to FSL 1.2. Any ideas on the cause of these errors? All the best, Rommel