Hi,
I'm trying to run Openwrt on this devices, I could compile it from sources but I need to find the way to write it to flash.
This type of devices has RAM build in into SoC . bootloader boot96E_32M didn't work for me, console showes only "booting..." nothing else happens. bootloader supports pushing image through tftp but my specific device doesn't have network interfaces only wireless. I use SPI programmer to try different roms on it.
Trere is lot of info here: https://openwrt.org/inbox/toh/totolink_n300rt
Similar cpu but bootloader didn't work for me , openwrt should work.
Bootlog from Totolink Ex200 Rom installed on my device:
Booting...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@
@ chip__no chip__id mfr___id dev___id cap___id size_sft dev_size chipSize
@ 0000000h 0c84017h 00000c8h 0000040h 0000017h 0000000h 0000017h 0800000h
@ blk_size blk__cnt sec_size sec__cnt pageSize page_cnt chip_clk chipName
@ 0010000h 0000080h 0001000h 0000800h 0000100h 0000010h 000004eh GD25Q64
@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
---RealTek(RTL8196E)at 2014.10.24-17:33+0800 v1.2 16bit
no sys signature at 00010000!
no sys signature at 00020000!
no rootfs signature at 000E0000!
no rootfs signature at 000F0000!
Jump to image start=0x80500000...
decompressing kernel:
Uncompressing Linux... done, booting the kernel.
done decompressing kernel.
start address: 0x80003470
Realtek WLAN driver - version 1.6 (2013-02-21)(SVN:5991M)
Adaptivity function - version 7.1
Probing RTL8186 10/100 NIC-kenel stack size order[3]...
chip name: 8196C, chip revid: 0
NOT YET
eth0 added. vid=9 Member port 0x10...
eth1 added. vid=8 Member port 0x10...
eth2 added. vid=9 Member port 0x2...
eth3 added. vid=9 Member port 0x4...
eth4 added. vid=9 Member port 0x8...
eth5 added. vid=9 Member port 0x0...
[peth0] added, mapping to [eth1]...
Realtek FastPath:v1.03
init started: BusyBox v1.13.4 (cp: cannot stat '/bin/pppoe.sh': No such file or directory
Using ori config
Read hw setting header failed!
Invalid hw setting signature [sig=]!
Read hw setting header failed!
Invalid hw setting signature [sig=]!
Read hw setting header failed!
Invalid hw setting signature [sig=]!
[Notice]:Bak_hw is invaild and Ori_hw is valid,Save ori_hw to bak_hw
[Notice]:Bak_ds is invaild and Ori_ds is valid,Save ori_ds to bak_ds
[Notice]:Bak_cs is invaild and Ori_cs is valid,Save ori_cs to bak_cs
Init Start...
DEFAULT LANGUAGE_TYPE is [3][0:cn;1:en;2:tw;3:vn;4...]
Init bridge interface...
killall: reload: no process killed
open /proc/custom_Passthru_wlan: No such file or directory
Start NTP daemon
Init system...
sh: ntp_inet: not found
cat: can't open '/tmp/wscd_status': No such file or directory
cat: can't open '/tmp/wscd_status': No such file or directory
sh: can't create /mnt/SysCurVerMd5: Read-only file system
cat: can't open '/tmp/wscd_status': No such file or directory
cat: can't open '/tmp/wscd_status': No such file or directory
killall: cs_daemon: no process killed
cat: can't open '/tmp/wscd_status': No such file or directory
cat: can't open '/tmp/wscd_status': No such file or directory
2018-04-09 14:21:26: (log.c.97) server started
cat: can't open '/tmp/wscd_status': No such file or directory
If someone interested and has SPI programmer, we can try to make openwrt running on this devices.
That's still not LEDE, nor OpenWrt, but some vendor fork. Please contact them for support, we can't help you (support for these lexra devices doesn't exist in OpenWrt/ LEDE and never has).
I have 10 smart wall dimmers around my home that uses this CPU, and lot of people have this extenders as I can see there are lot of them on sale so having alternative FW is alwais good.
I have made a port for RTL8196E to the last master of openwrt.
The SoC dont have the network driver yet, but is working in serial port from bootloader...
Testing and help is welcome https://github.com/ggbruno/openwrt
I read ` this firmwares with openwrt on Rtl819x chips are not using yet hardware acceleration
and traffic speeds are low
I wanted change to openwrt for better VLAN configuration
The hardware acceleration can now be implemented using the hooks that are present in the 5.4 kernel... Same way as mt7621 had done... I just have to find time to implement that... Its not my priority... I can get around 50mbps in the ethernet with flow offloading (software acceleration in 8196E.. With 97D and F I can get full 100mbps)....
Realtek had release all drivers in their custom openwrt a long time ago. The documentation is there too.. We just need to maintain their code.... As we bring their code to the new openwrt master, we can improve its performace... https://sourceforge.net/projects/rtl819x/files/
I'm working with the partial port for the ethernet switch made by hackpascal.... Its a little tricky because its made for 96C.... When I get something workable, I will incorporate it...
For now, the 96E wifi driver can be used (8192EE that is in kernel)...
I have been able to build and boot OpenWRT from your repo, but my hardware has the rtl8192er wireless. It doesn't look like it's supported in mainline kernel. Or should it be?
Looking forward to any progress with the NIC driver, thanks.
Great! I pretend to release the nic switch soon... working on dsa and kernel 5.4 for master support...
About the wireless driver... Have you tried the 92ee driver? It gives some warnings or errors in the log? I know they are different, but they share the same origin ... I will look if I can make a patch or something for er... I think the major problem will be the wireless firmware....