OpenWrt for R05/R051/R0516

OpenWrt for R05/R051/R0516

Posted on May 10, 2025 | Read time: 37 minutes | 591

OpenWrt Project is a Linux operating system targeting embedded devices. Instead    
of trying to create a single, static firmware, OpenWrt provides a fully    
writable filesystem with package management. This frees you from the    
application selection and configuration provided by the vendor and allows you    
to customize the device through the use of packages to suit any application.    
For developers, OpenWrt is the framework to build an application without having    
to build a complete firmware around it; for users this means the ability for    
full customization, to use the device in ways never envisioned.


 

Techdata: Net1 R05

 


 

How to dump stock firmware

1. Install putty, and open it

2. Change into this:

3. Type:

cat /proc/mtd

Output may be like this:

dev:    size   erasesize  name    
mtd0: 01000000 00010000 "ALL"    
mtd1: 00030000 00010000 "Bootloader"    
mtd2: 00010000 00010000 "Config"    
mtd3: 00010000 00010000 "Factory"    
mtd4: 007b0000 00010000 "firmware1"    
mtd5: 007b0000 00010000 "firmware2"    
mtd6: 0065ef59 00010000 "rootfs"    
mtd7: 000b0000 00010000 "rootfs_data"    
mtd8: 00050000 00010000 "reserved"

4. Backup firmware partition with this:

cat /dev/mtd4 >> /tmp/firmware.bin

5. Now you can download dumped firmware with WinSCP or tftp:

tftp -g -r firmware.bin 192.168.0.1

 


 

How to flash OpenWrt firmware

  1. Download openwrt-ramips-mt76x8-net1_r05-squashfs-sysupgrade.bin and rename it to ‘firmware.bin’
  2. Change the PC IP address to static:    
    IP Address: 10.10.10.3    
    Subnet mask: 255.255.255.0    
    Gateway: 10.10.10.123
  3. Open tftpd64    
     
  4. Unplug the modem power adapter, plug the LAN cable into the PC
  5. Press Reset/WPS on the modem, then plug in the power adapter without releasing the button
  6. Wait for the process to complete
  7. After the e logo flashes red and blue, change the IP address to DHCP    
     
  8. Enter 192.168.1.1    
    user: root    
    pass: root

 


 

Restore stock firmware:

  1. Download net1_firmware.bin and rename it to firmware.bin or use your own ‘firmware.bin’ backup file
  2. Flash guide same to the OpenWrt firmware above

 


 

Note:

 


 

Bug:

 


 

Update 12 May 2025

Modem cellular is fixed now! It was exposed as CDC Ethernet driver at eth1 devices in new build of OpenWrt firmware.

You need to re-download openwrt-ramips-mt76x8-net1_r05-squashfs-sysupgrade.bin again to use modem cellular in this device. Now with OpenWrt 24.10.1 stable instead of Snapshot OpenWrt v25.

Currently i can't test it to connect cellular network since Net1 provider is discontinue and modem is only has Band 31 which unavailable to rest network providers. Let me know if the modem is working.

 

Add cellular network:

Name: wwan   
Protocol: DHCP client   
Device: eth1

config interface 'eth1'   
   option proto 'dhcp'   
   option device ‘eth1’

 

How to mount modem into ttyUSB:

echo "216f 0047" > /sys/bus/usb-serial/drivers/option1/new_id

Example usage:

root@OpenWrt:~# dmesg | grep ttyUSB 
[  145.939378] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1 
[  145.980335] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB3 
[  146.021129] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB5 
 

root@OpenWrt:~# comgt -d /dev/ttyUSB1 info   
##### Wireless WAN Modem Configuration #####   
Product text:   
====

Manufacturer: Altair Semiconductor   
Model: ALT38XX   
Revision: P65Net1_CP_R051_V004   
OK   
====   
Manufacturer:           Altair Semiconductor   
IMEI and Serial Number: 353375xxxxxxxx4   
Manufacturer's Revision:   
P65Net1_CP_R051_V0   
Hardware Revision:

Network Locked:         0   
Customisation:

Band settings:          (   
)   
APN:                    1,"IP","internet",,0,0,0,0,0,,0   
##### END #####  


root@OpenWrt:~# comgt -d /dev/ttyUSB1   
SIM ready   
Waiting for Registration..(120 sec max)…

 
Use WAN (LAN2) port instead of cellular network:

 


 

Unbrick Guide (With Serial)

Use ‘How to flash OpenWrt firmware’ guide if you accidentally bricked it, if LAN does not work you can use USB to TTL. This guide only if you destroy firmware1 and not erase bootloader or others partition.

Hit any key to stop autoboot:  0

setenv ipaddr 192.168.1.1       # Router's IP 
setenv serverip 192.168.1.100   # Your TFTP server IP 
setenv netmask 255.255.255.0 
saveenv

tftpboot 0x81000000 openwrt-ramips-mt76x8-net1_r05-squashfs-sysupgrade.bin

 


 

Download:

 

Source code:

Image
Image
Image
Image
modem
router
openwrt