[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2023-10-27 Thread Сергей Мосолов
Thanks for sharing that info! U-Boot mainline has a fix now (2023.07): https://source.denx.de/u-boot/u-boot/-/commit/5fd30ed78539e11c2c155001a88f483441a96ebd On Saturday, December 29, 2018 at 11:51:00 PM UTC+4 Nikolai Zhubr wrote: > Hi, > > Its just to remind sunxi_nand_spl.c is still broken.

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-29 Thread Nikolai Zhubr
Hi, Its just to remind sunxi_nand_spl.c is still broken. (And probably has been for a couple releases or so). I'm unable to fix it myself (other than reverting the mentioned commit locally.) Thank you, Regards, Nikolai 24.12.2018 0:47, Nikolai Zhubr: Hi again, The following commit

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Nikolai Zhubr
Hi again, The following commit (titled "use PIO instead of DMA") apparently broke actual reading of nand pages in SPL at least for A20: http://git.denx.de/?p=u-boot.git;a=commit;h=6ddbb1e936c78cdef1e7395039fa7020c5c75326 Instead of reading page contents, non-dma (current) version just feeds

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Nikolai Zhubr
23.12.2018 21:58, I wrote: [...] Regarding the sunxi_nand_spl.c module, I can not find any mention if it implies NAND_ECC_HW, NAND_ECC_HW_SYNDROME, or rather some other mode, or if these modes are irrelevant in this case? So far I'm observing that sunxi_nand_spl module refuses to load erased

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Nikolai Zhubr
Hi Michael, 23.12.2018 18:54, Michael Nazzareno Trimarchi: [...] Considering ecc_size=1024, ecc_strength=4 good(b). Considering addr_cycles=5, page_size=8192 accepted. I'm almost 100% sure that correct config would be page_size=8192, ecc_size=1024, ecc_strength=40 (from nand chip

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Michael Nazzareno Trimarchi
Hi On Sun, Dec 23, 2018 at 4:46 PM Nikolai Zhubr wrote: > > Hi again, > > 23.12.2018 16:29, I wrote: > > > U-Boot SPL 2019.01-rc2 (Dec 20 2018 - 16:30:46 +0300) > > > CPU: 91200Hz, AXI/AHB/APB: 3/2/2 > > > DRAM: 1024 MiB > > > Trying to boot from NAND > > > > Ok, discovered a special

[linux-sunxi] Re: [U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Nikolai Zhubr
Hi again, 23.12.2018 16:29, I wrote: > U-Boot SPL 2019.01-rc2 (Dec 20 2018 - 16:30:46 +0300) > CPU: 91200Hz, AXI/AHB/APB: 3/2/2 > DRAM: 1024 MiB > Trying to boot from NAND Ok, discovered a special SPL-only sunxi_nand_spl variant, added some debugging, so the detection is visible: