* sunxi_nand_spl reading zeros on NextThing C.H.I.P.
@ 2020-02-15 18:32 Yevhenii Hrabliuk
2021-04-22 21:21 ` r315
0 siblings, 1 reply; 3+ messages in thread
From: Yevhenii Hrabliuk @ 2020-02-15 18:32 UTC (permalink / raw)
To: u-boot
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_configs/Toshiba-MLC.config
^ permalink raw reply [flat|nested] 3+ messages in thread
* sunxi_nand_spl reading zeros on NextThing C.H.I.P.
2020-02-15 18:32 sunxi_nand_spl reading zeros on NextThing C.H.I.P Yevhenii Hrabliuk
@ 2021-04-22 21:21 ` r315
2021-05-01 22:48 ` r315
0 siblings, 1 reply; 3+ messages in thread
From: r315 @ 2021-04-22 21:21 UTC (permalink / raw)
To: u-boot
Hello,
I'm experiencing the same issue, have you manage to solve it?
--
Sent from: http://u-boot.10912.n7.nabble.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
* sunxi_nand_spl reading zeros on NextThing C.H.I.P.
2021-04-22 21:21 ` r315
@ 2021-05-01 22:48 ` r315
0 siblings, 0 replies; 3+ messages in thread
From: r315 @ 2021-05-01 22:48 UTC (permalink / raw)
To: u-boot
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-01 22:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-15 18:32 sunxi_nand_spl reading zeros on NextThing C.H.I.P Yevhenii Hrabliuk
2021-04-22 21:21 ` r315
2021-05-01 22:48 ` r315
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox