freebsd-dev/sys/mips/conf/WZR-HPAG300H
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

53 lines
1.1 KiB
Plaintext

#
# Specific board setup for the Buffalo Airstation WZR-HPAG300H
#
# The WZR-HPAG300H has the following hardware:
#
# + AR7161 CPU SoC
# + 2x AR9280 5GHz 11n
# + AR8136 Gigabit switch
# + 2 m25ll128(really w25q128) based 16MB flash
# + 128MB RAM
# + uboot environment
# $FreeBSD$
#NO_UNIVERSE
include "AR71XX_BASE"
ident "WZR-HPAG300H"
hints "WZR-HPAG300H.hints"
options AR71XX_REALMEM=128*1024*1024
options AR71XX_ENV_UBOOT
options BOOTVERBOSE
# GEOM modules
device xz
options GEOM_UZIP
device geom_map # to get access to the SPI flash partitions
options ROOTDEVNAME=\"ufs:/dev/map/rootfs.uzip\"
options AR71XX_ATH_EEPROM # Fetch EEPROM/PCI config from flash
options ATH_EEPROM_FIRMWARE # Use EEPROM from flash
device firmware # Used by the above
# 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
# hwpmc
device hwpmc_mips24k
device hwpmc
# load these via modules, shrink kernel
nodevice if_bridge
nodevice bridgestp
nodevice random