⭐️ Beta OpenWRT 22.03 firmware available! Your feedback is needed ⭐️
@jasoneer Assuming you have created the swap file on a file system somewhere you should use the full path:
@crispyoz Sorry, I was in the folder where the swap.page was when I posted that but I did run it with an absolute path and it made no difference. I also repeated the same steps on another Omega2 LTE that was on the old/stable firmware and it worked no problems.
The external swap file instructions no longer works on the beta firmware.
PSA: expect that a lot of the existing Omega2 documentation probably won't work on the new beta firmware.
If there are specific things you would like to see documented for the new beta firmware, please create an Issue in the OnionIoT/OpenWRT-Packages GitHub Repo.
@Lazar-Demin I tried looking into this as it was pointed out a few times on the OpenWRT forums that since v19 external swap was disabled for many targets. However, it looks like the Omega targets did not have this flag. Since I now have the beta firmware built from source, I will see what I can find out and will open an issue with more details.
@jasoneer Check in make kernel_menuconfig the option is General Setup->Support for paging of anonymous memory
@crispyoz Yup, that's what I did. It was already enabled and the omega targets didn't have the
small_flashfeature that would have disabled it.
However, I did figure out the issue. On the beta firmware, when using extroot (booting from external), you can't create a swapfile on
/or under any subfolder. It has to be under
/overlay. The stable firmware allowed that and it would make sense that it did since
/overlayshould be the same as
/. Anyway problem is fixed!
@jasoneer Glad you figured out the problem! Can you please still make a github issue so we can document your solution?
huntc last edited by huntc
In case there's any interest, we've also managed to get OpenWrt 23.05 working for us - WiFi, GPIO (char mode), WireGuard, and more. We took some inspiration from the work here and figured a few things out ourselves. Here's our fork and the changes we've made: https://github.com/openwrt/openwrt/compare/openwrt-23.05...cuprous-au:openwrt:openwrt-23.05. We also publish the images we'll be using for our production environment there.
Please note that our image is not as feature-full as the Onion one, but it should illustrate how you can start from the OpenWrt stable branch, perhaps towards building something for production.
@huntc interesting. Thanks for posting.
This post is deleted!