Changeset 36433


Ignore:
Timestamp:
2013-04-25T21:02:53+02:00 (4 years ago)
Author:
blogic
Message:

ramips: Add Alpha ASL-26555 support.

This board uses a TrendChip SOC with its own RAM/Flash for ADSL support.
We know both SOCs are connected through ethernet and use some kind of protocol for UART communication, but due to the lack of GPL sources we couldn't get it to work. For this reason the network is configured only for LAN.

There are two versions (Chile 8MB and Spain 16MB).

Wiki: http://wiki.openwrt.org/toh/alpha/asl26555

Signed-off-by: Esteban Benito <estebanjbs@…>
Signed-off-by: Álvaro Fernández Rojas <noltari@…>
Patchwork: http://patchwork.openwrt.org/patch/3571/
Acked-by: John Crispin <blogic@…>

Location:
trunk/target/linux/ramips
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/etc/diag.sh

    r36432 r36433  
    1515        argus-atp52b) 
    1616                status_led="argus-atp52b:green:run" 
     17                ;; 
     18        asl26555) 
     19                status_led="asl26555:green:power" 
    1720                ;; 
    1821        br6524n) 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r36432 r36433  
    3131"soc_wmac.eeprom") 
    3232        case $board in 
     33        asl26555 | \ 
    3334        dir-300-b1 | \ 
    3435        dir-600-b1 | \ 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/01_leds

    r36432 r36433  
    3535                ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8" 
    3636                set_wifi_led "rt2800pci-phy0::radio" 
     37                ;; 
     38        asl26555) 
     39                ucidef_set_led_default "power" "POWER" "asl26555:green:power" "1" 
     40                ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0" 
     41                set_wifi_led "asl26555:green:wlan" 
     42                set_usb_led "asl26555:green:3g" 
    3743                ;; 
    3844        bc2) 
  • trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network

    r36432 r36433  
    6464                ;; 
    6565 
     66        asl26555) 
     67                ucidef_set_interface_lan "eth0.1" 
     68                ucidef_add_switch "switch0" "1" "1" 
     69                ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" 
     70                ;; 
     71 
    6672        dir-645) 
    6773                ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
     
    177183                ;; 
    178184 
     185        asl26555) 
     186                lan_mac=$(mtd_get_mac_binary devdata 16388) 
     187                ;; 
     188 
    179189        w306r-v20) 
    180190                lan_mac=$(mtd_get_mac_binary factory 4) 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r36432 r36433  
    3535                ifconfig eth0 hw ether $mac 2>/dev/null 
    3636                ;; 
     37        asl26555 |\ 
    3738        dir-300-b1 |\ 
    3839        dir-300-b2 |\ 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r36432 r36433  
    6666        *"Asus WL-330N3G") 
    6767                name="wl-330n3g" 
     68                ;; 
     69        *"Alpha ASL26555") 
     70                name="asl26555" 
    6871                ;; 
    6972        *"Aztech HW550-3G") 
  • trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh

    r36432 r36433  
    2323        all0256n | \ 
    2424        all5002 | \ 
     25        asl26555 | \ 
    2526        bc2 | \ 
    2627        broadway | \ 
  • trunk/target/linux/ramips/image/Makefile

    r36432 r36433  
    270270Image/Build/Profile/ARGUS_ATP52B=$(call BuildFirmware/CustomFlash/$(1),$(1),argus_atp52b,ARGUS_ATP52B,$(argus_atp52b_mtd_size)) 
    271271 
     272asl26555_8mb_mtd_size=7929856 
     273asl26555_16mb_mtd_size=16252928 
     274define BuildFirmware/ASL26555/squashfs 
     275        $(call BuildFirmware/CustomFlash/$(1),$(1),$(2)-8M,$(3)-8M,$(asl26555_8mb_mtd_size)) 
     276        $(call BuildFirmware/CustomFlash/$(1),$(1),$(2)-16M,$(3)-16M,$(asl26555_16mb_mtd_size)) 
     277endef 
     278define BuildFirmware/ASL26555/initramfs 
     279        $(call BuildFirmware/OF/initramfs,$(1),$(2)-8M,$(3)-8M) 
     280        $(call BuildFirmware/OF/initramfs,$(1),$(2)-16M,$(3)-16M) 
     281endef 
     282Image/Build/Profile/ASL26555=$(call BuildFirmware/ASL26555/$(1),$(1),asl26555,ASL26555) 
     283 
    272284Image/Build/Profile/BC2=$(call BuildFirmware/Default8M/$(1),$(1),bc2,BC2) 
    273285 
     
    426438        $(call Image/Build/Profile/ALL5002,$(1)) 
    427439        $(call Image/Build/Profile/ARGUS_ATP52B,$(1)) 
     440        $(call Image/Build/Profile/ASL26555,$(1)) 
    428441        $(call Image/Build/Profile/BC2,$(1)) 
    429442        $(call Image/Build/Profile/BROADWAY,$(1)) 
  • trunk/target/linux/ramips/rt305x/profiles/alpha.mk

    r36432 r36433  
    11# 
    2 # Copyright (C) 2012 OpenWrt.org 
     2# Copyright (C) 2013 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    66# 
    77 
    8 define Profile/FONERA20N 
    9         NAME:=Fonera 2.0N 
     8define Profile/ASL26555 
     9        NAME:=Alpha ASL26555 
    1010        PACKAGES:=\ 
    1111                kmod-usb-core kmod-usb-rt305x-dwc_otg \ 
     
    1313endef 
    1414 
    15 define Profile/FONERA20N/Description 
    16         Package set for Fonera 2.0N 
     15define Profile/ASL26555/Description 
     16        Package set for Alpha ASL26555 
    1717endef 
    1818 
    19 $(eval $(call Profile,FONERA20N)) 
     19$(eval $(call Profile,ASL26555)) 
Note: See TracChangeset for help on using the changeset viewer.