Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:beeline:smartbox_giga [2022/08/18 07:40] – [1. Sercomm recovery utility] csharper2005toh:beeline:smartbox_giga [2023/08/31 11:03] – [OpenWrt installation] csharper2005
Line 13: Line 13:
 /*****/ /*****/
  
-{{media:beeline:beeline-giga.png?200|Beeline SmartBox GIGA}}+{{media:beeline:beeline-giga.png?300|Beeline SmartBox GIGA}}
  
  
Line 28: Line 28:
 ===== Experimental firmware ===== ===== Experimental firmware =====
  
-  * Community builds - https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4+  * [[https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]
  
  
Line 41: Line 41:
  
  
-===== Backup (recommended) ===== +===== Backup ===== 
-It's recommended to make a backup before you start:+It's recommended to make a mtd backup before you start:
  
-* Set up a tftp server (e.g. tftpd64 for windows)+1[[:toh:beeline:smartbox_giga#obtaining_ssh_access_on_the_stock_firmware|Get SSH access]] 
  
-Connect to a router using SSH shell and run the following commands:+2. Set up a tftp server (e.g. tftpd64 for windows) 
 + 
 +3. Connect to a router using SSH shell and run the following commands:
 <code bash> <code bash>
 cd /tmp cd /tmp
 for i in 0 1 2 3 4 5 6 7 8 9 10 11; do nanddump -f mtd$i /dev/mtd$i; \ for i in 0 1 2 3 4 5 6 7 8 9 10 11; do nanddump -f mtd$i /dev/mtd$i; \
-tftp -l mtd$i -p 192.168.1.2; md5sum mtd$i >> mtd.md5; rm mtd$i; done +tftp -l mtd$i -p 10.0.0.2; md5sum mtd$i >> mtd.md5; rm mtd$i; done 
-tftp -l mtd.md5 -p 192.168.1.2+tftp -l mtd.md5 -p 10.0.0.2
 </code> </code>
-192.168.1.2 - IP of the tftp server+10.0.0.2 - IP of the tftp server
  
-Check backups in your tftp root folder.+4. Check backups in your tftp root folder.
  
  
Line 83: Line 85:
 ---- ----
  
 +
 +{{page>meta:infobox:attention_trunk&noheader&nofooter&noeditbtn}}
  
 -> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]] -> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
  
-1. Downgrade stock (Beeline) firmware to v.1.0.02+==== OpenWrt installation ====
  
-2. Give factory OpenWrt image a shorter name, e.g. 1001.imgOr just remove all dots (except before file extension) from the file name.+<WRAP round info 100%> 
 +**CAUTION:** \\ 
 +If you have any third-party firmware (e.g. Padavan, Keenetic, AsusWrt, non-official OpenWrt community builds (especially for Breed bootloader) etc.) installed on your device it's strongly recommended to restore original OEM firmware (including bootloader, EEPROM, partition map etc.) from your backup before you start the OpenWrt installation on your device. 
 +</WRAP>
  
-3Upload and update the firmware via the original web interface.+1Install stock Beeline v.1.0.02 firmware twice 
 + 
 +2. Remove all dots from the OpenWrt //factory image// file name  
 + 
 +3. Install OpenWrt //factory image// via the original web interface
  
 Remark: Remark:
 You might need make the 3rd step twice if your running firmware is booted from the Slot 1 (Sercomm0 bootflag). The stock firmware reverses the bootflag (Sercomm0 / Sercomm1) on each firmware update. You might need make the 3rd step twice if your running firmware is booted from the Slot 1 (Sercomm0 bootflag). The stock firmware reverses the bootflag (Sercomm0 / Sercomm1) on each firmware update.
  
-==== Flash Layout ====+==== OEM easy installation ==== 
 + 
 +See [[:toh:beeline:smartbox_giga#openwrt_installation|OpenWrt Installation]] section 
 + 
 +==== OEM installation using the TFTP method ==== 
 + 
 +->  [[docs:guide-user:installation:generic.flashing.tftp]] 
 + 
 +Not applicable 
 +===== Obtaining SSH access on the stock firmware ===== 
 + 
 +1.  Login to the router web interface (admin:admin) 
 + 
 +2.  Navigate to Settings -> WAN -> Add static IP interface (e.g. 10.0.0.1/255.255.255.0) 
 + 
 +3.  Navigate to Settings -> Remote cotrol -> Add SSH, port 22, 10.0.0.0/255.255.255.0 and interface created before 
 + 
 +4.  Change IP of your client to 10.0.0.2/255.255.255.0 and connect the ethernet cable to the WAN port of the router 
 + 
 +5.  Connect to the router using SSH shell (SuperUser:SQxxxxxxxxxx, where SQxxxxxxxxxx is the serial number from the backplate label) 
 + 
 +6.  Run in SSH shell: 
 +<code bash> 
 +sh 
 +</code> 
 + 
 +===== Flash Layout =====
  
 ^ mtd  ^ partition                       ^ start      ^ size       ^ OpenWrt specific  | ^ mtd  ^ partition                       ^ start      ^ size       ^ OpenWrt specific  |
Line 112: Line 149:
  
  
-==== OEM easy installation ==== 
  
-See Installation section 
  
-==== OEM installation using the TFTP method ==== 
  
-->  [[docs:guide-user:installation:generic.flashing.tftp]] 
- 
-Not applicable 
  
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
Line 162: Line 193:
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
  
-==== 1. Sercomm recovery utility ====+==== sercomm-recovery utility ====
 1. Compile [[https://github.com/danitool/sercomm-recovery|sercomm-recovery]] under the Linux: 1. Compile [[https://github.com/danitool/sercomm-recovery|sercomm-recovery]] under the Linux:
 <code bash> <code bash>
Line 177: Line 208:
 3. Wait until the router is flashed and rebooted. 3. Wait until the router is flashed and rebooted.
  
-[[https://mega.nz/folder/tlIm1JLK#bBRJXq-DVkzJBOR2dC1K5w|Download ready recovery images]] for Turbo+ and GIGA.+[[https://mega.nz/folder/tlIm1JLK#bBRJXq-DVkzJBOR2dC1K5w|Download ready recovery images]] for Sercomm devices.
  
  
Line 193: Line 224:
 </code> </code>
  
-==== 2. TFTP method ====+==== tftp method ====
  
 1. Run tftp server on IP 10.10.10.3/24 1. Run tftp server on IP 10.10.10.3/24
Line 263: Line 294:
  
 //Front://\\ //Front://\\
-{{media:beeline:smartbox-giga_case_front.png?200|Beeline SmartBox GIGA Case Front}}+{{media:beeline:smartbox-giga_case_front.png?400|Beeline SmartBox GIGA Case Front}}
  
 //Back://\\ //Back://\\
-{{media:beeline:smartbox-giga_case_rear.png?200|Beeline SmartBox GIGA Case Rear}}+{{media:beeline:smartbox-giga_case_rear.png?400|Beeline SmartBox GIGA Case Rear}}
  
 //Backside label://\\ //Backside label://\\
-{{media:beeline:smartbox-giga_backside_label.jpg?200|Beeline SmartBox GIGA Label}}+{{media:beeline:smartbox-giga_backside_label.jpg?400|Beeline SmartBox GIGA Label}}
  
 ==== Opening the case ==== ==== Opening the case ====
Line 278: Line 309:
  
 //Main PCB://\\ //Main PCB://\\
-{{media:beeline:smartbox-giga_pcb_1.jpg?200|Beeline SmartBox GIGA PCB}}+{{media:beeline:smartbox-giga_pcb_1.jpg?400|Beeline SmartBox GIGA PCB}}
  
-{{media:beeline:smartbox-giga_pcb_2.jpg?200|Beeline SmartBox GIGA PCB}}+{{media:beeline:smartbox-giga_pcb_2.jpg?400|Beeline SmartBox GIGA PCB}}
  
-{{media:beeline:smartbox-giga_pcb_3.jpg?200|Beeline SmartBox GIGA PCB}}+{{media:beeline:smartbox-giga_pcb_3.jpg?400|Beeline SmartBox GIGA PCB}}
  
 ==== Serial ==== ==== Serial ====
Line 288: Line 319:
  
 How to connect to the Serial Port of this specific device:\\ How to connect to the Serial Port of this specific device:\\
-{{media:beeline:smartbox-giga_serial.jpeg?200|Beeline SmartBox GIGA UART connection}}+{{media:beeline:smartbox-giga_serial.jpeg?400|Beeline SmartBox GIGA UART connection}}
  
 ^ Serial connection parameters\\ for Beeline SmartBox GIGA | 57600, 8N1, 3.3V | ^ Serial connection parameters\\ for Beeline SmartBox GIGA | 57600, 8N1, 3.3V |
Line 299: Line 330:
  
 ===== Bootloader mods ===== ===== Bootloader mods =====
--> [[docs:techref:bootloader]] 
  
-<color #ed1c24>It's not recommended to change the original bootloader. You can easily brick your device.</color> 
  
-==== Breed bootloader ==== 
-Original Breed for Xiaomi R3G can be used, but breedenter utility is required to enter the Breed. Breed web interface shouldn't be used for flashing firmware or EEPROM backup or recovery. Telnet should be used instead.  
  
-See //Notes -> Breed bootloader// section for links+==== Restoring the original U-boot bootloader and stock firmware  ====
  
-Breed settings for Beeline Smartbox GIGA:+{{page>meta:infobox:dangerous&noheader&nofooter&noeditbtn}}
  
-^ Setting                    ^ Value                 ^ +**Input conditions:**  
-| autoboot.command            boot flash 0x400100  |+  * router with Breed bootloader installed 
 + 
 +**You will need:** 
 +  * PC or Virtual machine with Linux 
 +  * mtd partitions backup (**mtd0.bin** - //u-boot bootloader//, **mtd1.bin** - //dynamic partition map//, **mtd2.bin** - //Factory//
 +  * http server with mtd partitions backup (i.e. with IP 192.168.1.2) 
 +  * recovery image (see [[https://openwrt.org/toh/beeline/smartbox_giga#sercomm-recovery_utility|sercomm-recovery]])  
 + 
 + 
 +=== U-Boot and stock firmware recovery steps === 
 + 
 +**<color #ed1c24>After executing each command, carefully read its output before executing the next one.</color>** 
 + 
 +1. Enter the Breed telnet shell (IP: 192.168.1.1) 
 + 
 +2. Download //dynamic partition map// backup from your http server and write it: 
 +<code bash> 
 +wget http://192.168.1.2/mtd1.bin 
 +</code> 
 +<code bash> 
 +flash erase 0x100000 0x200000 
 +</code> 
 +<code bash> 
 +flash write 0x100000 0x80001000 0x100000 
 +</code> 
 + 
 +2. Download //Factory// backup from your http server and write it: 
 +<code bash> 
 +wget http://192.168.1.2/mtd2.bin 
 +</code> 
 +<code bash> 
 +flash write 0x200000 0x80001000 0x100000 
 +</code> 
 + 
 +3. Download //u-boot bootloader// backup from your http server and write it: 
 + 
 +**<color #ed1c24>The most dangerous part of the instruction. Be extremely careful.</color>** 
 + 
 +<code bash> 
 +wget http://192.168.1.2/mtd0.bin 
 +</code> 
 +<code bash> 
 +flash erase 0x0 0x100000 
 +</code> 
 +<code bash> 
 +flash write 0x0 0x80001000 0x100000 
 +</code> 
 + 
 +4. Check written data and reboot: 
 +<code bash> 
 +flash dump 0x0 
 +</code> 
 +<code bash> 
 +flash dump 0x100000 
 +</code> 
 +<code bash> 
 +flash dump 0x200000 
 +</code> 
 + 
 +5. Use [[https://openwrt.org/toh/beeline/smartbox_giga#sercomm-recovery_utility|sercomm-recovery]] utility for stock firmware recovery
  
 ===== Hardware mods ===== ===== Hardware mods =====
Line 326: Line 412:
 Rating 100-330 uF x 16V. Rating 100-330 uF x 16V.
  
-{{media:beeline:smartbox-giga_capacitor.jpeg?200|Beeline SmartBox GIGA capacitor mod}}+{{media:beeline:smartbox-giga_capacitor.jpeg?400|Beeline SmartBox GIGA capacitor mod}}
  
 ===== Bootlogs ===== ===== Bootlogs =====
Line 1614: Line 1700:
   * [[https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=beeline_smartbox-giga|Build Smartbox GIGA firmware]]   * [[https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=beeline_smartbox-giga|Build Smartbox GIGA firmware]]
  
-=== OpenWrt unofficial firmware ===+=== OpenWrt community builds (unofficial===
   * [[https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]   * [[https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]
- 
-=== Breed bootloader === 
-  * [[https://github.com/legale/breed-mt7621-xiaomi-r3g.bin-reset-button-changer/tree/main/smartbox-flash-giga-turbo-pro|Breed bootloader (MOD) r1338 for Smartbox Flash / MTS WG430223, GIGA, Turbo, PRO (github)]] 
-  * [[https://t.me/smartboxgiga/27744|Breed bootloader (MOD) r1338 for Smartbox Flash / MTS WG430223, GIGA, Turbo, PRO]] 
-  * [[https://breed.hackpascal.net/breed-mt7621-xiaomi-r3g.bin|Breed bootloader (original) Xiaomi R3G]] 
-  * [[https://4pda.to/forum/index.php?showtopic=954030&st=2740#entry104489218|Breedenter utility]] 
  
 ===== Tags ===== ===== Tags =====
  
 [[meta:tags|How to add tags]] [[meta:tags|How to add tags]]
-{{tag>ramips mediatek mt7621 GigabitEthernet wlan 3port 802.11abgn 802.11a 802.11bgn 802.11ac 128nand 128RAM serial u-boot beeline sercomm mt7603 mt7613 dual_firmware breed}}+{{tag>ramips mediatek mt7621 GigabitEthernet wlan 3port 802.11abgn 802.11a 802.11bgn 802.11ac 128nand 128RAM serial u-boot beeline sercomm mt7603 mt7613 dual_firmware}}
  • Last modified: 2024/09/05 19:01
  • by csharper2005