TripMate-0E58 ... very interesting. :thinking:
This is my device's MAC.
Please try factory reset on your device! Hold reset for a long time (30s? 1min?) while the TripMate is powered on.

:+1:
It was easy, wasn't it?

  • get OEM u-boot binary
  • flash it with the help of kmod-mtd-rw and write
  • set up a TFTP recovery environment
  • get kernel and rootfs
    • from someone else's backup
    • extract from stock firmware upgrade file (with nice tools)

But don't forget to note how important that backup directory is! :wink:

And create a new for yourself with EnterRouterMode.sh (saved at pendrive's root directory) below:

EnterRouterMode.sh

#!/bin/sh
SDCARD=/data/UsbDisk1/Volume1/
USB=/data/UsbDisk2/Volume1/

FWCFPT="/proc/vstinfo"
FWFIRMWARE="/etc/firmware"
FWINFO=
if [ -r $FWFIRMWARE ]; then
	FWINFO=$FWFIRMWARE
elif [ -r $FWCFPT ]; then
	FWINFO=$FWCFPT
fi

readfwinfo() {
	grep $1 $FWINFO | cut -d= -f2
}

WORKDIR=`find /data -name EnterRouterMode.sh`/..
cd ${WORKDIR}

CURFILE=`readfwinfo CURFILE`
CURVER=`readfwinfo CURVER`
VENDOR=`readfwinfo VENDOR`
PRODUCTLINE=`readfwinfo PRODUCTLINE`
MTD_SN=`get_mtd_sn`

FWBACKUPPREFIX=fw-${PRODUCTLINE}-${VENDOR}-${CURFILE}-${CURVER}-${MTD_SN}
mkdir -p backup-${FWBACKUPPREFIX}
cd backup-${FWBACKUPPREFIX}

if ! (md5sum -s -c mtd.md5sum); then
	for mtd in `grep  ^mtd /proc/mtd | cut -d: -f1`; do
		dd if=/dev/$mtd of=$mtd.bin
	done
	sync
	cp $FWINFO fwinfo.txt
	echo $FWINFO > fwinfo-filename.txt
	cp /proc/mtd mtd.txt
	md5sum mtd*.bin *.txt > mtd.md5sum
	dmesg > dmesg.txt
	ip a > ip_a.txt
	env > env.txt
	get_mtd_sn > mtd_sn.txt
	cat > readme.txt <<EOM
This directory contains a backup from your $VENDOR device.


Put it to a safe place!

EOM
fi
cd ..


# nvram_get > $SDCARD/nvram_get.txt
# nvram_get rt2860_nvram_show >> $SDCARD/nvram_get.txt
# nvram_get show >> $SDCARD/nvram_get.txt
# nvram_get chkcrc >> $SDCARD/nvram_get.txt
# nvram_get gen > $SDCARD/nvram_get_gen.txt

/etc/init.d/teld.sh restart
1 Like