[U-Boot] U-Boot SPL 2016.09-rc1 on NTC C.H.I.P.

Glaucio Klipel gklipel at gmail.com
Tue Aug 23 05:14:54 CEST 2016


Hi all,

so, the difference between the 2 .config as it follows[1] and the .config
as is[2].

And the procedures:

# dd if=u-boot-dtb.bin of=/root/u-boot-dtb.bin bs=2M conv=sync
# sunxi-nand-image-builder -p 8192 -o 640 -e 0x200000 -s -b -u 4096 -c
64/1024 spl/sunxi-spl.bin /root/sunxi-spl.bin (BUILDING IMAGE FOR HYNIX
H27UBG8T2BTR-BC, VALUES FROM DATASHEET)

# for a in $(echo {0..3}); do flash_erase /dev/mtd${a} 0 0; done
Erasing 2048 Kibyte @ 0 -- 100 % complete
Erasing 2048 Kibyte @ 0 -- 100 % complete
Erasing 2048 Kibyte @ 0 -- 100 % complete
Erasing 2048 Kibyte @ 0 -- 100 % complete

# nandwrite -o -n /dev/mtd0 sunxi-spl.bin
Writing data to block 0 at offset 0x0
# nandwrite -o -n /dev/mtd1 sunxi-spl.bin
Writing data to block 0 at offset 0x0
# nandwrite /dev/mtd2 u-boot-dtb.bin
Writing data to block 0 at offset 0x0
# nandwrite /dev/mtd3 u-boot-dtb.bin
Writing data to block 0 at offset 0x0

U-Boot SPL 2016.09-rc1-14223-gfcada3b-dirty (Aug 22 2016 - 23:45:03)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from NAND
### ERROR ### Please RESET the board ###


I also added these lines to include/configs/sunxi_common.h[3]

With the u-boot-sunxi-with-spl.bin on a SD Card, NAND gets detected fine
and I can even boot from it.

If I add some traces in the middle of the code telling me the possible ECC
configs the SPL will try, it will print only one and then gets the error.
The stranger thing is that it will go no further in device detection to
boot, no MMC, SATA or LAN.

It produces spl/drivers/mtd/nand/sunxi_nand_spl.o, which I can see in
compilation process, later on that directory.

Hope this can help out!

Thanks in advance!


[1]http://pastebin.com/yVNV66x4
[2]http://pastebin.com/rzCDXvDt
[3]http://pastebin.com/zTC3Y1hS


2016-08-22 4:55 GMT-03:00 Boris Brezillon <
boris.brezillon at free-electrons.com>:

> +Glaucio who is facing the same problem but on a cubieboard2.
>
> On Sun, 21 Aug 2016 16:14:39 +0200
> Boris Brezillon <boris.brezillon at free-electrons.com> wrote:
>
> > Hi,
> >
> > On Sun, 21 Aug 2016 12:03:19 +0200
> > Hans de Goede <hdegoede at redhat.com> wrote:
> >
> > > Hi,
> > >
> > > On 21-08-16 11:01, Marcus Glocker wrote:
> > > > On Sat, Aug 20, 2016 at 03:05:38PM -0400, Tom Rini wrote:
> > > >
> > > >> On Sat, Aug 20, 2016 at 07:26:19AM +0200, Marcus Glocker wrote:
> > > >>> Hello,
> > > >>>
> > > >>> While U-Boot SPL 2015.10 works fine on my allwinner,sun5i-r8 board
> I
> > > >>> face following issue with U-Boot SPL 2016.09-rc1 on it:
> > > >>>
> > > >>>         bash-4.3# cu -l /dev/cuaU0 -s 115200
> > > >>>         Connected to /dev/cuaU0 (speed 115200)
> > > >>>
> > > >>>         U-Boot SPL 2016.09-rc1 (Jul 31 2016 - 16:37:00)
> > > >>>         DRAM: 512 MiB
> > > >>>         CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
> > > >>>         Trying to boot from NAND
> > > >>>         ### ERROR ### Please RESET the board ###
> > > >>>
> > > >>> Any ideas what change did cause this or where to start looking
> after?
> >
> > Markus, can you share your .config?
> > I tested the different bits while submitting the NAND driver and the
> > SPL NAND driver improvements and it was working fine.
> > I'll try to test 2016.09-rc1 tomorrow.
>
> Just tried to boot a mainline uboot on my CHIP and it boots fine [1].
> Here is my .config [2], can you compare yours with this one?
>
> Can you also detail how you flash the images?
>
> Thanks,
>
> Boris
>
> [1]http://code.bulix.org/xr8n68-105114
> [2]http://code.bulix.org/hft09x-105116
>


More information about the U-Boot mailing list