This is an RFC to port the PC Engines APU2 board to LEDE. Currently this is 
based on my unofficial repo at and 
after a discussion on the lede-dev IRC on the best plan of action, which was to 
move this device to a profile under x86_64.

Things Working:
 - board detection
 - USB ports
 - LED/Button support
 - ath9k and ath10k - to support both wireless cards sold via PC Engines
 - SP5100 Watchdog
 - NCT5104D GPIO Driver

Not Working:
 - AES-NI CPU Acceleration
 - PC Buzzer

Default Packages:
 - flashrom - BIOS Upgrades
 - lm-sensors - Temp Monitoring
 - wpad-mini - Wireless AP support
 - hwclock - RTC support

Things that still need working out:
 - AES-NI Kernel Support
 - Profile Specific Images - So far the ./image/Makefile does not seem to 
support 'profiles'. This will need to be fixed, so APU2 & Generic images can 
build without merging.
 - HWMon & ath10k - ath10k requires hwmon, but the module fails to build if 
hwmon was built as a module. Because if this, it's added to the kernel config. 
Is there a better way to do this, or a way around this problem?
 - pc buzzer/beep - Busybox has beep support, but I didn't find a way to build 
it without changing the default BusyBox config for all targets. Maybe "beep" 
should also be added as a standalone package?
 - x86_64 kernel config - Besudes hwmon, GPIO support had to be added. Should 
this be done here, or in the root target kernel config like other targets? 
Also, DEVMEM was added for flashrom. Is this an issue, or would it be OK to 
keep this in?
 - Default Packages - Currently the "goal" of my unofficial port was to make 
sure all features of the device were supported via my image. Is this the path 
LEDE wants to take, or should it be more of a "minimal" approach? AKA, no 

If there are any comments, suggestions, or visible improvements please let me 
know/reply with some patches.

Cc: Jo-Philipp Wich <>

Signed-off-by: Chris Blake <>

Chris Blake (1):
  x86: Add support for the PC Engines APU2 Board

 target/linux/x86/64/config-default                 |  12 +
 target/linux/x86/64/profiles/      |  20 +
 target/linux/x86/base-files/etc/board.d/01_leds    |  22 ++
 target/linux/x86/base-files/etc/board.d/02_network |  26 ++
 target/linux/x86/base-files/etc/            |  37 ++
 target/linux/x86/base-files/lib/             |  13 +
 target/linux/x86/config-4.4                        |   1 +
 .../linux/x86/files/drivers/gpio/gpio-nct5104d.c   | 432 +++++++++++++++++++++
 target/linux/x86/files/drivers/leds/leds-apu2.c    | 371 ++++++++++++++++++
 target/linux/x86/                        |  36 ++
 .../x86/patches-4.4/800-add-apu2-led-driver.patch  |  29 ++
 .../801-sp5100_tco-add-apu2-support.patch          |  91 +++++
 .../patches-4.4/802-add-nct5104d-gpio-driver.patch |  27 ++
 13 files changed, 1117 insertions(+)
 create mode 100644 target/linux/x86/64/profiles/
 create mode 100755 target/linux/x86/base-files/etc/board.d/01_leds
 create mode 100755 target/linux/x86/base-files/etc/board.d/02_network
 create mode 100755 target/linux/x86/base-files/etc/
 create mode 100755 target/linux/x86/base-files/lib/
 create mode 100644 target/linux/x86/files/drivers/gpio/gpio-nct5104d.c
 create mode 100644 target/linux/x86/files/drivers/leds/leds-apu2.c
 create mode 100644 target/linux/x86/
 create mode 100644 target/linux/x86/patches-4.4/800-add-apu2-led-driver.patch
 create mode 100644 
 create mode 100644 


Lede-dev mailing list

Reply via email to