OpenWrt Forum Archive

Topic: Realtek SoC support in OpenWrt

The content of this topic has been archived between 22 Sep 2016 and 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi NemesiS2015,

does you image potentially support link 605l B2?
if it is, I would like to give it a try.

NemesiS2015 wrote:

Hello

Has anyone compiled OpenWRT for ipTIME A2004NS or TOTOLINK A2004NS they have the same hardware with RTL8197D CPU.
They are cheap and have very powerful hardware, this thing made to run OpenWRT on it.

I am thinking about buying a Totolink A2004ns soon.
Is there any guide on how to flash the Openwrt firmware to this router? smile

stewie wrote:

Hello

To owners of UPVEL UR-825AC or Netis WF2780 or D-Link DIR-825 rev E1 or maybe of some other RTL8197DN based routers. Could you please share the full flash image of your router (incl. bootloader)
TIA


will do it in a week (I will grab full dump of flash GD25Q128 with programmator). Remind me please wink

Dose anyone has SoC datasheets? Especially I need DS for RTL8197D(n). .... Especially JTAG pinouts.

Dear mne. You had some experience with it. Could you share with me?

Hi!
I have a router WS-WN527A2 (RTL8197DN + RTL8367RB + RTL8192ER + RTL8812AR). It is almost identical UPVEL UR-825AC.
Is it possible to do it OpenWRT, and how I can help.
http://s3.postimg.org/5ttxzizj3/2015_08_24_20_55_46.jpg

- check if the router has enough flash
- check if you can build binaries for that arch with native gcc (which MIPS variant is RTL8179?? based on?)
- check if the bootloader supports tftp or other update mechanics or loading of binaries
- check if you can compile upstream Linux Kernel for that CPU that boots (write hardware/board init ...)
- check if the switch and wireless are supported by upstream Linux Kernel (write drivers or modify existing ones)

add information you find to a wiki page

like its done for http://wiki.openwrt.org/toh/upvel/ur825ac

Syncmasterklop wrote:

Hi!
I have a router WS-WN527A2 (RTL8197DN + RTL8367RB + RTL8192ER + RTL8812AR). It is almost identical UPVEL UR-825AC.
Is it possible to do it OpenWRT, and how I can help.
http://s3.postimg.org/5ttxzizj3/2015_08_24_20_55_46.jpg

hi!
if you still have a problem with your "brick" and you have its original firmware you can try this instruction for upvel (click)...possible it can help you. I suppose there is identical bootloaders with tftp.

andygo wrote:
stewie wrote:

Hello

To owners of UPVEL UR-825AC or Netis WF2780 or D-Link DIR-825 rev E1 or maybe of some other RTL8197DN based routers. Could you please share the full flash image of your router (incl. bootloader)
TIA


will do it in a week (I will grab full dump of flash GD25Q128 with programmator). Remind me please wink

share
there is a full dump of flash gd25q128 of ur-825ac

MAC addresses were changed in file (0x06000h... begin with "0xD4 0xBF" - first and second byte of address)

andygo wrote:

if you still have a problem with your "brick" and you have its original firmware you can try this instruction for upvel (click)...possible it can help you. I suppose there is identical bootloaders with tftp.

Hi!
I have restored the factory firmware via tftp (help support), the router works well. But I want to help port OpenWRT.
The device is good and inexpensive, but the original firmware is not functional enough.

Hello,

I find this page but if i compile source code, i have error.
Please check someone else.
-----------------------------------

Здравствуйте.

Я нашёл данную страницу но при компиляции у меня отображается ошибка которую я не могу устранить.
Пожалуйста, проверьте ещё кто-то. Получиться ли у Вас скомпилировать данные исходники.

(Last edited by warik on 7 Sep 2015, 08:39)

Hi, I have collected experimental firmware for Upvel UR-825as. You can try to flash it on your equipment. The firmware can be downloaded from here.

Warning, the firmware has not been tested and its installation can lead to unpredictable results. Installing new firmware at own risk

Good luck!

Waiting for feedback.

Sorry for my bad english.

(Last edited by akryll on 14 Sep 2015, 15:41)

I have a Dlink DIR-605L rev B1, and i want to install openwrt on it. The uP is RTL8196E, the RFchip is RTL8192ER, the ROM is 25L3206E (4Mbytes). I already have compiled firmware using realtek openWRT sdk, i flashed the firmware directly into the rom, but the router doesn't start, i think that's because  i'm not writing the bootloader in the rom, i need to know how to write the bootloader, at what offset of the memory etc. The bootloader is in a file and the firmware in other. Thanks.

@isavour, I can try to make the firmware for your device. But it will take some time.
@kevin2r, Have you tried to flash it via tftp? Fresh Bootcode can take in the SDK. Be careful! bootcode flash may "Brick" you device!

(Last edited by akryll on 15 Sep 2015, 07:35)

@akryll: how can i flash it using tftp? i tried putting the firmware at the boot stage but does't work.

@kevin2r,
Is it possible to connect to the console through UART? If yes please write here the boot log.
You can also try at boot time, press <ESC> in the console. This should change the router in the "flashing mode" through tftp.

Once again, sorry for my bad English. I explained as best I can.

(Last edited by akryll on 16 Sep 2015, 07:15)

@kevin2r, also you can try this method: Upvel TFTP Mode(Ru).

Here's, my boot log.

Booting...
OK
OK
 


---RealTek(RTL8196E-kld) version v6.0.4e(2013.02.22-18:00+0800) [16bit](400MHz)
Jump to image start=0x80500000...
decompressing kernel:
Uncompressing Linux... done, booting the kernel.
done decompressing kernel.
Creating 4 MTD partitions on "Physically mapped flash":
0x00000000-0x000e0000 : "boot+cfg+linux"
master size 0x004000000x000e0000-0x00370000 : "root fs"
master size 0x004000000x00370000-0x00380000 : "webpage"
master size 0x004000000x00380000-0x00400000 : "mydlink"
master size 0x00400000Realtek WLAN driver - version 1.6 (2012-12-24)
init started:  BusyBox v1.01 (2013.07.08-06:02+0000) multi-call binary
Starting pid 9, console /dev/ttyS0: '/bin/sh'


