Repository navigation
Replies: 3 comments
|
I recently looked into building Agate for my wrt54g router. The rust build target would have to be Building std from source may have been necessary even if there was a pre-built version for this platform. Doing so could help to significantly reduce the binary size as well as the memory footprint of the resulting Agate binary. |
|
I successfully got twind by thexhr to compile with some minor patches related to openssl using the openwrt toolchain. Let's see if it will work! I guess I'll just give up on running agate for now since the rust stdlib doesn't want to compile for uclibc. |
|
Anyways, I got version |
Uh oh!
There was an error while loading. Please reload this page.
Would it be feasible to run Agate on an old wifi router on top of OpenWrt?
In this case, the agate binary would need to fit within ~1MB and use less than 32MB of RAM at runtime.The binary size may be possible to achieve by optimizing aggressively for size and/or using UPX to compress it. However, I would be more worried about the limited available memory since zram can only do so much.
The document root could be either stored in nvram, or fetched from a git repo on boot.
This would not by any means be a production-ready server. It would be more like an experiment to push the limits of the device.
All reactions