Hi, there.
I've been trying to port the ZBT WE826-Q router to use the ath79 build target. By default it comes with a Chaos Calmer OpenWrt image.
I have successfully been using the AP147 reference board ar71xx build which works (with a small change to take account of a hardware watchdog).
I've written the DTS here and I've also added a new device in target/linux/ath79/image/generic.mk
:
define Device/zbtlink_zbt-we826q
SOC := qca9531
DEVICE_VENDOR := ZBT
DEVICE_MODEL := WE826Q
IMAGE_SIZE := 16000k
DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage
endef
TARGET_DEVICES += zbtlink_zbt-we826q
For now, any sysupgrade image that I build does not boot when I flash it on the device.
Using the default BREED bootloader that comes with the device produces:
DRAM: 128MB
Platform: Qualcomm Atheros QCA953X rev 2
Board: Letv LBA-047-CH
Clocks: CPU: 550MHz, DDR: 400MHz, AHB: 200MHz, Ref: 25MHz
Flash: Winbond W25Q128 (16MB) on ath79-spi
ag71xx-eth: MAC address is invalid, using default settings.
ag71xx-eth: Using MAC address 00:13:74:00:00:01
Waiting for auto-negotiation complete ... OK
eth0: Atheros AR8228/AR8229 rev 1
Network started on eth0, inet addr 192.168.1.1, netmask 255.255.255.0
Press any key to interrupt autoboot ... 0
Unable to locate firmware.
Starting breed built-in shell
breed>
I've tried a couple of other images, and the device completely boots with a TP-Link MR6400 v1 ath79 snapshot image.
If I also use the tplink image commands as below, the kernel is able to boot but experiences a kernel panic when mounting rootfs:
define Device/zbtlink_zbt-we826q
$(Device/tplink-16mlzma)
SOC := qca9531
DEVICE_VENDOR := ZBT
DEVICE_MODEL := WE826Q
IMAGE_SIZE := 16000k
DEVICE_PACKAGES := kmod-usb2 kmod-usb-storage
SUPPORTED_DEVICES += zbt-we826q
endef
With the above device, I change the dts spi section to:
partition@50000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x050000 0xfa0000>;
};
which produces the following boot log: https://paste.debian.net/hidden/43e4827c/
Here's the boot log from the device with its original firmware: https://paste.debian.net/hidden/ec3a7029/
Is there something I'm missing to make this device work on ath79?