Netgear RN102 U-Boot Nand Driver Modification

Pali Rohár pali at kernel.org
Fri Jan 6 18:46:53 CET 2023


Hello Abdus!

On Thursday 24 September 2020 17:26:49 Abdus Rainey wrote:
> I have recently modded a Netgear RN102 NAND flash from 128 MB to 4096 MB (Samsung k9gbg08u0a) but i have a problem with NAND initialization.
> I can boot with kwboot which is unique for Armada CPU's.
> 
> Here is my log from kwboot with my stock mtd0:
> 
> 
> root at whitepawnxeon:/home/jigsaw/Downloads# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0stockuboot.img -p
> Sending boot message. Please reboot the target...-
> Sending boot image...
>   0 % [......................................................................]
...
>   5 % [.........
> 
> General initialization - Version: 1.0.0
> 
> High speed PHY - Version: 2.1.4 (COM-PHY-V20)
> Update PEX Device ID 0x6710
> High speed PHY - Ended Successfully
> 0000
> DDR3 Training Sequence - Ver 5.7.1
> DDR3 Training Sequence - Run without PBS.
> DDR3 Training Sequence - Ended Successfully
> .............................................................]
>   5 % [......................................................................]
...
>  99 % [......................................]
> [Type Ctrl-\ + c to quit]
> 
>  __   __                      _ _
> |  \/  | __ _ _ ____   _____| | |
> | |\/| |/ _` | '__\ \ / / _ \ | |
> | |  | | (_| | |   \ V /  __/ | |
> |_|  |_|\__,_|_|    \_/ \___|_|_|
>          _   _     ____              _
>         | | | |   | __ )  ___   ___ | |_
>         | | | |___|  _ \ / _ \ / _ \| __|
>         | |_| |___| |_) | (_) | (_) | |_
>          \___/    |____/ \___/ \___/ \__|
>  ** LOADER **
> 
> 
> U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
> 06/23/2015 ReadyNAS-102 V2.0
> 
> Board: DB-88F6710-BP
> SoC:   MV6710 A1
> CPU:   Marvell PJ4B v7 UP (Rev 1) LE
>        CPU    @ 1200 [MHz]
>        L2     @ 600 [MHz]
>        TClock @ 200 [MHz]
>        DDR    @ 600 [MHz]
>        DDR 16Bit Width, FastPath Memory Access
> DRAM:  512 MiB
> 
> Map:   Code:      0x1feef000:0x1ff9ef34
>        BSS:      0x1ffef0a0
>        Stack:      0x1f9eeef8
>        Heap:      0x1f9ef000:0x1feef000
> 
> NAND:  (ID 0xd7ec)   nand_get_flash_type: second ID read did not match ac,d7 against ec,52
> No NAND device found!!!
> 0 MiB

This error message means that your u-boot does not have a driver for
your NAND memory. Or it has driver, but it is missing manufacturer id,
so driver correctly binds to that NAND device.

> As you can see u-boot sees device id and manufacturer id but cannot recognize it.My stock u-boot is very old and i get u-boot source code from Netgear GPL.(ReadyNASOS_V6.6.0_WW_src.zip)
> In here https://forum.doozan.com/read.php?2,106589,108204#msg-108204 you can see my whole story about this device.
> Can someone suggest any solution?

I would suggest to update to the new U-Boot version. This is really old
version.

Also look into U-Boot source code if NAND drivers support this id.
If id is not supported then it is possible that change would be
relatively easy if id is just missing in the supported list.


More information about the U-Boot mailing list