From patchwork Thu Jun 14 07:16:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Sandusky X-Patchwork-Id: 929272 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=outlook.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.b="PiveOKZw"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 415wLs6QCPz9ry1 for ; Thu, 14 Jun 2018 17:32:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9868C89F9E; Thu, 14 Jun 2018 07:32:34 +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 8K1OCg5zH8JH; Thu, 14 Jun 2018 07:32:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8AEF189F68; Thu, 14 Jun 2018 07:32:32 +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 807DD1CEA32 for ; Thu, 14 Jun 2018 07:32:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7D2B48A3CD for ; Thu, 14 Jun 2018 07:32:29 +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 O2drkeswBqzC for ; Thu, 14 Jun 2018 07:32:27 +0000 (UTC) X-Greylist: delayed 00:15:27 by SQLgrey-1.7.6 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-oln040092013034.outbound.protection.outlook.com [40.92.13.34]) by whitealder.osuosl.org (Postfix) with ESMTPS id B3F108A42B for ; Thu, 14 Jun 2018 07:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dFrR/MXhdgcFFB/ZOm/JmRBomtR73THRb4mfqXp44ts=; b=PiveOKZw8zjzLgbrfqo3ZphA8fwhJevZ9C5y06aTon8rpHVgvCKKaehXianKuGNc6rdnyN4eF92EvZb+1TPrMir9/gLtgGqifxTofvtiUJQ3kFlGUFpUGksPkDZfMU5FgwzicfU62CkuSd2t7+orlVdypd8GCdPf2g/8ShKFbOu2vsTvMb2z8Zzl8F6eBJ4puL7534xxBKkq8Xq1lVvJ4RXLxQY1HAT5+Ve33WVegOsnoCLCRLsCuKcwreHQ1/TMYo/AORGvlxY8b5dhItiEKjH8/zXTt2zwVIpwHsZUoMVuVfZbebIvr9UTL5E4+a5MbWlnSUkMBHdLmw9930O7Fw== Received: from CO1NAM05FT058.eop-nam05.prod.protection.outlook.com (10.152.96.52) by CO1NAM05HT236.eop-nam05.prod.protection.outlook.com (10.152.97.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.863.7; Thu, 14 Jun 2018 07:16:57 +0000 Received: from BN6PR11MB1315.namprd11.prod.outlook.com (10.152.96.56) by CO1NAM05FT058.mail.protection.outlook.com (10.152.96.176) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.863.7 via Frontend Transport; Thu, 14 Jun 2018 07:16:57 +0000 Received: from BN6PR11MB1315.namprd11.prod.outlook.com ([fe80::5c77:1d4d:dd06:cce0]) by BN6PR11MB1315.namprd11.prod.outlook.com ([fe80::5c77:1d4d:dd06:cce0%3]) with mapi id 15.20.0863.016; Thu, 14 Jun 2018 07:16:57 +0000 From: Marc Sandusky To: "buildroot@buildroot.org" Thread-Topic: [PATCH 1/1] buildroot Added Banana Pi M2 Ultra platform Thread-Index: AQHUA6+thG5YrsIQlEiPDCDEDCLFaw== Date: Thu, 14 Jun 2018 07:16:57 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR04CA0088.namprd04.prod.outlook.com (2603:10b6:104:6::14) To BN6PR11MB1315.namprd11.prod.outlook.com (2603:10b6:404:49::11) x-incomingtopheadermarker: OriginalChecksum:57C0150AEF5FE242EEEC2F0E0AFE9194DF1CB794E65C75D6B2D1D17872158AB1; UpperCasedChecksum:B2F750E89B7B52DCAFE6DCD07C28C17D7DFB3553586FBE36E3F16B515CCA1574; SizeAsReceived:7410; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [DjmrIaMUw7N53Kp+2aIgQvfNQ2berVgU] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; CO1NAM05HT236; 7:FltRridc42ThQNLFuZE49DufvBzUt6e9SvgVcxknYwjLKhzAn8n7Nh/0BJAp2QT3unZAN+NgTct168060/3JI3EKBhtHZPrOL4lHrYuKiUaterUEf4zKiYnySHPUekj4261+OOMpVEh3ofl5D4r4YY27ERyYO6NCj4YktqWDKWAdtL4JxELtWxoI5sREgpoOkDqnJYWyyEzGNRNeFe0FWj0Dwt5nBa7sb9EM/1lG1pLwAlixFKIZMMmWNwAPQN4t x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(201702181274)(2017031322404)(1601125500)(1603101448)(1701031045); SRVR:CO1NAM05HT236; x-ms-exchange-slblob-mailprops: zaLzlM2NCG7yC954GNVj0mqa5reVuJvIn1clu0muQW0RKC6yqdvub8FuS5jkkNc9FcmzbOrzYC/VxlQm4QKh2e+CuWB7C1C0hR9n/Aq+fBITCPgR6eGXGyGJkTj5IMfWUk/JaVHlXUk+orlVch2sytDVpI6H9UK1go+nlwoxkJi8f7G+/jv1vTi0UOqugoLApzou58HKIyHAcMGASr3N37JNEdpdbIcWF+BXafTbGIJ2/c+PKm7+I+IYd4zLLkHWZYyz1YsR+7hz0PUstEICYVMp01GXBq+TzPsOXgNZ+VFucbq2ncsk+kJtYePmQVo+f+3ZWKTpA25j06gLE/Bv3tk1a3eR96wTMyIlhqN8ybNTfJpQeTzkBW11JnhdTRxDYCOR/ie+yg+GBUctBDrAw+Yyo/DLpJlSTw0Za6/glutLc5OMYtZgNGrqOiqBIglLdyDMaZXTQCzodxbMG6OkdwgSrJUvFbJz3lt704MM8sT+7kPsjSJCD48JWv11bWnLO9+ocoeDwCpO3SngJjUovI6AphMlZpqSj6NgW7mw58KWhgs59l0m73/mt9gc+K3CHB6JRmC3Tf02jkG1PmLxBrIT2QNmP9rI1ceSKcCoaUhatBi2wsromdx6JzjJPSIdIvAe9ONydmRYtV9+ltf2YlkEhgf19gmvCmLjR+YhLu8bm6EZW6FPQitTbnuYMUOkLXv2Sfn8sj294N4rNvNcjf5KjWZdIoyUl7fDAxlhsSFlMqqJCuQLwTmEEGIV4EP5FU8OY6z/NQcfY9WTJ2kaRTXhHS8FL1yIf+xHmzLal1hEuhC54KuuF3WDpmIlJpjEVPsvsijuCDD/PY4cz4Eez+Avrc2TJM6KUgrRFH5kzig= x-ms-traffictypediagnostic: CO1NAM05HT236: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:CO1NAM05HT236; BCL:0; PCL:0; RULEID:; SRVR:CO1NAM05HT236; x-forefront-prvs: 0703B549E4 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(189003)(199004)(386003)(106356001)(26005)(14454004)(105586002)(5250100002)(87572001)(2501003)(74316002)(305945005)(97736004)(20460500001)(81156014)(8676002)(1730700003)(8936002)(25786009)(39060400002)(6916009)(82202002)(6306002)(55016002)(6436002)(5640700003)(33656002)(5660300001)(2351001)(102836004)(4326008)(476003)(104016004)(486006)(7696005)(86362001)(575784001)(426003)(3280700002)(3660700001)(54906003)(2900100001)(68736007)(59450400001)(99286004)(6346003)(139555002); DIR:OUT; SFP:1901; SCL:1; SRVR:CO1NAM05HT236; H:BN6PR11MB1315.namprd11.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; received-spf: None (protection.outlook.com: outlook.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=marc_sandusky@outlook.com; x-microsoft-antispam-message-info: HXVbU/tA45TTrDhHLryiwTSK839WofWlYzDmnt+koxok2iaCicrNVxT+elCVMNgkH8Uw5PvZbckrS3VRcg6lJs8vWiGP0xYUNW7JUpExPlXtHxnwhnSIAXXdnmH9Vn10J9cRhE4dL0s2eD2/sPtaOo6ruTeANs008lE60Baiw9EDfbE7cUzzSDRQuovRcaBA MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 9a4e3081-9524-43cf-bfc3-dcaef82d5da1 X-MS-Exchange-CrossTenant-Network-Message-Id: 8faec878-b5ae-463c-6402-08d5d1c6cf90 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 9a4e3081-9524-43cf-bfc3-dcaef82d5da1 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2018 07:16:57.4672 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM05HT236 Subject: [Buildroot] [PATCH 1/1] buildroot Added Banana Pi M2 Ultra platform X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Sandusky , Jagan Teki Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Added a default configuration file and supporting board support files for the Banana Pi M2 Ultra platform. The port is based on the ports for the Banana Pi M1 and Banana Pi M2 Plus platforms, and provides for a duplicate feature set. In addition to the default configuration file this port includes a boot script, an SD card definition file and a readme file explaining its usage. Signed-off-by: Marc Sandusky Reviewed-by: Jagan Teki --- board/bananapi/bananapi-m2u/boot.cmd | 7 +++++ board/bananapi/bananapi-m2u/genimage.cfg | 33 ++++++++++++++++++++++ board/bananapi/bananapi-m2u/readme.txt | 34 ++++++++++++++++++++++ configs/bananapi_m2_ultra_defconfig | 36 ++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 board/bananapi/bananapi-m2u/boot.cmd create mode 100644 board/bananapi/bananapi-m2u/genimage.cfg create mode 100644 board/bananapi/bananapi-m2u/readme.txt create mode 100644 configs/bananapi_m2_ultra_defconfig diff --git a/board/bananapi/bananapi-m2u/boot.cmd b/board/bananapi/bananapi-m2u/boot.cmd new file mode 100644 index 0000000000..9c24eabff6 --- /dev/null +++ b/board/bananapi/bananapi-m2u/boot.cmd @@ -0,0 +1,7 @@ +setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait + +mmc dev 0 +fatload mmc 0 $kernel_addr_r zImage +fatload mmc 0 $fdt_addr_r sun8i-r40-bananapi-m2-ultra.dtb + +bootz $kernel_addr_r - $fdt_addr_r diff --git a/board/bananapi/bananapi-m2u/genimage.cfg b/board/bananapi/bananapi-m2u/genimage.cfg new file mode 100644 index 0000000000..675253af23 --- /dev/null +++ b/board/bananapi/bananapi-m2u/genimage.cfg @@ -0,0 +1,33 @@ +image boot.vfat { + vfat { + files = { + "zImage", + "sun8i-r40-bananapi-m2-ultra.dtb", + "boot.scr" + } + } + 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/bananapi/bananapi-m2u/readme.txt b/board/bananapi/bananapi-m2u/readme.txt new file mode 100644 index 0000000000..d48fb4b9ba --- /dev/null +++ b/board/bananapi/bananapi-m2u/readme.txt @@ -0,0 +1,34 @@ +Intro +===== + +This default configuration will allow you to start experimenting with the +buildroot environment for the Bananapi M2U. With the current configuration +it will bring-up the board, and allow access through the serial console. + +Bananapi M2U link: +http://www.banana-pi.org/m2u.html + +This configuration uses U-Boot mainline and kernel mainline. + +How to build +============ + + $ make bananapi_m2_ultra_defconfig + $ make + +Note: you will need access to the internet to download the required +sources. + +How to write the SD card +======================== + +Once the build process is finished you will have an image called "sdcard.img" +in the output/images/ directory. + +Copy the bootable "sdcard.img" onto an SD card with "dd": + + $ sudo dd if=output/images/sdcard.img of=/dev/sdX + $ sudo sync + +Insert the micro SDcard in your Bananapi M2U and power it up. The console +is on the serial line, 115200 8N1. diff --git a/configs/bananapi_m2_ultra_defconfig b/configs/bananapi_m2_ultra_defconfig new file mode 100644 index 0000000000..a7925115cf --- /dev/null +++ b/configs/bananapi_m2_ultra_defconfig @@ -0,0 +1,36 @@ +BR2_arm=y +BR2_cortex_a7=y + +# Linux headers same as kernel, a 4.15 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15=y + +# Bootloader +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.03" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Bananapi_M2_Ultra" +BR2_TARGET_UBOOT_NEEDS_DTC=y +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" +BR2_TARGET_UBOOT_BOOT_SCRIPT=y +BR2_TARGET_UBOOT_BOOT_SCRIPT_SOURCE="board/bananapi/bananapi-m2u/boot.cmd" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.15.15" +BR2_LINUX_KERNEL_DEFCONFIG="sunxi" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-r40-bananapi-m2-ultra" + +# Filesystem +BR2_TARGET_GENERIC_ISSUE="Welcome to Bananapi M2 Ultra" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/bananapi/bananapi-m2u/genimage.cfg"