The following patches prepare for and implement support of the NAND-based, GL.iNet AR750S under the upstream spi-nand framework available in Linux 4.19 and later.
Existing commit 3bc8ed91d4 on `master` backports upstream support for certain GigaDevice SPI NAND devices in the "A" and "E" series. The AR750S, however, uses a GD5F1GQ4UFxxG SPI NAND, which was not supported upstream. Patch 1 of this series represents the current code to support this chip, submitted upstream[1] and under review. This has received a positive review, but no formal "ACK" at this time. In the process of preparing for the updated subtarget, the existing GL.iNet AR300M (NAND) board was removed as it has been non-bootable and it appears that the definitions in image/nand.mk may not be consistent with GigaDevice SPI NAND. The DTS and other files have been retainied. It should be reasonably straightforward for someone with an NAND-bearing AR300M to complete the port, with the AR750S as a template. dmesg of the AR750S running with NAND is available at https://gist.github.com/jeffsf/7fd567b4da3874893111d8ac841d2987 [ 0.338008] ar7200-usb-phy usb-phy: phy reset is missing is bothersome, but a check of the DTS which inherits from qca956x.dtsi, the running device, and the ar7200-usb-phy code has not led to any clear cause. The USB subsystem appears to work properly, allowing access to a USB "stick" as well as the microSD reader. &usb0/1 and &usb_phy0/1 have been enabled and the corresponding rst/rst2 are unmodified from qca956x.dtsi. Disabling one or the other of the USBs doesn't change the message. There has been some mention that this is "normal"[2]. If you've got some further insight into this, I would certainly try to resolve it. Current NAND-based kernel size is 1,811,125 bytes, including the addition of ext4 support. As the NOR version uses the typical kernel+squashfs+jffs2 scheme, a residual NOR-based root file system is likely not readable from an over-flashed NAND install at this time. The NOR-based variant remains on Linux 4.14 with the other ath79 generic targets. The NOR-based kernel size is 1,619,638 bytes. Jeff [1] https://patchwork.ozlabs.org/project/linux-mtd/list/?series=107874 [2] https://forum.openwrt.org/t/porting-guide-ar71xx-to-ath79/13013/788 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel