RTL960x/README.md

165 lines
5.1 KiB
Markdown
Raw Normal View History

2021-02-28 14:34:15 +00:00
# Hacking RTL9601C1
2021-02-17 09:04:04 +00:00
Hacking V2801F & TWCGPON657 to suite your ISP Fiber
2022-02-12 23:16:32 +00:00
# Setup
Setup your [SFP XPON ONU Stick here](Docs/Setup_Stick.md)
2021-02-17 09:04:04 +00:00
# Issue
GPON market is a mess, plus explicit OMCI cause ONU Stick did not work
## With my issue:
2021-11-24 06:09:41 +00:00
* [V2801F](https://www.amazon.com/Universal-Stick-Address-Supported-Attention/dp/B08C818JSQ)
2022-02-11 19:51:11 +00:00
* Support n-Port ONU Emulation
2021-11-24 06:09:41 +00:00
* Support OMCI explicit provision **override** `OMCI_FAKE_OK 1`
* Good Firmware, support many ISP (Global)
* Build not strudy
* [TWCGPON657](https://item.taobao.com/item.htm?spm=a1z09.2.0.0.c0552e8d7UBYLF&id=597031866488)
2022-02-11 19:51:11 +00:00
* **Not Support** n-Port ONU Emulation
* **Not Support** OMCI explicit provision **override**
* Bad Firmware, limited ISP
2021-11-24 06:09:41 +00:00
* Silm & Tight build
2022-02-11 19:37:36 +00:00
## Triple Play Multiple ISP Problem, 4-port ONU Emulation
* Majority fiber vendor support multiple ISP
* ISP provide Triple Play service (Internet, VoIP & IPTV)
* Vendor supply 4-port ONU for each service or ISP
In this table, list of xPON Stick that support 4-port ONU Emulation
<table>
<thead>
<tr>
<th></th>
<th colspan="4">Huawei HG8240H LAN Port</th>
</tr>
<tr>
<th>xPON Stick</th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
</tr>
</thead>
<tbody>
<tr>
<td>DFP-34G-2C2 (ZTE)</td>
<td>✔️</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>DFP-34X-2C2 (ZTE)</td>
<td>✔️</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>TWCGPON657</td>
<td>✔️</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>V2801F</td>
<td>✔️</td>
<td>✔️</td>
<td>✔️</td>
<td>✔️</td>
</tr>
</tbody>
</table>
> ✔️ Port Emulation Support |
> ❌ No Support
2022-02-11 19:39:33 +00:00
Based on [ru-board](http://forum.ru-board.com/topic.cgi?forum=8&topic=80480&start=1360#2) **4-Port Emulation is limited**, not many xPON Stick can understand, only V2801F do support it, **because my Internet comes at Huawei HG8240H LAN Port 2** (LAN 1 for Main ISP, LAN 2 for 3rd party ISP)
2022-02-12 23:16:32 +00:00
> I strongly recommend to get V2801F or CarlitoxxPro (Realtek), these xPON Stick support 4-port Emulation!
2022-02-11 19:51:11 +00:00
## Same Chipset, Different Vendor
* There are many RTL9601C1 out there, not all firmware are interchangable
* V2801F cannot use TWCGPON657 firmware
* DFP-34X-2C2 (Realtek) cannot use V2801F firmware
* TWCGPON657 **can use** V2801F firmware
2022-02-12 23:16:32 +00:00
# Utility Link, Firmware Update
[Read here (with images)](Docs/Useful_Links.md)
2021-02-17 09:04:04 +00:00
2021-03-29 06:14:18 +00:00
# Flash
I have been using TWCGPON657 (without fan) for a month and never had an issue, so in this sections, flash V2801F firmware into TWCGPON657 stick and fix auto-reboot issue.
## Steps:
* Downgrade your TWCGPON657 to version B13 or below.
* Flash with `V2801F_V1.9.0-201104.tar` and wait.
2021-03-29 06:17:49 +00:00
* Quickly login and execute `echo 3 > /proc/fiber_mode` to avoid auto-reboot (invalid `VS_AUTH_KEY`)
* Disconnect fiber from module to restore telnet
2021-03-29 06:14:18 +00:00
* Update `VS_AUTH_KEY` acording to `ELAN_MAC_ADDR` and `HW_HWVER`
2021-03-29 06:17:49 +00:00
* Reboot (in telnet)
* Reflash again with `V2801F_V1.9.0-201104.tar` (must do after fix `VS_AUTH_KEY`)
* Enjoy!
2021-02-28 06:12:50 +00:00
2021-02-28 06:23:03 +00:00
# Auto Reboot Fix
2021-02-28 06:12:50 +00:00
## V2801F
2021-02-28 14:28:42 +00:00
### Issue
* Invalid `VS_AUTH_KEY`
* Changing MAC Address `ELAN_MAC_ADDR` can cause wrong `VS_AUTH_KEY` value
2021-02-28 06:23:03 +00:00
### Fix
2021-03-29 06:14:18 +00:00
* You need to generate new `VS_AUTH_KEY` when change `ELAN_MAC_ADDR` and `HW_HWVER`
2021-02-28 06:26:15 +00:00
* Apperently, you have few seconds to access Telnet before rebooting
2021-02-28 06:24:34 +00:00
* To prevent auto reboot by entering `echo 3 > /proc/fiber_mode` (XPON Ethernet Mode)
2021-02-28 06:23:03 +00:00
2021-02-28 06:26:15 +00:00
> If you can't type fast enough, use this autoit script `quick_telnet-login.au3`.
2021-02-28 14:34:15 +00:00
>
2021-02-28 14:35:57 +00:00
> Take a look some generated [`VS_AUTH_KEY` here](Docs/VS_AUTH_KEY.md)
2021-02-28 15:01:01 +00:00
2021-02-28 06:23:03 +00:00
### Note
When `echo 3 > /proc/fiber_mode` is set, you lose telnet acccess, you need to unplug fiber to get back
2021-02-28 06:12:50 +00:00
2021-02-28 06:26:41 +00:00
## TWCGPON657
2021-02-28 06:12:50 +00:00
* No such problem, `VS_AUTH_KEY` does not exist.
2021-02-26 06:32:30 +00:00
# Usage
* Please read [FLASH_GETSET_INFO.md](Docs/FLASH_GETSET_INFO.md) for how to configure, login, etc...
* Advance setting like duplicate ONT Info, read [FLASH_GETSET_DEV.md](Docs/FLASH_GETSET_DEV.md)
2021-09-06 21:56:16 +00:00
* For a manual for the built-in Realtek `diag` utility, see: [RTKPONDiagShellUserGuide](Docs/RTKPONDiagShellUserGuideV001.291982779.pdf)
* Source: https://usermanual.wiki/Pdf/RTKPONDiagShellUserGuideV001.291982779/html
2021-02-17 09:04:04 +00:00
2022-02-12 23:16:32 +00:00
2021-02-17 09:04:04 +00:00
# Modify
You need a Linux PC/VM, Ubuntu as Operating System
## Prerequisite
You need these program installed:
* `tar` (extract tar package)
* `squashfs-tools` (extract/repack rootfs)
* `qemu-user-static` (run MIPS VM)
## Extract firmware
* Extract Firmware package in `tar` format, we need `rootfs` file
* Extract `rootfs` partition
```
unsquashfs rootfs
```
## Repack firmware
* Repack `rootfs`
```
mksquashfs squashfs-root rootfs.new -b 131072 -comp lzma
```
* Rename `rootfs`
```
mv rootfs rootfs.old
mv rootfs.new rootfs
```
2021-02-17 13:10:40 +00:00
* Update `md5sum`
```
md5sum fwu.sh rootfs uImage fwu_ver > md5.txt
```
* tar current folder
```
tar -cvf ../firmware.tar *
2021-02-28 06:23:03 +00:00
```