PROMETHEUS | [firmware] Script for compiling Padavan firmware and its modifications



Rep: (1330)
PROMETHEUS

Attached Image

Official script page
With the current repository

Attention!
• The script does not affect in any way whether the firmware is going to be installed or not (with the exception of outdated build configurations, their relevance is monitored by the authors). Only source version and dependency (installed packages) are affected. If you have not gathered something, you need to check the integrity of the source code and the installed packages.
• All merits in creating the firmware relate exclusively toandy.padavanand co-authors, we deal only with the script, patches and porting.
Prometheus script and firmware distribution terms :
пїЅ You can not distribute ready-made assembly devices for companies other than ASUS;
• You can not use the script to build the firmware with proprietary modules;
• It is strictly forbidden to distribute mods, patches and parts of the code that interfere with the above conditions.

Use virtual machine images by office. links or distribution previously checked for assembly. On Ubuntu 18 may not be collected.
FAQ
I'm not going to firmware, what to do?
In any case, you need to copy or scroll and lay out (under the spoiler) a piece of the log, which will appear after a failed compilation.
I assembled the firmware, but forgot to add skins / modules
You can add them after compilation and repeat the procedure again. The script will ask you to confirm the experimental compilation of the firmware, if you answer positively, only the missing / updated modules are re-compiled, the compile time will be reduced to 2-5% of the total.
When should you collect TOOLCHAIN?
When the firmware is first assembled, TOOLCHAIN ​​will be assembled automatically; it is not necessary to rebuild it until it is updated in the repository. This happens very rarely and I do not think that you should worry about it.
Where can I see the changes in the firmware?
You can visit the appropriate the page , and changes in the script are published on official website script .
How often would you advise to update the firmware?
As often as you like, but no more often than changes occur in the repository. Do not forget to update the scripts and source code.
How can I update the scripts?
The scripts are updated automatically at the first start and in the manual mode through the menu, pay attention to the existence of two branches of scripts, stable and test. Test provides always the most extreme commit from the firmware repository but may be with errors.
Can I change the selected router and not download the source code?
Yes you can. You can change the config of the router while keeping the old config or delete the current config completely in the settings (command S).
Turning on and off the firmware modules on the example of Aria
How to remove the firmware on a flash drive?
I found an error in the script, where to turn?
Write to the author of the topic in QMS.
How can I change or fix ttl?

Screenshots
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image

The main features of the script
1. Automatic assembly with user parameters;
2. Firmware configuration editor;
3. Skin system integration;
4. Automatic installation of compiled firmware on the router;
5. System for creating and restoring back-ups of all partitions;
6. Ability to work with several routers in turn;
7. System of protection from erroneous actions of users;
8. Different mods from the authors of the script.
List of optional supported configs
ASUS RT-AC1200HP, RT-AC51U, RT-AC54U, RT-N11P, RT-N14U, RT-N56U, RT-N56UB1, RT-N65U are supported Xiaomi MI-MINI, MI-NANO, NEXX wt3020a, wt3020h, wt3020f, Belkin N750 DB, Samsung CY-SWR1100 , ZyXEL Keenetic devices 4g3, extra, giga3, lite2, lite3, lite3b, omni, omni2, start2, ultra2, viva , TP-Link Archer C20 V1 , UnieLec U7621-06 , GL-MT300N and GL-MT300A .
And also in test mode:ZBT-WG3526 , ZBT-WE1326 , Xiaomi MI-3C (no SSH hack), MI-3 (nand flash driver is unstable) MI-3G , D-Link DIR-860L (requires manual EEPROM calibrations), Mqmaker WITI-512 and WITI-256 (configs do not spread, but scripts are adapted).
Install and Run
The script runs on any Debian Linux-like distribution. It weighs little, works smartly, meets the safety criteria for firmware and contains various mods and hacks. The time required to compile and install software can take from 10 minutes on a modern computer and up to 15 hours on the legacy of the nineties. Soberly evaluate your time before starting the compilation operation, this is the key to success.
To run on your main Linux system, do the following:
1. Open a terminal;
2. Download the script by entering the command:
wget -O start.sh http://prometheus.freize.net/script/start-99.sh

3. Enter:
chmod + x start.sh

4. Run the script and follow the instructions in the terminal:
./start.sh

If you have a 64-bit system installed, it is recommended to use VMware Workstation Player:
1. Download and install VMware Workstation Player ;
2. Download and unzip a virtual machine image PROMETHEUS ( Mirror );
3. Start VMware Workstation Player and add the unpacked container;
4. Configure container settings:
4.1. Configure the number of cores and RAM for the virtual machine;
4.2. Check the remaining container settings.
5. Start the virtual machine.

If you have an 86x (32x) bit system, it is recommended to install Oracle VM VirtualBox:
1. Download and install Oracle VM VirtualBox ;
2. Download and unzip a virtual machine image PROMETHEUS ( Mirror );
3. Run Oracle VM VirtualBox and add the unpacked container;
4. Configure container settings:
4.1. Configure the number of cores and RAM for the virtual machine;
4.2. Be sure to switch the network connection to bridge mode.
5. Start the virtual machine.

Installing PROMETHEUS script on ubuntu 18.04

Before the initial firmware of the router, it is necessary to perform the initialization of the router (and for MI-MINI once apply the SSH hack, point 3). On the installed xrmwrt, it is enough to enable SSH support in the settings of the router, where the login and password will be the same as on the WEB interface.
After the first initialization of the script, you can use the file manager by typingmc
For the script to work, the Internet is needed at the preparatory stage for the compilation and the update time, for hacking and firmware, there is no need for the Internet.

It is highly recommended to go from the first point to the last (within reason, of course, you do not need to update the scripts and walk-throughs after the first launch and some items can duplicate each other, for example, the manual and automatic editor of the config), and reload the router after flashing. Nothing bad will happen if these recommendations are not followed, but in order to get a 100% positive result, it is better to obey them.
Instructions
Boot sectors
Attention!Do not know what it is? Do not touch!
Advantages of custom loaders, it is an opportunity to restore the custom firmware immediately, unlike the stock one, which can only be restored to the virgin state. Please note that if you suddenly make a mistake in something when flashing the boot sector, you will get a brick to support the table leg, by the way is very convenient.
At the moment, the script allows almost safely (only if the light does not blink) flashing the boot sector, as well as compile it for all routers.

Comment author firmware

Instructions for restoring firmware:
1. Copy to the root of the first section of the USB Flash disk (usb 2.0), pre-formatted (ie, empty) in FAT16 / FAT32, the firmware image, while renaming the file to "root_uImage" (without quotes and extensions, BUT case sensitive );
2. Turn off the power of the router (pull out the power cord from the router);
3. Insert the USB flash disk into the USB port of the router;
4. Clamp the RESET button and turn on the router (we plug the power cord into the router) without releasing the RESET;
5. WAITING, at first the router will turn red, then it will flash and the flash drive (if there is an indicator on it) will also blink, after a minute the other router will stop blinking and only THEN, release RESET
5. After some time, if the indicator of the router does not change color to blue, restart it, the firmware will load. If it does not, check the USB flash drive or pick up another one.
Useful
Information unit in binary numbering system GOST 8.417-2002 GSI
bit2(bit) - amount of information 1 (usually used to denote the connection speed and the amount of information transmitted);
byte2,3 - amount of information 1 equal to8bit (usually used to denote the amount of data on the media).

1) The term “amount of information” is used in devices for digital processing and transmission of information, for example in digital computing (computers), to record the amount of storage devices, the amount of memory used by a computer program.
2) In accordance with the international standard IEC 60027-2, the “bit” and “byte” units are used with SI prefixes.
3) Historically, there is such a situation that the name “byte” is incorrect (instead of 1000 = 103accepted 1024 = 210) used (and use) SI prefixes: 1 Kbyte = 1024 bytes, 1 MB = 1024 Kbytes, 1 Gbytes = 1024 Mbytes, etc. At the same time, the designation Kbytes start with a capital letter unlike the lowercase letter “k” to designate a multiplier ten3.

Log changes in the script
List of scheduled updates
The authors of the project and those who just helped.
Videoscript work
Othervideorouter settings with firmware from Padavan
Ready archives for the module Entware.mod
How to sew Zyxel (original source)

Build firmware on a subsystem in Windows 10 NEW
Installing or upgrading the Windows subsystem for Linux to WSL2
to compile the firmware on Windows 10.



The curator of the topic is Freize. For all questions about updating and filling the caps, please contact directly toQMS.

Activity in the topic


Post has been editedFreize - 13.06.20, 12:22
Reason for editing: Setting Entware



Rep: (1330)
Change Log:
v.5.03release [30.05.2020]
Small correction code.

v.5.02 [01.12.2019]
Selecting alternative repositories:alxdmandmiracle091.

v.5.01 [04.07.2018]
From the stable version removed support for TP-LINK, a stable script frozen at version 4.13.
Version of the test script is changed to 5.x
Changed branch Linaro repository.
Now configs assemblies are loaded from the repository, rather than from a script file.
Updated config menu to the side.

v.4.13 [30.06.2018]
More correct calculation of the maximum weight of the firmware.

v.4.12 [04/01/2018]
Linaro repository support.

v.4.11 [03/01/2018]
Numerous minor bug fixes in both the script code and patches of the firmware source code.

v.4.10 [02.03.2018]
Updated patch module to v.1.2.0;
Removed connection check (see for yourself that the Internet is present), it interferes more than it helps;
Cosmetic code changes.

v.4.09 [01.27.2018]
Corrected compilation on Ubuntu 17.10;
Fixed dependencies for building on windows 10 ubuntu subsystem;
Added a PCI patch for processors on the MT7621, maybe fix the MT7603 blade on some models;
Added a module to automatically install patches of ihdnikov.
Want to say thanks for this update, tell itDeveloper_MZRIP. He motivated me to make these changes.

v.4.08 [11/21/2017]
Added support for TP-Link Archer C20 V1;
Updated skins.

v.4.07 [09/02/2017]
Added U-BOOT support for ZBT-WE3526;
Cumulative updates.

v.4.06 [08.22.2017]
Three columns for selecting configs; two were no longer placed;
Added support for GL-MT300A;
Added support for compiling U-Boot for GL-MT300A / N;
Added support for MI-R3G;
Added support for ZBT-WE1326;
Added support for ZBT-WG3526;
Other stuff.

v.4.04 [05/10/2017]
Update translation;
Other cumulative updates.

v.4.03 [05.01.2017]
Bug fixes.

v.4.01 [04/08/2017]
Minor bug fixes and translation updates;
A MAC module has been added that allows you to change MAC addresses to randomly generated or entered ones;
Changed the network availability verification address available for China.

v.4.00 [04/08/2017]
Added the ability to select a config for the assembly while preserving the old one and returning to it;
Added binding of SSH access settings to a specific router configuration; now you do not need to change the settings every time you change the config;
Added verification of the host name during firmware firmware and boot sector, now if the host is different from the assembly specified in the config, the scripts will give an error and ask for confirmation of the action. When switching from stock firmware, it will be asked anyway.
The main menu has been changed, the settings section has been added (note that some functions have been transferred and have changed their button);
Updated translation;
Modules adapted for version 4.x;
Changed directory structure.

v.3.25 [04/07/2017]
Fixed a bug that leads to the withdrawal of firmware from routers similar to the ID.

v.3.24 [04/07/2017]
Added GL-MT300N config in test mode (needs to be checked);
Updated valid source code commit for stable version.

