From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eugen.Hristev at microchip.com Date: Thu, 17 Jan 2019 09:01:59 +0000 Subject: [U-Boot] no DTB with nand SPL on sama5d3 In-Reply-To: <29C0B834-4D49-462A-BF16-780353DF18D2@gmail.com> References: <91CB0D34-94B1-474B-A316-0F0AE34FE7D0@gmail.com> <29C0B834-4D49-462A-BF16-780353DF18D2@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On 16.01.2019 21:05, Daniel Evans wrote: > Hello, >=20 > Yes, I am trying to load the U-boot SPL >=20 > What I posted previously was a custom board. I switched over to the sama= 5d3_xplained and all I get with sama5d3_xplained_nandflash_defconfig is ROM= BOOT. This is definitely weird. Are you using vanilla u-boot and no changes on=20 top with the sama5d3_xplained? Looks like not even your console works in=20 spl, or, you have a bad binary . >=20 > AT91bootstrap works fine. >=20 > I know there was the issue with the nand_header showing up for the SD car= d but that shouldn=E2=80=99t effect the nand. Some other patch I am missin= g to get a non-modified boot.bin nand working? How are you writing your nandflash ? are you using our sam-ba tool to=20 write it ? do you use writeboot applet ? >=20 > 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=20 header will be written by sam-ba, so your binary should not include it=20 already. I also suggest you open up a support ticket on support.microchip.com as=20 our FAE have a lot of experience to assist with such situations. Hope this helps, Eugen >=20 > Dan >=20 >=20 >=20 >> 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 >>> 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 insigh= t 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 >>> >=20 >=20