Changeset 30809


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

ramips: add support for unbranded XDX-RN502J board

This patch adds support for routers using a PCB marked XDX-RN502J
V2.0, such as some unbranded routers like this:

http://www.mediafire.com/?8acv87h6snn9fj6
http://www.mediafire.com/?do7xonw7scor4kn
http://www.mediafire.com/?1ad49zvx3e7jyix
http://www.mediafire.com/?i46cqiq66maa197

http://www.aliexpress.com/product-fm/516397994-Free-Shipping-300M-3G-WAN-Wireless-N-WiFi-USB-AP-Router-2-Antennas-wholesalers.html

some reports also state the Aceex 22Y uses the same board.

more information can be found in the following openwrt forum post
https://forum.openwrt.org/viewtopic.php?id=34878

[juhosg: fix checkpatch warnings, use the GENERIC_4M template]

Signed-off-by: bruno schwander <bruno@…>

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

Legend:

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

    r30808 r30809  
    100100                status_led="wr512:green:wps" 
    101101                ;; 
     102        xdxrn502j) 
     103                status_led="xdxrn502j:green:power" 
     104                ;; 
    102105        esac 
    103106} 
  • trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom

    r30808 r30809  
    7171        wli-tx4-ag300n | \ 
    7272        wr512-3gn | \ 
    73         wr6202) 
     73        wr6202 | \ 
     74        xdxrn502j) 
    7475                rt2x00_eeprom_extract "factory" 0 272 
    7576                ;; 
  • trunk/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

    r30808 r30809  
    2929        omni-emb |\ 
    3030        w502u    |\ 
    31         wr6202) 
     31        wr6202 |\ 
     32        xdxrn502j) 
    3233                mac=$(ramips_get_mac_binary factory 40) 
    3334                ifconfig eth0 hw ether $mac 2>/dev/null 
  • trunk/target/linux/ramips/base-files/lib/ramips.sh

    r30808 r30809  
    144144                name="wr6202" 
    145145                ;; 
     146        *"XDX RN502J") 
     147                name="xdxrn502j" 
     148                ;; 
    146149        *) 
    147150                name="generic" 
  • trunk/target/linux/ramips/files/arch/mips/include/asm/mach-ralink/machine.h

    r30808 r30809  
    5050        RAMIPS_MACH_WR512_3GN,          /* SH-WR512NU/WS-WR512N1-like 3GN*/ 
    5151        RAMIPS_MACH_WR6202,             /* Accton WR6202 */ 
     52        RAMIPS_MACH_XDXRN502J,          /* unknown XDX-RN502J */ 
    5253 
    5354        /* RT3662 based machines */ 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Kconfig

    r30808 r30809  
    122122        select RALINK_DEV_GPIO_LEDS 
    123123 
     124config RT305X_MACH_XDX_RN502J 
     125        bool "Unknown board XDX-RN502J" 
     126        select RALINK_DEV_GPIO_BUTTONS 
     127        select RALINK_DEV_GPIO_LEDS 
     128 
    124129endmenu 
    125130 
  • trunk/target/linux/ramips/files/arch/mips/ralink/rt305x/Makefile

    r30808 r30809  
    3636obj-$(CONFIG_RT305X_MACH_WL351)         += mach-wl351.o 
    3737obj-$(CONFIG_RT305X_MACH_WR6202)        += mach-wr6202.o 
     38obj-$(CONFIG_RT305X_MACH_XDX_RN502J)    += mach-xdx-rn502j.o 
  • trunk/target/linux/ramips/image/Makefile

    r30808 r30809  
    390390define Image/Build/Profile/WR6202 
    391391        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_8M,wr6202,WR6202,ttyS1,115200,phys) 
     392endef 
     393 
     394define Image/Build/Profile/XDXRN502J 
     395        $(call Image/Build/Template/$(fs_squash)/$(1),GENERIC_4M,xdxrn502j,XDXRN502J,ttyS1,57600,phys) 
    392396endef 
    393397 
     
    418422        $(call Image/Build/Profile/WR5123GN,$(1)) 
    419423        $(call Image/Build/Profile/WR6202,$(1)) 
     424        $(call Image/Build/Profile/XDXRN502J,$(1)) 
    420425endef 
    421426endif 
  • trunk/target/linux/ramips/rt305x/config-3.2

    r30808 r30809  
    118118CONFIG_RT305X_MACH_WR512_3GN=y 
    119119CONFIG_RT305X_MACH_WR6202=y 
     120CONFIG_RT305X_MACH_XDX_RN502J=y 
    120121# CONFIG_SCSI_DMA is not set 
    121122CONFIG_SERIAL_8250_NR_UARTS=4 
Note: See TracChangeset for help on using the changeset viewer.