From patchwork Fri Sep 20 19:08:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1165398 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.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="iQFdtjvZ"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46Zjt91G47z9sNw for ; Sat, 21 Sep 2019 05:08:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E672E87EAE; Fri, 20 Sep 2019 19:08:30 +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 aUy2XaZ8bowJ; Fri, 20 Sep 2019 19:08:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E96E787FBF; Fri, 20 Sep 2019 19:08:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 4B83A1BF387 for ; Fri, 20 Sep 2019 19:08:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 44CB184E5A for ; Fri, 20 Sep 2019 19:08:24 +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 zj8Y6wsJPrYc for ; Fri, 20 Sep 2019 19:08:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id D464584546 for ; Fri, 20 Sep 2019 19:08:22 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id q17so7841051wrx.10 for ; Fri, 20 Sep 2019 12:08:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tSNvGHEblXbqX7GThMGdnBHmbG3z7X1RxZatFkazOG0=; b=iQFdtjvZRuxR7Od0j/BRxNI6aWOC4FdMozdBMo5tr2HK9W8XaXW5aD3ZfBBpNwiGGA ekSBbEKlgVlVEfbTSCI2WQbbBqm2Eg5PuiczmhU6Z2QEsS+9QM+Sse8sqZPk2gRq9T5H mQb47Ud7T/xp8Ty7JofLvI5Fi9aKDiu5myI4kKZ3NCNuLe+x8GVvY9eejxdjdcFFQLvb Zf1mTV+BAdyjp5E6gigebP8WyTxLnD8u1lsb0Tp9Ic58+PFXP6eoVVCvXkZMS3xgXXOZ z9otcN/+wEx25q1vcuH78qgCvtZNEzE4rmbzzU8GyC5lYxJWUXJTJK9/3gEaOM2iWbsm 1ojw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tSNvGHEblXbqX7GThMGdnBHmbG3z7X1RxZatFkazOG0=; b=YOP0wyZ8DTdakzejYIcoADPHu73DoemmLKUu/Rx0aZcQgJw6wnnfatmFruPNx4hS3W pb1ipP6P9Qf1vdhUrAXGIW7ZBXtzVRtkbEuZbmcrZmopnDD0wz/qHzbJrwmae+Ubi1OK 2yAg2qt09cc5Ss77c/5ktj21NZyzMZ7mU7z6aYVGJf7TtID8x1gVwewUYb1UHUeI/x5n CU/TjjxFlFG6gUu/lqggHyCJAjwC5x5jci4uV2DzttA2aefO7UGaD/+rX4cU9BQYPypv W0FnEWktCkfZMDIxbINCTRr9N2CtBKoXKF7KC1tmY0FIIVM9B+w+xm7PBrh0v8hu83/W XqcQ== X-Gm-Message-State: APjAAAXdrePc6M05y4hL9D0I0Yrd/YU0O7WQiI8ow0VusDaKNEk9qB34 L27xBJya8dVolkulY9L46XceglZf29k= X-Google-Smtp-Source: APXvYqwPOOkKQDluEYHRGzKH400qtyfNBRhfCEeRi0TFbzeQlonxmiOo0AyZrQ2qr1LXo0c5mCEJow== X-Received: by 2002:a5d:4dcb:: with SMTP id f11mr7239601wru.239.1569006500665; Fri, 20 Sep 2019 12:08:20 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id z9sm4332141wrp.26.2019.09.20.12.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 12:08:20 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: buildroot@buildroot.org Date: Fri, 20 Sep 2019 21:08:11 +0200 Message-Id: <20190920190813.21516-2-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190920190813.21516-1-peron.clem@gmail.com> References: <20190920190813.21516-1-peron.clem@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] board: add Beelink GS1 support 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: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Clément Péron --- board/beelink/gs1/extlinux.conf | 4 + board/beelink/gs1/genimage.cfg | 33 +++ ...er-common-use-r_wdog-instead-of-wdog.patch | 39 +++ ...01-arm-dts-sync-dts-for-Allwinner-H6.patch | 279 ++++++++++++++++++ board/beelink/gs1/post-build.sh | 4 + configs/beelink_gs1_defconfig | 35 +++ 6 files changed, 394 insertions(+) create mode 100644 board/beelink/gs1/extlinux.conf create mode 100644 board/beelink/gs1/genimage.cfg create mode 100644 board/beelink/gs1/patches/arm-trusted-firmware/0001-plat-allwinner-common-use-r_wdog-instead-of-wdog.patch create mode 100644 board/beelink/gs1/patches/uboot/0001-arm-dts-sync-dts-for-Allwinner-H6.patch create mode 100755 board/beelink/gs1/post-build.sh create mode 100644 configs/beelink_gs1_defconfig diff --git a/board/beelink/gs1/extlinux.conf b/board/beelink/gs1/extlinux.conf new file mode 100644 index 0000000000..046681f71d --- /dev/null +++ b/board/beelink/gs1/extlinux.conf @@ -0,0 +1,4 @@ +label linux + kernel /Image + devicetree /sun50i-h6-beelink-gs1.dtb + append console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait diff --git a/board/beelink/gs1/genimage.cfg b/board/beelink/gs1/genimage.cfg new file mode 100644 index 0000000000..88bbd26594 --- /dev/null +++ b/board/beelink/gs1/genimage.cfg @@ -0,0 +1,33 @@ +image boot.vfat { + vfat { + files = { + "Image", + "sun50i-h6-beelink-gs1.dtb", + "extlinux" + } + } + size = 64M +} + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot-sunxi-with-spl.bin" + offset = 8192 + size = 1040384 # 1MB - 8192 + } + + partition boot { + partition-type = 0xC + bootable = "true" + image = "boot.vfat" + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/board/beelink/gs1/patches/arm-trusted-firmware/0001-plat-allwinner-common-use-r_wdog-instead-of-wdog.patch b/board/beelink/gs1/patches/arm-trusted-firmware/0001-plat-allwinner-common-use-r_wdog-instead-of-wdog.patch new file mode 100644 index 0000000000..9443fdd568 --- /dev/null +++ b/board/beelink/gs1/patches/arm-trusted-firmware/0001-plat-allwinner-common-use-r_wdog-instead-of-wdog.patch @@ -0,0 +1,39 @@ +From 523ab5be1a84e9aa15fb62c3a15a6338b01d3961 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= +Date: Tue, 9 Apr 2019 00:15:06 +0200 +Subject: [PATCH] plat: allwinner: common: use r_wdog instead of wdog +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Some Allwinner H6 has a broken watchdog that doesn't +make the soc reboot. + +Use the R_WATCHDOG instead. + +Signed-off-by: Clément Péron +Change-Id: Ie95cc30a80ed517b60b30d6bc2e655a1b53f18ba +--- + plat/allwinner/common/sunxi_pm.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/plat/allwinner/common/sunxi_pm.c b/plat/allwinner/common/sunxi_pm.c +index 1d2dc938..13e13532 100644 +--- a/plat/allwinner/common/sunxi_pm.c ++++ b/plat/allwinner/common/sunxi_pm.c +@@ -20,9 +20,9 @@ + #include + #include + +-#define SUNXI_WDOG0_CTRL_REG (SUNXI_WDOG_BASE + 0x0010) +-#define SUNXI_WDOG0_CFG_REG (SUNXI_WDOG_BASE + 0x0014) +-#define SUNXI_WDOG0_MODE_REG (SUNXI_WDOG_BASE + 0x0018) ++#define SUNXI_WDOG0_CTRL_REG (SUNXI_R_WDOG_BASE + 0x0010) ++#define SUNXI_WDOG0_CFG_REG (SUNXI_R_WDOG_BASE + 0x0014) ++#define SUNXI_WDOG0_MODE_REG (SUNXI_R_WDOG_BASE + 0x0018) + + #define mpidr_is_valid(mpidr) ( \ + MPIDR_AFFLVL3_VAL(mpidr) == 0 && \ +-- +2.20.1 + diff --git a/board/beelink/gs1/patches/uboot/0001-arm-dts-sync-dts-for-Allwinner-H6.patch b/board/beelink/gs1/patches/uboot/0001-arm-dts-sync-dts-for-Allwinner-H6.patch new file mode 100644 index 0000000000..8e695f6416 --- /dev/null +++ b/board/beelink/gs1/patches/uboot/0001-arm-dts-sync-dts-for-Allwinner-H6.patch @@ -0,0 +1,279 @@ +From 99cade8743158889b3e8db93c003b3318ebd4bda Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= +Date: Sun, 11 Aug 2019 22:38:57 +0200 +Subject: [PATCH] arm: dts: sync dts for Allwinner H6 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Sync Kernel DTS for Allwinner H6 boards. + +Drop /omit-if-no-ref/ keyword as it's not supported by U-boot. + +commit Linux 5.3-rc4 + +Signed-off-by: Clément Péron +--- + arch/arm/dts/sun50i-h6-beelink-gs1.dts | 76 ++++++++++++++++++++++++++ + arch/arm/dts/sun50i-h6-pine-h64.dts | 12 ++++ + arch/arm/dts/sun50i-h6.dtsi | 46 +++++++++++++++- + 3 files changed, 131 insertions(+), 3 deletions(-) + +diff --git a/arch/arm/dts/sun50i-h6-beelink-gs1.dts b/arch/arm/dts/sun50i-h6-beelink-gs1.dts +index 54b0882bed..0dc33c90dd 100644 +--- a/arch/arm/dts/sun50i-h6-beelink-gs1.dts ++++ b/arch/arm/dts/sun50i-h6-beelink-gs1.dts +@@ -14,6 +14,7 @@ + compatible = "azw,beelink-gs1", "allwinner,sun50i-h6"; + + aliases { ++ ethernet0 = &emac; + serial0 = &uart0; + }; + +@@ -21,6 +22,17 @@ + stdout-path = "serial0:115200n8"; + }; + ++ connector { ++ compatible = "hdmi-connector"; ++ type = "a"; ++ ++ port { ++ hdmi_con_in: endpoint { ++ remote-endpoint = <&hdmi_out_con>; ++ }; ++ }; ++ }; ++ + leds { + compatible = "gpio-leds"; + +@@ -41,6 +53,40 @@ + }; + }; + ++&de { ++ status = "okay"; ++}; ++ ++&ehci0 { ++ status = "okay"; ++}; ++ ++&emac { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&ext_rgmii_pins>; ++ phy-mode = "rgmii"; ++ phy-handle = <&ext_rgmii_phy>; ++ phy-supply = <®_aldo2>; ++ status = "okay"; ++}; ++ ++&hdmi { ++ status = "okay"; ++}; ++ ++&hdmi_out { ++ hdmi_out_con: endpoint { ++ remote-endpoint = <&hdmi_con_in>; ++ }; ++}; ++ ++&mdio { ++ ext_rgmii_phy: ethernet-phy@1 { ++ compatible = "ethernet-phy-ieee802.3-c22"; ++ reg = <1>; ++ }; ++}; ++ + &mmc0 { + vmmc-supply = <®_cldo1>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; +@@ -57,6 +103,15 @@ + status = "okay"; + }; + ++&ohci0 { ++ status = "okay"; ++}; ++ ++&pio { ++ vcc-pd-supply = <®_cldo1>; ++ vcc-pg-supply = <®_aldo1>; ++}; ++ + &r_i2c { + status = "okay"; + +@@ -177,8 +232,29 @@ + }; + }; + ++&r_pio { ++ /* ++ * PL0 and PL1 are used for PMIC I2C ++ * don't enable the pl-supply else ++ * it will fail at boot ++ * ++ * vcc-pl-supply = <®_aldo1>; ++ */ ++ vcc-pm-supply = <®_aldo1>; ++}; ++ + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; + }; ++ ++&usb2otg { ++ dr_mode = "host"; ++ status = "okay"; ++}; ++ ++&usb2phy { ++ usb0_vbus-supply = <®_vcc5v>; ++ status = "okay"; ++}; +diff --git a/arch/arm/dts/sun50i-h6-pine-h64.dts b/arch/arm/dts/sun50i-h6-pine-h64.dts +index 4802902e12..1898345183 100644 +--- a/arch/arm/dts/sun50i-h6-pine-h64.dts ++++ b/arch/arm/dts/sun50i-h6-pine-h64.dts +@@ -127,6 +127,12 @@ + status = "okay"; + }; + ++&pio { ++ vcc-pc-supply = <®_bldo2>; ++ vcc-pd-supply = <®_cldo1>; ++ vcc-pg-supply = <®_aldo1>; ++}; ++ + &r_i2c { + status = "okay"; + +@@ -243,10 +249,16 @@ + pcf8563: rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; ++ interrupt-parent = <&r_intc>; ++ interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + #clock-cells = <0>; + }; + }; + ++&r_pio { ++ vcc-pm-supply = <®_aldo1>; ++}; ++ + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; +diff --git a/arch/arm/dts/sun50i-h6.dtsi b/arch/arm/dts/sun50i-h6.dtsi +index e0dc4a05c1..a117f479ae 100644 +--- a/arch/arm/dts/sun50i-h6.dtsi ++++ b/arch/arm/dts/sun50i-h6.dtsi +@@ -101,7 +101,7 @@ + #size-cells = <1>; + ranges; + +- display-engine@1000000 { ++ bus@1000000 { + compatible = "allwinner,sun50i-h6-de3", + "allwinner,sun50i-a64-de2"; + reg = <0x1000000 0x400000>; +@@ -203,11 +203,32 @@ + #reset-cells = <1>; + }; + ++ dma: dma-controller@3002000 { ++ compatible = "allwinner,sun50i-h6-dma"; ++ reg = <0x03002000 0x1000>; ++ interrupts = ; ++ clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>; ++ clock-names = "bus", "mbus"; ++ dma-channels = <16>; ++ dma-requests = <46>; ++ resets = <&ccu RST_BUS_DMA>; ++ #dma-cells = <1>; ++ }; ++ + sid: sid@3006000 { + compatible = "allwinner,sun50i-h6-sid"; + reg = <0x03006000 0x400>; + }; + ++ watchdog: watchdog@30090a0 { ++ compatible = "allwinner,sun50i-h6-wdt", ++ "allwinner,sun6i-a31-wdt"; ++ reg = <0x030090a0 0x20>; ++ interrupts = ; ++ /* Broken on some H6 boards */ ++ status = "disabled"; ++ }; ++ + pio: pinctrl@300b000 { + compatible = "allwinner,sun50i-h6-pinctrl"; + reg = <0x0300b000 0x400>; +@@ -243,6 +264,18 @@ + bias-pull-up; + }; + ++ /* ++ * /omit-if-no-ref/ isn't supported by U-boot ++ * keep this comment to avoid bad sync with Linux ++ */ ++ mmc1_pins: mmc1-pins { ++ pins = "PG0", "PG1", "PG2", "PG3", ++ "PG4", "PG5"; ++ function = "mmc1"; ++ drive-strength = <30>; ++ bias-pull-up; ++ }; ++ + mmc2_pins: mmc2-pins { + pins = "PC1", "PC4", "PC5", "PC6", + "PC7", "PC8", "PC9", "PC10", +@@ -294,6 +327,8 @@ + resets = <&ccu RST_BUS_MMC1>; + reset-names = "ahb"; + interrupts = ; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc1_pins>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; +@@ -445,7 +480,6 @@ + resets = <&ccu RST_BUS_OHCI3>, + <&ccu RST_BUS_EHCI3>; + phys = <&usb2phy 3>; +- phy-names = "usb"; + status = "disabled"; + }; + +@@ -457,7 +491,6 @@ + <&ccu CLK_USB_OHCI3>; + resets = <&ccu RST_BUS_OHCI3>; + phys = <&usb2phy 3>; +- phy-names = "usb"; + status = "disabled"; + }; + +@@ -613,6 +646,13 @@ + #reset-cells = <1>; + }; + ++ r_watchdog: watchdog@7020400 { ++ compatible = "allwinner,sun50i-h6-wdt", ++ "allwinner,sun6i-a31-wdt"; ++ reg = <0x07020400 0x20>; ++ interrupts = ; ++ }; ++ + r_intc: interrupt-controller@7021000 { + compatible = "allwinner,sun50i-h6-r-intc", + "allwinner,sun6i-a31-r-intc"; +-- +2.20.1 + diff --git a/board/beelink/gs1/post-build.sh b/board/beelink/gs1/post-build.sh new file mode 100755 index 0000000000..ec20fca7d9 --- /dev/null +++ b/board/beelink/gs1/post-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +BOARD_DIR="$(dirname $0)" + +install -m 0644 -D $BOARD_DIR/extlinux.conf $BINARIES_DIR/extlinux/extlinux.conf diff --git a/configs/beelink_gs1_defconfig b/configs/beelink_gs1_defconfig new file mode 100644 index 0000000000..d1a21a4a6d --- /dev/null +++ b/configs/beelink_gs1_defconfig @@ -0,0 +1,35 @@ +# Architecture +BR2_aarch64=y +BR2_ARM_FPU_VFPV4=y +BR2_TARGET_GENERIC_ISSUE="Welcome to Beelink GS1" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/beelink/gs1/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beelink/gs1/genimage.cfg" +BR2_GLOBAL_PATCH_DIR="board/beelink/gs1/patches/" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-h6-beelink-gs1" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y + +# Firmware +BR2_TARGET_ARM_TRUSTED_FIRMWARE=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION=y +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE="v2.1" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="sun50i_h6" + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="beelink_gs1" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y From patchwork Fri Sep 20 19:08:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1165399 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.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="CIqED/4t"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46ZjtB2tWhz9s00 for ; Sat, 21 Sep 2019 05:08:33 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E345D22643; Fri, 20 Sep 2019 19:08:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q8Du4eSjxnE6; Fri, 20 Sep 2019 19:08:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0481F20486; Fri, 20 Sep 2019 19:08:29 +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 F1BC61BF387 for ; Fri, 20 Sep 2019 19:08:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ED3AB87FBF for ; Fri, 20 Sep 2019 19:08:23 +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 C4uhIOIGqo3A for ; Fri, 20 Sep 2019 19:08:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 4BC5487EAE for ; Fri, 20 Sep 2019 19:08:23 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id i16so3644091wmd.3 for ; Fri, 20 Sep 2019 12:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SvrbKLIej4TCf4Gw2e4E7JTQ8FaZlxHVYNpLFXYuMCI=; b=CIqED/4tfbIVySG22H0+9Uu+uwJ+IW2FMQ8YNEb8MZsxS8tQXbZCeyvrXDD9e7QFqu 8J6C8Oo22uM1qFzbNOEUF7AywW30qm3NW7nMai9KkGCK5VCAfcbDa+pLKqL/MCYRhP6b aFKjNtIfiAGNxPXkw7umOrOf8819XCd9lB2oQDmYM5aJL5Z9NmVwBS0+qlnY7MZ3y7/l EGLWGI8NNO98nFkaaVYwM8JQvpafsyDUHLA/Zl9EJF3poNdi9FR78ywLQoiwU+VrZRu+ gzkelwLPvE/NzxiFeQK9r7UwemKhHuqW6rDWP8k5Bu5oWbIkaKxv5B/Zbyzw1GlMfqSA m0RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SvrbKLIej4TCf4Gw2e4E7JTQ8FaZlxHVYNpLFXYuMCI=; b=aELyzZcwgRtWKUNcoDZ7q6TB7NqTwIgLtXePXAPnKBtw4jf8edBHGWOWhliY90dPym QYKYJmzYxuNJ9TSMMg1o/xSo3pb30ZkQO9kCucrK94uIZkXXzzB4jVP1dDUncqjS6bPw B9lOf+tcmrKKaUM2C85v0VokyZDJ0/nwHS9843htuBY++3EuRWVR+JYJD8Ddoy47BnTf b0h41oeB2bfY3DJIQNHuhFxMr1qlb+fZAcy9JtCRby1TBw0nE6LthhiIci0Zorh2yb2n gKMO6t0es+6GO/GuRmX5S/v6NH4tFl14Nn7x+CmfS9RGMv6JkyKmI4ZRWETKndJiUZrG GVrg== X-Gm-Message-State: APjAAAWAY0YoV72YNzxatsXkdSGSmDUj1TBlQHfnAAGuENhMb/iYV/cS YhhLqY4JT9Ej0cfIDIgPEfDnoIv+JAM= X-Google-Smtp-Source: APXvYqyxUg4RgfL/nnbDcTFWR29+sOPsR0UtIhX6jeu4EoqvAZprOCWTGOg5ark1j3YAJCJ/4xynRg== X-Received: by 2002:a1c:c789:: with SMTP id x131mr4584367wmf.20.1569006501272; Fri, 20 Sep 2019 12:08:21 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id z9sm4332141wrp.26.2019.09.20.12.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 12:08:20 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: buildroot@buildroot.org Date: Fri, 20 Sep 2019 21:08:12 +0200 Message-Id: <20190920190813.21516-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190920190813.21516-1-peron.clem@gmail.com> References: <20190920190813.21516-1-peron.clem@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] [DO NOT MERGE] board/beelink_gs1: enable mdev, dropbear and auto-ssh 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: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Clément Péron --- configs/beelink_gs1_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/beelink_gs1_defconfig b/configs/beelink_gs1_defconfig index d1a21a4a6d..ccf4771cc7 100644 --- a/configs/beelink_gs1_defconfig +++ b/configs/beelink_gs1_defconfig @@ -2,6 +2,7 @@ BR2_aarch64=y BR2_ARM_FPU_VFPV4=y BR2_TARGET_GENERIC_ISSUE="Welcome to Beelink GS1" +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/beelink/gs1/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beelink/gs1/genimage.cfg" @@ -13,6 +14,8 @@ BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun50i-h6-beelink-gs1" BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_AUTOSSH=y +BR2_PACKAGE_DROPBEAR=y BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y From patchwork Fri Sep 20 19:08:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 1165400 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.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="lV6pimGh"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46ZjtJ706xz9s00 for ; Sat, 21 Sep 2019 05:08:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2CF1822270; Fri, 20 Sep 2019 19:08:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kivyIDnJqw6i; Fri, 20 Sep 2019 19:08:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D3AB422636; Fri, 20 Sep 2019 19:08:30 +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 F13151BF387 for ; Fri, 20 Sep 2019 19:08:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EDD3B822CA for ; Fri, 20 Sep 2019 19:08:24 +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 KfuNLGnAWb+4 for ; Fri, 20 Sep 2019 19:08:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id F07CC82067 for ; Fri, 20 Sep 2019 19:08:23 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id n14so7836382wrw.9 for ; Fri, 20 Sep 2019 12:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J3DzYi9ry0yTxaGsEf21ZfaRLkxekKSgZe5iy7u8BCw=; b=lV6pimGhTs3ySZp07X1tCvqxVlscuId6jBWOW2Cg9R3kJF+UH4bZUmzs6acdXyhtH9 JLN5tk2fyD56Wvr9MCK+KTR45AoMyEjCXRTK+WuML45PObUJ6Ak1ZZSkRnlRP3ut1mK+ jsNYMHKM7gb80WERr9aDNhPu8ML7Bl7WLqZD8w4QKJtpBrkMhCN6thmRHRvVKASSAK6V SIN8XwDMUHJ11oePkEM9MKcSOeleqkxPyt5MIDr4l6lj0ssHMGHFUlCsgoF8LE0Nwi9r VkhiIg2VJs/ldOMhdC8IXWm0Lo1Ei2mYjF8hDtbHKIHHZNBaUX0ZhNk4mjU3vjHflQR1 OOpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J3DzYi9ry0yTxaGsEf21ZfaRLkxekKSgZe5iy7u8BCw=; b=Ej4V5mcC9A7TcHY0MyewygzsDQq6L1ffHDd2iC1dVweuRfwnUtWloLb4JjzLtOo8py g8YlJe5fJUI7Q/ApHIDFq/yKA5gK5jUkPIbYSBH748V3JjJULXo9tNzz00iKU4F+d9HM JS1X2UUf1lk+SY6L5eIfv/rYju8YFME2SQud9rafHyjXBrH0oivLpAL/ghg8gH3Nmu2A yXBMMZFdvnPpg1aUYqXDMMNgb9tyHvGZseC95+GptZUHT1QLrlaGxfPXPGc1Q7zh8LYK 0NMR+MoBdxvsLzNQbcexa/LvYOhkswa1YL9FrXFYBhFcA9+D1ugDjEXGiS/T9fNFL/Bt XuTQ== X-Gm-Message-State: APjAAAXjZNTY9RIefT9r+pBghOU2bltMfcg3fgiwpIpydj4spBzIs6EI l9eJL2fqvc1cpiKsmJPFMxPh11MCV3c= X-Google-Smtp-Source: APXvYqwJfDLVlHl7FJ49OSd2V+LQlOrJv+pIHtDyLnvBKL5W4ou9wn541gklNRDKWh0/13Pjg4xI2A== X-Received: by 2002:a5d:43d0:: with SMTP id v16mr675191wrr.390.1569006501922; Fri, 20 Sep 2019 12:08:21 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id z9sm4332141wrp.26.2019.09.20.12.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 12:08:21 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: buildroot@buildroot.org Date: Fri, 20 Sep 2019 21:08:13 +0200 Message-Id: <20190920190813.21516-4-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190920190813.21516-1-peron.clem@gmail.com> References: <20190920190813.21516-1-peron.clem@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] [DO NOT MERGE] board/beelink_gs1: add root passwd and eth0 auto 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: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Clément Péron --- board/beelink/gs1/rootfs_overlay/etc/network/interfaces | 7 +++++++ configs/beelink_gs1_defconfig | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 board/beelink/gs1/rootfs_overlay/etc/network/interfaces diff --git a/board/beelink/gs1/rootfs_overlay/etc/network/interfaces b/board/beelink/gs1/rootfs_overlay/etc/network/interfaces new file mode 100644 index 0000000000..0af5845617 --- /dev/null +++ b/board/beelink/gs1/rootfs_overlay/etc/network/interfaces @@ -0,0 +1,7 @@ +# Configure Loopback +auto lo +iface lo inet loopback + +# Configure eth0 with DHCP +auto eth0 +iface eth0 inet dhcp diff --git a/configs/beelink_gs1_defconfig b/configs/beelink_gs1_defconfig index ccf4771cc7..4794df7914 100644 --- a/configs/beelink_gs1_defconfig +++ b/configs/beelink_gs1_defconfig @@ -3,6 +3,8 @@ BR2_aarch64=y BR2_ARM_FPU_VFPV4=y BR2_TARGET_GENERIC_ISSUE="Welcome to Beelink GS1" BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_TARGET_GENERIC_ROOT_PASSWD="admin" +BR2_ROOTFS_OVERLAY="board/beelink/gs1/rootfs_overlay" BR2_ROOTFS_POST_BUILD_SCRIPT="board/beelink/gs1/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beelink/gs1/genimage.cfg"