From patchwork Sat Sep 14 05:56:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Korsgaard X-Patchwork-Id: 1162294 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=korsgaard.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="LdCd0i9M"; 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 46VhbJ1ywRz9sCJ for ; Sat, 14 Sep 2019 15:56:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 18D1E86449; Sat, 14 Sep 2019 05:56:38 +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 o9uhMGYtlkPe; Sat, 14 Sep 2019 05:56:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id D24A9863F2; Sat, 14 Sep 2019 05:56:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 8D7111BF357 for ; Sat, 14 Sep 2019 05:56:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8A44E8836E for ; Sat, 14 Sep 2019 05:56:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mhZIgzuDpqOQ for ; Sat, 14 Sep 2019 05:56:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id BD6F088236 for ; Sat, 14 Sep 2019 05:56:33 +0000 (UTC) Received: by mail-ed1-f53.google.com with SMTP id g12so3091240eds.6 for ; Fri, 13 Sep 2019 22:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xfW/icwE7+QMiOBd8Haw2yw5DCcipk65l/oeb9ILYzw=; b=LdCd0i9MVS30TR+rlAiCXmfxVz+j4QReQ2UKGSadzd9Nl8Pek1xNjvlIy6Wfg6LEu5 VQpzKQOyLqeGTJnkrgHeGj6DpiQtie6agyAo0MZZ54SF5LmwXRmQxTonS29+3GPQrZNE VK6+Hr3/pjAzYHcZ5VyaAeLy4FKI2oIJYIPFvwjfEljyMnaRobyffdrltUoRyt0oHqrA dSVeHvfjgng+mDsSafglY1wIuGgc/MPrGJFOWFR1W6B9C4qgMW/McehgMAFXh81lsMqI XZ0of7P35ecP7Y4gf905dC3eiQwWg2qaAZcQqT7KYaM0/tOTCt7cBAEKvj75vcrsCshI 8HIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=xfW/icwE7+QMiOBd8Haw2yw5DCcipk65l/oeb9ILYzw=; b=rZNme5MSNwE5MAh1H3Ntz96Rah+/Oj2ICuUKfoPmK2P2DlYglVVGqsiJtpUAR4zcAr xnRvz8d+eVYGRwfdDduSlrPdhYQYmLTrKV+gDNT8MgN3GRe2Dc/FLS9NXRFQsGYkbUs/ em2+2sg4nMRHpb+OTjT0NoYGpb1dOXER9P7Qx+YCx8MxW9ZtGrz/MpJvrpHHJeSnaRtb A6cGiUOKO0wgROfwRlOQ2sAYx2YF7T8N0GZUlqHziy4b+JSqzRT77M9iBOptp6iQMQO1 MejPiTctAzo7mWxWeadgDqJ0bREuyu5kXdpdTku5MFsgfFseqgCOZjOSimd+okpSV068 peAA== X-Gm-Message-State: APjAAAW0QmArsyNvK5Vrm+0tvYjHKu9jv7x175wGhkF9hMltdVl57JG9 anJBe8wSoESwqOjeT53500EBO5xb X-Google-Smtp-Source: APXvYqzFcmkFySoSwEw6aZuJr402EJGzzQcy6Ba+kysAT045ft6OuvkF3+cFlY2Y7ykB79szH46o3A== X-Received: by 2002:a50:8a9a:: with SMTP id j26mr51527966edj.251.1568440591432; Fri, 13 Sep 2019 22:56:31 -0700 (PDT) Received: from dell.be.48ers.dk (d51A5BC31.access.telenet.be. [81.165.188.49]) by smtp.gmail.com with ESMTPSA id b36sm5770536edc.53.2019.09.13.22.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 22:56:30 -0700 (PDT) Received: from peko by dell.be.48ers.dk with local (Exim 4.92) (envelope-from ) id 1i912r-00056U-Ld; Sat, 14 Sep 2019 07:56:29 +0200 From: Peter Korsgaard To: buildroot@buildroot.org Date: Sat, 14 Sep 2019 07:56:20 +0200 Message-Id: <20190914055621.19573-1-peter@korsgaard.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] configs/lafrite: new defconfig 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: , Cc: Peter Korsgaard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add basic support for the Libre Computer "La Frite" SBC. Signed-off-by: Peter Korsgaard --- .gitlab-ci.yml | 1 + DEVELOPERS | 2 ++ board/librecomputer/lafrite/genimage.cfg | 10 ++++++ .../lafrite/overlay/extlinux/extlinux.conf | 4 +++ board/librecomputer/lafrite/readme.txt | 34 +++++++++++++++++++ configs/lafrite_defconfig | 20 +++++++++++ 6 files changed, 71 insertions(+) create mode 100644 board/librecomputer/lafrite/genimage.cfg create mode 100644 board/librecomputer/lafrite/overlay/extlinux/extlinux.conf create mode 100644 board/librecomputer/lafrite/readme.txt create mode 100644 configs/lafrite_defconfig diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6243107ee9..7b443b0cff 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -200,6 +200,7 @@ imx7d-sdb_defconfig: { extends: .defconfig } imx7dpico_defconfig: { extends: .defconfig } imx8mmpico_defconfig: { extends: .defconfig } imx8mpico_defconfig: { extends: .defconfig } +lafrite_defconfig: { extends: .defconfig } lego_ev3_defconfig: { extends: .defconfig } licheepi_zero_defconfig: { extends: .defconfig } linksprite_pcduino_defconfig: { extends: .defconfig } diff --git a/DEVELOPERS b/DEVELOPERS index 7604cfe2b7..d463b274f9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1772,12 +1772,14 @@ F: package/libunistring/ N: Peter Korsgaard F: board/minnowboard/ +F: board/librecomputer/lafrite/ F: board/nexbox/a95x/ F: board/openblocks/a6/ F: board/orangepi/ F: board/pandaboard/ F: board/roseapplepi/ F: boot/shim/ +F: configs/lafrite_defconfig F: configs/minnowboard_max-graphical_defconfig F: configs/minnowboard_max_defconfig F: configs/nexbox_a95x_defconfig diff --git a/board/librecomputer/lafrite/genimage.cfg b/board/librecomputer/lafrite/genimage.cfg new file mode 100644 index 0000000000..212f829527 --- /dev/null +++ b/board/librecomputer/lafrite/genimage.cfg @@ -0,0 +1,10 @@ +image usb.img { + hdimage { + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/librecomputer/lafrite/overlay/extlinux/extlinux.conf b/board/librecomputer/lafrite/overlay/extlinux/extlinux.conf new file mode 100644 index 0000000000..60aa9d6e70 --- /dev/null +++ b/board/librecomputer/lafrite/overlay/extlinux/extlinux.conf @@ -0,0 +1,4 @@ +label linux + kernel /boot/Image + devicetree /boot/meson-gxl-s805x-libretech-ac.dtb + append console=ttyAML0,115200 earlyprintk root=/dev/sda1 rootwait diff --git a/board/librecomputer/lafrite/readme.txt b/board/librecomputer/lafrite/readme.txt new file mode 100644 index 0000000000..c439c5e91d --- /dev/null +++ b/board/librecomputer/lafrite/readme.txt @@ -0,0 +1,34 @@ +Intro +===== + +Libre Computer "La Frite" is a low cost SBC based around an Amlogic +s805x SoC (quad A53), 512MB/1GB DDR4 and a 16MB SPI NOR flash: + +https://libre.computer/products/boards/aml-s805x-ac/ + +How to build it +=============== + +Configure Buildroot: + + $ make lafrite_defconfig + +Compile everything and build the USB flash drive image: + + $ make + +How to write the USB flash drive image +====================================== + +Once the build process is finished you will have an image called "usb.img" +in the output/images/ directory. + +Copy the bootable "usb.img" onto a USB flash drive with "dd": + + $ sudo dd if=output/images/usb.img of=/dev/sdX + +How to boot +=========== + +Insert flash drive to the USB connector furthest away from the IR +receiver and power up board. The system will boot automatically. diff --git a/configs/lafrite_defconfig b/configs/lafrite_defconfig new file mode 100644 index 0000000000..63370928e5 --- /dev/null +++ b/configs/lafrite_defconfig @@ -0,0 +1,20 @@ +BR2_aarch64=y +BR2_cortex_a53=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_2=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_SYSTEM_DHCP="eth0" +BR2_ROOTFS_OVERLAY="board/librecomputer/lafrite/overlay/" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/librecomputer/lafrite/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.2.14" +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="amlogic/meson-gxl-s805x-libretech-ac" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +# BR2_TARGET_ROOTFS_TAR is not set +BR2_PACKAGE_HOST_GENIMAGE=y