Have on hands device and some pictures and logs.
Specs like Mi WiFi Router 3G
7621soc with less ram 128 mb, 128 mb nand !!!NO USB!!! and new MI button on top
com connected to usb dongle blocking device to startup
if connect after power up works fine with 115200 8n1
Successfully boot initramfs from mi3g.
Failed mtd write kernel, because partitions mismatch ?
Partitions from origin log:
Photos: Case Front Back SOC WIFI Ports Original LOG
For now i am bricked it with flashing u-boot from jwangac Need help with how to switch SOC from NAND flash to SPI flash. Аnd how to build uboot for it.
I have backup of original uboot binary.
found on MTK7621 Datasheet control pins for selecting nand or spi chip on page 21:
{RTS2_N, RTS3_N, TXD1, GPIO0}
have w25q128fv free chips, datasheet page 86 shows it have 4-byte qpi adressing.
The stock firmware isn't avaliable in Xiaomi's website. The only thing you can do, for now, is install Padavan for Mi Router 3G, which works on Mi Router 4.
To enable writing to the console, you must reset to factory settings
Then you see uboot boot, press the keyboard 4 button (enter uboot command line)
Please choose the operation:
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
If it is not successful, repeat the above operation of restoring the factory settings.
After entering the uboot command line, type:
setenv uart_en 1
saveenv
boot
Serial port (UART) will work
windows :
Create a simple http server with caddy( V1.0 )
like E:/working
All seems to work fine untill i try to setup openvpn ... i`ve got :
ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
looks like it cannot load kmod-tun module although should be compatible with the kernel version ... :
root@mi4-home-pchelina:/dev/net# uname -r
4.14.171
root@mi4-home-pchelina:/dev/net# lsmod | grep tun
tun 24106 -1 [permanent]
root@mi4-home-pchelina:/dev/net# opkg list-installed | grep tun
kcptun-client - 20200409-1
kmod-tun - 4.14.171-1
root@mi4-home-pchelina:/dev/net# opkg files kmod-tun
Package kmod-tun (4.14.171-1) is installed on root and has the following files:
/etc/modules.d/30-tun
/lib/modules/4.14.171/tun.ko
Do you have any suggestion on this ? perhaps i`m missing something.
Thanks in advance!