Help me debrick my r3p pro

Hi, i did something stupid last night, i upgrade the r3p pro in luci, after that the router went into a bootloop.

tried to revert it in u boot, but failed.

i still have acces to the router by TTL link and ssh, but those command i follow in the site always gave me error, like" /bin/ash: fw_setenv: not found"

i also tried to recover to Xiaomi stock, but after the led start flashing and releasing the reset few second after it start to blink red fast..

i can do opkg update, but when i try to install luci i get this

root@OpenWrt:/# opkg install luci
Installing luci (git-20.276.62798-011b4db) to root...
Collected errors:
 * verify_pkg_installable: Only have 0kb available on filesystem /overlay, pkg luci needs 1
 * opkg_install_cmd: Cannot install package luci.

What is the output of the

mount

command?

1 Like

Not sure how r3p pro’s firmware works, but it looks like you’re out of space.
Can you do df -h first and post the output here?

this is what i get

root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup on /sys/fs/cgroup type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,cpu,cpuacct,blkio,memory,devices,freezer,net_cls,pids)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
[   25.075075] mtk_soc_eth 1e100000.ethernet eth0: port 3 link up
debugfs on /sys/kernel/debug type debugfs (rw,noatime)

this is what i get

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   250.0M     68.0K    249.9M   0% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev

Edit the file /etc/opkg.conf. If it is not there copy it from /rom/etc/opkg.conf.

Then edit the file:

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay # remove this line
option check_signature 1

Then opkg update.

done, then??

to me, it seems like there is no sda for me to install stuff in.

[    4.780000] Press Ctrl+C to enter RAMFS...
[    5.790000] Check for USB recovery...
[    5.830000] Both systems are corrupted... Entering recovery mode
starting pid 401, tty '': '/etc/rcS'
Press reset button to enter USB recovery
[    5.850000] led=8, on=1, off=4000, blinks,=1, reset=1, time=1
[    5.860000] led=10, on=1, off=4000, blinks,=1, reset=1, time=1
[    5.870000] led=6, on=10, off=10, blinks,=1, reset=1, time=4000
[    5.890000] .......[   25.270000] led=8, on=1, off=4000, blinks,=1, reset=1, time=1
[   25.280000] led=10, on=10, off=10, blinks,=1, reset=1, time=4000
[   25.290000] led=6, on=1, off=4000, blinks,=1, reset=1, time=1
/dev/sda not found
Trying to restore defaults
Rebooting...
[   35.800000] Restarting system.

this is what it come up when i try to recvoer with usb

Then you can try opkg install luci. It should be without /overlay error.
Since your root is writeable, it should install.

this is what i get.

root@OpenWrt:/etc# opkg install luci
Installing luci (git-20.276.62798-011b4db) to root...
Collected errors:
 * verify_pkg_installable: Only have 0kb available on filesystem /, pkg luci needs 1
 * opkg_install_cmd: Cannot install package luci.
root@OpenWrt:/etc#

What happened to the /dev/sda? Was there a drive installed before?

no, i think its the usb memory stick, seems like it cannot mount it in the boot

Can you mount the memory stick in an ordinary computer and find /etc/fstab file.
Can you do now a cat /etc/fstab in the router's shell?

# <file system> <mount point> <type> <options> <dump> <pass>

that is what inside the fstab file

And in the fstab on the stick?

there are none, only the miwifi_r3p_firmware_daddf_2.13.65.bin (developer firmware) which i try to restore the router with

Try

opkg install luci -d ram

.
This is just until the reboot. Do you want to install sysupgrade via web?

well, what i want it a new installation of openwrt, seems like mine is screw up hard time...

root@OpenWrt:/etc# opkg install luci -d ram
Installing luci (git-20.276.62798-011b4db) to ram...
Downloading http://downloads.openwrt.org/snapshots/packages/mipsel_24kc/luci/luci_git-20.276.62798-011b4db_all.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci:
 *      kernel (= 5.4.69-1-d10f5bcb998e1babf42435a9b8db6350)
 * opkg_install_cmd: Cannot install package luci.
root@OpenWrt:/etc#

this is what i get running the code you suggest

Then cd /tmp

and follow https://openwrt.org/docs/guide-user/installation/sysupgrade.cli

Make sure you download the correct image for your device.

yup, gonna try this..

do you know how to restore the rootfs? i think its there its mess up

That is hard to estimate, since I don't know what has been changed / destroyed.
Try the cli way of sysupgrade. That seems at the moment the cleanest way.