sunxi_nand_spl reading zeros on NextThing C.H.I.P.

Hello,
I'm trying to get latest U-Boot to work on the NextThing C.H.I.P.
After borrowing NFC config from the Chip Pro .dts, I can write the SPL to NAND after loading U-Boot via sunxi-fel and the bootrom will pick it up fine. So the "full" sunxi_nand.c works.
SPL's sunxi_nand_spl.c appears to read all zeros however - I checked by adding prints in spl.c/jump_to_image_no_args().
Can someone please suggest possible things to try to make it work? I tried tinkering with the settings but I have no idea if that's even the issue.
The NAND is a Toshiba "TC58TEG5DCLTA00"; NTC's settings for it are presumably [1] and sunxi_nand_spl.c autodetects the following settings:
page_size:16384 ecc_strength:4 ecc_size:1024 addr_cycles:5 nseeds:8 randomize:0
Thanks.
[1]: https://raw.githubusercontent.com/nextthingco/chip-nand-scripts/master/nand_...

Hello,
I'm experiencing the same issue, have you manage to solve it?
-- Sent from: http://u-boot.10912.n7.nabble.com/

Replying to myself,
I'm using sunxi driver for nand spl, had to remove ECC from "nand_read_page" function, after that I was able to proceed to second stage of boot.
Not sure of the cause, maybe the u-boot_SPL ECC algorithm is different of the one on u-boot, which is used to write u-boot on nand as described by board/sunxi/README.md
-- Sent from: http://u-boot.10912.n7.nabble.com/
participants (2)
-
r315
-
Yevhenii Hrabliuk