From patchwork Sat Oct 5 00:40:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Danilo Bargen X-Patchwork-Id: 1172093 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dbrgn.ch Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; secure) header.d=dbrgn.ch header.i=@dbrgn.ch header.b="cA2hjTD/"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="b61SfEub"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46lSj85Wkqz9sP7 for ; Sat, 5 Oct 2019 10:46:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 74B7E85F9D; Sat, 5 Oct 2019 00:45:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZLMh09HyMo2O; Sat, 5 Oct 2019 00:45:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D0F6785815; Sat, 5 Oct 2019 00:45:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 473D51BF363 for ; Sat, 5 Oct 2019 00:45:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42CD687E30 for ; Sat, 5 Oct 2019 00:45:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icpK29D-qmGD for ; Sat, 5 Oct 2019 00:45:53 +0000 (UTC) X-Greylist: delayed 00:06:59 by SQLgrey-1.7.6 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4E45D87E1F for ; Sat, 5 Oct 2019 00:45:52 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B9CE93FF for ; Fri, 4 Oct 2019 20:40:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 04 Oct 2019 20:40:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dbrgn.ch; h=date :from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=mesmtp; bh=J+TmuFydof9kyesTskVEWSy D83SXdIoP8c7IOpigMdI=; b=cA2hjTD/X5loAqEwTngi7KCcCvfHptb7/s8cNsx bnia2RhSK12Zik2dUyjg5ek0Som3rLlQjhNZpkHMP1YCrKTeJJkXH3DGJszPf7Os aVE+QxGmxR0cm7Pi/q4Khuiy7/b0011BamzdFmIfM11uaSR5Tgi6PlhH708WOTO1 QKfs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=J+TmuF ydof9kyesTskVEWSyD83SXdIoP8c7IOpigMdI=; b=b61SfEubMjK4x2b4RlnrKR F0KzwJHktSo80D/ixSFXekuBuBXjdN0zr8r109AGha4Qy1pUGF9w6USdSU3v/oBf /S7vYkrtOYi+LfX/F7vYQVIvd7+I/KAYbX1PBMY7A90GDLnCqWDeTcrCSKPftQXS hrDOoMQmXFYFQC/jvV3F42TnOEyJSWNPnoyBX6MXfTTN+nszHjRRp5IbvtQ87FJG trDurZ9zud42VsFPjagFN30F97LZs540a4596JLmycm3JK8ROUvqsVONNS9eKF0/ wtkYZl80rNDB3XbNlUnHa2iUKhE9Q2TrWs/PHlK2i7AUy9wgRIovkidxHJFsYhbg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrhedvgdefiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukffogggtgfesthekredtre dtjeenucfhrhhomhepffgrnhhilhhouceurghrghgvnhcuoehmrghilhesuggsrhhgnhdr tghhqeenucffohhmrghinhepsggvthhtvghrqdgsshhprdgtohhmpdhptggvnhhgihhnvg hsrdgthhenucfkphepgeeirdduvdejrddufedvrddukeejnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrghilhesuggsrhhgnhdrtghhnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from x2000 (46-127-132-187.dynamic.hispeed.ch [46.127.132.187]) by mail.messagingengine.com (Postfix) with ESMTPA id CD65480061 for ; Fri, 4 Oct 2019 20:40:25 -0400 (EDT) Date: Sat, 5 Oct 2019 02:40:23 +0200 From: Danilo Bargen To: buildroot@buildroot.org Message-ID: <20191005024023.40f198c9@x2000> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] board/pcengines/apu2: add config X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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: http://www.better-bsp.com/blog/2017/03/02/buildrooting-for-apu2/ Signed-off-by: Danilo Bargen --- 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 --git a/DEVELOPERS b/DEVELOPERS index 7b93110179..35c31f620f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -611,6 +611,10 @@ F: package/redis/ N: Daniel Sangue F: package/libftdi1/ +N: Danilo Bargen +F: board/pcengines/apu2/ +F: configs/pcengines_apu2_defconfig + N: Danomi Manchego 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_SYSVIPC=y +CONFIG_CGROUPS=y +CONFIG_BLK_DEV_INITRD=y +CONFIG_SMP=y +CONFIG_HYPERVISOR_GUEST=y +CONFIG_PARAVIRT=y +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +CONFIG_NET=y +CONFIG_PACKET=y +CONFIG_UNIX=y +CONFIG_INET=y +# CONFIG_WIRELESS is not set +CONFIG_DEVTMPFS=y +CONFIG_DEVTMPFS_MOUNT=y +CONFIG_VIRTIO_BLK=y +CONFIG_BLK_DEV_SD=y +CONFIG_SCSI_VIRTIO=y +CONFIG_ATA=y +CONFIG_SATA_AHCI=y +CONFIG_ATA_PIIX=y +CONFIG_NETDEVICES=y +CONFIG_VIRTIO_NET=y +CONFIG_IGB=y +CONFIG_NE2K_PCI=y +CONFIG_8139CP=y +# CONFIG_WLAN is not set +CONFIG_INPUT_EVDEV=y +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_VIRTIO_CONSOLE=y +CONFIG_HW_RANDOM_VIRTIO=m +CONFIG_DRM=y +CONFIG_SOUND=y +CONFIG_SND=y +# CONFIG_SND_PCI is not set +CONFIG_USB=y +CONFIG_USB_XHCI_HCD=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_UHCI_HCD=y +CONFIG_USB_STORAGE=y +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_BALLOON=y +CONFIG_VIRTIO_INPUT=y +CONFIG_VIRTIO_MMIO=y +CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y +CONFIG_EXT4_FS=y +CONFIG_AUTOFS4_FS=y +CONFIG_TMPFS=y +CONFIG_TMPFS_POSIX_ACL=y +CONFIG_UNWINDER_FRAME_POINTER=y 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 @@ +Intro +===== + +This is a board configuration for the apu2 platform by PC Engines. + +https://pcengines.ch/apu2.htm + +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_x86_64=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y +BR2_TARGET_GENERIC_HOSTNAME="apu2" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" +BR2_SYSTEM_DHCP="eth0" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.16" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/pcengines/apu2/linux.config" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_ISO9660=y +BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU="board/pcengines/apu2/isolinux.cfg" +BR2_TARGET_ROOTFS_ISO9660_HYBRID=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_SYSLINUX=y