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