v.3.23 [04/05/2017]
Added MI-3C config in test mode (there is still no ssh hack);
Removed unnecessary messages when configuring SSH.

v.3.22 [Mar 30, 2017]
Added the ability to enter a port to connect to SSH and / or domain;
Updated translation;
Updated skins.

v.3.21 [Feb 18, 2017]
Current updates.

v.3.20 [12.29.2016]
Fixed error checking Internet connection;
Added check for bad sectors for MI-3.

v.3.19 [12/07/2016]
Added support for DIR-860L;
Changed the default editor;
Updated skins;
Changed the algorithm of rollback to stock in MI-3;
Numerous minor fixes.

v.3.18 [01.10.2016]
Correction of bugs identified during operation.

v.3.17 [09/01/2016]
Numerous but minor code fixes;
Updated patch.

v.3.16 [08.23.2016]
Update via http.

v.3.15 [Aug 15, 2016]
Numerous but minor code fixes.

v.3.14 [08/04/2016]
Numerous code fixes;
Advanced debug mode;
Support for compiling U-BOOT for mt7621.

v.3.13 [02.08.2016]
Fix checking the correctness of the firmware installation on devices with a memory capacity of less than 128 MB;
Changing the script update algorithm, now the source code patch is updated on all versions at the same time;
Added the ability to update the patch without scripts.

v.3.12 [07.23.2016]
Added protection against choosing the wrong config for MI-3.

v.3.11 [07/17/2016]
Added startup parameters: -l disables redirection of compilation output to a file, allows you to manually adjust the config;
Added the function of manual selection of the partition for recording the firmware in the absence of a pre-installed choice in the script;
Changed the algorithm for calculating the size of the firmware when compiling, now the data is taken not from the log, but from the kernel config.

v.3.10 [Jul 16, 2016]
Added startup parameters: -c does not clear console log, -f will not check md5 firmware for mi3.

v.3.09 [07/10/2016]
New algorithm updates the script;
Added output version of STABLE / TEST.

v.3.08 [07/09/2016]
Fixed a bug that occurs during the second compilation for MI-3;
The algorithm for checking configs and drivers has been changed.

v.3.07 [07/09/2016]
Added the ability to return to stock for MI-3;
Updated skins.

v.3.06 [06/06/2016]
Changed backup algorithm, now works on MI-3 with bad sectors;
Numerous bug fixes;
Numerous minor bug fixes and translations.

v.3.05 [Jun 06, 2016]
Numerous fixes related to the MI-3 config and installation method;
Added ability to connect Entware to internal memory (4.7).

v.3.04 [05.27.2016]
MI-3 support.

v.3.03 [05.20.2016]
Fixed checking the size of the firmware.

v.3.02 [05/01/2016]
New SSH hack algorithm, MI WIFI 3 hack supported.

v.3.01 [05/01/2016]
Bug fixes.

v.3.00 [04.23.2016]Support English
Added English;
Added version control source code.

v.2.30 [03.26.2016]
Updated algorithm for checking Toolchain;
Updated TOR 2.2 module.

v.2.29 [03/23/2016]
Updated MI-MINI and WT3020 configs;
Added USB-Audio to the car editor.

v.2.28 [03/13/2016]
Updated MI-NANO config;
Updated TOR module.

v.2.27 [03/08/2016]
RP-L2TP has been added to the config editor;
Now your config will be updated automatically after adding functions;
Updated configs.

v.2.26 [03/05/2016]
ARIA2 WEB control has been added to the config editor.

v.2.25 [03/02/2016]
Updated configs;
Updated skins.

v.2.24 [03/01/2016]
Fixed bugs.

v.2.23 [02.28.2016]
U-Boot: updated to 5.0.0.5

v.2.22 [Feb 28, 2016]
Updated configs.

v.2.21 [02.21.2016]
Improved support for NEXX 3020;
Fix libid3tag, thanksrend3r.

v.2.20 [Feb 12, 2016]
Toolchain rebuild confirmation added;
Error correction.

v.2.19 [09.02.2016]
Error correction.

v.2.18 [05.02.2016]
Added support for MI-NANO;
Added U-BOOT for MI-NANO.

v.2.17 [01.02.2016]
Added support for Belkin N750 DB, Samsung CY-SWR1100;
Updated skins.

v.2.16 [01.30.2016]
Fixed "Argument list too long";
Updated skins;
Changed script architecture.

v.2.15 [01.28.2016]
Updated TOR module;
Added the ability to work with the stock firmware WT3020.

v.2.14 [01/23/2016]
Added modules TOR and РЎleaning;
Removed reset to the main menu upon completion of the executable module;
Added executable files before and after source updates.

Without version [1/19/2016]
Updated script installer, now supports installation on top with fixes.

v.2.13 [01/18/2016]
Increased error log detail;
Fixed config for WT3020.

v.2.12 [Jan 17, 2016]
Added smart logo selection, added font selection option;
Fixed bugs.

v.2.11 [Jan 16, 2016]
Added three files in which you can add your actions at startup, compilation and exit;
Added support for modules;
Modification of the editing algorithm board.h;
Added button mod for WT3020 and WT3020A;
Fixed connection checking when using proxy.

v.2.10 [01/13/2016]
Fixed a bug when entering special characters in the IP address;
Updated skins.

v.2.09 [01/09/2016]
Updated skins.

v.2.08 [01/05/2016]
Added support for NEXX WT3020A;
Fixed accumulation of compilation log.

v.2.07 [01/02/2016]
Improved SSH hack algorithm for MI-MINI;
Primary initialization of MI-MINI is no longer required;
Minor bug fixes.

v.2.06 [12/31/2015]
Fix ssh on devices without a standard name;
Cosmetic changes in the menu and the findings of teams.

