From patchwork Sat Oct 15 16:51:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 682570 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sxB1j05Glz9s9c for ; Sun, 16 Oct 2016 04:15:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=laposte.net header.i=@laposte.net header.b=GsfQZh0D; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3C8A09248E; Sat, 15 Oct 2016 17:15:34 +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 2Mc4qlfI3xaM; Sat, 15 Oct 2016 17:15:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0C182923AA; Sat, 15 Oct 2016 17:15:31 +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 D67A01C20D0 for ; Sat, 15 Oct 2016 17:15:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D2917C253B for ; Sat, 15 Oct 2016 17:15:29 +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 Qvp8CrGoO34w for ; Sat, 15 Oct 2016 17:15:26 +0000 (UTC) X-Greylist: delayed 00:23:01 by SQLgrey-1.7.6 Received: from smtp.laposte.net (smtpoutz27.laposte.net [194.117.213.102]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8FAC5C2535 for ; Sat, 15 Oct 2016 17:15:26 +0000 (UTC) Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id D58AB1C89C5 for ; Sat, 15 Oct 2016 18:52:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=laposte.net; s=mail0; t=1476550342; bh=SouBVCIM47RddYGfBwwTAWBX5HozHqlKXkz29ZWGVx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GsfQZh0D9Xps+Hy2BKmrsBAk8QD15muRzwVkT1cHtph2Q3tBejfmRH/C5rOsuP6lN OTrGCJuvp4kTUKhcsSWRNWgmMf1lzx1elwAhkdJZ1FCa7NLDyHGQ5C1218UYMsjFgF crdhitORqTlWwAaJLjCvdkXkcO4gbtkfIUIMkE9q2KijP+BFOhva1JmVsFT8rs+d83 6vd0yv5h88ZZqYan90noVE/8GEmhlUK+nbhdff2xZ7cJt5wo/Ewfr98HQhK1iPMnpf x3QheFZVkV2PSTBvvLmyoElSlm4NL2q3zpL5jVgtgWrV08hzaj3W7nxgSIxSqhL1QP g91iNp1/YIXIw== Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout015 (Postfix) with ESMTP id C6CE31C8AE6 for ; Sat, 15 Oct 2016 18:52:22 +0200 (CEST) Received: from lpn-prd-vrin002 (lpn-prd-vrin002.prosodie [10.128.63.3]) by lpn-prd-vrout015 (Postfix) with ESMTP id C1B401C89C5 for ; Sat, 15 Oct 2016 18:52:22 +0200 (CEST) Received: from lpn-prd-vrin002 (localhost [127.0.0.1]) by lpn-prd-vrin002 (Postfix) with ESMTP id B13A45BF307 for ; Sat, 15 Oct 2016 18:52:22 +0200 (CEST) Received: from romuald.bergerie (rqp06-1-88-178-86-202.fbx.proxad.net [88.178.86.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lpn-prd-vrin002 (Postfix) with ESMTPSA id 6DB365BF2E9; Sat, 15 Oct 2016 18:52:22 +0200 (CEST) Received: from radicelle.bergerie (radicelle.bergerie [192.168.124.12]) by romuald.bergerie (Postfix) with ESMTPS id C949717A64A4; Sat, 15 Oct 2016 18:52:21 +0200 (CEST) Received: from vincent by radicelle.bergerie with local (Exim 4.87) (envelope-from ) id 1bvSC5-0005Fb-OS; Sat, 15 Oct 2016 18:52:21 +0200 From: Vincent Stehle To: peter@korsgaard.com Date: Sat, 15 Oct 2016 18:51:55 +0200 Message-Id: <20161015165155.20004-1-vincent.stehle@laposte.net> X-Mailer: git-send-email 2.9.3 In-Reply-To: References: MIME-Version: 1.0 X-VR-SrcIP: 88.178.86.202 X-VR-FullState: 0 X-VR-Score: 0 X-VR-Cause-1: gggruggvucftvghtrhhoucdtuddrfeelvddrgeekgddutdeiucetufdoteggodetrfdotffvucfrrhho X-VR-Cause-2: fhhilhgvmecunfetrffquffvgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffk X-VR-Cause-3: ofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeggihhntggvnhhtucfuthgvhhhlvgcuoehvihhn X-VR-Cause-4: tggvnhhtrdhsthgvhhhlvgeslhgrphhoshhtvgdrnhgvtheqnecuffhomhgrihhnpegvvhefuggvvhdr X-VR-Cause-5: ohhrghdpghhithhhuhgsrdgtohhmpdgsohhtsggvnhgthhdrtghomhenucfkphepkeekrddujeekrdek X-VR-Cause-6: iedrvddtvdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehrohhmuhgrlhgurdgs X-VR-Cause-7: vghrghgvrhhivgdpihhnvghtpeekkedrudejkedrkeeirddvtddvpdhmrghilhhfrhhomhepvhhinhgt X-VR-Cause-8: vghnthdrshhtvghhlhgvsehlrghpohhsthgvrdhnvghtpdhrtghpthhtoheprghrnhhouhhtsehmihhn X-VR-Cause-9: ugdrsggv X-VR-AvState: No X-VR-State: 0 X-VR-State: 0 Cc: =?UTF-8?q?Vincent=20Stehl=C3=A9?= , buildroot@buildroot.org Subject: [Buildroot] [PATCH] configs/lego_ev3: bump kernel to 4.4 series X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" From: Vincent Stehlé Bump kernel revision used by lego_ev3_defconfig to the latest tag from ev3dev, as suggested by Peter. This is a 4.4 series kernel, which has the added benefit of not necessitating a specific gcc to boot. We need a patch to create an empty drivers/lego/Kconfig file for the build to succeed though, as the ev3dev kernel normally expects a drivers tree to be checked out there. Signed-off-by: Vincent Stehlé Suggested-by: Peter Korsgaard Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Hi Peter, Thanks for the suggestion. Here is a patch to update lego_ev3_defconfig. This boots fine for me, with gcc 5.4. One remark though: the ev3dev project has a separate drivers tree managed as a git submodule of the kernel (!) I do not really know how to cope with that properly, so I just added a patch to repair the build for the moment. Do you know if it is possible for the `linux' recipe to have extra downloads like other packages do? But how would one extract the extra archives to the proper place then? Maybe this calls for an additional `ev3 drivers' package after all, what do you think? Arnout I just saw your e-mail. Thanks for the config file, I double-checked the one in this patch. If you don't mind I'd rather stay with a git tree (shallow cloned) rather than a tarball. Is that ok for you? Best regards, Vincent. .../0001-Create-empty-drivers-lego-Kconfig.patch | 24 ++++++++++++++++++++++ board/lego/ev3/readme.txt | 10 +++------ configs/lego_ev3_defconfig | 14 ++++++------- 3 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 board/lego/ev3/patches/linux/0001-Create-empty-drivers-lego-Kconfig.patch diff --git a/board/lego/ev3/patches/linux/0001-Create-empty-drivers-lego-Kconfig.patch b/board/lego/ev3/patches/linux/0001-Create-empty-drivers-lego-Kconfig.patch new file mode 100644 index 0000000..614d53d --- /dev/null +++ b/board/lego/ev3/patches/linux/0001-Create-empty-drivers-lego-Kconfig.patch @@ -0,0 +1,24 @@ +From 72c5727488f10160abfadcc77dd9763c4408b5e9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= +Date: Sat, 15 Oct 2016 16:23:31 +0200 +Subject: [PATCH] Create empty drivers/lego/Kconfig +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Vincent Stehlé +--- + drivers/lego/Kconfig | 1 + + 1 file changed, 1 insertion(+) + create mode 100644 drivers/lego/Kconfig + +diff --git a/drivers/lego/Kconfig b/drivers/lego/Kconfig +new file mode 100644 +index 0000000..d7cbf4f +--- /dev/null ++++ b/drivers/lego/Kconfig +@@ -0,0 +1 @@ ++# Empty Kconfig just to make source from drivers/Kconfig succeed. +-- +2.9.3 + diff --git a/board/lego/ev3/readme.txt b/board/lego/ev3/readme.txt index 3c0bd2e..7d9ec4f 100644 --- a/board/lego/ev3/readme.txt +++ b/board/lego/ev3/readme.txt @@ -16,11 +16,8 @@ See: The buildroot configuration uses the Linux kernel of the ev3dev project. See: -- http://botbench.com/blog/2013/07/31/lego-mindstorms-ev3-source-code-available/ -- https://github.com/mindboards/ev3sources - -Note that the EV3 configuration uses gcc 4.7, as the boot is broken with gcc -4.8. +- https://github.com/ev3dev/ev3-kernel/ +- http://www.ev3dev.org/ How it works ============ @@ -61,13 +58,12 @@ After building, you should obtain this tree: ├── rootfs.ext3 -> rootfs.ext2 └── uImage - Prepare your SDcard =================== The following µSD card layout is recommended: -- First partition formated with a FAT filesystem, containing the uImage. +- First partition formatted with a FAT filesystem, containing the uImage. - Second partition formatted as ext2 or ext3, containing the root filesystem. Create the SDcard partition table diff --git a/configs/lego_ev3_defconfig b/configs/lego_ev3_defconfig index d49fa06..1ddc4f9 100644 --- a/configs/lego_ev3_defconfig +++ b/configs/lego_ev3_defconfig @@ -2,23 +2,23 @@ BR2_arm=y BR2_arm926t=y -# toolchain -# Use gcc 4.7, as gcc 4.8 breaks the boot. -BR2_GCC_VERSION_4_7_X=y +# patches +BR2_GLOBAL_PATCH_DIR="board/lego/ev3/patches" # system BR2_TARGET_GENERIC_GETTY=y BR2_TARGET_GENERIC_GETTY_PORT="ttyS1" -# Linux headers same as kernel, a 3.3 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_3=y +# Linux headers same as kernel, a 4.4 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_GIT=y -BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/mindboards/ev3dev-kernel.git" -BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v3.3.0-2-ev3dev_0" +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/ev3dev/ev3dev-kernel.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v4.4.19-15-ev3dev-ev3_1" BR2_LINUX_KERNEL_DEFCONFIG="ev3dev" +BR2_LINUX_KERNEL_UIMAGE=y # filesystem BR2_TARGET_ROOTFS_EXT2=y