Skip to content
Andreas Ziegler edited this page Jun 5, 2018 · 22 revisions

For basic USB support you need to add these packages:

GLUON_SITE_PACKAGES := \
    ...
    kmod-usb-core \
    kmod-usb2 \

If you want to be able to mount Fat32-USB-devices, you need these additional packages:

    block-mount \
    kmod-fs-ext4 \
    kmod-fs-vfat \
    kmod-usb-storage  \
    kmod-usb-storage-extras  \
    blkid  \
    swap-utils  \
    kmod-nls-cp1250  \
    kmod-nls-cp1251  \
    kmod-nls-cp437  \
    kmod-nls-cp775  \
    kmod-nls-cp850  \
    kmod-nls-cp852  \
    kmod-nls-cp866  \
    kmod-nls-iso8859-1  \
    kmod-nls-iso8859-13  \
    kmod-nls-iso8859-15  \
    kmod-nls-iso8859-2  \
    kmod-nls-koi8r  \
    kmod-nls-utf8

( maybe also add usbutils - untested)

Example by Model

Use GLUON_$(PROFILE)_SITE_PACKAGES for each model, where $(PROFILE) is the model you get from profiles.mk

To enable simple USB support for only some models with at least 8MB Flash add these lines in your site.mk:

#ar71xx-generic
GLUON_TLWR842_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_TLWR1043_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_TLWR2543_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_TLWDR4300_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_WNDR3700_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_WRT160NL_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_DIR825B1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_DIR505A1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_GLINET_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_WZRHPG450H_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_WZRHPAG300H_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_ARCHERC7_SITE_PACKAGES := kmod-usb-core kmod-usb2
#GLUON_TLWR710_SITE_PACKAGES := kmod-usb-core kmod-usb2 # better not, there are some models with only 4MB

#mpc85xx-generic
GLUON_TLWDR4900_SITE_PACKAGES := mod-usb-core kmod-usb2

Since Gluon 2017.1.x you need another syntax to add those packages only for certain models:

#ar71xx-generic
GLUON_tp-link-tl-wr842n-nd-v3_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-tl-wr1043n-nd-v2_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-tl-wr1043n-nd-v3_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-tl-wr1043n-nd-v4_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-tl-wdr4300-v1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-tl-wr2543n-nd-v1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_linksys-wrt160nl_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_d-link-dir-825-rev-b1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_d-link-dir-505-rev-a1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_d-link-dir-505-rev-a2_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_gl-inet-6408a-v1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_gl-inet-6416a-v1_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_netgear-wndr3700_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_netgear-wndr3700v2_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_netgear-wndr3700v4_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_buffalo-wzr-hp-g450h_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_buffalo-wzr-hp-g300nh_SITE_PACKAGES := kmod-usb-core kmod-usb2
GLUON_tp-link-archer-c7-v2_SITE_PACKAGES := kmod-usb-core kmod-usb2

#mpc85xx-generic
GLUON_tp-link-tl-wdr4900-v1_SITE_PACKAGES := kmod-usb-core kmod-usb2

(use the target names of https://github.com/freifunk-gluon/gluon/blob/master/targets/ar71xx-generic#L163)

Example by Target:

ifeq ($(GLUON_TARGET),x86-generic)
# support the usb stack on x86 devices
# and add a few common USB NICs
GLUON_SITE_PACKAGES += \
	kmod-usb-core \
	kmod-usb2 \
	kmod-usb-hid \
	kmod-usb-net \
	kmod-usb-net-asix \
	kmod-usb-net-dm9601-ether
endif

Example site.mk

This is a non-exhaustive list of site-repos from communities with a site.mk with USB support:

Clone this wiki locally