Skip to content

Commit 31f5fc8

Browse files
cjdelislehauke
authored andcommitted
econet: New device: Zyxel PMG5617GA
This device has one USB2.0 port, plus ethernet, 2x wifi, ethernet, xPON and VoIP. Installation instructions: (Assuming root shell via SSH or serial) 1. Place OpenWrt TRX file on a USB stick formatted VFAT 2. Plug in the stick to the modem 3. Type: mtd write -f -e tclinux /mnt/usb2_sda1/<name of file>.trx tclinux At this point, both OpenWrt and the vendor OS will be installed because the device has space for two operating systems. Switch the OS to boot to OpenWrt: 1. mtd readflash tmpdata 999999999 0 reservearea 2. echo -n '0' | dd of=./tmpdata bs=1 count=1 seek=397311 conv=notrunc 3. mtd write -f -e reservearea ./tmpdata reservearea 4. reboot WARNING: While you can install with SSH alone, you need serial to use OpenWrt on EcoNet devices because the Ethernet driver has not yet been developed. Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr> Link: openwrt#20580 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 8d8990a commit 31f5fc8

3 files changed

Lines changed: 100 additions & 0 deletions

File tree

target/linux/econet/base-files/sbin/en75_chboot

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ main() {
124124
code_offset=0
125125
code_openwrt=30000000
126126
code_factory=31000000
127+
elif [ "$machine" = "Zyxel PMG5617GA" ]; then
128+
# 00060fff
129+
part=$(part_named '"reservearea"')
130+
offset_blocks=3
131+
block_size=$((1024 * 128))
132+
code_offset=4095
133+
code_openwrt=30
134+
code_factory=31
127135
else
128136
echo "Unsupported machine: $machine"
129137
exit 1
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
/dts-v1/;
3+
4+
#include "en751221.dtsi"
5+
6+
/ {
7+
model = "Zyxel PMG5617GA";
8+
compatible = "tplink,zyxel-pmg5617ga", "econet,en751221";
9+
10+
memory@0 {
11+
device_type = "memory";
12+
reg = <0x00000000 0x8000000>;
13+
};
14+
15+
chosen {
16+
stdout-path = "/serial@1fbf0000:115200";
17+
linux,usable-memory-range = <0x00020000 0x07fe0000>;
18+
};
19+
};
20+
21+
&nand {
22+
status = "okay";
23+
econet,bmt;
24+
25+
partitions {
26+
compatible = "fixed-partitions";
27+
#address-cells = <1>;
28+
#size-cells = <1>;
29+
30+
partition@0 {
31+
label = "bootloader";
32+
reg = <0x0 0x40000>;
33+
read-only;
34+
};
35+
36+
partition@40000 {
37+
label = "romfile";
38+
reg = <0x40000 0x40000>;
39+
read-only;
40+
};
41+
42+
partition@80000 {
43+
label = "tclinux";
44+
reg = <0x80000 0x3800000>;
45+
read-only;
46+
econet,enable-remap;
47+
};
48+
49+
/* Nested inside of tclinux */
50+
partition@480000 {
51+
label = "rootfs";
52+
reg = <0x480000 0x3400000>;
53+
linux,rootfs;
54+
read-only;
55+
};
56+
57+
partition@3880000 {
58+
label = "tclinux_alt";
59+
reg = <0x3880000 0x0036c0000>;
60+
};
61+
62+
partition@6f40000 {
63+
label = "wwan";
64+
reg = <0x006f40000 0x000100000>;
65+
};
66+
67+
partition@7040000 {
68+
label = "factory_data";
69+
reg = <0x007040000 0x000400000>;
70+
};
71+
72+
partition@7440000 {
73+
label = "rom-d";
74+
reg = <0x007440000 0x000100000>;
75+
};
76+
77+
partition@7540000 {
78+
label = "reservearea";
79+
reg = <0x007540000 0x000080000>;
80+
};
81+
};
82+
};

target/linux/econet/image/en751221.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,13 @@ define Device/tplink_archer-vr1200v-v2
4444
tplink-v2-header -R 0x400000
4545
endef
4646
TARGET_DEVICES += tplink_archer-vr1200v-v2
47+
48+
define Device/zyxel_pmg5617ga
49+
DEVICE_VENDOR := Zyxel
50+
DEVICE_MODEL := PMG5617GA
51+
DEVICE_DTS := en751221_zyxel_pmg5617ga
52+
IMAGES := tclinux.trx
53+
IMAGE/tclinux.trx := append-kernel | lzma | tclinux-trx
54+
DEVICE_PACKAGES := kmod-usb3
55+
endef
56+
TARGET_DEVICES += zyxel_pmg5617ga

0 commit comments

Comments
 (0)