I would like my Zyxel NSA325 to automatically power on all time.
From the original documentation I am conviced that the device is capable of that. But I do not know how to configure that.
Does someone knows if it is possible to set it somehow from uboot or openwrt? (I have no idea what part of device is responsible for such feature.)
If this is not possible I thought of reverting back to original stock oem firmware to try to set it from there. But I cannot find any informationabout how to do that for Zyxel NSA.
You could run that zyshclient by chrooting the initramfs of the 325. But I think it won't work. The action you are searching for is implemented in some microcontroller (which is responsible for fan control, wake on clock, and power on after power loss, AFAIK), which is connected to the NIC, somehow. So I don't think zyshclient can talk to it without the stock kernel.
I currently have both zImage and the filesystem extracted from the firmware bin. So maybe if I can somehow boot it from USB to get the full environment?
Fan control seems to be done using ADT7463 chip that is configured using i2cset tool. I do not know if the same chip is also responsible for automatic Power on as I only saw that it is being set using the zyshclient tool (that probably speaks to zyshd daemon).
I don't think the fan control is done by some i2c controlled chip. Years ago, ZyXEL had trouble with the fans being to loud on the 325v1, because they were spinning too fast. They have replaced the physical fans. If the problem could have been serviced with a software update, they would have chosen that. The 325v2 is basically identical. Just a different housing.
Anyway, if somehow i2cset is involved by setting the ucontroller, you might be able to intercept the communication by exchanging i2cset by a logging script. ZyXEL tends to call external binaries for actions like this.
The NSA device you currently possesses is out of support since a long time. Therefore we can not provide any support for devices of the complete NSA series including NSA210, NSA220, NSA220Plus, NSA220LE, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325 and NSA325v2.
Please consider an upgrade to a latest NAS series (NAS326, NAS520, NAS540 and NAS542) to ensure support and get benefit of latest features.
I have the GPL sources of the 325v2 here, but as far as I remember is doesn't contain the zyshclient sources. It does contain the kernel sources, of course. Maybe you can find how the kernel implementation is.
By the way, you might also be interested in btncpyctl.c, which contains an implementation of some ZyXEL specific functions available through /dev/btncpy. I wrote that using the kernel sources, and now I see it also contains
After some looking around it seems to me that zyshclient is used for communicating with zyshd that actualy does the work. Looking into zyshd I can see: