21c252ea7f
802.11n router. The flash layout defaults to a 1 MiB section for the kernel so I'm trying very hard to squeeze a minimialistic (LZMA compressde) kernel image into that. I've verified that it boots through to single user mode fine. Issues: * USB doesn't yet work as a module - I need to add something else to the USB AR71xx build before that will work. * There's no switch PHY support - but for now it quite happily behaves as a useful dumb switch out of the box. Phew. * Since a previous flash attempt trashed my radio configuration block, I haven't yet verified whether the wireless works correctly. I'll test that out shortly (read: once I re-calibrate the board somehow.) Thanks to ray@ and the zrouter project for doing some of the initial hard work in figuring out how to bring this board up.
69 lines
1.4 KiB
Plaintext
69 lines
1.4 KiB
Plaintext
#
|
|
# Specific board setup for the D-Link DIR-825 router.
|
|
#
|
|
# The DIR-825 has the following hardware:
|
|
#
|
|
# + AR7161 CPU SoC
|
|
# + AR9223 2.4GHz 11n
|
|
# + AR9220 5GHz 11n
|
|
# + RealTek RTL8366S Gigabit switch
|
|
# + m25p64 based 8MB flash
|
|
# + 64MB RAM
|
|
# + uboot environment
|
|
|
|
# $FreeBSD$
|
|
|
|
include "AR71XX_BASE"
|
|
ident "DIR-825"
|
|
hints "DIR-825.hints"
|
|
|
|
# Since the kernel image must fit inside 1024KiB, we have to build almost
|
|
# everything as modules.
|
|
nodevice random
|
|
nodevice gpio
|
|
nodevice gpioled
|
|
nodevice gif
|
|
nodevice gre
|
|
nodevice bridge
|
|
nodevice usb
|
|
nodevice ehci
|
|
nodevice wlan
|
|
nodevice wlan_xauth
|
|
nodevice wlan_acl
|
|
nodevice wlan_wep
|
|
nodevice wlan_tkip
|
|
nodevice wlan_ccmp
|
|
nodevice wlan_rssadapt
|
|
nodevice wlan_amrr
|
|
nodevice ath
|
|
nodevice ath_pci
|
|
nodevice ath_hal
|
|
nodevice umass
|
|
nodevice ath_rate_sample
|
|
|
|
nooptions INET6
|
|
|
|
# Don't include the SCSI/CAM strings in the default build
|
|
options SCSI_NO_SENSE_STRINGS
|
|
options SCSI_NO_OP_STRINGS
|
|
|
|
# .. And no sysctl strings
|
|
options NO_SYSCTL_DESCR
|
|
|
|
# GEOM modules
|
|
device geom_map # to get access to the SPI flash partitions
|
|
device geom_uncompress # compressed in-memory filesystem hackery!
|
|
options GEOM_UNCOMPRESS
|
|
|
|
options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\"
|
|
options AR71XX_REALMEM=64*1024*1024
|
|
|
|
options AR71XX_ENV_UBOOT
|
|
|
|
# options MD_ROOT
|
|
# options MD_ROOT_SIZE="6144"
|
|
|
|
options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash
|
|
options ATH_EEPROM_FIRMWARE # Use EEPROM from flash
|
|
device firmware # Used by the above
|