I would use the original and newer OpenWrt.
If they exist, but not. Nothing.
The Barrier Breaker is more secured like brand routerOS.
I think: All brand (blackbox/closed) routerOS have factory backdoor:)))))
The RTL819x for LEDE from hackpascal compiled already.
I didn' try load mainline kernel wifi modules yet.
The finished "rootfs" is still too big.
I must configure required/needed modules, and packages.
When done, i will try upload to the router, and try load mainline wifi modules.
I checked the code of realtek SDK 2.5 and I found something very important.
The forums and openwrt informations contains:
"Realtek inherited a reduced mips ISA via Lexra"
Realtek SOC's have lexra core with reduced (crippled) mips funcionality.
The lexra core doesn't support four unaligned instructions:
" It was founded in 1997 and began developing and licensing semiconductor intellectual property cores that implemented the MIPS I architecture, except for the four unaligned load and store (lwl, lwr, swl, swr) instructions. "
There is a guy who ported RTL8186 in linux kernel and successfully able to boot it https://github.com/yashac3/linux-rtl8186 . RTL8186 doesn't support unaligned load and store opcodes (lwl, lwr, swl, swr). But RTL8196E does as u say and I have a RTL8196E device. I followed his steps like 1 year ago and try to do a port for my 8196E but it didn't worked, back then I didn't know that 8196E is a full MIPS. Do u want to check his port and continue ?
I have ported the RTL8196E RTL8197D and RTL8197F SoC from Realtek to the last master of Openwrt (as of today).
The port have the necessary code for those SoCs. I used the @hackpascal initial port as a start and have ported RLX4181 and RLX5281 Lexra processors. Those are easier to port, as they have the unaligned instructions. Musl is working in lexra now...
RTL8197F uses a full 24k mips processor, so, no modification is needed in the toolchain...
For the SoCs:
All the SoC drivers are implemented and tested (gpio, pci, irq, timers, etc), for the three SoCs. One can port a router to openwrt just creating a DTS file for it (and changing the Makefiles, as any normal port for openwrt).
The problem is with network and wireless. RTL8196E based routers can use the RTL8192EE open source wifi driver from mac80211 package. Most routers that use RTL8197D SoC also use RTL8192EE for 2.4 and RTL8812 for 5... Both drivers are open source on linux kernel...
TODO:
Network and switch driver: hackpascal has started the port for RE865X driver. Need rework for new SoCs....
RTL8197F 2.4Ghz wireless driver: This SoC uses an internal wifi, but can be ported to the new RTW88 driver, as they use the same structs (8192EE uses this structs too, but is implemented in the old driver... May a port of 8192EE to the new driver can help too )
Performace: The main focus right now is compatibility... We need to improve for performace....
Use the ramdisk for now... As we dont have the network driver right now, we must use the serial port to bootup... The cvimg boot can be used, but is now of much use right now...
Devices are only merged through the master branch, for that kernel 5.4 support would be a hard requirement.
Realtek SOCs haven't seen a lot of love so far, because of the lexra issue (in all but the latest SOCs) and because they're usually very low-spec and with a "challenging" wireless support state. If those issues can be solved (musl support can also be considered a hard requirement), there wouldn't be much of a reason not to merge support for these devices (obviously there needs to be sufficient development manpower behind it, to suggest longer term attention).
I'm working on porting to kernel 5.4 ... Actually, its better than the 4.14
I use a DLink Dir 815 board to test the RTL8197D (RLX 5281 SoC)... This board is 8/64 .. But the best realtek routers are based on the RTL8197F... I have one that has 128M ram....
The major problem is an open ethernet/switch driver... @hackpascal had a good start on RE865X... And the wireless driver for RTL8197F in 2.4Ghz ... Those can take some time ....
I am very interested in this project and wanted to ask how the current situation is. Have you already had further success or are there major difficulties. I am using the 8devices Komikan module based on a RTL8197FS. but it stucks on kernel version 3.18.
You can use the wifi driver (rtl8192cd) and network driver (rtl819x) from the 8device in the new kernel. Just need a few modifications...
I'm currently working on the network driver for a DSA version...
The rtw88 from openwrt already have the 8822B 5GHz driver that can work with this project...
Yes... Its a 97f full mips... The 5Ghz 8822B from the Komikan already have an open driver...
I dont have a board to test, but I can add the config and someone with the board can follow...
I would appreciate that very much. I could provide any informations needed. I think it is also a good chance for me to learn Building and testing an image should not be the problem.
I am new to openwrt and the 819x family.
I have a board based on the 8197FS. The SDK from Realtek is terrible and I'd be happy to switch to a much cleaner base. I'm very happy to find that you worked on this.
Any tip on how to start ? I'm having trouble compiling the ggbruno/master (probably a newbie's mistake somewhere)
I don't have this board. I upload the image using tftp from boot loader, but the board must have support for tftp (cvimg header)... The image must be adapted in the dts for the board too...