summaryrefslogtreecommitdiffstats
path: root/md/writeup/building_openwrt_for_rtl8196c.md
blob: 284b02564e887194e175f6ee4198a6d6e74c5f0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
title: Building OpenWRT for RTL8196C
keywords: openwrt,rtl8196c

# Building OpenWRT for RTL8196C

In previous post there wasn't clearly described how to download
and compile sources for OpenWRT realtek release. Its not official
repository because not yet all things is updated with mainline
OpenWRT and not officially and OpenWRT port. To compile by your
self there is need to do some basic configuration of sources.


## Getting sources

Fits of all need to get sources from git server.
There is some branches in git. But only one of them intended to
be used for non development purposes its "realtek-unstable"

```sh
git clone http://git.advem.lv/rtl819xx
cd ./rtl819xx/
git branch -a
git checkout realtek-unstable
```

## Config in menuconfig

There is supported only compilation with binutils 2.21.1 and
gcc-4.6.x-linaro. Now you should setup that options with menuconfig.

```sh
make menuconfig
```

This options should be set in main menu:

__Target System__ as (Realtek RTL8xxx)  
__Target Profile__ as (nprove)  
__Advanced configuration options (for developers)__ switch on  

Now in __Advanced configuration options__ set __Toolchain Options__
and there options for binutils and gcc as in image

__Binutils Version__ as (binutils 2.21.1)  
__GCC compiler Version__ as (gcc 4.6.x with Linaro enhancements)  

Last option to switch of is in main menu __Network__
```text
firewall3
odhcp6c
```

## Build


It could take some time to compile image.

With some compiling output
```sh
make V=s
```

Without extra output
```sh
make
```

Compile in many threads
```sh
make -j8
```



Final image is inside bin/realtek

## UPDATE
9 dec 2014
as main manager that was involved in this "nprove brand" router development
based on 8196c/d chip changed job he dont invloved anymore in this project
as it was. Also domain nprove.in not belong to any who where involved
in this router development. Probably I can say that this try to port
realtek fake open source openwrt firmware to mainline openwrt is ended.
Also chanell on ~~freenode.net/#nprove~~ libera.chat/#mainlv with main developer also can be
considered died. Also all this post now is for historical puropouses. If
someone interested i could try to get all this 8196c git repo sources and
put in archive. Maybe someone will continue development of 8196c chip
support for mainline openwrt not for fake-relatek-openwrt.

8 jan 2015
old repo from git.nprove.in moved to http://git.advem.lv/

30 apr 2015
updated links

29 jan 2022
changed irc chat location


## Links
http://git.advem.lv/  
https://openwrt.org/  
https://forum.openwrt.org/viewtopic.php?id=46606  
http://main.lv/writeup/rtl8196c_support_for_openwrt.html  
[DEAD]http://www.nprove.net/  
[linux-2.6.30.9.tar.xz](https://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.9.tar.xz)  
[usb-modeswitch-1.2.5.tar.bz2](http://pkgs.fedoraproject.org/repo/pkgs/usb_modeswitch/usb-modeswitch-1.2.5.tar.bz2/c393603908eceab95444c5bde790f6f0/)  
[DEAD]https://downloads.nprove.in  
[DEAD]https://git.nprove.in  

## Downloads
build_openwrt.tar.gz - 
12KiB - http://archive.main.lv/files/writeup/building_openwrt_for_rtl8196c/build_openwrt.tar.gz

## Images

<a href=/img/building_openwrt_for_rtl8196c/menuconfig.png width="250"><img src="/img/building_openwrt_for_rtl8196c/menuconfig.png" style="width:40%" alt="OpenWRT menuconfig"></a>
<a href=/img/building_openwrt_for_rtl8196c/toolchain.png width="250"><img src="/img/building_openwrt_for_rtl8196c/toolchain.png" style="width:40%" alt="OpenWRT menuconfig"></a>