I'm using a DJA0231 router with OpenWrt-based firmware ("20.3.c.0501-MR22-RC"), and I'm interested in achieving the following:
Configuration Persistence: Is there a way, possibly using uci-defaults or other methods, to make a custom configuration file (e.g., "/etc/config/mobiled") remain unchanged even after performing a factory reset? My goal is to retain specific settings while resetting others.
Automatic PLMN Retrieval: The EG06-AUTL LTE module used in the DJA0231 doesn't match the MCC and MNC of my local carriers. Is it possible to enable automatic PLMN retrieval for this module? I'm open to using AT commands or modifying the "/etc/config/mobiled" file.
TCH-Unhide Persistence: Can TCH-Unhide be set to remain enabled permanently, even after a factory reset?
If anyone has insights or suggestions on how to achieve these goals, I'd greatly appreciate your expertise. Thank you for your time and assistance!
It appears you are using firmware that is not from the official OpenWrt project.
When using forks/offshoots/vendor-specific builds that are "based on OpenWrt", there may be many differences compared to the official versions (hosted by OpenWrt.org). Some of these customizations may fundamentally change the way that OpenWrt works. You might need help from people with specific/specialized knowledge about the firmware you are using, so it is possible that advice you get here may not be useful.
2 Ask for help from the maintainer(s) or user community of the specific firmware that you are using.
3 Provide the source code for the firmware so that users on this forum can understand how your firmware works (OpenWrt forum users are volunteers, so somebody might look at the code if they have time and are interested in your issue).
If you believe that this specific issue is common to generic/official OpenWrt and/or the maintainers of your build have indicated as such, please feel free to clarify.
Thank you for your response and guidance. I understand that the firmware I'm using is not from the official OpenWrt project but is based on OpenWrt. However, I believe that the principles of OpenWrt configuration still apply in my case, and I'd like to provide more context regarding my configuration needs.
UCI-Defaults Script: In my current firmware, I do have access to UCI commands, and I'm interested in using an uci-defaults script to achieve my configuration goals. Specifically, I'd like to prevent certain configuration files, such as "/etc/config/mobiled," from being reset when performing a factory reset. My understanding is that uci-defaults allows for the execution of UCI commands during the first boot, and I'm hoping to utilize this mechanism to ensure the persistence of specific settings.
Configuration File: Here's the content of the "/etc/config/mobiled" file that I wish to protect and keep unchanged during a factory reset:
My router has 1024MB of RAM and 512MB of NAND flash, with 200MB allocated for bank1, 200MB for bank2, and the remainder for bootloader and related components.
If you believe that using an uci-defaults script is feasible for achieving my goals or if you have any additional insights on how I can use this script effectively, I'd greatly appreciate your expertise.
Thank you for your assistance and understanding.
This response should help clarify your intentions and emphasize your interest in using uci-defaults to achieve your specific configuration objectives. Be open to any additional guidance or recommendations that frollic or other community members might provide.
To be clear, you need to ask in the manufacturer/vendor support channels. Just because it is based on openwrt doesn’t mean it works the same way. Much like how some movies that are based on real events or on popular books are very different than the original source. Your device is likely running a very heavily modified version of OpenWrt that will materially change its operating behaviors.
If your device is supported by the official openwrt project, you can install a recent version and we can help you here. Otherwise, this forum cannot begin to guess what changes the vendor has made and it is just a black box to us.
Thank you for your response and your insight into the complexities of customized firmware. I appreciate your guidance and your honesty regarding the challenges associated with my current setup.
I understand that my device may be running a heavily modified version of OpenWrt, and this can indeed impact its operational behavior. While I'm using a firmware based on OpenWrt, I recognize that the changes made by the vendor could make it significantly different from the official OpenWrt project.
As you suggest, I will explore the manufacturer/vendor support channels for further assistance with my specific firmware. If, in the future, I have the opportunity to install an official version of OpenWrt that is supported by the project, I will certainly reach out here for guidance.
Thank you once again for your time and your valuable input.
OpenWrt approach is read-only firmware + read-write overlay.
All your changes, config changes, installations, and file edits (including uci-defaults) go to overlay.
When you do "factory reset", the overlay gets cleared. All your changes disappear.
For your changes to survive factory rest, you need to include the changes in the flashed firmware image itself...
So, assuming that your device still follows the normal practice, your best hope is likely manual backup/restore.
I meant that the whole firmware image that you flash is the "read-only firmware". And the overlay is created on the fly at the first boot after flashing a new firmware.