Hello,
I'd like to port OpenWRT to this access point. I have not gained serial console access yet, but it seems that the hardware is well supported (same CPU as EdgeRouter lite and ath9k radios). The other similarity with the EdgeRouter is that it has a 256 USB DOM, but I couldn't find a kernel in it, so it might be on the builtin flash memory. I have a DOM dump, but i cannot share it now because it contains credentials that I cannot share, but here's fdisk output:
Disk /dev/sdb: 245 MiB, 256901120 bytes, 501760 sectors
Disk model: ZyWALL_USG
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sdb1 62 9919 9858 4,8M 83 Linux
/dev/sdb2 9920 150783 140864 68,8M 83 Linux
/dev/sdb3 150784 486079 335296 163,7M 83 Linux
My layman's suggestion would be to build a ramdisk image with the existing DTS (the kernel has a Cavium DTS that is used by the EdgeRouter Lite also), and see where that gets you for initial testing and research.
NWA3560-N> athe
======= Debug Command Listing =======
AT just answer OK
ATHE print help
ATSR system reboot
ATRTw,x,y(,z) RAM test level w, from address x to y (z iterations)
ATUK upload kernel image to disk
ATUR Use ATUK to upload kernel
ATBAx change baudrate 1:38.4k 2:19.2k 3:9.6k 4:57.6k 5:115.2k
ATGO boot router
ATKZ(x) show init switch or set to x
ATSH dump manufacturer related data in ROM
ATAC(x) Apply startup configuration
ATGT(x) Go hardware test module
OK
NWA3560-N> atsh
BootModule Version :V1.16 | 08/31/2011 14:20:00
Vendor Name :ZyXEL Communications Corp.
Product Model :NWA3560-N
System Type :10
MAC Address :mymac
Default Country Code :e1
Boot Module Debug Flag :0
Hardware Version :ZyXEL NWA3560-N CN50xx
Serial Number :mysn
SNMP MIB level & OID :060102030405060708091011121314151617181920
Main Feature Bit :0
Other Feature Bits :
03 93 00 00 00 00 00 00-00 00 00 00 00 00 00 00
03 00 00 00 00 00 00 00-00 00 00 00 00 00
Well, I havenβt made any progress, but Iβm still interested!
Speaking of JP4, Iβm not JTAG expert and Iβm not even sure itβs JTAG, however I think weβd need a bootloader and I donβt know where to get one
I have recently acquired an NWA3160-N, which seems to be quite similar, I had also dumped the USB DOM but could not get any further without finding the UART.
So, if I understand correctly, the 6-pin mini-DIN connector is using RS-232 signal levels, not TTL (3.3V), so I need a regular DB9 USB to serial adapter and build a cable, or can I just connect a CP2102 etc.?
I had not verified the CPU since it is located under a heatsink, but if this is really ath79, we might support this. I only bought this device since I added support for the NWA1100-H / NWA1121-NI / NWA1123-NI / NWA1123-AC recently, but then found this one is a totally different hardware platform.
Regarding the factory image, it seems to use a custom per-model zip password, which can be generated using a binary found in the file system. Someone did a bit of reverse engineering here:
Wow, thatβs fantastic! Yes, the serial port is RS232 because itβs behind a TTL<->RS232 converter. Here you can find more infos (sorry for the awful theme) https://blog.eutampieri.eu/openwrt-zyxel-1/
RS232 bootlog was successful, thanks for the pinout!
It still doesn't look promising though, maybe they removed most of the output since the log would be visible on the external port, in any case it does not quite look like uboot or anything familiar, also the "debug mode" seems to do not so much after pressing any key (maybe it restores factory default settings?)
FLASH: AMD 16M
BootModule Version: V1.16 | 08/31/2011 14:20:00
DRAM: Size = 256 Mbytes
Kernel Version: V2.6.25.4 | 2014-12-09 15:11:38
ZLD Version: V2.23(UJA.8) | 2014-12-09 16:13:57
Press any key to enter debug mode within 1 seconds.
.....................
BM cmd line: console=ttyS0,115200 root=/dev/ram init=zyinit "-r /dev/sda", address: 0x100000
Uncompressing Linux...done.
Start to remount db partition
Start to check file system...
/dev/sda2: 33/17352 files (0.0% non-contiguous), 54997/69296 blocks
/dev/sda3: 68/41120 files (1.5% non-contiguous), 54670/163841 blocks
Done
INIT: version 2.86 booting
Initializing Debug Account Authentication Seed (DAAS)... done.
INIT: Entering runlevel: 3
Starting zylog daemon: zylogd zylog starts.
Starting syslog-ng.
Starting uam daemon.
Starting periodic command scheduler: cron.
Start EnterpriseWLAN system daemon....
................................................
Got LINK_CHANGE
Port [0] Copper is up --> Group [0] is up
Got WIRELESS_CARD_CHANGE
Applying system configuration file, please wait...
no startup-config.conf file, Applying system-default.conf
Use system default configuration file (system-default.conf)
Got LINK_CHANGE
Port [0] Copper is down --> Group [0] is down
Got LINK_CHANGE
Port [0] Copper is up --> Group [0] is up
EnterpriseWLAN system is configured successfully with system-default.conf
Welcome to NWA3160-N
Username: admin
Password:
Router>
<cr>
apply
atse
clear
configure
copy
daily-report
debug
delete
diag Diagnostic
diag-info
dir
disable
enable
exit
htm
interface
no
nslookup
packet-trace
ping
psm
reboot
release
rename
renew
run
setenv
show
shutdown
telnet
test
tracepath
traceroute
wlan-report
write
Router>
Login works with the default settings (admin / 1234), pressing ? will print a list of commands.
I tried to remove the heatsink from the CPU, but liquifiying the two solder points on the back of the PCB while pushing did not help much.
Considering the FCC ID only refers to the ath9k miniPCIe card, there are no pictures of the main SoC, so is most probably not AR934x, but could be some other network processor, so the chances of supporting this might be even lower.
But first we'd need to figure out what the CPU is
Our best bet is to load an image like itβs done with the recovery image (the .ri file). See the link you posted and my notes (thereβs a part one too)