Re: [PATCH 1/1] sunxi: dram: Fix incorrect ram size detection for some H6 boards

2023-10-21 Thread Gunjan Gupta
> I'm fine with the current approach if Gunjan confirms that initialization > works reliably. I will test it out over the coming week. Too sick to even pick up the laptop right now. Regards Gunjan

Re: [PATCH 1/4] sunxi: DRAM: H6: add barrier after finishing DRAM setup

2023-10-28 Thread Gunjan Gupta
Tested the patch. With only dsb, it hangs within 5 reboots itself. Adding udelay(50) moved it to once in 20 times. But it still hangs. So this patch does not solve the problem Thanks & Regards Gunjan Gupta

[PATCH 0/1] Fix for U-Boot SPL hang on sunxi H6 due to incorrect ram size detection

2023-10-01 Thread Gunjan Gupta
On Orange Pi 3 LTS, sometimes on reboot, SPL detects ram as 4 GB instead of 2 GB. This leads to a hang later and board fails to boot. Fix is tested by leaving the device in a reboot loop overnight where device successfully rebooted 1350+ times by the time I stopped rebooting it. Gunjan Gupta

[PATCH 1/1] sunxi: dram: Fix incorrect ram size detection for some H6 boards

2023-10-01 Thread Gunjan Gupta
columns were sometimes off by one value. I found that adding some delay after the mctl_core_init call along with making use of dsb in the start of the mctl_mem_matches solves the issue. Signed-off-by: Gunjan Gupta --- arch/arm/mach-sunxi/dram_helpers.c | 1 + arch/arm/mach-sunxi/dram_sun50i_h6.c | 2

Re: [PATCH 1/1] sunxi: dram: Fix incorrect ram size detection for some H6 boards

2023-10-02 Thread Gunjan Gupta
imentation? Before adding the udelay, I added 7 print statements to print all the members of the para struct. That itself solved the issue along with the dsb added to the top of the mctl_mem_matches function. This is what gave me the clue that a delay is needed there. The value of 50 is indeed from pure experimentation Thanks & Regards Gunjan Gupta

Re: Help needed with uboot for CHIP

2021-03-10 Thread Gunjan Gupta
ets populated in the CONFIG_SYS_NAND_U_BOOT_OFFS variable of the .config file. On Thu, Mar 11, 2021 at 12:09 AM Alexandre GRIVEAUX wrote: > Le 10/03/2021 à 18:32, Gunjan Gupta a écrit : > > Hi Alexandre, > > > > I saw your patch > > <https://lists.denx.de/pipermail/u-boot/2021-J

Re: Help needed with uboot for CHIP

2021-03-21 Thread Gunjan Gupta
0x40 CONFIG_ENV_OFFSET=0xc0 CONFIG_FASTBOOT_FLASH_NAND=y CONFIG_YAFFS2=y @Andre will it be possible to get the attached patches merged into the U-Boot? Thanks & Regards Gunjan Gupta On Thu, Mar 18, 2021 at 1:25 AM Gunjan Gupta wrote: > Its not really like uboot is not working. Just sp

Re: Help needed with uboot for CHIP

2021-03-22 Thread Gunjan Gupta
Ok... What about supporting SLC. I dont have a Chip pro, but are you sure that the current logic works for that too? Thanks & Regards Gunjan Gupta On Mon, Mar 22, 2021, 11:58 PM Maxime Ripard wrote: > Hi, > > On Sun, Mar 21, 2021 at 08:04:08PM +0530, Gunjan Gupta wrote: > >