v.2.05 [12/30/2015]
Added hidden command "C" to reset the config;
Backups of each router are stored separately;
Fixed a bug with nano, when special characters got into the config;
Introduced additional checks on the model of the router.

v.2.04 [12.29.2015]
Added NEXX logo to the skin pack;
Added U-BOOT for NEXX WT3020;
Added U-BOOT assembly config for NEXX WT3020;
Sorting routers when choosing a config.

v.2.03 [12/28/2015]
Skins are not reset when updating source code;
Correction of critical bugs;
Improved SSH connectivity.

v.2.02 [12/28/2015]
Added support for lightweight skins for routers with a small amount of memory;
Added editor skins, themes can be turned on and off;
Correction of critical bugs;
Updated skins.

v.2.01 [12.27.2015]
Added support for more than 10 routers;
Added selection of the router at the first start;
Support for the old repository is completely removed;
Updated menu.

v.1.28 [12.25.2015]
Added check of the size of the final firmware file;
Fixed minor bugs;
Updated skins.

v.1.27
Automatic build config editor;
Updated dependencies;
Corrected menu.

v.1.26
Fix display SN;
Updated dependencies;
Changed menu structure.

v.1.25
Fixed a bug with checking on the installation of the theme, there was an error, since the author of the theme changed the key file;
Ubuntu 14.04 and 14.10 support included;
Fixed bug of erroneous replaying of scripts;
U-BOOT is built on the x64 bit system.

v.1.24
Updated U-BOOT to 5.0.0.4;
Added check of all script files;
Added graphics for compiling U-BOOT;
Fixed minor bugs;
When U-BOOT is flashed, a copy of the partition is forcibly created.

v.1.23
Added hacking of stock firmware on SSH.

v.1.21
Increased script speed;
The repository is changed to the official rt-n56u;
Added methods for checking the source code and protection of the assembly;
Added function to display error logs after failure;
Added the ability to select any firmware from previously compiled;
Added forced dependency checking;
Added support for compiling U-BOOT.

v.1.18
In test mode, the choice of working repository is added;
Added patch with build config for MI-MINI on bitbucket repository.

v.1.15
Skin gray is replaced with a set of all skins with the ability to switch in the admin panel of the router;
Bug fixes and script optimization.

v.1.09
Updated gray;
Added a check for the * .TRX file if you want to flash the firmware;
Fix an error that occurred when reloading sources into the xrmwrt folder, if there were hidden files that were not deleted.

v.1.08
Fix passwords with special characters;
Limited time to find a router on the network.

v.1.07
The script now checks whether the firmware was previously assembled and reassembles only new parts;
A backup of the classic skin appeared, it allowed eliminating errors when updating the source code, as well as returning the skin at the touch of a button;
Corrected restarting the router by exiting the script;
Added SSH check before flashing any partition, if there is no SSH access, the script will simply rebuild to update the config.

v.1.02
Changed script logic, added menu;
Added self-installation, placed in any folder.

v.0.15
Added the ability to patch EEPROM;
Added the ability to sew U-Boot.

v.0.11
Rewrote more than 40% of the script;
Added 2 installation options: quiet and normal;
With a quiet installation, you can adjust all the actions and then go for tea;
Silent settings are saved;
Added the ability to back up and restore .config for silent installation mode;
Fixed a problem with the use of gray skin.

v.0.10
Changed the script update algorithm.

v.0.09
Added verification of the correctness of the username and password for connecting to the router, as well as errors associated with the SSH ban from the remote device;
Removed the conclusions of some errors.

v.0.08
Fixed a bug that caused access to the router to be denied due to an outdated certificate;
Fixed bug in the build script.

v.0.07
Added the ability to download the firmware;
Correction of critical bugs.

v.0.06
Turned off the screensaver.

v.0.05
Corrected minor errors in the description and comments in the scripts;
Updated the update script ./update.sh, it fell when overwriting (for a full update, you will have to run it twice, sorry for the inconvenience).

v.0.04
Added automatic firmware regardless of the version of the router and the installed software;
Added update script ./update.sh;
Added the ability to automatically install gray skin;
Added a ./script.sh development script allowing to install the script system on any machine.

v.0.03
Added the ability to flash in manual mode.

v.0.01
The first sample ...


Post has been editedFreize - 30.05.20, 14:58
Reason for editing: 5.00



Rep: (1330)
The authors of the project PROMETHEUS:

Worked on the script:
Freize- idea and program code.
yadoff- software code.
firsthash- program code, skin adaptation and web interface scripts.
medissn- Skins for the web interface.
NEt_Browser- English translation.
Xvortex- MI-3 porting.
Trackscream- porting source code and U-BOOT.
linaro- alternative repository, script code.
Developer_MZRIP- micro patches of source codes, finalization of configs.

We can not forget about the author of the firmware:
andy.padavan - firmware author RT-N56U.

Special thanks for the help:
Rependt
yantotal
lightvik
crocodil2
armen181
userlogoff
popella
Gregas
dimar1973
gelart
teddy02
amr_50
polimeroff
petr1976
southerner12
AddRemover

And many thanks to all those who sent information about bugs and suggestions for improving the work but was forgotten when making this post ...

Post has been editedFreize - 11.04.18, 14:21



Rep: (1330)
Future plans:

Future plans readhere.

We will add as soon as free time appears. Thank you for understanding.

