1 2# arge0 is connected to the LAN side of the switch PHY. 3# arge1 is connected to the single port WAN side of the switch PHY. 4 5hint.arge.0.phymask=0x0 6hint.arge.0.media=1000 7hint.arge.0.fduplex=1 8hint.arge.0.eeprommac=0x1f66ffa0 9hint.arge.0.readascii=1 10 11hint.arge.1.phymask=0x0 12hint.arge.1.media=1000 13hint.arge.1.fduplex=1 14hint.arge.1.eeprommac=0x1f66ffb4 15hint.arge.1.readascii=1 16 17# ath0 - slot 17 18hint.pcib.0.bus.0.17.0.ath_fixup_addr=0x1f661000 19hint.pcib.0.bus.0.17.0.ath_fixup_size=4096 20 21# ath1 - slot 18 22hint.pcib.0.bus.0.18.0.ath_fixup_addr=0x1f665000 23hint.pcib.0.bus.0.18.0.ath_fixup_size=4096 24 25# .. and now, telling each ath(4) NIC where to find the firmware 26# image. 27hint.ath.0.eeprom_firmware="pcib.0.bus.0.17.0.eeprom_firmware" 28hint.ath.1.eeprom_firmware="pcib.0.bus.0.18.0.eeprom_firmware" 29 30# Geom MAP 31 32# The DIR-825B1 has an 8MB flash part - HOWEVER, the 64k caldata isn't 33# at the end of the flash. It's ~ 6MB into the flash image. 34 35# mtdparts=ar7100-nor0:256k(uboot),64k(Config),1024k(vmlinux),5184k(rootfs), 36# 64k(caldata) 37 38hint.map.0.at="flash/spi0" 39hint.map.0.start=0x00000000 40hint.map.0.end=0x000040000 41hint.map.0.name="uboot" 42hint.map.0.readonly=1 43 44# This config partition is the D-Link specific configuration area. 45# I'm re-purposing it for FreeBSD. 46hint.map.1.at="flash/spi0" 47hint.map.1.start=0x00040000 48hint.map.1.end=0x00050000 49hint.map.1.name="cfg" 50hint.map.1.readonly=0 51 52hint.map.2.at="flash/spi0" 53hint.map.2.start=0x0050000 54hint.map.2.end="search:0x00050000:0x10000:.!/bin/sh" 55hint.map.2.name="kernel" 56hint.map.2.readonly=1 57 58hint.map.3.at="flash/spi0" 59hint.map.3.start="search:0x00050000:0x10000:.!/bin/sh" 60hint.map.3.end=0x00660000 61hint.map.3.name="rootfs" 62hint.map.3.readonly=0 63 64hint.map.4.at="flash/spi0" 65hint.map.4.start=0x00660000 66hint.map.4.end=0x00670000 67hint.map.4.name="art" 68hint.map.4.readonly=1 69 70# GPIO specific configuration block 71 72# Don't flip on anything that isn't already enabled. 73# This includes leaving the SPI CS1/CS2 pins as GPIO pins as they're 74# not used here. 75hint.gpio.0.function_set=0x00000000 76 77hint.gpio.0.function_clear=0x00000000 78 79# These are the GPIO LEDs and buttons which can be software controlled. 80hint.gpio.0.pinmask=0x000009ff 81 82# Pin 1 - USB (LED blue) --> works 83# Pin 2 - Power (LED orange) --> works 84# Pin 3 - Power (LED blue) --> works 85# Pin 4 - Button (RESET) --> works 86# Pin 5 - WPS (LED blue) --> works 87# Pin 6 - RTL8366RB switch data line 88# Pin 7 - Planet (LED orange)--> works 89# Pin 8 - RTL8366RB switch clock line 90# Pin 9 - Button (WPS) --> works after set to high 91# Pin 10 - N/C 92# Pin 11 - N/C 93# Pin 12 - Planet (LED blue) --> works 94 95# LEDs are configured separately and driven by the LED device 96# usb tested good 97hint.gpioled.0.at="gpiobus0" 98hint.gpioled.0.name="usb-blue" 99hint.gpioled.0.pins=0x0001 100 101# no orange power led? 102hint.gpioled.1.at="gpiobus0" 103hint.gpioled.1.name="power-orange" 104hint.gpioled.1.pins=0x0002 105 106# blue power tested good 107hint.gpioled.2.at="gpiobus0" 108hint.gpioled.2.name="power-blue" 109hint.gpioled.2.pins=0x0004 110 111# wps tested good 112hint.gpioled.3.at="gpiobus0" 113hint.gpioled.3.name="wps-blue" 114hint.gpioled.3.pins=0x0010 115 116# orage globe tested good 117hint.gpioled.4.at="gpiobus0" 118hint.gpioled.4.name="planet-orange" 119hint.gpioled.4.pins=0x0040 120 121# no blue planet LED on this unit 122hint.gpioled.5.at="gpiobus0" 123hint.gpioled.5.name="planet-blue" 124hint.gpioled.5.pins=0x0800 125 126# GPIO I2C bus 127hint.gpioiic.0.at="gpiobus0" 128hint.gpioiic.0.pins=0x00a0 129hint.gpioiic.0.sda=0 130hint.gpioiic.0.scl=1 131 132# I2C bus 133# Don't be strict about I2C protocol - the relaxed semantics are required 134# by the realtek switch PHY. 135hint.iicbus.0.strict=0 136 137# Bit bang bus - override default delay 138#hint.iicbb.0.udelay=3 139 140