[U-Boot] i.MX6: NAND boot with SPL

Jagan Teki jagannadh.teki at gmail.com
Wed Sep 28 18:01:59 CEST 2016


Hi Stefano,

On Wed, Sep 28, 2016 at 8:21 PM, Stefano Babic <sbabic at 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!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list