I'm porting OpenWRT to Fritzbox 7362 SL. It has VRX288 SoC and both SPI (eva and tffs) and NAND flash (kernel and rootfs).
I got to the point where most of the hardware is detected in early boot - switch, DSL, PCIe/WLAN and SPI - but I'm having trouble with NAND.
I looked at AVM's 6.xx (Linux 2.6.32) and 7.01 (Linux 3.10) sources, and this board (HW202/HW203) has no references to NAND anywhere - neither in old header files, nor in the new device tree.
I tried to brute force it by taking NAND definition from other devices' DTS, but without luck.
I already tried NAND pinout from HW185 and HW223. Actually, all Fritz NAND boards (where it's defined) share the same pinout: ALE - pin 13, CLE - pin 24, RD - pin 49, RD_BY - pin 48, CS1 - pin 23, with active low.
My main suspect is the wrong reg value, but I don't know where should I look to find the memory address, or how could I calculate it?
I can determine bank width (1 byte) from the chip model (*ABADAWP), but how do I know what are the reg, address-cells and size-cells parameters? It appears to vary between architectures and boards, according to Device Tree Usage - eLinux.org.
I'm currently posting this via internet connection on OpenWrt. VDSL2 (G.993.2) works out of the box, as well as VLAN tagging on dsl0 device for the PPPoE data connection.
I will test VoIP (Asterisk) later, but initial tests showed that kmod-ltq-tapi and vmmc load fine, so it will probably work.
VoIP unfortunately doesn't work. Same problems as with every other AVM device when it comes to vmmc, unknown GPIO pinout and functionality. Just when I thought i finally had all-in-one OpenWRT device...
I just noticed that the switch doesn't work out of the box (no traffic between ports). It works if I add switch manually to /etc/config/network like this:
config switch 'eth0'
option name 'switch0'
Is this the expected behavior or am I missing something in the device tree?
EDIT: It has to be added to /etc/board.d/02_network
Hi Daniel, I would like to try this latest snapshot image on a 7362sl, but having hard time finding appropriate file *initramfs-kernel.bin, mentioned in installation instructions in your commit:
Installation via FTP:
Use scripts/flashing/eva_ramboot.py to send initramfs-kernel.bin
to the device when powering on.
...
There is no such file on xrx200 snapshot path on download servers, only sysupgrade one.
I admit there are great chance I am missing something obvious how stuff works in openwrt
Thank you for all!
Yes, for some reason snapshot builds for xrx200 don't include initramfs images. You should build one yourself, either from scratch or with the image builder in xrx200 directory.