PC Engines APU2 GPIO


#1

I have been dying to use the GPIO available on the PC Engines APU2 boards I have here but cannot figure out how to get the NCT5104D to come up to even start to playing with the GPIO.

Here are a couple raw outputs one might find handy to diagnose the problem. I should have all the supporting kernel mods installed (and the kitchen sink) but it appears as if the two I am looking for have not loaded...

Thoughts, suggestions, commentary?

uname

dmesg

[    0.000000] Linux version 4.14.54 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Mon Jul 30 16:25:17 2018
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=bd28a83b-02 rootfstype=ext4 rootwait console=tty0 console=ttyS0,115200n8 noinitrd
....
[    8.511129] urandom_read: 3 callbacks suppressed
[    8.511133] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.554262] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.561002] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.568150] procd: - init -
[    8.642174] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.655833] ccp 0000:00:08.0: 5 command queues available
[    8.662524] ccp 0000:00:08.0: ccp enabled
[    8.666676] ccp 0000:00:08.0: enabled
[   11.032801] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   11.039887] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   11.314352] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[   11.321380] igb: Copyright (c) 2007-2014 Intel Corporation.
[   11.559221] pps pps0: new PPS source ptp0
[   11.563404] igb 0000:01:00.0: added PHC on eth0
[   11.568153] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[   11.575536] igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:4c:e8:40
[   11.582973] igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF
[   11.588367] igb 0000:01:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[   11.828778] pps pps1: new PPS source ptp1
[   11.832862] igb 0000:02:00.0: added PHC on eth1
[   11.837424] igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
[   11.844568] igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:4c:e8:41
[   11.852082] igb 0000:02:00.0: eth1: PBA No: FFFFFF-0FF
[   11.857484] igb 0000:02:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[   12.096865] pps pps2: new PPS source ptp2
[   12.101165] igb 0000:03:00.0: added PHC on eth2
[   12.105994] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[   12.113296] igb 0000:03:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:4c:e8:42
[   12.120963] igb 0000:03:00.0: eth2: PBA No: FFFFFF-0FF
[   12.126475] igb 0000:03:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[   12.366867] pps pps3: new PPS source ptp3
[   12.370969] igb 0000:04:00.0: added PHC on eth3
[   12.375523] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[   12.382618] igb 0000:04:00.0: eth3: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:4c:e8:43
[   12.390358] igb 0000:04:00.0: eth3: PBA No: FFFFFF-0FF
[   12.395802] igb 0000:04:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[   13.021013] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.110927] Netfilter messages via NETLINK v0.30.
[   15.191684] ip_set: protocol 6
[   21.521860] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   21.529894] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   22.304964] batman_adv: B.A.T.M.A.N. advanced 2018.1 (compatibility version 15) loaded
[   22.881491] input: PC Speaker as /devices/platform/pcspkr/input/input2
[   23.180748] i2c /dev entries driver
[   23.930782] piix4_smbus 0000:00:14.0: SMBus base address index region 0xcd6 already in use!
[   23.939167] piix4_smbus: probe of 0000:00:14.0 failed with error -16
[   24.307743] usbcore: registered new interface driver cdc_acm
[   24.313465] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   24.322389] usbcore: registered new interface driver cdc_wdm
[   24.331293] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[   24.337329] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[   24.451680] ip_tables: (C) 2000-2006 Netfilter Core Team
[   24.799463] kvm: Nested Virtualization enabled
[   24.804122] kvm: Nested Paging enabled
[   24.924465] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   25.137854] usbcore: registered new interface driver ums-alauda
[   25.144603] usbcore: registered new interface driver ums-cypress
[   25.151199] usbcore: registered new interface driver ums-datafab
[   25.157917] usbcore: registered new interface driver ums-freecom
[   25.164714] usbcore: registered new interface driver ums-isd200
[   25.171492] usbcore: registered new interface driver ums-jumpshot
[   25.178289] usbcore: registered new interface driver ums-karma
[   25.184942] usbcore: registered new interface driver ums-sddr09
[   25.191747] usbcore: registered new interface driver ums-sddr55
[   25.198361] usbcore: registered new interface driver ums-usbat
[   25.206704] usbcore: registered new device driver usbip-host
[   25.217663] usbcore: registered new interface driver usbserial
[   25.223727] usbcore: registered new interface driver usbserial_generic
[   25.230501] usbserial: USB Serial support registered for generic
[   25.237584] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[   25.243717] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 4
[   25.251277] vhci_hcd: created sysfs vhci_hcd.0
[   25.256552] hub 4-0:1.0: USB hub found
[   25.260629] hub 4-0:1.0: 8 ports detected
[   25.265945] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[   25.271950] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 5
[   25.279457] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[   25.288670] hub 5-0:1.0: USB hub found
[   25.292749] hub 5-0:1.0: 8 ports detected
[   25.305299] wireguard: WireGuard 0.0.20180718 loaded. See www.wireguard.com for information.
[   25.314244] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   25.339754] xt_time: kernel timezone is -0000
[   25.360887] usbcore: registered new interface driver ftdi_sio
[   25.366912] usbserial: USB Serial support registered for FTDI USB Serial Device
[   25.763783] PPP generic driver version 2.4.2
[   25.769131] NET: Registered protocol family 24
[   25.775554] qmi_wwan 1-1.4:1.5: cdc-wdm0: USB WDM device
[   25.782306] qmi_wwan 1-1.4:1.5 wwan0: register 'qmi_wwan' at usb-0000:00:13.0-1.4, WWAN/QMI device, 5a:6f:51:4a:c4:1f
[   25.793675] usbcore: registered new interface driver qmi_wwan
[   25.800605] usbcore: registered new interface driver usb_serial_simple
[   25.807489] usbserial: USB Serial support registered for carelink
[   25.813981] usbserial: USB Serial support registered for zio
[   25.820023] usbserial: USB Serial support registered for funsoft
[   25.826466] usbserial: USB Serial support registered for flashloader
[   25.833295] usbserial: USB Serial support registered for google
[   25.839585] usbserial: USB Serial support registered for libtransistor
[   25.846420] usbserial: USB Serial support registered for vivopay
[   25.852761] usbserial: USB Serial support registered for moto_modem
[   25.859282] usbserial: USB Serial support registered for motorola_tetra
[   25.866232] usbserial: USB Serial support registered for novatel_gps
[   25.872952] usbserial: USB Serial support registered for hp4x
[   25.879183] usbserial: USB Serial support registered for suunto
[   25.885685] usbserial: USB Serial support registered for siemens_mpi
[   26.112603] usbcore: registered new interface driver qcserial
[   26.118469] usbserial: USB Serial support registered for Qualcomm USB modem
[   26.350266] kmodloader: 2 modules could not be probed
[   26.355392] kmodloader: - gpio-nct5104d - 0
[   26.359656] kmodloader: - leds-apu2 - 0
[   29.864780] 8021q: adding VLAN 0 to HW filter on device eth0
[   29.871722] br-lan: port 1(eth0) entered blocking state
[   29.877186] br-lan: port 1(eth0) entered disabled state
[   29.883139] device eth0 entered promiscuous mode
[   29.889782] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   29.931863] 8021q: adding VLAN 0 to HW filter on device eth1
[   29.938836] br-lan: port 2(eth1) entered blocking state
[   29.944493] br-lan: port 2(eth1) entered disabled state
[   29.950548] device eth1 entered promiscuous mode
[   29.985638] 8021q: adding VLAN 0 to HW filter on device eth2
[   29.992560] br-lan: port 3(eth2) entered blocking state
[   29.998191] br-lan: port 3(eth2) entered disabled state
[   30.004253] device eth2 entered promiscuous mode
[   30.041727] 8021q: adding VLAN 0 to HW filter on device eth3
[   30.048531] br-wan: port 1(eth3) entered blocking state
[   30.054173] br-wan: port 1(eth3) entered disabled state
[   30.060144] device eth3 entered promiscuous mode
[   30.066623] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
[   32.900665] igb 0000:02:00.0 eth1: igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[   33.030321] br-lan: port 2(eth1) entered blocking state
[   33.035580] br-lan: port 2(eth1) entered forwarding state
[   33.041484] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   33.100560] igb 0000:04:00.0 eth3: igb: eth3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[   33.109946] br-wan: port 1(eth3) entered blocking state
[   33.115217] br-wan: port 1(eth3) entered forwarding state
[   33.121077] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[   66.941326] random: crng init done
[   66.944771] random: 1 urandom warning(s) missed due to ratelimiting
[15827.934761] kmodloader: loading kernel modules from /etc/modules.d/*
[15828.400186] usbcore: registered new interface driver option
[15828.405894] usbserial: USB Serial support registered for GSM modem (1-port)
[15828.413332] option 1-1.4:1.0: GSM modem (1-port) converter detected
[15828.420083] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
[15828.427420] option 1-1.4:1.1: GSM modem (1-port) converter detected
[15828.434062] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
[15828.441420] option 1-1.4:1.2: GSM modem (1-port) converter detected
[15828.448251] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
[15828.455780] option 1-1.4:1.3: GSM modem (1-port) converter detected
[15828.462641] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3
[15828.470431] option 1-1.4:1.4: GSM modem (1-port) converter detected
[15828.477228] usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB4
[15828.669249] kmodloader: 2 modules could not be probed
[15828.674669] kmodloader: - gpio-nct5104d - 0
[15828.679397] kmodloader: - leds-apu2 - 0
[855574.222880] conntrack: generic helper won't handle protocol 47. Please consider loading the specific helper module.

opkg list-installed

acme - 2.7.8-3
acme-dnsapi - 2.7.8-3
alfred - 2018.1-0
amd64-microcode - 20180524-1
ar - 2.27-1
ath10k-firmware-qca99x0 - 2018-04-19-71e50312-1
attendedsysupgrade-common - 0.1-2
avrdude - 6.3-2
base-files - 192-r7188-b0b5c64c22
batctl - 2018.1-0
beep - 1.3-1
binutils - 2.27-1
busybox - 1.28.3-4
ca-bundle - 20180409-2
cgi-io - 5
coreutils - 8.23-3
coreutils-nohup - 8.23-3
coreutils-stty - 8.23-3
coreutils-timeout - 8.23-3
curl - 7.60.0-3
ddns-scripts - 2.7.8-1
dmidecode - 3.1-1
dnsmasq - 2.80test3-1
dropbear - 2017.75-5
e2fsprogs - 1.44.1-1
etherwake - 1.09-4
firewall - 2018-07-26-aa8846bb-1
flashrom - 1.0-1
fstools - 2018-04-16-e2436836-1
fwtool - 1
gcc - 5.4.0-3
gpsd - 3.17-1
gpsd-clients - 3.17-1
hostapd-common - 2018-04-09-fa617ee6-5
htop - 2.2.0-1
i2c-tools - 3.1.2-1
ip-tiny - 4.16.0-4
ip6tables - 1.6.2-1
iperf - 2.0.12-1
ipset - 6.34-1
iptables - 1.6.2-1
iptables-mod-conntrack-extra - 1.6.2-1
iptables-mod-ipopt - 1.6.2-1
iw - 4.14-1
jq - 1.5-2
jshn - 2018-07-25-c83a84af-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.54-1-67b897e79861d89c01af0fcee8f0f7e6
kmod-ath - 4.14.54+2017-11-01-9
kmod-ath10k - 4.14.54+2017-11-01-9
kmod-batman-adv - 4.14.54+2018.1-2
kmod-button-hotplug - 4.14.54-3
kmod-cfg80211 - 4.14.54+2017-11-01-9
kmod-crypto-aead - 4.14.54-1
kmod-crypto-authenc - 4.14.54-1
kmod-crypto-crc32c - 4.14.54-1
kmod-crypto-hash - 4.14.54-1
kmod-crypto-hw-ccp - 4.14.54-1
kmod-crypto-manager - 4.14.54-1
kmod-crypto-null - 4.14.54-1
kmod-crypto-pcompress - 4.14.54-1
kmod-crypto-rsa - 4.14.54-1
kmod-crypto-sha1 - 4.14.54-1
kmod-crypto-sha256 - 4.14.54-1
kmod-e1000 - 4.14.54-1
kmod-e1000e - 4.14.54-1
kmod-gpio-button-hotplug - 4.14.54-2
kmod-gpio-dev - 4.14.54-1
kmod-gpio-nct5104d - 4.14.54-1
kmod-hwmon-core - 4.14.54-1
kmod-i2c-algo-bit - 4.14.54-1
kmod-i2c-core - 4.14.54-1
kmod-i2c-gpio - 4.14.54-1
kmod-i2c-piix4 - 4.14.54-1
kmod-igb - 4.14.54-1
kmod-input-core - 4.14.54-1
kmod-ip6tables - 4.14.54-1
kmod-ipt-conntrack - 4.14.54-1
kmod-ipt-conntrack-extra - 4.14.54-1
kmod-ipt-core - 4.14.54-1
kmod-ipt-ipopt - 4.14.54-1
kmod-ipt-ipset - 4.14.54-1
kmod-ipt-nat - 4.14.54-1
kmod-ipt-offload - 4.14.54-1
kmod-irqbypass - 4.14.54-1
kmod-kvm-amd - 4.14.54-1
kmod-kvm-x86 - 4.14.54-1
kmod-leds-apu2 - 4.14.54-1
kmod-leds-gpio - 4.14.54-1
kmod-lib-crc-ccitt - 4.14.54-1
kmod-lib-crc16 - 4.14.54-1
kmod-lib-crc32c - 4.14.54-1
kmod-mac80211 - 4.14.54+2017-11-01-9
kmod-mii - 4.14.54-1
kmod-mmc - 4.14.54-1
kmod-nf-conntrack - 4.14.54-1
kmod-nf-conntrack6 - 4.14.54-1
kmod-nf-flow - 4.14.54-1
kmod-nf-ipt - 4.14.54-1
kmod-nf-ipt6 - 4.14.54-1
kmod-nf-nat - 4.14.54-1
kmod-nf-reject - 4.14.54-1
kmod-nf-reject6 - 4.14.54-1
kmod-nfnetlink - 4.14.54-1
kmod-nls-base - 4.14.54-1
kmod-pcspkr - 4.14.54-1
kmod-ppp - 4.14.54-1
kmod-pppoe - 4.14.54-1
kmod-pppox - 4.14.54-1
kmod-pps - 4.14.54-1
kmod-ptp - 4.14.54-1
kmod-r8169 - 4.14.54-1
kmod-random-core - 4.14.54-1
kmod-scsi-core - 4.14.54-1
kmod-sdhci - 4.14.54-1
kmod-slhc - 4.14.54-1
kmod-sound-core - 4.14.54-1
kmod-sp5100_tco - 4.14.54-1
kmod-udptunnel4 - 4.14.54-1
kmod-udptunnel6 - 4.14.54-1
kmod-usb-acm - 4.14.54-1
kmod-usb-core - 4.14.54-1
kmod-usb-net - 4.14.54-1
kmod-usb-net-qmi-wwan - 4.14.54-1
kmod-usb-ohci - 4.14.54-1
kmod-usb-serial - 4.14.54-1
kmod-usb-serial-ftdi - 4.14.54-1
kmod-usb-serial-option - 4.14.54-1
kmod-usb-serial-qualcomm - 4.14.54-1
kmod-usb-serial-simple - 4.14.54-1
kmod-usb-serial-wwan - 4.14.54-1
kmod-usb-storage - 4.14.54-1
kmod-usb-storage-extras - 4.14.54-1
kmod-usb-uhci - 4.14.54-1
kmod-usb-wdm - 4.14.54-1
kmod-usb3 - 4.14.54-1
kmod-usbip - 4.14.54-1
kmod-usbip-client - 4.14.54-1
kmod-usbip-server - 4.14.54-1
kmod-wireguard - 4.14.54+0.0.20180718-2
libatomic - 7.3.0-1
libbfd - 2.27-1
libblkid - 2.32-2
libblobmsg-json - 2018-07-25-c83a84af-1
libc - 1.1.19-1
libcap - 2.25-2
libcares - 1.14.0-1
libcomerr - 1.44.1-1
libcurl - 7.60.0-3
libelf1 - 0.169-1
libevdev - 1.5.6-1
libext2fs - 1.44.1-1
libf2fs - 1.10.0-1
libftdi1 - 1.4-1
libgcc - 7.3.0-1
libip4tc - 1.6.2-1
libip6tc - 1.6.2-1
libipset - 6.34-1
libiwinfo - 2018-07-24-94b1366d-1
libiwinfo-lua - 2018-07-24-94b1366d-1
libjson-c - 0.12.1-1
libjson-script - 2018-07-25-c83a84af-1
libkmod - 20-1
libltdl - 2.4.6-1
liblua - 5.1.5-1
liblucihttp - 2018-05-18-cb119ded-1
liblucihttp-lua - 2018-05-18-cb119ded-1
libmbedtls - 2.12.0-1
libmnl - 1.0.4-1
libmosquitto-ssl - 1.5.5-1
libncurses - 6.1-1
libnl-tiny - 0.1-5
libopcodes - 2.27-1
libopenssl - 1.0.2o-1
libpcap - 1.8.1-1
libpcre - 8.41-2
libpthread - 1.1.19-1
libreadline - 7.0-1
librt - 1.1.19-1
librtlsdr - 0.5.3-20150608--3
libsensors - 3.3.5-4
libsmartcols - 2.32-2
libss - 1.44.1-1
libstdcpp - 7.3.0-1
libsysfs - 2.1.0-2
libubox - 2018-07-25-c83a84af-1
libubus - 2018-07-26-40e0931e-1
libubus-lua - 2018-07-26-40e0931e-1
libuci - 2018-03-24-5d2bf09e-1
libuci-lua - 2018-03-24-5d2bf09e-1
libuclient - 2017-11-02-4b87d831-1
libudev-fbsd - 20160820-2
libuhttpd-openssl - 2.0.3-1
libusb-1.0 - 1.0.22-1
libusb-compat - 0.1.5-1
libustream-openssl - 2018-07-30-23a3f283-1
libuuid - 2.32-2
libwrap - 7.6-1
libxtables - 1.6.2-1
lm-sensors - 3.3.5-4
logd - 2018-02-14-128bc35f-2
lua - 5.1.5-1
luci - git-19.020.41695-6f6641d-1
luci-app-acme - 2.7.8-3
luci-app-attendedsysupgrade - git-19.020.41695-6f6641d-1
luci-app-ddns - 2.4.9-3
luci-app-firewall - git-18.210.69179-6df9a57-1
luci-app-mwan3 - git-19.020.41695-6f6641d-1
luci-app-ntpc - git-19.020.41695-6f6641d-1
luci-app-uhttpd - git-18.219.52706-a49e4e4-1
luci-app-wireguard - git-19.020.41695-6f6641d-1
luci-app-wol - git-18.219.52706-a49e4e4-1
luci-base - git-18.210.69179-6df9a57-1
luci-lib-ip - git-18.210.69179-6df9a57-1
luci-lib-jsonc - git-18.210.69179-6df9a57-1
luci-lib-nixio - git-18.210.69179-6df9a57-1
luci-lib-px5g - git-19.011.54896-1f423b1-1
luci-mod-admin-full - git-18.210.69179-6df9a57-1
luci-proto-ipv6 - git-18.210.69179-6df9a57-1
luci-proto-ppp - git-18.210.69179-6df9a57-1
luci-proto-qmi - git-18.219.52706-a49e4e4-1
luci-proto-wireguard - git-18.219.52706-a49e4e4-1
luci-ssl-openssl - git-19.020.41695-6f6641d-1
luci-theme-bootstrap - git-18.210.69179-6df9a57-1
minicom - 2.7.1-1
mkf2fs - 1.10.0-1
mosquitto-client-ssl - 1.5.5-1
mtd - 23
mwan3 - 2.6.17-1
nano - 2.9.8-1
ncat - 7.70-1
netcat - 0.7.1-1
netifd - 2018-05-30-a580028d-1
ntp-utils - 4.2.8p11-1
ntpclient - 2010_365-1
objdump - 2.27-1
odhcp6c - 2018-07-14-67ae6a71-14
odhcpd-ipv6only - 1.10-1
openssl-util - 1.0.2o-1
openwrt-keyring - 2018-05-18-103a32e9-1
opkg - 2017-12-07-3b417b9f-2
partx-utils - 2.32-2
pciutils - 3.5.6-1
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
px5g-standalone - 6
r8169-firmware - 2017-09-06-a61ac5cf-1
rpcd - 2018-05-13-82062195-1
rpcd-mod-rpcsys - 2018-11-28-3aa81d0d-1
rpcd-mod-rrdns - 20170710
rtl-sdr - 0.5.3-20150608--3
socat - 1.7.3.2-3
sysfsutils - 2.1.0-2
terminfo - 6.1-1
ubox - 2018-02-14-128bc35f-2
ubus - 2018-07-26-40e0931e-1
ubusd - 2018-07-26-40e0931e-1
uci - 2018-03-24-5d2bf09e-1
uclibcxx - 0.2.4-3
uclient-fetch - 2017-11-02-4b87d831-1
ugps - 2018-11-11-07528d43-3
uhttpd - 2018-11-28-cdfc902a-1
uhttpd-mod-lua - 2018-11-28-cdfc902a-1
uhttpd-mod-ubus - 2018-11-28-cdfc902a-1
uqmi - 2016-12-19-8ceeab69-3
usb-modeswitch - 2017-12-19-f40f84c2-1
usbip - 2.0-10
usbip-client - 2.0-10
usbip-server - 2.0-10
usbutils - 007-7
usign - 2015-07-04-ef641914-1
wget - 1.19.5-1
wireguard - 0.0.20180718-2
wireguard-tools - 0.0.20180718-2
wireless-regdb - 2017-10-20-4343d359
wpad-mesh - 2018-04-09-fa617ee6-5
wwan - 2014-07-17-1
zlib - 1.2.11-2

#2

I haven't tried building it for OpenWrt, but https://pcengines.ch/ht_gpio.htm has what you likely need to get started.

https://openwrt.org/packages/pkgdata/kmod-leds-apu2 also may provide some, if not all, of what you need.