From 50e3659703113df036e755e0d483172c3b809242 Mon Sep 17 00:00:00 2001 From: Thomas Nixon Date: Sun, 23 Apr 2017 22:07:17 +0100 Subject: lantiq: add Netgear DM200 support Netgear DM200 is an inexpensive VDSL modem: CPU: VRX220 MIPS 34Kc 5.6 @ 500Mhz RAM: 64MiB Flash: 8MiB Ethernet: 1x100M DSL: VDSL2+, ADSL2+ reset button, 3x bi-color LEDs Serial port is 115200 baud, on the 4 pin header; pins from the bottom to top are GND, RX, TX. To upgrade from the vendor firmware, upload factory.img The DM200 bootloader supports flashing over TFTP; hold the reset button while powering on the device, and wait for the power light to start flashing green before releasing. The device is now listening on 192.168.0.1/24, and can be sent a factory.img or a netgear image with a TFTP put. Once the image is loaded, it will be written to the flash, and the device will reboot; this will take a few minutes. Thanks to Edward O'Callaghan and Baptiste Jonglez, who implemented their own ports for this device and provided valuable feedback. Signed-off-by: Thomas Nixon --- target/linux/lantiq/base-files/etc/board.d/01_leds | 3 +++ target/linux/lantiq/base-files/etc/board.d/02_network | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'target/linux/lantiq/base-files') diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds index 634f479789..817e2e91c5 100755 --- a/target/linux/lantiq/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/base-files/etc/board.d/01_leds @@ -50,6 +50,9 @@ ARV7519RW22) BTHOMEHUBV5A) ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0" ;; +DM200) + ucidef_set_led_netdev "lan" "lan" "dm200:green:lan" "eth0" + ;; FRITZ7320) ucidef_set_led_netdev "wifi" "wifi" "fritz7320:green:wlan" "wlan0" ;; diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index 55498b9f59..c245a8fa75 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -100,6 +100,12 @@ DGN3500*) "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth0" ;; +DM200) + lan_mac=$(mtd_get_mac_binary ART 0) + wan_mac=$(macaddr_add "$lan_mac" 1) + ucidef_set_interface_lan 'eth0' + ;; + EASY80920NAND|EASY80920NOR) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) -- cgit v1.2.3