1a9643ea8Slogwang# $FreeBSD$ 2a9643ea8Slogwang# 3a9643ea8Slogwang# Specific board setup for the D-Link DIR-825C1 router. 4a9643ea8Slogwang# 5a9643ea8Slogwang# The DIR-825C1 has the following hardware: 6a9643ea8Slogwang# 7a9643ea8Slogwang# + AR9344 CPU SoC 74k MIPS 8a9643ea8Slogwang# + ARxxx 2.4GHz 11n 9a9643ea8Slogwang# + ARXXX 5GHz 11n 10a9643ea8Slogwang# + AR8327 Gigabit switch 11a9643ea8Slogwang# + m25p80 based 16MB flash 12a9643ea8Slogwang# + 128MB RAM 13a9643ea8Slogwang# + uboot environment 14a9643ea8Slogwang 15a9643ea8Slogwang#NO_UNIVERSE 16a9643ea8Slogwang 17a9643ea8Slogwang# Include the default AR934x parameters 18*22ce4affSfengbojianginclude "std.AR934X" 19a9643ea8Slogwangident DIR825C1 20a9643ea8Slogwang 21a9643ea8Slogwang# Override hints with board values 22a9643ea8Slogwanghints "DIR-825C1.hints" 23a9643ea8Slogwang 24a9643ea8Slogwang# Force the board memory - the base DB120 has 128MB RAM 25a9643ea8Slogwangoptions AR71XX_REALMEM=(128*1024*1024) 26a9643ea8Slogwang 27a9643ea8Slogwang# Options required for miiproxy and mdiobus 28a9643ea8Slogwangoptions ARGE_MDIO # Export an MDIO bus separate from arge 29a9643ea8Slogwangdevice miiproxy # MDIO bus <-> MII PHY rendezvous 30a9643ea8Slogwang 31a9643ea8Slogwangdevice etherswitch 32a9643ea8Slogwangdevice arswitch 33a9643ea8Slogwang 34a9643ea8Slogwang# read MSDOS formatted disks - USB 35a9643ea8Slogwangoptions MSDOSFS 36a9643ea8Slogwang 37a9643ea8Slogwang# Enable the uboot environment stuff rather then the 38a9643ea8Slogwang# redboot stuff. 39a9643ea8Slogwangoptions AR71XX_ENV_UBOOT 40a9643ea8Slogwang 41a9643ea8Slogwang# Used for the static uboot partition map 42a9643ea8Slogwangdevice geom_map 43a9643ea8Slogwang 44a9643ea8Slogwang# uzip - to boot natively from flash 45a9643ea8Slogwangoptions GEOM_UZIP 46a9643ea8Slogwangoptions GEOM_PART_GPT 47*22ce4affSfengbojiangdevice xz 48a9643ea8Slogwang 49a9643ea8Slogwang# Boot off of the rootfs, as defined in the geom_map setup. 50a9643ea8Slogwangoptions ROOTDEVNAME=\"ufs:map/rootfs.uzip\" 51a9643ea8Slogwang 52a9643ea8Slogwang# In order to netboot, you have to build the mfsroot into the kernel 53a9643ea8Slogwang# 19443712 or 19M is the biggest rootfs via netboot this thing supports 54a9643ea8Slogwang#options MD_ROOT # md device usable as a potential root device 55a9643ea8Slogwang#options MD_ROOT_SIZE=19444 56a9643ea8Slogwang#makeoptions MFS_IMAGE=/tftpboot/mfsroot-dir825c1.img.ulzma 57a9643ea8Slogwang#options ROOTDEVNAME=\"ufs:md0.uzip\" 58