Open arthurbenemann opened 5 months ago
Is this a new problem? Or did it work before?
This was my first attempt to program NAND on this board. Only able to use SDcard image at this point.
It seems the new KSZ9477 evaluation board has a hardware change that makes the old sam-ba utility not able to program the NAND. Even if you can avoid the stuck issue by restarting the NAND programing procedure the script will stop during processing the nandflash.tcl script. You will need to use the new sam-ba utility provided by the newer Buildroot hosted in linux4sam repository. Unfortunately that new sam-ba utility uses a different script and procedure and so requires additional step to generate the U-Boot environmental variable block. If you know how to do that manually with the mkenvimage utility then it may be simple to use the new sam-ba parameters to invoke the NAND programming procedure. I am in the process of creating a new build procedure using a new Buildroot like buildroot-at91-linux4sam-2022.10 because the current Buildroot environment no longer works in new Linux distros like 2023.10. If you can wait for that then you can use that to build Linux 4.14, 4.19, 5.4, 5.10, 5.15, and 6.1 kernels.
Following the EVB_KSZ9477_Source_Build_Instructions for programming the SDcard worked, but I'm not able to programm the on-board NAND using those instructions.
When running the NANDprogramming instructions (step9), it locks up at the
lowlevelinit
step of programming, as shown in the snippet below:This happens with either a serial cable connected to J10 (
ttyUSB0
), or a USB cable to J12 (ttyACM0
). Even after 1 hour it is still stuck on the same step.Thanks in advance for any help.