Changeset 44831


Ignore:
Timestamp:
2015-03-16T12:52:10+01:00 (3 years ago)
Author:
jogo
Message:

brcm63xx: Add DGND3700 v1 / DGND3800B support

This adds support for the Netgear DGND3700 v1 and DGND3800B.

DGND3700 v1 and DGND3800B are exactly the same router, only one difference,
the factory firmware. This patch produces two factory firmwares for each router.

The router includes an onboard NAND flash for extra storage. NAND is currently
not supported in bcm63xx, so no code added for this part. The NOR flash (32MB)
is enough for storing an openwrt firmware.

Signed-off-by: Daniel Gonzalez <dgcbueu@…>
[jogo: Add back commit message from v1]
Signed-off-by: Jonas Gorski <jogo@…>

Location:
trunk/target/linux/brcm63xx
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds

    r41852 r44831  
    141496328dg2x2) 
    1515        ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1" 
     16        ;; 
     17DGND3700v1_3800B) 
     18        ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1" 
     19        ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2" 
     20        ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0" 
     21        ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1" 
     22        ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1" 
     23        ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2" 
    1624        ;; 
    1725'F@ST2704V2') 
  • trunk/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network

    r44304 r44831  
    109109        ;; 
    110110 
     111DGND3700v1_3800B) 
     112        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
     113        ucidef_add_switch "eth0" "1" "1" 
     114        ucidef_add_switch_vlan "eth0" "1" "1 2 3 4 8t" 
     115        ucidef_add_switch_vlan "eth0" "2" "0 8t" 
     116        ;; 
     117 
    111118NB6) 
    112119        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
  • trunk/target/linux/brcm63xx/base-files/lib/brcm63xx.sh

    r41944 r44831  
    112112                ifname=eth0 
    113113                ;; 
     114        DGND3700v1_3800B) 
     115                status_led="DGND3700v1_3800B:green:power" 
     116                brcm63xx_has_reset_button="true" 
     117                ifname="eth0" 
     118                ;; 
    114119        "F@ST2504n") 
    115120                status_led="fast2504n:green:ok" 
  • trunk/target/linux/brcm63xx/image/Makefile

    r44569 r44831  
    110110                --rev_maj=$(5) --rev_min=$(6) --input_file=$(KDIR)/$(7) \ 
    111111                --output_file=$(BIN_DIR)/openwrt-$(2)-$(1).bin 
     112endef 
     113 
     114define Image/Build/ChkDTB 
     115        # Generate Netgear factory image 
     116        $(STAGING_DIR_HOST)/bin/mkchkimg -o $(BIN_DIR)/openwrt-$(2)-$(1)-factory.chk \ 
     117        -k $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin -b $(5) -r $(6) 
    112118endef 
    113119 
     
    304310# Netgear DG834GT/PN 
    305311$(eval $(call ImageDTB,CFEDTB,DG834GTPN,DG834GT_PN,dg834gtpn,96348GW-10,6348)) 
     312# Netgear DGND3700 v1 / DGND3800B 
     313$(eval $(call ImageDTB,CFEDTB,DGND3700v1_3800B,DGND3700v1_3800B,dgnd3700v1,96368MVWG,6368,--image-offset 0x20000 --block-size 0x20000)) 
     314#Netgear DGND3700 v1 factory firmware 
     315$(eval $(call ImageDTB,ChkDTB,DGND3700v1_3800B,DGND3700v1,,DGND3700v1_3800B,U12L144T01_NETGEAR_NEWLED,1)) 
     316#Netgear DGND3800B factory firmware 
     317$(eval $(call ImageDTB,ChkDTB,DGND3700v1_3800B,DGND3800B,,DGND3700v1_3800B,U12L144T11_NETGEAR_NEWLED,1)) 
    306318# Pirelli Alice Gate VoIP 2 Plus Wi-Fi AGPF-S0 
    307319$(eval $(call ImageDTB,CFEDTB,AGPF_S0,AGV2+W,agpf-s0,AGPF-S0,6358,--block-size 0x20000 --image-offset 0x20000 --signature2 IMAGE --tag-version 8)) 
  • trunk/target/linux/brcm63xx/profiles/netgear.mk

    r44561 r44831  
    1313  Package set optimized for CVG834G. 
    1414endef 
    15  
    1615$(eval $(call Profile,CVG834G)) 
    1716 
     
    2423endef 
    2524$(eval $(call Profile,DG834GTPN)) 
     25 
     26define Profile/DGND3700v1_3800B 
     27  NAME:=Netgear DGND3700 v1 / DGND3800B 
     28  PACKAGES:=kmod-b43 wpad-mini \ 
     29        kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev 
     30endef 
     31define Profile/DGND3700v1_3800B/Description 
     32  Package set optimized for DGND3700 v1 / DGND3800B. 
     33endef 
     34$(eval $(call Profile,DGND3700v1_3800B)) 
Note: See TracChangeset for help on using the changeset viewer.