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
inbox:toh:beeline:smartbox_giga [2022/06/23 08:11] – [Beeline SmartBox GIGA] 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}}
  
  
 ===== Supported Versions ===== ===== Supported Versions =====
- 
-<color red>**Not supported.**</color> 
- 
-[[https://github.com/openwrt/openwrt/pull/4195|PR is pending]]. See //Notes -> OpenWrt unofficial firmware // section for links to the unofficial community builds. 
  
 ---- datatable ---- ---- datatable ----
Line 29: Line 25:
 filter  : Model=Smartbox GIGA filter  : Model=Smartbox GIGA
 ---- ----
 +
 +===== Experimental firmware =====
 +
 +  * [[https://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]
  
  
Line 39: Line 39:
 filter  : Model=Smartbox GIGA filter  : Model=Smartbox GIGA
 ---- ----
 +
 +
 +===== Backup =====
 +It's recommended to make a mtd backup before you start:
 +
 +1. [[:toh:beeline:smartbox_giga#obtaining_ssh_access_on_the_stock_firmware|Get SSH access]] 
 +
 +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>
 +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; \
 +tftp -l mtd$i -p 10.0.0.2; md5sum mtd$i >> mtd.md5; rm mtd$i; done
 +tftp -l mtd.md5 -p 10.0.0.2
 +</code>
 +10.0.0.2 - IP of the tftp server
 +
 +4. Check backups in your tftp root folder.
  
  
 ===== Installation ===== ===== Installation =====
 +
 +
 /* stable release */ /* stable release */
 /* uncomment once stable release is available /* uncomment once stable release is available
Line 64: 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 ====
  
-2Give factory OpenWrt image a shorter namee.g1001.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 bootloaderEEPROM, partition map etc.) from your backup before you start the OpenWrt installation on your device. 
 +</WRAP> 
 + 
 +1Install stock Beeline v.1.0.02 firmware twice 
 + 
 +2. Remove all dots from the OpenWrt //factory image// file name 
  
-3. Upload and update the firmware via the original web interface.+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.
- 
-===== Return to Stock ===== 
-1. Change the bootflag to Sercomm1 in OpenWrt CLI and then reboot: 
-      printf 1 | dd bs=1 seek=7 count=1 of=/dev/mtdblock3 
-2. Optional: Update with any stock (Beeline) firmware if you want to overwrite OpenWrt in Slot 0 completely. 
- 
-==== Flash Layout ==== 
-<WRAP BOX> 
-^ mtd  ^ partition                       ^ start      ^ size       ^ OpenWrt specific  | 
-| 0    | u-boot                          | 0x0        | 0x100000                     | 
-| 1    | dynamic partition map           | 0x100000   | 0x100000                     | 
-| 2    | Factory                         | 0x200000   | 0x100000                     | 
-| 3    | Boot Flag                       | 0x300000   | 0x100000                     | 
-| 4    | kernel                          | 0x400000   | 0x600000                     | 
-| 5    | Kernel 2                        | 0xa00000   | 0x600000                     | 
-| 6    | File System 1                   | 0x1000000  | 0x1800000  | ubiconcat0        | 
-| 7    | File System 2                   | 0x2800000  | 0x1800000  |                   | 
-| 8    | Configuration/log               | 0x4000000  | 0x800000   | ubiconcat1        | 
-| 9    | application tmp buffer (Ftool)  | 0x4800000  | 0xc00000   | ubiconcat2        | 
-| 10   | container                       | 0x5400000  | 0x2800000  | ubiconcat3        | 
-| 11   | bad block reserved              | ox7c00000  | 0x380000                     | 
- 
-</WRAP> 
  
 ==== OEM easy installation ==== ==== OEM easy installation ====
  
-See Installation section+See [[:toh:beeline:smartbox_giga#openwrt_installation|OpenWrt Installation]] section
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
Line 108: Line 115:
  
 Not applicable 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  |
 +| mtd0    | u-boot                          | 0x0        | 0x100000                     |
 +| mtd1    | dynamic partition map           | 0x100000   | 0x100000                     |
 +| mtd2    | Factory                         | 0x200000   | 0x100000                     |
 +| mtd3    | Boot Flag                       | 0x300000   | 0x100000                     |
 +| mtd4    | kernel                          | 0x400000   | 0x600000                     |
 +| mtd5    | Kernel 2                        | 0xa00000   | 0x600000                     |
 +| mtd6    | File System 1                   | 0x1000000  | 0x1800000  | ubiconcat0        |
 +| mtd7    | File System 2                   | 0x2800000  | 0x1800000  |                   |
 +| mtd8    | Configuration/log               | 0x4000000  | 0x800000   | ubiconcat1        |
 +| mtd9    | application tmp buffer (Ftool)  | 0x4800000  | 0xc00000   | ubiconcat2        |
 +| mtd10   | container                       | 0x5400000  | 0x2800000  | ubiconcat3        |
 +| mtd11   | bad block reserved              | ox7c00000  | 0x380000                     |
 +
 +
 +
 +
 +
 +
 ===== Upgrading OpenWrt ===== ===== Upgrading OpenWrt =====
 ->  [[docs:guide-user:installation:generic.sysupgrade]] ->  [[docs:guide-user:installation:generic.sysupgrade]]
Line 132: Line 177:
   * Login as root via SSH on 192.168.1.1, copy images to /tmp using SCP and then enter the following commands:   * Login as root via SSH on 192.168.1.1, copy images to /tmp using SCP and then enter the following commands:
  
-<code>+<code bash>
 cd /tmp cd /tmp
 sysupgrade /tmp/sysupgrade.bin sysupgrade /tmp/sysupgrade.bin
 </code> </code>
 +
 +===== Return to Stock =====
 +1. Change the bootflag to Sercomm1 in OpenWrt CLI and then reboot:
 +<code bash>
 +printf 1 | dd bs=1 seek=7 count=1 of=/dev/mtdblock3
 +</code>
 +
 +2. Optional: Update with any stock (Beeline) firmware if you want to overwrite OpenWrt in Slot 0 completely.
  
 ===== Debricking ===== ===== Debricking =====
 -> [[docs:guide-user:troubleshooting:generic.debrick]] -> [[docs:guide-user:troubleshooting:generic.debrick]]
  
-===Recovery steps===+==== sercomm-recovery utility ==== 
 +1. Compile [[https://github.com/danitool/sercomm-recovery|sercomm-recovery]] under the Linux: 
 +<code bash> 
 +git clone https://github.com/danitool/sercomm-recovery.git 
 +make 
 +</code>
  
-1. Compile sercomm-recovery under the Linux: 
-   git clone https://github.com/danitool/sercomm-recovery.git 
-   make 
 2. Connect the router with a cable and run sercomm-recovery: 2. Connect the router with a cable and run sercomm-recovery:
-   sudo ./sercomm-recovery enp0s3 recovery_giga_stock.bin+<code bash> 
 +sudo ./sercomm-recovery enp0s3 recovery_giga_stock.bin 
 +</code>
 where //enp0s3// - network interface connected the router, //ifconfig// - list on available network interfaces where //enp0s3// - network interface connected the router, //ifconfig// - list on available network interfaces
  
 3. Wait until the router is flashed and rebooted. 3. Wait until the router is flashed and rebooted.
  
-[[https://mega.nz/fm/J5pGjYyJ|Download ready recovery images]] for Turbo+ and GIGA.+[[https://mega.nz/folder/tlIm1JLK#bBRJXq-DVkzJBOR2dC1K5w|Download ready recovery images]] for Sercomm devices.
  
  
  
-===How to make own recovery images==+=== How to make own recovery images ===
  
 Contcat all mtd backup into one file: Contcat all mtd backup into one file:
-   cat mtd0 ... mtd10 > full.bin+<code bash> 
 +cat mtd0 mtd1 mtd2 mtd3 mtd4 mtd5 mtd6 mtd7 mtd8 mtd9 mtd10 mtd11 > full.bin 
 +</code> 
 Add OOB data: Add OOB data:
-   bbe -b ":512" -e "A 0000000000000000" full.bin -o full-oob.bin+<code bash> 
 +bbe -b ":512" -e "A 0000000000000000" full.bin -o full-oob.bin 
 +</code> 
 + 
 +==== tftp method ==== 
 + 
 +1. Run tftp server on IP 10.10.10.3/24 
 + 
 +2. Rename initramfs OpenWrt image to test.bin and copy it to the tftp root 
 + 
 +3. Connect UART, power on the router and interrupt the boot process by pressing any key 
 + 
 +4. In U-Boot command console run: 
 +<code bash> 
 +tftpboot 
 +bootm 
 +</code> 
 +  
 +5. Wait until OpenWrt boots 
 + 
 +6. Make sysupgrade to install OpenWrt on NAND flash of the router
 ===== Failsafe mode ===== ===== Failsafe mode =====
 -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]] -> [[docs:guide-user:troubleshooting:failsafe_and_factory_reset]]
Line 169: Line 249:
  
 ===== Specific Configuration ===== ===== Specific Configuration =====
- 
-<WRAP BOX> 
  
 ==== Network interfaces ==== ==== Network interfaces ====
 The default network configuration is: The default network configuration is:
-^ Interface Name   ^ Description          ^ Default configuration    +^ Interface Name   ^ Description         ^ Default configuration   
-| br-lan           | LAN & WiFi           | 192.168.1.1/24           +| br-lan           | LAN & WiFi          | 192.168.1.1/24          
-| lan1, lan2       | LAN ports (1 & 2)    | br-lan                   +| lan1, lan2       | LAN ports (1 & 2)   | br-lan                  
-| wan              | WAN port             | DHCP                     |+| wan              | WAN port            | DHCP                    |
  
  
-</WRAP> 
  
 ==== Switch Ports (for VLANs) ==== ==== Switch Ports (for VLANs) ====
-<WRAP BOX> 
  
 ^ Port             ^ Switch port   ^ ^ Port             ^ Switch port   ^
-| Internet (WAN)   | wan     +| Internet (WAN)   | wan           
-| LAN 1            | lan1     +| LAN 1            | lan1          
-| LAN 2            | lan2    |+| LAN 2            | lan2          |
  
-</WRAP> 
  
 ==== Buttons ==== ==== Buttons ====
Line 198: Line 273:
 The Beeline Smartbox GIGA has the following buttons: The Beeline Smartbox GIGA has the following buttons:
  
-^ BUTTON                       ^ Event   ^ +^ BUTTON        ^ Event   ^ 
-| Reset / WPS             |  reset  |+| Reset / WPS   |  reset  |
  
  
Line 219: 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 231: Line 306:
 **Note:** This will void your warranty! **Note:** This will void your warranty!
  
-<WRAP BOX> 
 There are crews on the backplate. There are also clips around the edge of the case you will need to prize open, using, for example, a plastic card. There are crews on the backplate. There are also clips around the edge of the case you will need to prize open, using, for example, a plastic card.
-</WRAP> 
  
 //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 246: 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 257: Line 330:
  
 ===== Bootloader mods ===== ===== Bootloader mods =====
--> [[docs:techref:bootloader]] 
  
-==== 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 
  
-Breed settings for Beeline Smartbox GIGA:+==== Restoring the original U-boot bootloader and stock firmware  ==== 
 + 
 +{{page>meta:infobox:dangerous&noheader&nofooter&noeditbtn}} 
 + 
 +**Input conditions:**  
 +  * 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>
  
-^ Setting                    ^ Value                 ^ +5Use [[https://openwrt.org/toh/beeline/smartbox_giga#sercomm-recovery_utility|sercomm-recovery]] utility for stock firmware recovery
-| autoboot.command            boot flash 0x400100  |+
  
 ===== Hardware mods ===== ===== Hardware mods =====
Line 275: Line 405:
 **Problem** **Problem**
  
-Hanging on of Fibocom L860-GL USB modem under high upload.+Hanging of Fibocom L860-GL USB modem under high upload.
  
 **Solution** **Solution**
Line 282: 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 1567: Line 1697:
 ===== Notes ===== ===== Notes =====
  
-=== OpenWrt unofficial firmware === +=== OpenWrt online Image Builder === 
-  * [[https://mega.nz/fm/okoh1abA|Community builds]]+  * [[https://firmware-selector.openwrt.org/?version=SNAPSHOT&target=ramips%2Fmt7621&id=beeline_smartbox-giga|Build Smartbox GIGA firmware]]
  
-=== Breed bootloader === +=== OpenWrt community builds (unofficial) === 
-  * [[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://forum.openwrt.org/t/add-support-for-beeline-smartbox-giga/99390/4|Community builds]]
-  * [[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 wip unsupported}}+{{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