Old hat
[size = 5] [b] [color = orange] Please read important information [/ color] [color = crimson] [url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=74763628"[тутут[/url[[/color[color=orange![[color_b/b_t//size]

[attachment = "10060340: prometheus.JPG.jpg"]

[offtop] [color = royalblue] [b] [list]
[*] In the subject are all [url = "//savagemessiahzine.com/forum/index.php?act=boardrules""Rules Rules [/ url] and [url = "//savagemessiahzine.com/forum/index.php?showtopic=121191"[10 commandments of a beginner who is hard to master the Rules of the Forum [/ url]
[*] Discussion of devices not related to this topic is prohibited. If the theme you need for a specific model does not exist - create it.
[*] Instead of the words “Thank you!”, Use [img] // s.savagemessiahzine.com.to / L8V7RJKz11xFuw6tJEgqFm4wM03fRP6z1oZOqF3Vdpsl.gif [/ img]. If you have less than 15 posts - click on [img] button // s.savagemessiahzine.com.to / L8V7BhLEbURwRz1m7x42Fmz0PZKRwAyFo7KV5Mi7bPz0Xz0.gif [/ img] under the message, where you helped write and gratitude.
[*] Useful topics to note: [url = "//savagemessiahzine.com/forum/index.php?showtopic=89878""FAQ by forum [/ url], [url = "//savagemessiahzine.com/forum/index.php?s=&showtopic=54518&view=findpost&p=1069832""РљРљak to search on the forum? [/ url]
[/ list] [/ b] [/ color] [/ offtop]
[b] Official script page: [/ b] [url = "http://pm.freize.net/index.html"] [i] [b] [color = royalblue] http://pm.freize.net [/ color] [/ b] [/ i] [/ url]

[b] [color = crimson] Dear% USERNAME%, remember that all actions performed with the router and relying on instructions from this topic you do at your own peril and risk. Before all manipulations with the device, it is recommended to back up the main sections. [/ color] [/ b]

The script runs on any [b] Debian [/ b] Linux-like distribution. It weighs little, works smartly, meets the safety criteria for firmware and contains various mods and hacks. The time required to compile and install software can take from 10 minutes on a modern computer and up to 15 hours on the legacy of the nineties. Soberly evaluate your time before starting the compilation operation, this is the key to success.
[spoiler = List of additionally supported config files] [b] ASUS RT-AC1200HP, RT-AC51U, RT-AC54U, RT-N11P, RT-N14U, RT-N56U, RT-N56UB1, RT-N65U [/ b] are supported [b ] Xiaomi MI-MINI, MI-NANO, NEXX wt3020a, wt3020h, wt3020f, Belkin N750 DB, Samsung CY-SWR1100 [/ b], [b] ZyXEL Keenetic devices 4g3, extra, giga3, lite2, lite3, lite3b, omni, omni2, start2, ultra2, viva [/ b], [b] [url = "//savagemessiahzine.com/forum/index.php?s=&showtopic=715256&view=findpost&p=67111749""TPTP-Link Archer C20 V1 [/ url] [/ b], [b] UnieLec U7621-06 [/ b], [b] GL- MT300N [/ b] and [b] GL-MT300A [/ b].
And also in test mode: [b] ZBT-WG3526 [/ b], [b] ZBT-WE1326 [/ b], [b] Xiaomi MI-3C [/ b] (no hack SSH), [b] MI -3 [/ b] (nand flash driver is unstable), [b] MI-3G [/ b], [b] D-Link DIR-860L [/ b] (requires manual EEPROM calibrations), [b] Mqmaker WITI -512 [/ b] and [b] WITI-256 [/ b] (configs are not distributed, but scripts are adapted). [/ Spoiler] [spoiler = Basic script features] [i] [b] 1. [/ B] Automatic assembly with user parameters;
[b] 2. [/ b] Firmware configuration editor;
[b] 3. [/ b] Integration of the skin system;
[b] 4. [/ b] Automatic installation of compiled firmware on the router;
[b] 5. [/ b] System for creating and restoring backcaps of all partitions;
[b] 6. ​​[/ b] Ability to work with several routers in turn;
[b] 7. [/ b] System of protection from erroneous actions of users;
[b] 8. [/ b] Various mods from the authors of the script. [/ i] [/ spoiler] [quote = Foreman] [color = crimson] [b] ATTENTION! [/ b] [/ color]
• The script does not affect in any way whether the firmware is going to be installed or not (with the exception of outdated build configurations, their relevance is monitored by the authors). Only source version and dependency (installed packages) are affected. If you have not gathered something, you need to check the integrity of the source code and the installed packages.
• All merits in creating firmware refer exclusively to [url = "//savagemessiahzine.com/forum/index.php?showuser=3164005""andy.padavan[/url] and co-authors, we only deal with the script, patches and porting.

[b] [color = red] Conditions for distributing Prometheus script and firmware [/ color] [/ b]:
• [url = "//savagemessiahzine.com/forum/index.php?showtopic=596689&view=findpost&p=41896854""NeNo distribute ready-made assemblies for devices of companies other than ASUS [/ url];
• You can not use the script to build the firmware with proprietary modules;
• It is strictly forbidden to distribute mods, patches and parts of the code that interfere with the above conditions. [/ Quote]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=45748604"[[bbLog of changes in the script [/ b] [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=45750119""[b The list of planned updates [/ b] [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=45748803"[[bb Authors of the project and those who just helped [/ b] [/ url]
[url = "https://youtu.be/uFD48KXICPM"] [b] [color = crimson] Video [/ color] of the script [/ b] [/ url]
[url = "https://www.youtube.com/playlist?list=PLoRDQY-95j9MzY9n5qSx71oW9qUkP9R5o"] [b] Other [color = red] video [/ color] router settings with firmware from Padavan [/ b] [/ url ]
[b] [url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=50376507""Revent archives for the Entware.mod module [/ url]
[url = "//savagemessiahzine.com/forum/index. templates / zyxel / readme !!!. txt? at = master & fileviewer = file-view-default "] source [/ url]) [/ b]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=66487446"[[bР±The build on the subsystem in Windows 10 [/ b] [/ url] [color = red] [b] NEW [/ b] [/ color ]
[spoiler = [color = royalblue] [b] Install and run: [/ b] [/ color]] [spoiler = [color = royalblue] [b] To run on your main Linux system, perform the following steps: [/ b] [/color []]; open a terminal;
[b] 2. [/ b] Download the script by entering the command: [code] wget -O start.sh http://prometheus.freize.net/script/start-99.sh[/code]
[b] 3. [/ b] Enter: [code] chmod + x start.sh [/ code]
[b] 4. [/ b] Run the script and follow the instructions in the terminal: [code] ./ start.sh [/ code] [/ spoiler]
[spoiler = [color = royalblue] [b] If you have a 64-bit system installed, it is recommended to use VMware Workstation Player: [/ b] [/ color]] [b] 1. [/ b] Download and install [url = " http://www.vmware.com/products/player/playerpro-evaluation.html" mine VMware Workstation Player [/ url];
[b] 2. [/ b] Download and unzip the virtual machine image [url = "https://yadi.sk/d/6EpD2EpHmB82o"] PROMETHEUS [/ url] ([url = "https: // it-data. co.ua/prometheus/""Зеркало[/url]);
[b] 3. [/ b] Start VMware Workstation Player and add the unpacked container;
[b] 4. [/ b] Configure container settings:
[b] 4.1. [/ b] Configure the number of cores and RAM for the virtual machine;
[b] 4.2. [/ b] Check the rest of the container settings.
[b] 5. [/ b] Start the virtual machine. [/ spoiler]
[spoiler = [color = royalblue] [b] If you have an 86x (32x) bit system, it is recommended to install Oracle VM VirtualBox: [/ b] [/ color]] [b] 1. [/ b] Download and install [url = "https://www.virtualbox.org/wiki/Downloads"] Oracle VM VirtualBox [/ url];
[b] 2. [/ b] Download and unzip the virtual machine image [url = "https://yadi.sk/d/6EpD2EpHmB82o"] PROMETHEUS [/ url] ([url = "https: // it-data. co.ua/prometheus/""Зеркало[/url]);
[b] 3. [/ b] Start Oracle VM VirtualBox and add the unpacked container;
[b] 4. [/ b] Configure container settings:
[b] 4.1. [/ b] Configure the number of cores and RAM for the virtual machine;
[b] 4.2. [/ b] Be sure to switch the network connection to bridge mode.
[b] 5. [/ b] Start the virtual machine. [/ spoiler]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=76604229""[[color=royalblue indtb Installing the PROMETHEUS script on ubuntu 18.04 [/ b] [/ color] [/ url]

Before the initial firmware of the router, it is necessary to perform the initialization of the router (and for MI-MINI once apply the SSH hack, point 3). On the installed xrmwrt, it is enough to enable SSH support in the settings of the router, where the login and password will be the same as on the WEB interface.
After the first initialization of the script, you can use the file manager by typing [b] mc [/ b]
For the script to work, the Internet is needed at the preparatory stage for the compilation and the update time, for hacking and firmware, there is no need for the Internet.

It is highly recommended to go from the first point to the last (within reason of course, update the scripts and skhodniki after the first start-up is not necessary, and some items can duplicate each other, for example, manual and automatic config editor), and then restart the router firmware. Nothing bad will happen to non-compliance with these guidelines, but in order to get 100% positive sobloyudat their best. [/ Spoiler] [spoiler = [color = royalblue] FAQ those same rake and workarounds [/ color]]
[spoiler = I’m not going to install the firmware, what should I do?] In any case, you need to copy or scroll and lay out (under the spoiler) a piece of log, which appears after unsuccessful compilation. [/ spoiler]
[spoiler = I built the firmware, but forgot to add skins / modules] You can add them after compilation and repeat the procedure again. The script will ask you to confirm the experimental compilation of the firmware, if you answer positively, only missing / updated modules will be re-compiled, the compile time will be reduced to 2-5% of the total. [/ Spoiler]
[spoiler = When will the TOOLCHAIN ​​be assembled?] When the firmware is first assembled, TOOLCHAIN ​​will be built automatically; it is not necessary to reassemble it before updating it in the repository. This happens very rarely and I don’t think you should worry about it. [/ Spoiler]
[spoiler = Where can I see the changes in the firmware?] You can visit the corresponding [url = "https://bitbucket.org/padavan/rt-n56u/commits/all"] page [/ url], and the changes in the script published on the [url = "http://prometheus.freize.net/changelog.html"] official website of the script [/ url]. [/ spoiler]
[spoiler = How often will you advise to update the firmware?] As often as you like, but no more often than changes occur in the repository. Do not forget to update the scripts and source code. [/ Spoiler]
[spoiler = How do I update the scripts?] The scripts are updated automatically at the first start and in manual mode through the menu, pay attention to the existence of two scripts branches, stable and test. The test provides always the most extreme commit from the firmware repository but may be with errors. [/ Spoiler]
[spoiler = Can I change the selected router and not download the source code?] Yes, you can. You can change the config of the router while keeping the old config or delete the current config completely in the settings (command S). [/ spoiler]
[spoiler = Enable and disable firmware modules using the example of Aria] [url = "//savagemessiahzine.com/forum/index.php? show
[spoiler = How to pull the firmware on a flash drive?] [url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=46108967""Your answer is here ... [/ url] [/ spoiler]
[spoiler = I found an error in the script, where to go?] Write to the author of the topic in QMS. [/ spoiler]
[spoiler = How can I change or fix ttl?] [url = "//savagemessiahzine.com/forum/index.php?showtopic=684260&view=findpost&p=59804664"` Use the script template [/ url] [/ spoiler]
[/ spoiler] [spoiler = [color = royalblue] Instructions from neighboring topics [/ color]]
[b] Snack: [/ b]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=58675930"urnFew a few printers on one router [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=58629511"Added to the TOR firmware, and how to configure? [/ url] [url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=58916548""Deldating.[/url]
[url = "https://bitbucket.org/padavan/rt-n56u/wiki/browse/RU"] Instructions in Russian for setting up the firmware [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=43809696" Installing a network printer [/ url]
[url = "https://bitbucket.org/padavan/rt-n56u/wiki/RU/Use% 20Transmission"] Configure Transmission [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=43370595"001Blocking ad / [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=596689&view=findpost&p=41406138"ownOblako based on Owncloud + nginx + php5-fpm + https [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=58441805"lackHow to launch MPD radio [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=63228695"urnMadio control from the IR remote without LIRC [/ url]

[b] Skins: [/ b]
All skins should be replaced at the compilation stage of the firmware, the Prometheus script supports all skins, change of choice through the admin panel of the router.
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=44407278"" Multickin (not dependent on version) [/ url]
[spoiler = Outdated versions of skins] [url = "//savagemessiahzine.com/forum/index.php?showtopic=596689&view=findpost&p=42435093"Skin in yellow tones [/ url] [color = red] [b] outdated [/ b] [/ color]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=42527301"ownSkin in blue tones [/ url] [color = red] [b] outdated [/ b] [/ color]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=43414311"urnSkin in dark blue tones [/ url] [color = red] [b] outdated [/ b] [/ color] [/ spoiler]

[b] Other: [/ b]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=58021446"lackBackcap entware [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=714487&view=findpost&p=57080635"Р RRDStorm[/url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=736801&view=findpost&p=56740847"urnUnder the router via telegram [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=736801&view=findpost&p=56105131"urnDeleting error 404 output windows (about servers not found) when installing the ad blocker script. [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=45738704"Add scanner support [/ url] (there is an alternative way through the entware module, see the package archive for it in the header)
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=45747690""МФУ by remote [/ url]
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=44804034""РђРђria add WEB to the patch [/ url] (the instruction is irrelevant, leave for example to add something to the firmware)
[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=44354347"manVideo assembly and firmware [/ url] [/ spoiler] [spoiler = [color = royalblue] Boot sectors [/ color]]
[b] [color = crimson] Attention! [/ color] You do not know what it is? Do not touch! [/ B]
Advantages of custom loaders, it is an opportunity to restore the custom firmware immediately, unlike the stock one, which can only be restored to the virgin state. Please note that if you suddenly make a mistake in something when flashing the boot sector, you will get a brick to support the table leg, by the way is very convenient.
At the moment, the script allows almost safely (only if the light does not blink) flashing the boot sector, as well as compile it for all routers.

[url = "//savagemessiahzine.com/forum/index.php?showtopic=686221&view=findpost&p=43327389" Your commented firmware comment [/ url]

[b] Instructions for restoring firmware: [/ b]
1. Copy to the root of the first section of the USB Flash disk (usb 2.0), pre-formatted (ie, empty) in FAT16 / FAT32, the firmware image, while renaming the file to "root_uImage" (without quotes and extensions, BUT case sensitive );
2. Turn off the power of the router (pull out the power cord from the router);
3. Insert the USB flash disk into the USB port of the router;
4. Clamp the RESET button and turn on the router (we plug the power cord into the router) without releasing the RESET;
5. WAITING, at first the router will turn red, then it will flash and the flash drive (if there is an indicator on it) will also blink, after a minute the other router will stop blinking and only THEN, release RESET
5. After some time, if the indicator of the router does not change color to blue, restart it, the firmware will load. If it does not, check the USB flash drive or select another one. [/ Spoiler] [spoiler = [color = royalblue] Screens [/ color]] [attachment = "7329560: 001.jpg"] [attachment = "7329561: 002.jpg"] [attachment = "7329562: 003.jpg"] [attachment = "7329563: 004.jpg"] [attachment = "7329573: 006.jpg"] [attachment = "7329574: 007.jpg"] [/ spoiler]
[offtop] [color = royalblue] [b] At the moment, the curator of the topic is [url = "//savagemessiahzine.com/forum/index.php?showuser=1587161"Freize[/url]. For all questions about updating and filling the header, please contact directly [url = "//savagemessiahzine.com/forum/index.php?act=qms&mid=1587161""QQMS[/url]. Thank you! [/ color] [/ offtop] [/ b]
[b] In order to develop technical literacy: [/ b]
[spoiler = [color = royalblue] Information unit in binary notation GOST 8.417-2002 GSI [/ color]]
[b] bit [sup] 2 [/ sup] (bit) [/ b] - the amount of information [b] [sup] 1 [/ sup] [/ b] (usually used to denote the connection speed and the amount of information transmitted);
[b] byte [sup] 2,3 [/ sup] [/ b] - the amount of information [b] [sup] 1 [/ sup] [/ b] [b] is equal to [color = red] 8 [/ color] bit [/ b] (usually used to denote the amount of data on the media).

1) The term “amount of information” is used in devices for digital processing and transmission of information, for example in digital computing (computers), to record the amount of storage devices, the amount of memory used by a computer program.
2) In accordance with the international standard IEC 60027-2, the “bit” and “byte” units are used with SI prefixes.
3) Historically, the situation was that with the name “byte” it was incorrect (instead of 1000 = 10 [sup] 3 [/ sup] 1024 = 2 [sup] 10 [/ sup] was adopted) the SI prefixes were used (and used): 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB, etc. The designation of KB begins with a capital letter, unlike the lower case letter “k” to designate the factor 10 [sup] 3 [/ sup]. [ / spoiler]
[spoiler = [color = royalblue] Past polls [/ color]] Not yet conducted [/ spoiler]
[center] [url = "//savagemessiahzine.com/forum/index.php?s=&act=Stats&CODE=who&t=714487"[[b`Авасть in a subject [/ b] [/ url] [/ center]



Post has been editedFreize - 22.10.18, 08:50



Rep: (50)
I will continue my descriptions of the war with errors - maybe someone will help.
described here ==>MiWiFi mini | Xiaomi Mi-router mini - Firmware (Post Gobi # 45224839)won corny - chose the script branch option (or the source code ... sorry, flew off the head) is not "stable", but "experimental" - everything came together without problems (not to be confused with the stage when during reassembly you can speed it up by selecting "experimental").
other options did not save, both on ready virtuals, and on self-assembled Ubuntu on Hyper-V.

On Ubuntu 14.04 LTS, the script loops - there is not enough scp. How to put it - you will find in the previous topic. In the 15th version they say that there is no such problem.

Post has been editedAngel_d - 30.12.15, 16:15



Rep: (397)
I'll refresh and I'm a little topic.
After restoring the backup of the sections of the router with the mi-mini 2.0X script, the script itself writes that there is no access to ssh. Ten times prescribed login / password - does not believe. I changed the login / password in the router, turned off / turned on ssh in the router. Putty lets, the latest version of the script is not.

Post has been editedsergtot - 30.12.15, 20:38



Rep: (1330)
* sergtot please tell me what the output of the command uname -a is going on putty?
And what do you have in the script in the header directly above the toolchain?

Post has been editedFreize - 30.12.15, 20:48



Rep: (397)
Freize @ 12/30/2015, 8:47 PM*
What is the output of the uname -a command going to Putty?

Attached Image

Freize @ 12/30/2015, 8:47 PM*
And what do you have in the script in the header directly above the toolchain?

Attached Image


Update: I found a virtual backup with a 1.24r script. Checked Everything is in order with SSH access.
By the way, previously wrote that there is access, but is not defined as mi-mini, because I changed the name of the device in the admin. Maybe this is the case?

Post has been editedsergtot - 30.12.15, 22:32



Rep: (1330)
* sergtot here is a delicate matter ...
The script is looking for a router namedLinux MI-MINI Since this is the standard name for XRMWRT with a config for MI MINI, options are also available: Linux XiaoQiang this is stock and Linux openwrt Well here it is clear ...
If the config is valid selected under RT-N56U, then it will searchLinux RT-N56U and Linux openwrt . Let me now fill in the test branch for you version where the search will take place for any name? Why do not do in the main? And what will happen if people flash the firmware or God forbid backing from another router, is there certainly a protection on the back-up, but you never know?

Poured into the test branch, take ...



Rep: (397)
Freize @ Today, 23:28*
Poured into the test branch, take ...

Thank! I'm going to try now.

Yes, it works :) Writes that it is connected to an unknown device. So it was about changing the name.
Holiday greetings!

Post has been editedsergtot - 30.12.15, 23:48
Reason for editing: inserted quotation text



Rep: (1330)
* sergtot dopilil to a more conditioned look. Now it will also determine the device.



Rep: (2)
Hello everyone
please tell me with such a question
installed VirtualBox ->downloaded and launched the necessary virtual machine ->reached the menu ->I select menu item 0 and get an error
(tried different passwords, addresses, etc.)
Attached Image


in the virtual settings for the network network bridge is set
The network cable in the router has already permeated all the nests :)
I am somewhere stupid, but where I cannot understand (...
Attached Image




Rep: (1721)
* fresher13,
Try pinging from virtualke 31.1



Rep: (503)
I am somewhere stupid, but where I cannot understand (...

you did not initialize the router, did not ask it a password (otherwise you would not have a question what to enter) and mode of operation
go to his admin area first



Rep: (1330)
* fresher13, The password must be specified as indicated when the router was first launched. Make sure that the router is connected to the PC on which the virtual machine is directly. Try to ping the router with a command
ping 192.168.31.1
To stop control + C

Tried to do what the script suggests?

Post has been editedFreize - 31.12.15, 09:58



Rep: (4)
Yesterday I altered the entire Mi Mini router without connecting at all with a cord. I did everything by wi-fi.

Still, either some script will need to be added to the script or to the header.
Later I will try to collect everything that was embarrassing and it was not obvious at first glance.

Freize, thanks!

Post has been editedScorpAL1 - 31.12.15, 10:21



Rep: (1721)
* Freize,
Bugs 2.05 when building for Nex, size checks with 16 megs, not 8.

Fast bulkhead, strangely works, remove the package and the place is not released, with a complete reassembly everything is ok.
By the way, your config for Nex is the most optimal, step to the left and enumeration from memory.

Post has been editedcrocodil2 - 31.12.15, 13:11



Rep: (1330)
* crocodil2, it's very strange that with 16 ... It takes them from the compilation log, and there the limit is issued from the config, in which 8 ...
Regarding the quick rebuild, unfortunately the Padawan did it so well, she can add new things, but not delete the old ones. If you need to reduce the size, then just do the full. Alas. Maybe later we come up with a thread.
I rebuilt:
Attached Image


Post has been editedFreize - 31.12.15, 15:24



Rep: (95)
Guys .. Happy holiday to you :)

How can you beat such a bjaku?
Attached Image



Rep: (2)
Freize ,
it turned out to ping (on another computer with virtualka on VMWare),
now does not want to accept the admin password (changed the password in the admin, the password on the host OS is working - it allows it to enter the admin)
Attached Image


And you can immediately flash the device without performing point 0?

Post has been editedfresher13 - 31.12.15, 14:02



Rep: (1330)
* telefonik, you have an example of a virtual box birth injury, translate the type of virtual machine connection to a bridge-type scheme and everything will work out.
* fresher13, Tell me, what version of the firmware do you have?
I recommend you to use at the moment.old way to get ssh. Follow steps one through six for the MINI.
You may have a problem both in the firmware version of the router and in the home network. It is difficult to reveal something without torturing you, and before the new year you don’t want to torture. The official way will take 10 minutes, but it will definitely work.


Full version    

Help     rules

Time is now: 09/09/20, 21:21