changeset 221:123b278a022f

Add Asus WL-500GP_V2
author ray@terran.dlink.ua
date Mon, 14 Nov 2011 02:13:23 +0200
parents 8ab5788e89ec
children 7ee7ba190a98
files boards/Asus/WL-500GP_V2/board.hints boards/Asus/WL-500GP_V2/board.mk
diffstat 2 files changed, 142 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/Asus/WL-500GP_V2/board.hints	Mon Nov 14 02:13:23 2011 +0200
@@ -0,0 +1,88 @@
+
+# NVRAM partition
+# Static, CFE internal
+hint.nvram.0.flags=0x05 # Broadcom + nocheck
+hint.nvram.0.base=0x1fc00400
+# Dynamic, editable form CFE, override values from first
+hint.nvram.1.flags=0x05 # Broadcom + nocheck
+hint.nvram.1.base=0x1cff8000
+
+# siba_cc0 at siba0
+
+# uart0
+hint.uart.0.at="siba_cc0"
+hint.uart.0.maddr="0x18000300"
+hint.uart.0.msize="0x8"
+hint.uart.0.flags="0x30"
+hint.uart.0.irq=0
+
+hint.uart.1.at="siba_cc0"
+hint.uart.1.maddr="0x18000400"
+hint.uart.1.msize="0x8"
+hint.uart.1.irq=0
+
+
+# gpio at siba_cc0
+
+hint.gpio.0.at="siba_cc0"
+hint.gpio.0.maddr="0x18000060"
+hint.gpio.0.msize="0x18"
+hint.gpio.0.pins="16"
+hint.gpio.0.flags="0x00"
+hint.gpio.0.irq=0
+
+## gpio
+## XXX 
+#hint.gpioreset.0.at="gpiobus0"
+#hint.gpioreset.0.pins="0x80"
+#hint.gpioreset.0.name="wps"
+##hint.gpioreset.0.flags="0x0581"
+#
+## GPIO 6 
+#hint.gpioled.0.at="gpiobus0"
+#hint.gpioled.0.pins="0x40"
+#hint.gpioled.0.name="zreset"
+#hint.gpioled.0.flags="0x0040" # pulldown
+#
+## GPIO 7
+#hint.gpioled.1.at="gpiobus0"
+#hint.gpioled.1.pins="0x80"
+#hint.gpioled.1.name="zbypass"
+#hint.gpioled.1.flags="0x0040" # pulldown
+
+hint.cfi.0.width=2
+hint.cfi.0.shift=2
+
+hint.map.0.at="cfid0"
+hint.map.0.name=cfe
+hint.map.0.start=0x00000000
+hint.map.0.end=0x00040000
+hint.map.0.readonly=1
+
+hint.map.1.at="cfid0"
+hint.map.1.name="kernel"
+hint.map.1.start=0x00040000
+hint.map.1.end="search:0x00100000:0x10000:.!/bin/sh"
+
+hint.map.2.at="cfid0"
+hint.map.2.name="rootfs"
+hint.map.2.start="search:0x00100000:0x10000:.!/bin/sh"
+hint.map.2.end=0x00fd0000
+
+hint.map.3.at="cfid0"
+hint.map.3.name="nvram"
+hint.map.3.start=0x00ff0000
+hint.map.3.end=0x01000000
+
+hint.map.4.at="cfid0"
+hint.map.4.name=upgrade
+hint.map.4.start=0x00040000
+hint.map.4.end=0x00fd0000
+
+hint.map.5.at="cfid0"
+hint.map.5.name=config
+hint.map.5.start=0x00fd0000
+hint.map.5.end=0x00ff0000
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/Asus/WL-500GP_V2/board.mk	Mon Nov 14 02:13:23 2011 +0200
@@ -0,0 +1,54 @@
+
+###################################################
+#
+# Board used hardware/chip`s
+#
+###################################################
+
+SOC_VENDOR=Broadcom
+SOC_CHIP=BCM5354
+# Maybe used for kernel config and maybe multiple e.g. "cfi nand"
+BOARD_FLASH_TYPE=cfi
+# TODO: size suffixes
+BOARD_FLASH_SIZE=8388608
+
+KERNEL_COMPRESSION=lzma.4.17
+KERNEL_COMPRESSION_TYPE=gzip
+
+###################################################
+#
+# Vars for kernel config 
+#
+###################################################
+
+# ident 
+KERNCONF_IDENT=${TARGET_VENDOR}_${TARGET_DEVICE}
+# Include usb and SoC usb controller drivers
+WITH_USB=yes
+# Builded modules
+# device wlan in kernel alredy enable this modules
+KERNCONF_MODULES_OVERRIDE+=wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt
+KERNCONF_MODULES_OVERRIDE+=usb/uplcom usb/u3g usb/umodem usb/umass usb/ucom cam zlib
+
+KERNCONF_OPTIONS+=ALT_BREAK_TO_DEBUGGER
+
+###################################################
+#
+#       Limits
+#
+###################################################
+
+
+# 3Mb max size, since CFE loaded at 0xa0300000
+KERNEL_SIZE_MAX=3145728
+# KERNEL_COMPRESSED_SIZE_MAX is unknown, limit between kernel and rootfs float 
+# (splited by HDR0 key, TRX header)
+
+MKULZMA_BLOCKSIZE=65536
+
+# Image must not be biggest than GEOM_MAP_P4 (upgrade part.)
+FIRMWARE_IMAGE_SIZE_MAX=0x007c0000
+
+TARGET_PROFILES+=SMALL_ mpd ssh hostap dhcp net_help nfs_client
+TARGET_PROFILES+=shttpd dlink.ua.web
+