public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] no DTB with nand SPL on sama5d3
Date: Thu, 17 Jan 2019 09:01:59 +0000	[thread overview]
Message-ID: <c7a1becc-bdbb-c622-a7b7-c7a79afb900c@microchip.com> (raw)
In-Reply-To: <29C0B834-4D49-462A-BF16-780353DF18D2@gmail.com>



On 16.01.2019 21:05, Daniel Evans wrote:
> Hello,
> 
> Yes, I am trying to load the U-boot SPL
> 
> What I posted previously was a custom board.  I switched over to the sama5d3_xplained and all I get with sama5d3_xplained_nandflash_defconfig is ROMBOOT.

This is definitely weird. Are you using vanilla u-boot and no changes on 
top with the sama5d3_xplained? Looks like not even your console works in 
spl, or, you have a bad binary .

> 
> AT91bootstrap works fine.
> 
> I know there was the issue with the nand_header showing up for the SD card but that shouldn’t effect the nand.  Some other patch I am missing to get a non-modified boot.bin nand working?

How are you writing your nandflash ? are you using our sam-ba tool to 
write it ? do you use writeboot applet ?

> 
> The size of the 6th reset vector looks correct, with the assumption that it does not include the 208 bytes of nand_header?

Yes it should not include it. And if you write using sam-ba the nand 
header will be written by sam-ba, so your binary should not include it 
already.

I also suggest you open up a support ticket on support.microchip.com as 
our FAE have a lot of experience to assist with such situations.

Hope this helps,
Eugen

> 
> Dan
> 
> 
> 
>> On Jan 16, 2019, at 6:02 AM, Eugen.Hristev at microchip.com wrote:
>>
>>
>>
>>
>> On 16.01.2019 03:13, Daniel Evans wrote:
>>> After flashing my boot.bin to nand I get the following output:
>>>
>>> RomBOOT
>>> <debug_uart> Missing DTB
>>> ### ERROR ### Please RESET the board ###
>>>
>>> I found the error message in fdtdec.c, but not sure what I am missing.  I have checked that my DTB is included in the boot.bin output.  Any insight on what I am missing?
>>
>> Hello Daniel,
>>
>> Which defconfig are you using when building u-boot ?
>>
>> You are trying to load the U-boot SPL right ?
>>
>> It doesn't look like you even get to the point when you get to load the
>> u-boot proper, so maybe there are missing parts from your SPL, or the
>> size inside the 6th reset vector is not correctly calculated
>>
>> Did you try with our at91bootstrap proprietary second level bootloader
>> and get the same issue when booting the proper u-boot with it ?
>>
>> Hope this helps,
>>
>> Eugen
>>
>>>
>>> Dan
>>> _______________________________________________
>>> U-Boot mailing list
>>> U-Boot at lists.denx.de
>>> https://lists.denx.de/listinfo/u-boot
>>>
> 
> 

  reply	other threads:[~2019-01-17  9:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-16  1:13 [U-Boot] no DTB with nand SPL on sama5d3 Daniel Evans
2019-01-16 13:02 ` Eugen.Hristev at microchip.com
2019-01-16 19:05   ` Daniel Evans
2019-01-17  9:01     ` Eugen.Hristev at microchip.com [this message]
2019-01-17  9:05       ` Simon Goldschmidt
2019-01-17  9:09         ` Eugen.Hristev at microchip.com
2019-01-17 18:38           ` Daniel Evans
2019-01-17 21:34           ` Daniel Evans
2019-01-20 15:23             ` Ben Whitten
2019-01-21  8:06               ` Eugen.Hristev at microchip.com
2019-01-21 20:51                 ` Daniel Evans
2019-03-26 16:40                   ` [U-Boot] scan_peb ubi error sama5d36 nand flash v2019.01 Daniel Evans
2019-03-27  5:58                     ` Stefan Roese
2019-03-27  7:01                     ` Eugen.Hristev at microchip.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7a1becc-bdbb-c622-a7b7-c7a79afb900c@microchip.com \
    --to=eugen.hristev@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox