Support for Cisco RV016/RV042/RV042G/RV082 V3 (Octeon Cavium)

Hello,
i have a Cisco Small Business RV082 wich is unsupported by Openwrt/lede...
Wikidevi: https://wikidevi.com/wiki/Cisco_RV082_v3
So 32MB Flash and 256MB RAM

A few days ago i found on internet that someone found how to "hack" the firmware, by asking the GPL code to cisco. And then he was able to compile a new firmware with SSH + Telnet enabled. Everything is described here :
https://www.treshaut.net/viewtopic.php?t=37

So i flashed this "unlocked" Firmware. Everything is working, SSH and Telnet are enabled as described in the tutorial :grinning:

login as: root
root@192.168.8.250's password:
Bienvenue sur votre routeur avec firmware modifie...
Welcome into your router with modded firmware...

BusyBox v1.2.1 (2016.01.09-17:59+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # cat /proc/cpuinfo
system type : CN3010_EVB_HS5
processor : 0
cpu model : Cavium Networks Octeon CN50XX V0.1
BogoMIPS : 600.37
wait instruction : yes
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented :
VCED exceptions : not available
VCEI exceptions : not available
processor : 1
cpu model : Cavium Networks Octeon CN50XX V0.1
BogoMIPS : 600.37
wait instruction : yes
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented :
VCED exceptions : not available
VCEI exceptions : not available

Would it be possible to flash the Octeon generic firmware ???
https://downloads.lede-project.org/releases/17.01.2/targets/octeon/generic/
i'm a noob and don't know what to do exactly at this point...
Can someone guide me ?

PS:
this router is outdated and not used anymore so if we brick it, it will not be a big loss...

I wouldn't flash generic image as it has not partition defined.
SOC is supported as Edgerouter Lite uses the same SOC as RV082 v3.
You would need someone who made support for Edgerouter since the whole Octeon target is currently customized for Edgerouter.

Also if Cisco is using any kind of many HW offloads in Cavium that wont work

well, what will happen if i flash generic-initramfs-kernel.bin ?? (btw how to do it ? there is no USB port...)

i guess i have to build my own combined-ext4.img.gz from lede-imagebuilder-17.01.2-octeon.Linux-x86_64.tar.xz ??
and use DD to flash the image ?

That image is not for flashing, that is kernel image that is used to load LEDE kernel in order to then sysupgrade to device appropriate image when you cant use web UI or ssh of the device since they do firmware checking.

You usually load it over TFTP to RAM.

thak you for confirming that.
and what about building my own image from lede-imagebuilder-17.01.2-octeon.Linux-x86_64.tar.xz ??

Or would it be better to wait for a more "skilled" guy (aka developper) to make an image ?

That is imagebuilder, you use it to make customized images for already supported devices.
I doubt that anyone will see this thread if you don't know someone willing to do the work.

Since GPL source is released along with Cavium SDK that could ease development.
https://www.treshaut.net/tels/linux/open_cisco_rv0xx/RV0XX-v4.2.3.07-GPL-20151110-2.tar.gz

It looks somebody already started since there is a patch for Cisco RV0XX series considering u-boot.

ha !?
and how are we supposed to use that ??
does it mean i can compile an image ?

No you cant,since that is only the beggining.
You would need to figure out if they use something special and whether RTL8306SD and RTL8309G are even supported.
And then device specific configuration would be needed

grrrr !!

Thank you very much for all the information !

RTL8306SD is supported,while RTL8309G was used in D-Link DIR-632-A1 and OpenWRT used custom patch for a71xx to support that switch.
I am afraid that it would be a waste of time getting all of this to work

well, being able to flash LEDE on that router was the last reason to keep it. The original firmware doesn't have support for VLAN on WAN side which make this router totaly useless...Even cheap routers like tplink have vlan support on WAN...shame on Cisco.

BTW, RTL8309G support was submitted for review at the end of December as part of DIR-632 bring-up patchset:
https://patchwork.ozlabs.org/project/lede/list/?series=20295

Was the patchset accepted? A build for DIR-632 would be really nice, since the last one is custom and only BB 14.07.

sorry to dig up this topic, but has there been any progress ?
I just found this router in my closet :sweat_smile: