
Hi Stefano,
On Wed, Sep 28, 2016 at 8:21 PM, Stefano Babic sbabic@denx.de wrote:
Hi Jagan,
On 28/09/2016 16:40, Jagan Teki wrote:
I do not understand: do you copy SPL into the NAND ?
I booted through MMC first since it's only possible way to boot. And my plan is to write nand with MMC boot.
mmhh...I understand what is happening. You boot from MMC, and reading the src registers, this is the boot device. NAND is not selected, then.
I would say this is a strange configuration: you boot from MMC (and then, SPL and u-boot.img are on the MMC), or you boot from NAND, and bot SPL + u-boot.img are on NAND. In the last case, you have to write SPL according to the manual.
1) _mmc_defconfig - I've enabled SPL for MMC and add NAND support to that, so-that I can able to boot from MMC and trying to write on to NAND. 2) *_nand_defconfig - I've enabled SPL for NAND one.
Once I booted with MMC as 1) I am trying to write NAND SPL which is created as 2)
thanks!