Adding support for Libre Computer Renegade (roc-rk3328-cc)

Hi everyone.

I tried to find out if OpenWrt is already working on this SBC but failed to find anything else except NanoPi R2S patches in github.

I see in couple of those patches mention of rk3328-roc-cc which gives me hope there might be some chance to see openwrt running on this board.

Could someone please confirm if there is any plans to support this board?
Thanks a lot in advance for your replies!

If SOC support for similar devices is already present in OpenWrt, it should be rather easy to add support for SBCs yours as well, but there still are no 'generic' images. You will have to add the necessary DTS yourself and complete the firstboot configuration matching your hardware - and ideally submit it for inclusion into OpenWrt, once you're ready.

1 Like

@AbraxasDMG try with this roc-rk3328-cc firmware, I don't have the board for test this so you have to confirm if works.

1 Like

Thank you very much @mj82!

The board should arrive any day next week. I will try and report back how it went.

Hi everyone.
With the huge help of @jayanta525, I've managed to get a working snapshot for this board.

Disclaimer: This is my first time tinkering with this sort of things.

You may get the code from https://github.com/AbraxasDMG/openwrt-roc-cc. You may find initial bootable image as well.

Could you add clash and AdguardHome plugins?
Plugins adress is here: https://github.com/kenzok8/openwrt-packages

I try to build the firewall,but it has same issue.

ERROR: please fix feeds/packages/devel/pkgconf/Makefile - see logs/feeds/packages/devel/pkgconf/dump.txt for details

Package: iputils-ping
Version: 20210202-1
Depends: +libc +USE_GLIBC:librt +USE_GLIBC:libpthread +kmod-crypto-md5
Conflicts:
Menu-Depends:
Provides:
Section: net
Category: Network
Repository: base
Title: iputils-ping
Maintainer: Noah Meyerhans <frodo@morgul.net>
Source: iputils-20210202.tar.gz
License: BSD-3-Clause
LicenseFiles: LICENSE
Type: ipkg
Description:   Send ICMP_ECHOREQUEST packets to IP hosts and report on replies
https://github.com/iputils/iputils
Noah Meyerhans <frodo@morgul.net>
@@
Config:
        source "feeds/packages/net/iputils/Config_ping.in"
@@

Package: iputils-arping
Version: 20210202-1
Depends: +libc +USE_GLIBC:librt +USE_GLIBC:libpthread
Conflicts:
Menu-Depends:
Provides:
Section: net
Category: Network
Repository: base
Title: iputils-arping
Maintainer: Noah Meyerhans <frodo@morgul.net>
Source: iputils-20210202.tar.gz
License: BSD-3-Clause
LicenseFiles: LICENSE
Type: ipkg
Description:   Send ARP REQUEST packets to a neighbor host
https://github.com/iputils/iputils
Noah Meyerhans <frodo@morgul.net>
@@

Package: iputils-clockdiff
Version: 20210202-1
Depends: +libc +USE_GLIBC:librt +USE_GLIBC:libpthread
Conflicts:
Menu-Depends:
Provides:
Section: net
Category: Network
Repository: base
Title: iputils-clockdiff
Maintainer: Noah Meyerhans <frodo@morgul.net>
Source: iputils-20210202.tar.gz
License: BSD-3-Clause
LicenseFiles: LICENSE
Type: ipkg
Description:   Measure the clock difference between two hosts
https://github.com/iputils/iputils
Noah Meyerhans <frodo@morgul.net>
@@

Package: iputils-tracepath
Version: 20210202-1
Depends: +libc +USE_GLIBC:librt +USE_GLIBC:libpthread
Conflicts:
Menu-Depends:
Provides:
Section: net
Category: Network
Repository: base
Title: iputils-tracepath
Maintainer: Noah Meyerhans <frodo@morgul.net>
Source: iputils-20210202.tar.gz
License: BSD-3-Clause
LicenseFiles: LICENSE
Type: ipkg
Description:   trace network path to a host, discovering PMTU
https://github.com/iputils/iputils
Noah Meyerhans <frodo@morgul.net>
@@
Config:
        source "feeds/packages/net/iputils/Config_tracepath.in"
@@

Package: iputils-tftpd
Version: 20210202-1
Depends: +libc +USE_GLIBC:librt +USE_GLIBC:libpthread
Conflicts:
Menu-Depends:
Provides:
Section: net
Category: Network
Repository: base
Title: iputils-tftpd
Maintainer: Noah Meyerhans <frodo@morgul.net>
Source: iputils-20210202.tar.gz
License: BSD-3-Clause
LicenseFiles: LICENSE
Type: ipkg
Description:   Trivial File Transfer Protocol server
https://github.com/iputils/iputils
Noah Meyerhans <frodo@morgul.net>
@@

Have you tried cherrypicking the relevant 4 commits from @AbraxasDMG from the top of https://github.com/AbraxasDMG/openwrt-roc-cc/commits/roc-cc onto a current openwrt master?

I added clash and adguard home but can't test it because I don't have the board.

thank you~

Hi guy, I can't get your image boot, shouldn't I flash it into a TF card and boot it?

I have made a pull request for this board, and I'd be glad if you can test it.

Hey there! I have a 3328, and have a quectel 5G modem that I'd love to get working as a router. I'd love to test it. Where can I find the image? I've got limited experience with this little 3328 as well as limited knowledge in building an image. I've flashed the Libre OS' and just need to know what to do and I'll test the crud out of this.

The firmware is available at: https://downloads.immortalwrt.org/releases/21.02.6/targets/rockchip/armv8/immortalwrt-21.02.6-rockchip-armv8-firefly_roc-rk3328-cc-squashfs-sysupgrade.img.gz

But I have no idea if openwrt has the driver for quectel modem.

I'll give that a shot today. I've attempted to flash over my own compiles of your code to an SD card, and all that happened was the 3328 would just have a blinking red led. Nothing else. I have a suspicion the same thing will occur. I don't know enough about the device and how it boots though to really troubleshoot. The images on their site flash over, and the device boots right up. I tried their Ubuntu, debian, and lib - all work. Just have not been able to get the openwrt to boot.

Any way to troubleshoot this I could help with? There was a guy who wrote an article on a rapberry pi with openwrt, and the quectel modem worked great, so I'm hopeful to get this going.

Appreciate your help and willingness to get this code in the build!

Great news, it flashed and booted right up. I have no idea what I'm doing wrong with building it myself, but your build is fine. I'm going to run some tests - USB needs to run at right speeds to get the 5g speeds from the quectel. So I can test that.

I'll play around with bridged mode and stability. So far, a bootable openwrt gives me something to actually play with. I'll report back any oddities but THANK YOU

So I've gotten to work on this quite a bit this weekend. I've been racking my brain against an issue for a while, thinking maybe it was the modem rather than the system. It's possible there are some USB 3 issues on the device. The power draw on the modem I believe may be too high for the port. This may be a hardware issue or software issue - but thought I'd share my finds.

From an OpenWRT perspective - all other functions of the system are working for now. Can't truly test it until I solve for my modem issue, but I'll keep at it!

hmmm.. is your board roc-rk3328-cc? Sounds like it already booted, can you connect it via SSH?

Forgive my ignorance, but what do I need to do with this to get it to work? Is it a prebuilt make file and I just compile it?