1*22ce4affSfengbojiang# 2*22ce4affSfengbojiang# TP Link MR3040 - an AR9331 based SoC wifi device. 3*22ce4affSfengbojiang# 4*22ce4affSfengbojiang# This is for the 32 RAM/4 flash part. There is little to no 5*22ce4affSfengbojiang# chance that this will ever boot FreeBSD directly from the 3.5MB 6*22ce4affSfengbojiang# of flash. The kernel can fit into the space, but userland is just 7*22ce4affSfengbojiang# too big even when stripped down to its limits. 8*22ce4affSfengbojiang# 9*22ce4affSfengbojiang# * AR9331 SoC 10*22ce4affSfengbojiang# * 32MB RAM 11*22ce4affSfengbojiang# * 4MB flash 12*22ce4affSfengbojiang# * Integrated 1x1 2GHz wifi and 10/100 bridge 13*22ce4affSfengbojiang# * USB powered 14*22ce4affSfengbojiang# * USB storage 15*22ce4affSfengbojiang# 16*22ce4affSfengbojiang 17*22ce4affSfengbojiang# $FreeBSD$ 18*22ce4affSfengbojiang# 19*22ce4affSfengbojiang 20*22ce4affSfengbojiang#NO_UNIVERSE 21*22ce4affSfengbojiang 22*22ce4affSfengbojiang# Include the default AR933x parameters 23*22ce4affSfengbojianginclude "std.AR933X" 24*22ce4affSfengbojiang 25*22ce4affSfengbojiangident TP-MR3040 26*22ce4affSfengbojiang 27*22ce4affSfengbojiang# Override hints with board values 28*22ce4affSfengbojianghints "TP-MR3040.hints" 29*22ce4affSfengbojiang 30*22ce4affSfengbojiang# Board memory - 32MB 31*22ce4affSfengbojiangoptions AR71XX_REALMEM=(32*1024*1024) 32*22ce4affSfengbojiang 33*22ce4affSfengbojiang# i2c GPIO bus 34*22ce4affSfengbojiangdevice gpioiic 35*22ce4affSfengbojiangdevice iicbb 36*22ce4affSfengbojiangdevice iicbus 37*22ce4affSfengbojiangdevice iic 38*22ce4affSfengbojiang 39*22ce4affSfengbojiang# Options required for miiproxy and mdiobus 40*22ce4affSfengbojiangoptions ARGE_MDIO # Export an MDIO bus separate from arge 41*22ce4affSfengbojiangdevice miiproxy # MDIO bus <-> MII PHY rendezvous 42*22ce4affSfengbojiang 43*22ce4affSfengbojiangdevice etherswitch 44*22ce4affSfengbojiangdevice arswitch 45*22ce4affSfengbojiang 46*22ce4affSfengbojiang# Enable the uboot environment stuff rather then the 47*22ce4affSfengbojiang# redboot stuff. 48*22ce4affSfengbojiangoptions AR71XX_ENV_UBOOT 49*22ce4affSfengbojiang 50*22ce4affSfengbojiang# uzip - to boot read-only lzma natively from flash 51*22ce4affSfengbojiangdevice xz 52*22ce4affSfengbojiangoptions GEOM_UZIP 53*22ce4affSfengbojiangoptions ROOTDEVNAME=\"ufs:/dev/map/rootfs.uzip\" 54*22ce4affSfengbojiang 55*22ce4affSfengbojiang# Used for the static uboot partition map 56*22ce4affSfengbojiangdevice geom_map 57*22ce4affSfengbojiang 58*22ce4affSfengbojiang# Boot off of the rootfs, as defined in the geom_map setup. 59*22ce4affSfengbojiang# Probably, this should be a USB device as the memory available 60*22ce4affSfengbojiang# compressed rootfs is simply too small for FreeBSD 61*22ce4affSfengbojiang#options ROOTDEVNAME=\"ufs:map/rootfs.uncompress\" 62*22ce4affSfengbojiang 63*22ce4affSfengbojiang# Boot off of a uboot tftp ramdisk kernel image. Because the flash 64*22ce4affSfengbojiang# on this unit is so small, this is the only way to do dev work. 65*22ce4affSfengbojiang# For full deployment, you will *have* to use a usb storage device 66*22ce4affSfengbojiang# as a rootfs and use the flash to hold the kernel only. 67*22ce4affSfengbojiang#options MD_ROOT # md device usable as a potential root device 68*22ce4affSfengbojiang#options MD_ROOT_SIZE=10240 69*22ce4affSfengbojiang#makeoptions MFS_IMAGE=/tftpboot/mfsroot-tl-mr3040.img.ulzma 70*22ce4affSfengbojiangoptions ROOTDEVNAME=\"ufs:da0\" 71