Technicolor TG582n has a similar PCB as the OpenWrt's ADB P.DG A4001N1 with LEDs connected to different GPIO PINs in active low configuration. Hardware: * Board ID: DANT-1 * SoC: Broadcom BCM6328 (rev b0) @ 320MHz, CPU BMIPS4350 * RAM DDR2: 64 Mbyte - Winbond W9751G6KB-25 * Serial flash: 16 Mbyte - MXIC MX25L6445EMI * Ethernet: 4x Ethernet 10/100 baseT * Wifi 2.4GHz: Broadcom Corporation BCM43227 Wireless Network Adapter (rev 30) * LEDs: 2x Power, 1x Ethernet, 1x Broadband, 2x Wi-Fi, 2x WPS, 4x ethernet * Buttons: 1x Reset, 1x WPS, 1x WiFi * UART: 1x TTL 115200n8, VCC GND TX RX, on J3 connector (short R62 and R63) Installation via CFE: * Stock CFE has to be overwritten with a generic 6328 one that can upload .bin images with no signature check (cfe6328_configured.bin) * Connect a serial port to the board * Stop the CFE boot process after power on by pressing enter * Set static IP 192.168.2.10 and subnet mask 255.255.255.0 * Navigate to http://192.168.2.50/ * Upload the OpenWrt image file PCB: |GPIO: |TG582n: LED2R |488(08) |red Power LED2G |484(04) |green Power LED10R |486(06) | LED13G |485(05) |green Ethernet LED11R |494(14) | LED14G |491(11) |green Broadband LED5R |487(07) |red Internet LED5G |481(01) |green Internet LED12R |498(18) | LED12G |499(19) | LED6R |482(02) |red Wi-Fi LED6G |483(03) |green Wi-Fi LED7R |490(10) |red WPS LED7G |489(09) |green WPS LED4 |508(28) |ethernet port 4 LED3 |507(27) |ethernet port 3 LED9 |506(26) |ethernet port 2 LED8 |505(25) |ethernet port 1 SW3 |503(23) |key Reset SW5 |504(24) |key WPS SW4 |495(15) |key Wi-Fi SW6 |493(13) | SW1 |492(12) | Signed-off-by: Daniele Castro <danielecastro@hotmail.it> [Fix base-files, refresh patch] Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
169 lines
3.8 KiB
Bash
Executable file
169 lines
3.8 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
|
|
board_config_update
|
|
|
|
case "$(board_name)" in
|
|
actiontec,r1000h|\
|
|
dynalink,rta770bw|\
|
|
dynalink,rta770w|\
|
|
netgear,cvg834g|\
|
|
netgear,dgnd3700-v2|\
|
|
netgear,evg2000|\
|
|
t-com,speedport-w-303v|\
|
|
t-com,speedport-w-500v)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
adb,a4001n1|\
|
|
adb,a4001n|\
|
|
adb,pdg-a4001n-a-000-1a1-ax|\
|
|
adb,pdg-a4101n-a-000-1a1-ae|\
|
|
adb,av4202n|\
|
|
brcm,bcm963281tan|\
|
|
brcm,bcm96328avng|\
|
|
brcm,bcm96368mvngr|\
|
|
comtrend,ar-5381u|\
|
|
comtrend,ar-5387un|\
|
|
comtrend,vr-3025u|\
|
|
comtrend,vr-3025un|\
|
|
comtrend,vr-3026e|\
|
|
d-link,dsl-274xb-f1|\
|
|
d-link,dsl-2750u-c1|\
|
|
d-link,dsl-275xb-d1|\
|
|
huawei,echolife-hg622|\
|
|
huawei,echolife-hg655b|\
|
|
nucom,r5010un-v2|\
|
|
sagem,fast-2504n|\
|
|
sagem,fast-2704-v2|\
|
|
technicolor,tg582n|\
|
|
technicolor,tg582n-telecom-italia|\
|
|
zyxel,p870hw-51a-v2)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "8t@eth0"
|
|
;;
|
|
alcatel,rg100a|\
|
|
belkin,f5d7633|\
|
|
brcm,bcm96348gw|\
|
|
brcm,bcm96348gw-10|\
|
|
brcm,bcm96348gw-11|\
|
|
brcm,bcm96358vw|\
|
|
brcm,bcm96358vw2|\
|
|
bt,voyager-2500v-bb|\
|
|
davolink,dv-201amr|\
|
|
d-link,dsl-2650u|\
|
|
dynalink,rta1025w|\
|
|
netgear,dg834gt-pn|\
|
|
pirelli,agpf-s0|\
|
|
sagem,fast-2404|\
|
|
telsey,magic|\
|
|
tp-link,td-w8900gb|\
|
|
usrobotics,usr9108)
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth1"
|
|
;;
|
|
asmax,ar-1004g|\
|
|
brcm,bcm96338gw|\
|
|
brcm,bcm96338w|\
|
|
bt,voyager-2110|\
|
|
comtrend,ct-5365|\
|
|
comtrend,ct-536plus|\
|
|
comtrend,ct-6373|\
|
|
d-link,dsl-2640b-b|\
|
|
d-link,dsl-2640u|\
|
|
dynalink,rta1320|\
|
|
netgear,dg834g-v4|\
|
|
sagem,fast-2604|\
|
|
telsey,cpva642)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5u@eth0"
|
|
;;
|
|
brcm,bcm963268bu-p300)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "3:lan" "4:lan" "5:lan" "6:lan" "7:lan" "8t@eth0"
|
|
;;
|
|
brcm,bcm96368mvwg)
|
|
ucidef_add_switch "switch0" \
|
|
"1:lan" "2:lan" "4:lan" "5:lan" "8t@eth0"
|
|
;;
|
|
bt,home-hub-2-a|\
|
|
d-link,dsl-274xb-c2|\
|
|
huawei,echolife-hg553|\
|
|
huawei,echolife-hg556a-a|\
|
|
huawei,echolife-hg556a-b|\
|
|
huawei,echolife-hg556a-c)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "5t@eth0"
|
|
;;
|
|
comtrend,ar-5315u|\
|
|
observa,vh4032n|\
|
|
sagem,fast-2704n)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "8t@eth0"
|
|
;;
|
|
comtrend,vg-8050)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "8t@eth0"
|
|
;;
|
|
comtrend,vr-3032u)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:2" "1:lan:3" "2:lan:4" "3:lan:1" "8t@eth0"
|
|
;;
|
|
comtrend,wap-5813n)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@eth0"
|
|
;;
|
|
d-link,dva-g3810bn-tl|\
|
|
huawei,echolife-hg520v|\
|
|
sfr,neufbox-4-foxconn-r1|\
|
|
sfr,neufbox-4-sercomm-r0)
|
|
ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth1"
|
|
;;
|
|
huawei,hg253s-v2)
|
|
ucidef_add_switch "switch0" \
|
|
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "8t@eth0"
|
|
;;
|
|
inteno,vg50)
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8t@eth0"
|
|
;;
|
|
inventel,livebox-1|\
|
|
telsey,cpva502plus)
|
|
ucidef_set_interfaces_lan_wan "eth0" "eth1"
|
|
;;
|
|
netgear,dgnd3700-v1)
|
|
ucidef_add_switch "switch0" \
|
|
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "8t@eth0"
|
|
;;
|
|
sercomm,ad1018|\
|
|
sercomm,ad1018-nor)
|
|
ucidef_add_switch "switch0" \
|
|
"1:lan:3" "2:lan:2" "3:lan:1" "0:wan" "8t@eth0"
|
|
;;
|
|
sercomm,h500-s-lowi|\
|
|
sercomm,h500-s-vfes)
|
|
ucidef_add_switch "switch0" "4:lan" "3:wan" "8t@eth0"
|
|
;;
|
|
sfr,neufbox-6-sercomm-r0)
|
|
ucidef_add_switch "switch0" \
|
|
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9t@eth0"
|
|
;;
|
|
sky,sr102)
|
|
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "1:lan" "2:lan" "3:wan" "8t@eth0"
|
|
;;
|
|
*)
|
|
ucidef_set_interfaces_lan_wan "eth1" "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|