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

zrouter-src at zrouter.org zrouter-src at zrouter.org
Fri Dec 2 19:29:33 UTC 2011


details:   http://zrouter.org/hg/zrouter//rev/fd30b34b3266
changeset: 240:fd30b34b3266
user:      ray at terran.dlink.ua
date:      Fri Dec 02 21:30:05 2011 +0200
description:
Define D-Link DSR-500 board

diffstat:

 boards/D-Link/DSR-500/board.hints |  54 ++++++++++++++++++++++++++++++
 boards/D-Link/DSR-500/board.mk    |  69 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 123 insertions(+), 0 deletions(-)

diffs (131 lines):

diff -r 417ea08a9aeb -r fd30b34b3266 boards/D-Link/DSR-500/board.hints
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-500/board.hints	Fri Dec 02 21:30:05 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 417ea08a9aeb -r fd30b34b3266 boards/D-Link/DSR-500/board.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/boards/D-Link/DSR-500/board.mk	Fri Dec 02 21:30:05 2011 +0200
@@ -0,0 +1,69 @@
+
+###################################################
+#
+# 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
+
+# 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