Re: [U-Boot] [PATCH] Add Hynix H27UBG8T2BTR id

2018-12-29 Thread Nikolai Zhubr
29.12.2018 21:51, Jagan Teki: On Wed, Dec 26, 2018 at 4:20 PM Nikolai Zhubr wrote: Add Hynix H27UBG8T2BTR nand chip identification. These chips are sometimes present in e.g. older A20-olinuxino-micro boards. So the older boards were broken these releases? Those with H27UBG8T2BTR chip

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 c

Re: [U-Boot] [linux-sunxi] A20-olinuxino-micro hangs in U-boot if powered from MINI-USB only.

2018-12-27 Thread Nikolai Zhubr
Hi, 27.12.2018 23:48, 'John S' via linux-sunxi: Well, IMHO is has to do with Olimex because they designed this specific circuitry, and the circuitry is such that 5V voltage constantly applied to the micro-usb connector might essentially become disconnected (at the board side) by programming -- i

Re: [U-Boot] [linux-sunxi] [PATCH] Add NFC register definitions for Allwinner A20 SoC

2018-12-26 Thread Nikolai Zhubr
Hi, 26.12.2018 14:28, Priit Laes: And while at it, why not finally add the DT register definitions for Allwinner A20 NFC. I'm certainly not the author of these, and they have been [...] + nand_pins_a: nand_base0@0 { + allwinner,pins = "PC0",

[U-Boot] [PATCH] Add NFC register definitions for Allwinner A20 SoC

2018-12-26 Thread Nikolai Zhubr
ually becoming obsolete, so why wait any more. Note: one whould typically need to also add NFC node definition on top of this in order to actually use it. Signed-off-by: Nikolai Zhubr --- arch/arm/dts/sun7i-a20.dtsi | 69 + 1 file changed, 69 inser

[U-Boot] [PATCH] Add Hynix H27UBG8T2BTR id

2018-12-26 Thread Nikolai Zhubr
Add Hynix H27UBG8T2BTR nand chip identification. These chips are sometimes present in e.g. older A20-olinuxino-micro boards. Signed-off-by: Nikolai Zhubr --- drivers/mtd/nand/raw/nand_ids.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd

Re: [U-Boot] [linux-sunxi] A20-olinuxino-micro hangs in U-boot if powered from MINI-USB only.

2018-12-24 Thread Nikolai Zhubr
Hi, 24.12.2018 22:54, John S: On Monday, 24 December 2018, 19:10:24 GMT, Nikolai Zhubr wrote: Hi,24.12.2018 20:32, Diego Roversi: I'm observing that the said A20-onlinuxino-micro board hangs in U-boot in probing USB2 (see example below) in case it is powered by connecting I think

Re: [U-Boot] [linux-sunxi] A20-olinuxino-micro hangs in U-boot if powered from MINI-USB only.

2018-12-24 Thread Nikolai Zhubr
Hi, 24.12.2018 20:32, Diego Roversi: I'm observing that the said A20-onlinuxino-micro board hangs in U-boot in probing USB2 (see example below) in case it is powered by connecting I think it's normal. During the boot, u-boot initialize the usb otg, and for a fraction of second the power is dis

[U-Boot] A20-olinuxino-micro hangs in U-boot if powered from MINI-USB only.

2018-12-23 Thread Nikolai Zhubr
Hi all, I'm observing that the said A20-onlinuxino-micro board hangs in U-boot in probing USB2 (see example below) in case it is powered by connecting its mini-usb connector to a computer. The problem does not happen if 12V power connector is also empoyed. (Note: the example attached below is

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

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 n

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

2018-12-23 Thread Nikolai Zhubr
Hi again, 23.12.2018 21:11, I wrote: [...] Indeed, its an index, and therefore it appears SPL's detection actually gives correct values! Nevertheless, SPL reads all zeroes from nand. Regarding the sunxi_nand_spl.c module, I can not find any mention if it implies NAND_ECC_HW, NAND_ECC_HW_SYNDR

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 identificat

[U-Boot] [PATCH] Yet another old Hynix chip id.

2018-12-23 Thread Nikolai Zhubr
Hi all, Could some kind soul please add this id attached below? Maybe even for 2019.01 if possible? Otherwise nand is totally unaccessible in u-boot on some older A20-olinuxino-micro board with this bloody old Hynix chip. Thank you, Regards, Nikolai

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: I

[U-Boot] SPL variant of sunxi nand module

2018-12-23 Thread Nikolai Zhubr
Hi all, While fighting with this A20-olinuxino nand boot process I've initially found that some essential nand-related parameters are apparently missing by default, preventing reasonable nand operation, so I started debugging this gradually. > U-Boot SPL 2019.01-rc2 (Dec 20 2018 - 16:30:46 +

Re: [U-Boot] SPL debug messages (All of them!) - how?

2018-12-22 Thread Nikolai Zhubr
Hi again, 23.12.2018 1:06, I wrote: mkimage signature not found - ih_magic = 0 Jumping to U-Boot SPL malloc() used 0x0 bytes (0 KB) loaded - jumping to U-Boot... image entry point: 0x4a00 It looks like SPL loads 0x0 bytes of u-boot and runs it! Hmm, It appears not zero size but rather zer

Re: [U-Boot] SPL debug messages (All of them!) - how?

2018-12-22 Thread Nikolai Zhubr
Hi again, 23.12.2018 0:06, I wrote: I'm struggling trying to figure how to totally enable all of those nice debug() statements so as to debug a problem in SPL. The CONFIG_LOGLEVEL is set to 7, have also tried to all KCFLAGS=-DDEBUG but apparently it has all no effect for SPL. So I'm asking for a

[U-Boot] SPL debug messages (All of them!) - how?

2018-12-22 Thread Nikolai Zhubr
Hi people, I'm struggling trying to figure how to totally enable all of those nice debug() statements so as to debug a problem in SPL. The CONFIG_LOGLEVEL is set to 7, have also tried to all KCFLAGS=-DDEBUG but apparently it has all no effect for SPL. So I'm asking for advice (and I'd definite