diff mbox series

[1/1] board/pcengines/apu2: add config

Message ID 20191005024023.40f198c9@x2000
State New
Headers show
Series add support for apu2 board by PC Engines | expand

Commit Message

Danilo Bargen Oct. 5, 2019, 12:40 a.m. UTC
The apu2 by PC Engines is a 64 bit single board computer with coreboot
BIOS. It only has serial output, but no graphics chip. With its 2–4
ethernet ports, it is often used to build a firewall or router.

The provided defconfig configures busybox and isolinux. It will output a
hybrid ISO image that can be written to a USB stick or burned to a CD.

Configuration based on a blogpost by Tony Arkles:


Signed-off-by: Danilo Bargen <mail@dbrgn.ch>
 DEVELOPERS                        |  4 +++
 board/pcengines/apu2/isolinux.cfg |  6 ++++
 board/pcengines/apu2/linux.config | 51 +++++++++++++++++++++++++++++++
 board/pcengines/apu2/readme.txt   | 40 ++++++++++++++++++++++++
 configs/pcengines_apu2_defconfig  | 16 ++++++++++
 5 files changed, 117 insertions(+)
 create mode 100644 board/pcengines/apu2/isolinux.cfg
 create mode 100644 board/pcengines/apu2/linux.config
 create mode 100644 board/pcengines/apu2/readme.txt
 create mode 100644 configs/pcengines_apu2_defconfig
diff mbox series


index 7b93110179..35c31f620f 100644
@@ -611,6 +611,10 @@  F:	package/redis/
 N:	Daniel Sangue <daniel.sangue@sangue.ch>
 F:	package/libftdi1/
+N:  Danilo Bargen <mail@dbrgn.ch>
+F:  board/pcengines/apu2/
+F:  configs/pcengines_apu2_defconfig
 N:	Danomi Manchego <danomimanchego123@gmail.com>
 F:	package/cjson/
 F:	package/jq/
diff --git a/board/pcengines/apu2/isolinux.cfg b/board/pcengines/apu2/isolinux.cfg
new file mode 100644
index 0000000000..cb19b5a89e
--- /dev/null
+++ b/board/pcengines/apu2/isolinux.cfg
@@ -0,0 +1,6 @@ 
+serial 0 115200
+default 1
+label 1
+      kernel __KERNEL_PATH__
+      initrd __INITRD_PATH__
+      append root=/dev/sr0 console=ttyS0,115200n8
diff --git a/board/pcengines/apu2/linux.config b/board/pcengines/apu2/linux.config
new file mode 100644
index 0000000000..5e3593b018
--- /dev/null
+++ b/board/pcengines/apu2/linux.config
@@ -0,0 +1,51 @@ 
+# CONFIG_WIRELESS is not set
+# CONFIG_WLAN is not set
+# CONFIG_SND_PCI is not set
diff --git a/board/pcengines/apu2/readme.txt b/board/pcengines/apu2/readme.txt
new file mode 100644
index 0000000000..9da1b802cc
--- /dev/null
+++ b/board/pcengines/apu2/readme.txt
@@ -0,0 +1,40 @@ 
+This is a board configuration for the apu2 platform by PC Engines.
+Since the apu2 does not have any graphical output, the default configuration
+will ensure that the kernel output as well as the login prompt will be sent to
+the serial port.
+How to build
+The provided defconfig creates a hybrid isolinux image that can be booted from
+either an USB stick or a CD.
+    $ make pcengines_apu2_defconfig
+    $ make
+How to write to an USB stick
+Once the build process is finished you will have an image
+called "rootfs.iso9660" in the output/images/ directory.
+Copy the bootable "rootfs.iso9660" onto the USB stick with "dd":
+    $ sudo dd if=output/images/rootfs.iso9660 of=/dev/sdX bs=1M conv=fsync
+    $ sudo sync
+How to connect to the apu2
+Connect to the DB9 serial port of the apu2 board (either directly or through a
+USB adapter) with a baudrate of 115200.
+For example with miniterm (part of pyserial):
+    $ miniterm.py -f direct /dev/ttyUSB0 115200
diff --git a/configs/pcengines_apu2_defconfig b/configs/pcengines_apu2_defconfig
new file mode 100644
index 0000000000..68cebb8f6a
--- /dev/null
+++ b/configs/pcengines_apu2_defconfig
@@ -0,0 +1,16 @@ 
+# BR2_TARGET_ROOTFS_TAR is not set