Changeset 30808


Ignore:
Timestamp:
2012-03-04T17:09:11+01:00 (5 years ago)
Author:
juhosg
Message:

ramips: board support for Asus RT-N10+

[juhosg: fix indentation in platform scripts, and remove debug
messages from 06_set_iface_mac]

Signed-off-by: Patrick van Staveren <trick@…>

Location:
trunk/target/linux/ramips
Files:
1 added
10 edited

Legend:

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

    r30645 r30808  
    6767                status_led="rt-n15:blue:power" 
    6868                ;; 
     69        rt-n10-plus) 
     70                status_led="asus:green:wps" 
     71                ;; 
    6972        rt-n56u) 
    7073                status_led="asus:blue:power" 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r30645 r30808  
    3939                ;; 
    4040 
     41        rt-n10-plus | \ 
    4142        rt-g32-b1) 
    4243                rt2x00_eeprom_extract "devconf" 0 272 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r30645 r30808  
    3737                ifconfig eth0 hw ether $mac 2>/dev/null 
    3838                ;; 
     39        rt-n10-plus) 
     40                mac=$(ramips_get_mac_binary devconf 4) 
     41                ifconfig eth0 hw ether $mac 2>/dev/null 
     42                ;; 
    3943        esac 
    4044} 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r30645 r30808  
    9999                name="rt-g32-b1" 
    100100                ;; 
     101        *"RT-N10+") 
     102                name="rt-n10-plus" 
     103                ;; 
    101104        *"RT-N15") 
    102105                name="rt-n15" 
  • trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh

    r30645 r30808  
    2828        omni-emb | \ 
    2929        rt-g32-b1 | \ 
     30        rt-n10-plus | \ 
    3031        rt-n15 | \ 
    3132        rt-n56u | \ 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r30645 r30808  
    2727        RAMIPS_MACH_DIR_600_B2,         /* D-Link DIR-600 B2 */ 
    2828        RAMIPS_MACH_RT_G32_B1,          /* Asus RT-G32 B1 */ 
     29        RAMIPS_MACH_RT_N10_PLUS,        /* Asus RT-N10+ */ 
    2930        RAMIPS_MACH_NW718,              /* Netcore NW718 */ 
    3031 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig

    r30645 r30808  
    2626        bool "Asus RT-G32 revB board support" 
    2727        select RALINK_DEV_GPIO_BUTTONS 
     28 
     29config RT305X_MACH_RT_N10_PLUS 
     30        bool "Asus RT-N10+ board support" 
     31        select RALINK_DEV_GPIO_BUTTONS 
     32        select RALINK_DEV_GPIO_LEDS 
    2833 
    2934config RT305X_MACH_HW550_3G 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile

    r30645 r30808  
    2626obj-$(CONFIG_RT305X_MACH_PWH2004)       += mach-pwh2004.o 
    2727obj-$(CONFIG_RT305X_MACH_RT_G32_REVB)   += mach-rt-g32-revb.o 
     28obj-$(CONFIG_RT305X_MACH_RT_N10_PLUS)   += mach-rt-n10-plus.o 
    2829obj-$(CONFIG_RT305X_MACH_SL_R7205)      += mach-sl-r7205.o 
    2930obj-$(CONFIG_RT305X_MACH_V22RW_2X2)     += mach-v22rw-2x2.o 
  • trunk/target/linux/ramips/image/Makefile

    r30710 r30808  
    204204define BuildFirmware/RTG32B1 
    205205        $(call BuildFirmware/Generic,$(1),$(2),board=$(3) $(call mkmtd/spi,$(mtdlayout_rtg32b1)),$(mtd_rtg32b1_kernel_part_size),$(mtd_rtg32b1_rootfs_part_size)) 
     206endef 
     207 
     208mtdlayout_rtn10plus=192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware) 
     209mtd_rtn10plus_kernel_part_size=917504 
     210mtd_rtn10plus_rootfs_part_size=2949120 
     211define BuildFirmware/RTN10PLUS 
     212        $(call BuildFirmware/Generic,$(1),$(2),board=$(3) $(call mkmtd/phys,$(mtdlayout_rtn10plus)),$(mtd_rtn10plus_kernel_part_size),$(mtd_rtn10plus_rootfs_part_size)) 
    206213endef 
    207214 
     
    344351endef 
    345352 
     353define Image/Build/Profile/RTN10PLUS 
     354        $(call Image/Build/Template/$(fs_squash)/$(1),RTN10PLUS,rt-n10-plus,RT-N10-PLUS) 
     355endef 
     356 
    346357define Image/Build/Profile/SLR7205 
    347358        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,sl-r7205,SL-R7205,ttyS1,57600,phys) 
     
    389400        $(call Image/Build/Profile/ESR9753,$(1)) 
    390401        $(call Image/Build/Profile/F5D8235V2,$(1)) 
     402        $(call Image/Build/Profile/RTN10PLUS,$(1)) 
    391403        $(call Image/Build/Profile/FONERA20N,$(1)) 
    392404        $(call Image/Build/Profile/HW5503G,$(1)) 
  • trunk/target/linux/ramips/rt305x/config-3.2

    r30680 r30808  
    108108CONFIG_RT305X_MACH_PWH2004=y 
    109109CONFIG_RT305X_MACH_RT_G32_REVB=y 
     110CONFIG_RT305X_MACH_RT_N10_PLUS=y 
    110111CONFIG_RT305X_MACH_SL_R7205=y 
    111112CONFIG_RT305X_MACH_V22RW_2X2=y 
Note: See TracChangeset for help on using the changeset viewer.