BusyBox v1.01 (2013.07.08-06:02+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

54
Init Start...
mkdir: Cannot create directory `/var/system': File exists
iwpriv wlan0 set_mib tx_pwr_ctrl=0
set 615 wlan channel
iwpriv wlan0 write_mem dw,b8000048,1,4026d832
Init bridge interface...

DO 8192E IQK !!!!
Done 8192E IQK !!!!

Init Wlan application...

WiFi Simple Config v2.7-wps2.0 (2013.07.12-00:49+0000).

Init WAN Interface...

MiniIGD v1.08 (2012.01.04-11:20+0000).

sysconf: setfirewall
here
start mydlink
killall: mydlink-watch-dog.sh: no process killed
killall: signalc: no process killed
killall: tsa: no process killed
opt.local restart ok.
Start NTP daemon
0DevInfo.txt text mode!
hard ver isB1
462
boa: server version Boa/0.94.14rc21
boa: server built Jul 12 2013 at 08:48:47.
boa: starting server pid=461, port 80
killall: tsa: no process killed
opt.local restart ok.
Start NTP daemon
0DevInfo.txt text mode!
hard ver isB1
462
boa: server version Boa/0.94.14rc21
boa: server built Jul 12 2013 at 08:48:47.
boa: starting server pid=461, port 80
killall: tsa: no process killed
opt.local stop ok.
opt.local start ok.
508
#                 


Now, how can i try my openwrt compiled binary?

I need OpenWRT image for Netgear router JNR1010 with RTL8196C chip.
I followed instructions on http://main.lv/writeup/building_openwrt … 8196c.html
But the generated is not getting installed on the router.
Is it possible to install OpenWRT on this router ? If yes then please guide.,
Please help.

akryll wrote:

Hi, I have collected experimental firmware for Upvel UR-825as. You can try to flash it on your equipment. The firmware can be downloaded from here.

Warning, the firmware has not been tested and its installation can lead to unpredictable results. Installing new firmware at own risk
...

bad link or file was deleted.
re-share it on the several sites and place its links here please.

akryll wrote:

Hi, I have collected experimental firmware for Upvel UR-825as. You can try to flash it on your equipment. The firmware can be downloaded from here.

Warning, the firmware has not been tested and its installation can lead to unpredictable results. Installing new firmware at own risk

Hi akryll!
does this  fw work on your device?
I tried it, but it doesn't work completely. The openwrt loaded with one interface (eth0), which briged with nothing into br-lan. Brige has IP 192.168.1.1, but nothing can be ping and it self too.

I suppose there shuold be some more interface. It looks like some devices was't inited because no drivers/modules there or wasn't configured in kernel...

PS: I used fw from vitasonline... m.b. it is different firmwares?

Hello, and sorry for a big delay. Here is all my builds.

Latest: 0.2a Build 1.

LuCi - Done.
Swconfig - Done.
WiFi - Done.
WAN & WANv6 - Done.
DHCPD - Done.

Firmware is not tested properly.

Waiting feedback. 

P.S: In some builds may be no English translation.
P.P.S: Can anyone have the original bootloader?

(Last edited by akryll on 27 Sep 2015, 13:39)

akryll wrote:

Hello, and sorry for a big delay. Here is all my builds.

Latest: 0.2a Build 1.

LuCi - Done.
Swconfig - Done.
WiFi - Done.
WAN & WANv6 - Done.
DHCPD - Done.

Firmware is not tested properly.

Waiting feedback.

good work!
I have an access to my UR! smile

You can publish your work on openwrt wiki or I can help you with it.


akryll wrote:

P.S: In some builds may be no English translation.

that will be beter to include english into your buids.

akryll wrote:

P.P.S: Can anyone have the original bootloader?

I have full dump of factory firmware. You can find it in my earlier posts. Or I can try to cut bootloader out from my dumb, change HW address in it and send you the copy with you MAC addresses....

PS: it there any private messaging in the OpenWRT forum? I could not find it sad

andygo wrote:
akryll wrote:

P.P.S: Can anyone have the original bootloader?

I have full dump of factory firmware. You can find it in my earlier posts. Or I can try to cut bootloader out from my dumb, change HW address in it and send you the copy with you MAC addresses....

PS: it there any private messaging in the OpenWRT forum? I could not find it sad

here is bootloader only (24Kbytes). There is no any custom hardware configuration, but I suppose that should be enough to upload any other firmware through TFTP.

(Last edited by andygo on 27 Sep 2015, 20:44)

in current OpenWRT from akryll MAC address isn't perfect right.
UR-825AC has a pool of MAC addresses in config area of flash (0x06000h):

0X0000000F     eth0 MAC address  #1
0X00000015     eth1 (WAN) MAC address  #2
0X0000001B     wlan0 MAC address  #3
0X00000021     wlan0-va0 MAC address  #4
0X00000027     wlan0-va1 MAC address  #5
0X0000002D     wlan0-va2 MAC address  #6
0X00000033     wlan0-va3 MAC address  #7
0X00000039      ??? MAC address  #8
0X0000003F      ??? MAC address  #9
0X00000045      ??? MAC address #10
0X0000065B     wlan1 MAC address #11
0X00000661     wlan1-va0 MAC address #12
0X00000667     wlan1-va1 MAC address #13
0X0000066D     wlan1-va2 MAC address #14
0X00000673     wlan1-va3 MAC address #15
0X00000679      ??? MAC address #16
0X0000067F      ??? MAC address #17
0X00000685      ??? MAC address #18

and the same addresses with direct shifting:

0X0000600F     eth0 MAC address  #1
0X00006015     eth1 (WAN) MAC address  #2
0X0000601B     wlan0 MAC address  #3
0X00006021     wlan0-va0 MAC address  #4
0X00006027     wlan0-va1 MAC address  #5
0X0000602D     wlan0-va2 MAC address  #6
0X00006033     wlan0-va3 MAC address  #7
0X00006039      ??? MAC address  #8
0X0000603F      ??? MAC address  #9
0X00006045      ??? MAC address #10
0X0000665B     wlan1 MAC address #11
0X00006661     wlan1-va0 MAC address #12
0X00006667     wlan1-va1 MAC address #13
0X0000666D     wlan1-va2 MAC address #14
0X00006673     wlan1-va3 MAC address #15
0X00006679      ??? MAC address #16
0X0000667F      ??? MAC address #17
0X00006685      ??? MAC address #18

Addresses #8..10, #16..18 has different 4th and 5th byte in comparing with the rest MACs and I haven't found anything about them in system/web-configuration of factory firmware.

(Last edited by andygo on 27 Sep 2015, 23:03)