freebsd-dev/sys/mips/conf/TL-ARCHERC7V2
Konstantin Belousov e8643b01e6 Modularize xz.
Embedded lzma decompression library becomes a module usable by other
consumers, in addition to geom_uzip.

Most important code changes are
- removal of XZ_DEC_SINGLE define, we need the code to work
  with XZ_DEC_DYNALLOC;
- xz_crc32_init() call is removed from geom_uzip, xz module handles
  initialization on its own.

xz is no longer embedded into geom_uzip, instead the depend line for
the module is provided, and corresponding kernel option is added to
each MIPS kernel config file using geom_uzip.

The commit also carries unrelated cleanup by removing excess "device geom_uzip"
in places which were missed in r344479.

Reviewed by:	cem, hselasky, ray, slavash (previous versions)
Sponsored by:	Mellanox Technologies
Differential revision:	https://reviews.freebsd.org/D19266
MFC after:	3 weeks
2019-02-26 19:55:03 +00:00

71 lines
1.7 KiB
Plaintext

#
# TP-Link Archer C7 - based on the AP135 reference design.
#
# This contains a QCA9558 MIPS74k SoC with on-board 3x3 2GHz wifi,
# 128MiB RAM, an AR8327 5-port gigabit ethernet switch and
# a QCA 11ac 5GHz AP NIC.
#
# The to things not currently support are the QCA 11ac NIC and
# PCIe host controllers - there's two of them, and the existing
# PCIe code here doesn't support that just yet.
#
# $FreeBSD$
#
#NO_UNIVERSE
# Include the default QCA955x parameters
include "std.QCA955X"
ident TL-ARCHERC7V2
# Override hints with board values
hints "TL-ARCHERC7V2.hints"
# Force the board memory - this has 128MiB RAM
options AR71XX_REALMEM=(128*1024*1024)
# i2c GPIO bus
#device gpioiic
#device iicbb
#device iicbus
#device iic
# Options required for miiproxy and mdiobus
options ARGE_MDIO # Export an MDIO bus separate from arge
device miiproxy # MDIO bus <-> MII PHY rendezvous
device etherswitch
device arswitch
# read MSDOS formatted disks - USB
options MSDOSFS
# Enable the uboot environment stuff rather then the
# redboot stuff.
options AR71XX_ENV_UBOOT
# uzip - to boot natively from flash
device xz
options GEOM_UZIP
# Used for the static uboot partition map
device geom_map
# yes, this board has a PCIe connected atheros device
# add ath_pci so it can at least attach things when there's a
# ath(4) in there, rather than the 11ac chip we don't support.
device pci
device qca955x_pci
device ath_pci
options AR71XX_ATH_EEPROM
device firmware # Used by the above
options ATH_EEPROM_FIRMWARE
# Boot off of the rootfs, as defined in the geom_map setup.
options ROOTDEVNAME=\"ufs:map/rootfs.uzip\"
# Default to accept
options IPFIREWALL_DEFAULT_TO_ACCEPT