I have been using Mikrotik 450G routerboards with LEDE with no issues, but we recently bought some new boards and cannot install due to the NAND not being writen/read properly. After investigation Mikrotik has change the NAND from a Spansion S34ML04G1 to a Toshiba TC58BVG2S0HTA00. The log show that it has been detected and erases the device but nothing is written correctly to it.
Whilst booting from LEDE from the network, the storage page indicates there is 0 storage.
The Array organization seems to be very different. Can someone give me some clues to fix the NAND driver to be able to use either NAND device (or indeed just for the Toshiba NAND)?
The patch failed as the nand.h and nand_base.c files have change since the patch was conceived. I manually edited the patch to work around the changes in the two files, but now wont compile as I believe the struct nand_ecclayout has been deprecated.
Is there any information to migrate the old code to use the newer mtd_ooblayout_ops struct?
I have now got it building, by switching back to Linux 4.4 in the Makefile. i.e. KERNEL_PATCHVER:=4.4
But it does not seem to be using the driver. I'm trying to put some debug in to see whats happening, but I'm very new to both Linux and compiling LEDE/OpenWRT or any Linux distro for that matter.
Could you point me in the general area in menuconfig? because i have have looked several times, even in kernel_menuconfig but nothing looks right.
When I kick a build off with the patch, it does ask me if I wish to enable the Toshiba BENAND, to which I choose yes, I would have thought this to be sufficient?
Sorry for the delay in answering. At the moment I have not found a solution to get it working with the Toshiba BENAND flash chips. I have resorted to soldering on another chip that works, but in the long term I need to fix this issue.
Are you affected by this same issue? and have you made any progress?
I have checked the datasheets and believe the pin outs to be identical. As for the current NAND interfering, I have not looked too deep at that, and only tried the patches that Yoshitake Kobayashi had submitted. I'm currently working on something completely different at the moment, but i am due to pick this up soon with some help.