Releases: kiper292/openwrt_rtk
Releases · kiper292/openwrt_rtk
Release list
D-Link DAP-1360 D1 3.0.0 stock firmware
1. Stock Firmware Analysis
Firmware File
- File: 2017.10.13-15.40_DAP_1360D1_3.0.0_release.bin
- Size: 3,268,486 bytes (3.12 MB)
- Format: Realtek proprietary (cr62 header)
Firmware Structure
| Offset | Size | Content |
|---|---|---|
| 0x000000 | 0x777 | Boot header (cr62 format) |
| 0x000777 | varies | LZMA compressed kernel |
| 0x090000 | varies | Fake SquashFS (padding) |
| 0x100000 | 2,219,910 | Real SquashFS rootfs |
Flash Layout (from /proc/mtd)
| Partition | Offset | Size | Description |
|---|---|---|---|
| boot | 0x000000 | 64 KB | RTL-Boot bootloader |
| MAC | 0x010000 | 64 KB | MAC address storage |
| config | 0x020000 | 64 KB | NVRAM config |
| kernel | 0x030000 | 1 MB | Linux kernel |
| rootfs | 0x130000 | 2.8 MB | SquashFS rootfs |
| Linux | 0x030000 | 3.8 MB | Combined kernel+rootfs |
| ALL | 0x000000 | 4 MB | Full flash |
2. Stock Rootfs Contents
VERSION
NAME: DAP_1360D1
VERSION: 3.0.0
SYSBUILDTIME: Fri Oct 13 15:48:58 MSK 2017
VENDOR: D-Link Russia
BUGS: support@dlink.ru
Kernel Modules (extracted from rootfs)
- gpiom.ko (38,960 bytes) — GPIO manager for DAP_1360D1 profile
- nf_conntrack_rtsp.ko (10,840 bytes)
- nf_conntrack_sip.ko (24,632 bytes)
- nf_nat_rtsp.ko (8,240 bytes)
- nf_nat_sip.ko (11,160 bytes)
WiFi Driver Status
- RTL8192CD driver is COMPILED INTO THE KERNEL (not a module)
- No separate WiFi .ko file exists
- WiFi driver is proprietary Realtek binary (not open source)
Key Libraries
- libdhal.so (459,160 bytes) — D-Link HAL
- libresident_cli.so (69,552 bytes) — D-Link management
- libnvram.so (4,420 bytes) — NVRAM access
- libiw.so.29 (32,356 bytes) — Wireless extensions
- libcivetweb.so (83,632 bytes) — HTTP server
- libaxtls.so.1.2 (84,796 bytes) — TLS library
- libjansson.so.4.9.0 (52,252 bytes) — JSON library
- libzebra.so.0.0.0 (275,136 bytes) — Routing daemon
Key Binaries (from rootfs)
- /bin/busybox (419,608 bytes) — BusyBox v1.26.2
- /sbin/init — System init
- /usr/sbin/anweb — D-Link web server
- /usr/sbin/resident — D-Link management daemon
- /usr/sbin/iwcontrol — Wireless control
- /usr/sbin/locdns — Local DNS
- /usr/sbin/tinysvcmdns — mDNS
Flash Partitions for DAP-1360
bootloader: 0x000000-0x010000 (64KB, ro)
mac: 0x010000-0x020000 (64KB)
config: 0x020000-0x030000 (64KB)
kernel: 0x030000-0x130000 (1MB)
rootfs: 0x130000-0x400000 (2.8MB)
rsdk-toolchains
rsdk-toolchains
Realtek RSDK cross-compiler toolchains for RTL8196C (rlx4181) and RTL8198C (rlx5281).
Toolchains
| Archive | SoC | CPU | Kernel |
|---|---|---|---|
rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001.tar.xz |
RTL8196C | Lexra LX4181 | 3.10 |
rsdk-4.6.4-5281-EB-3.10-0.9.33-m32ub-20141001.tar.xz |
RTL8198C/RTL819XD | RLX5281 | 3.10 |
Usage
# Extract toolchain
tar xf rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001.tar.xz
# Set PATH
export PATH=$PATH:$(pwd)/rsdk-4.6.4-4181-EB-3.10-0.9.33-m32u-20141001/bin
# Test
mips-linux-gcc --versionSource
Toolchains originally from Realtek SDK, archived from Vyacheslav-S/openwrt-rtk819.
Build Dependencies (Kernel 3.10 & Tools)
build-assets add ss/chinadns etc.