[Zrouter-src] ZRouter.org: push to ZRouter boards/D-Link/DSR-1000N/README boar...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Fri Dec 2 19:37:21 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/16d7c7f1f4d2
changeset: 242:16d7c7f1f4d2
user:      ray at terran.dlink.ua
date:      Fri Dec 02 21:37:53 2011 +0200
description:
Define D-Link DSR-1000N board

diffstat:

 boards/D-Link/DSR-1000N/board.hints |  54 ++++++++++++++++++++
 boards/D-Link/DSR-1000N/board.mk    |  97 +++++++++++++++++++++++++++++++++++++
 2 files changed, 151 insertions(+), 0 deletions(-)

diffs (159 lines):

diff -r c61cd3bdccd7 -r 16d7c7f1f4d2 boards/D-Link/DSR-1000N/board.hints
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-1000N/board.hints	Fri Dec 02 21:37:53 2011 +0200
@@ -0,0 +1,54 @@
+# $FreeBSD$
+# device.hints
+
+hint.switch.0.iface="octe0"
+hint.switch.0.driver="bcm5325_switch"
+hint.switch.1.iface="octe1"
+hint.switch.1.driver="bcm5325_switch"
+hint.switch.2.iface="octe2"
+hint.switch.2.driver="bcm5325_switch"
+
+
+#phys_mapped_flash:
+#640k(bootloader)ro,
+#9M(kernel),
+#20M(rootfs),
+#2M(AppConfig),
+#128k(bootload-env)
+
+hint.map.0.at="cfid0"
+hint.map.0.start=0x00000000
+hint.map.0.end=0x000a0000
+hint.map.0.name="bootloader"
+hint.map.0.readonly=1
+
+hint.map.1.at="cfid0"
+hint.map.1.start=0x000a0000
+hint.map.1.end=0x009a0000
+hint.map.1.name="kernel"
+
+hint.map.2.at="cfid0"
+hint.map.2.start=0x009a0000
+hint.map.2.end=0x01da0000
+hint.map.2.name="rootfs"
+
+hint.map.3.at="cfid0"
+hint.map.3.start=0x01da0000
+hint.map.3.end=0x01fa0000
+hint.map.3.name="config"
+
+hint.map.4.at="cfid0"
+hint.map.4.start=0x01fa0000
+hint.map.4.end=0x01fc0000
+hint.map.4.name="bootloader-env"
+
+hint.map.5.at="cfid0"
+hint.map.5.start=0x01fc0000
+hint.map.5.end=0x02000000
+hint.map.5.name="XXX"
+
+hint.map.6.at="cfid0"
+hint.map.6.start=0x000a0000
+hint.map.6.end=0x01da0000
+hint.map.6.name="upgrade"
+
diff -r c61cd3bdccd7 -r 16d7c7f1f4d2 boards/D-Link/DSR-1000N/board.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-1000N/board.mk	Fri Dec 02 21:37:53 2011 +0200
@@ -0,0 +1,97 @@
+
+###################################################
+#
+# Board used hardware/chip`s
+#
+###################################################
+
+SOC_VENDOR=Cavium
+SOC_CHIP=CN5010
+# Maybe used for kernel config and maybe multiple e.g. "cfi nand"
+BOARD_FLASH_TYPE=cfi
+# TODO: size suffixes
+BOARD_FLASH_SIZE=33554432
+
+#?????KERNEL_COMPRESSION=lzma.4.17
+
+###################################################
+#
+# Vars for kernel config 
+#
+###################################################
+KERNCONF_OPTIONS+=	OCTEON_VENDOR_D_LINK
+KERNCONF_OPTIONS+=	OCTEON_BOARD_DSR_1000N
+
+KERNCONF_DEVICES+=	switch
+KERNCONF_DEVICES+=	switch_bcm5325
+
+# ident 
+KERNCONF_IDENT=${TARGET_VENDOR}_${TARGET_DEVICE}
+# Include usb and SoC usb controller drivers
+WITH_USB=yes
+WITH_IPSEC=yes
+# Builded modules
+KERNCONF_MODULES_OVERRIDE+=ipfw usb/umass usb/uplcom usb/u3g dummynet
+
+.if !defined(WITHOUT_WIRELESS)
+KERNCONF_MODULES_OVERRIDE+=wlan_xauth wlan_wep wlan_tkip wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt
+KERNCONF_OPTIONS+=	IEEE80211_DEBUG
+KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_MESH
+KERNCONF_OPTIONS+=	IEEE80211_SUPPORT_TDMA
+KERNCONF_DEVICES+=	wlan
+KERNCONF_DEVICES+=	wlan_amrr
+KERNCONF_DEVICES+=	wlan_wep
+KERNCONF_DEVICES+=	wlan_ccmp
+KERNCONF_DEVICES+=	wlan_tkip
+
+KERNCONF_OPTIONS+=	AH_DEBUG
+KERNCONF_OPTIONS+=	ATH_DEBUG
+KERNCONF_OPTIONS+=	ATH_DIAGAPI
+KERNCONF_OPTIONS+=	ATH_ENABLE_11N
+KERNCONF_OPTIONS+=	AH_SUPPORT_AR5416
+#KERNCONF_OPTIONS+=	AH_SUPPORT_AR9130
+KERNCONF_OPTIONS+=	AH_RXCFG_SDMAMW_4BYTES
+# interrupt mitigation not possible on AR9130
+# option		AH_AR5416_INTERRUPT_MITIGATION
+KERNCONF_DEVICES+=	ath
+KERNCONF_DEVICES+=	ath_hal
+KERNCONF_DEVICES+=	ath_pci
+KERNCONF_DEVICES+=	ath_rate_sample
+.endif
+
+
+
+# Additional utilities ????
+WORLD_SUBDIRS_ZROUTER+=target/sbin/upgrade
+
+###################################################
+#
+#       Limits
+#
+###################################################
+
+
+# Image must not be biggest than GEOM_MAP_P2 (upgrade part.)
+#????## FIRMWARE_IMAGE_SIZE_MAX=0x003a0000
+
+###################################################
+#
+#       Firmware Image Options
+#
+###################################################
+
+TARGET_PROFILES+=SMALL_ mpd ssh dlink.ua.web dhcp mroute ntpdate dnsmasq racoon openvpn ppp hostap ath nfs_client
+
+KERNEL_COMPRESSION=oldlzma
+KERNEL_COMPRESSION_TYPE=oldlzma
+UBOOT_KERNEL_COMPRESSION_TYPE=lzma
+
+MKULZMA_BLOCKSIZE=65536
+
+PACKING_KERNEL_IMAGE?=kernel.oldlzma.uboot
+PACKING_ROOTFS_IMAGE?=rootfs.iso.ulzma
+
+# 64k
+PACKING_KERNEL_ROUND?=0x10000
+
+


More information about the Zrouter-src mailing list