From patchwork Sun Jun 9 14:57:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1112653 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=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="cU9Cs4Bs"; 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 45MKBj6rkDz9s6w for ; Mon, 10 Jun 2019 00:58:05 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7275A85B04; Sun, 9 Jun 2019 14:58:03 +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 ffkG2TnJUHgf; Sun, 9 Jun 2019 14:58:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4ED3D854D0; Sun, 9 Jun 2019 14:58:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E420B1BF59C for ; Sun, 9 Jun 2019 14:57:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DD5052002F for ; Sun, 9 Jun 2019 14:57:59 +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 7oPOCB20j04p for ; Sun, 9 Jun 2019 14:57:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 811CF1FF59 for ; Sun, 9 Jun 2019 14:57:58 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id n4so6650564wrs.3 for ; Sun, 09 Jun 2019 07:57:58 -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; bh=HHwwiBIXzP1XGpq1vRtbRCJkxH50vHWAu+CIlbn3+t0=; b=cU9Cs4BsAuiM3FnKI//dF+0+3lSBpeLrSXBpnh0PLtLmuwA31x9kbMusB8rUJilM1V syCKhUtcOzGwpHSXmFF4EOzkq+pcRvAsigmEsYTFRC5x3X2HrfVDllc/qKtIxbDaR/lR wLwC9788K6BaMarxPcIToGo+8So0MeO930T+WsOTKc1+uP1J+rCo9cTzA5gcNhq2e5tx lNsonsyHIxo+Q9tRvLXkZO11r9uDDn7jCOQNe0kRFkaUCuCD5T/aIiGeOy9pb53LYpDd W6yVWJQ6ZZn4o3VluIwNKGa9gZWynHov0/QylKTzMLZkLQnMMHKftNIqTkxuoTkIPAXc JlUQ== 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; bh=HHwwiBIXzP1XGpq1vRtbRCJkxH50vHWAu+CIlbn3+t0=; b=payzcDyezGbiVntvH2urj4yiik6z1bwC1LcR0HxZXPGHa0GhWgxfET4ILz6UfBw8zq uLS7P7FJvEKdXM/cSemncRD22XQOzICwc9FFuz238ITthpKQnkVoN27+AXYH/xg+E7yb 9db60Q2EJI2XGaffBakSl0tfItgqpf0CVMeYMBNxuirsO1W7KMYa6YJ+OyL049teCYVM jEfPs0v+Rj10lPClRx1MGWILMxHQqMYxGP9G/hX8cD3aHr6+g3RupnYEkd/Vm5Nxm+4z i30m7C4iBsI/jsHH2UxbknnGNdYXIa/qirJdXw9NmGDTFeDngUjzfeGjVEqgbeey1VrU uWNg== X-Gm-Message-State: APjAAAUsxIpgVCKfZl+ZMHKel6rtuYZp9BgihoTtQnM/K7QaLaQ1UwIH MC0uNO+3okzgOcriL4RFMLOgBcpq7qc= X-Google-Smtp-Source: APXvYqyeS0JaIJnLsdbNgMD4luCWeJbKIDyEHYb9oHEdqnacldGo6uj+hoKFmWibasNYrKlrA+Dgvg== X-Received: by 2002:adf:fdc2:: with SMTP id i2mr24333415wrs.146.1560092276747; Sun, 09 Jun 2019 07:57:56 -0700 (PDT) Received: from furher.home ([2a01:cb19:16b:9900:38ad:5796:9d4b:19c2]) by smtp.gmail.com with ESMTPSA id 11sm7504448wmd.23.2019.06.09.07.57.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 07:57:56 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Sun, 9 Jun 2019 16:57:47 +0200 Message-Id: <20190609145749.28766-1-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/3] configs/imx7dpico: Bump Linux and U-Boot 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: Joris Offouga , Fabio Estevam MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This commit bumps Linux & Linux-headers to 5.1 and U-Boot to version 2019.01. With U-Boot version 2019.01, imx7dpico boot with distrobootcmd also introduce extlinux file also remove patch and change TARGET_UBOOT_BOARNAME for select correct defconfig in U-Boot. Signed-off-by: Joris Offouga Tested-by: Pierre-Jean Texier --- .../patches/uboot/0001-picomx7dname.patch | 31 ------------------- board/technexion/imx7dpico/readme.txt | 3 +- .../boot/extlinux/extlinux.conf | 4 +++ configs/imx7dpico_defconfig | 19 ++++++------ 4 files changed, 16 insertions(+), 41 deletions(-) delete mode 100644 board/technexion/imx7dpico/patches/uboot/0001-picomx7dname.patch create mode 100644 board/technexion/imx7dpico/rootfs_overlay/boot/extlinux/extlinux.conf diff --git a/board/technexion/imx7dpico/patches/uboot/0001-picomx7dname.patch b/board/technexion/imx7dpico/patches/uboot/0001-picomx7dname.patch deleted file mode 100644 index 59408bcd7a..0000000000 --- a/board/technexion/imx7dpico/patches/uboot/0001-picomx7dname.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 6d298b0fcacfc555f93864fa45fb612140902388 Mon Sep 17 00:00:00 2001 -From: Fabio Estevam -Date: Tue, 5 Jun 2018 22:12:48 -0300 -Subject: [PATCH] pico-imx7d: Adjust the dtb name - -Since kernel commit 41bbeadceb03 ("ARM: dts: imx7d-pico-pi: Separate -into cpu and baseboard dts") the dtb name has changed. - -Fix it accordingly. - -Signed-off-by: Fabio Estevam ---- - include/configs/pico-imx7d.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h -index b208d7f..d2ffa70 100644 ---- a/include/configs/pico-imx7d.h -+++ b/include/configs/pico-imx7d.h -@@ -41,7 +41,7 @@ - "console=ttymxc4\0" \ - "fdt_high=0xffffffff\0" \ - "initrd_high=0xffffffff\0" \ -- "fdt_file=imx7d-pico.dtb\0" \ -+ "fdt_file=imx7d-pico-pi.dtb\0" \ - "fdt_addr=0x83000000\0" \ - "ip_dyn=yes\0" \ - "mmcdev="__stringify(CONFIG_SYS_MMC_ENV_DEV)"\0" \ --- -2.7.4 - diff --git a/board/technexion/imx7dpico/readme.txt b/board/technexion/imx7dpico/readme.txt index cda3f285eb..07e089c38e 100644 --- a/board/technexion/imx7dpico/readme.txt +++ b/board/technexion/imx7dpico/readme.txt @@ -20,7 +20,8 @@ You will find in output/images/ the following files: - rootfs.ext4 - rootfs.tar - sdcard.img - - u-boot.imx + - u-boot.img + - SPL - zImage Flash the eMMC diff --git a/board/technexion/imx7dpico/rootfs_overlay/boot/extlinux/extlinux.conf b/board/technexion/imx7dpico/rootfs_overlay/boot/extlinux/extlinux.conf new file mode 100644 index 0000000000..4824aff079 --- /dev/null +++ b/board/technexion/imx7dpico/rootfs_overlay/boot/extlinux/extlinux.conf @@ -0,0 +1,4 @@ +Label imx7d-pico-buildroot + kernel /boot/zImage + devicetree /boot/imx7d-pico-pi.dtb + append root=PARTUUID=${uuid} rootwait rw console=${console},${baudrate} \ No newline at end of file diff --git a/configs/imx7dpico_defconfig b/configs/imx7dpico_defconfig index 93e3fd7414..cd12e282ef 100644 --- a/configs/imx7dpico_defconfig +++ b/configs/imx7dpico_defconfig @@ -3,11 +3,8 @@ BR2_arm=y BR2_cortex_a7=y BR2_ARM_FPU_NEON_VFPV4=y -# patches -BR2_GLOBAL_PATCH_DIR="board/technexion/imx7dpico/patches" - -# Linux headers same as kernel, a 4.17 series -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_17=y +# Linux headers same as kernel, a 5.1 series +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_1=y # system BR2_TARGET_GENERIC_GETTY_PORT="ttymxc4" @@ -15,18 +12,21 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttymxc4" # kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.17" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.1.6" BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx7d-pico-pi" BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_LINUX_KERNEL_INSTALL_TARGET=y # bootloader BR2_TARGET_UBOOT=y -BR2_TARGET_UBOOT_BOARDNAME="pico-imx7d" +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_SPL_NAME="SPL" +BR2_TARGET_UBOOT_BOARDNAME="pico-pi-imx7d" BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.05" -BR2_TARGET_UBOOT_FORMAT_IMX=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" +BR2_TARGET_UBOOT_FORMAT_IMG=y # required tools to create the eMMC image BR2_PACKAGE_HOST_DOSFSTOOLS=y @@ -34,6 +34,7 @@ BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_MTOOLS=y # filesystem / image +BR2_ROOTFS_OVERLAY="board/technexion/imx7dpico/rootfs_overlay" BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/common/imx/post-image.sh" BR2_TARGET_ROOTFS_EXT2=y BR2_TARGET_ROOTFS_EXT2_4=y From patchwork Sun Jun 9 14:57:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1112654 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=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="Ldm4+Yqa"; 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 45MKBr6ChGz9s6w for ; Mon, 10 Jun 2019 00:58:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 29D8C85B99; Sun, 9 Jun 2019 14:58:11 +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 I0QWY1ZlXv2Z; Sun, 9 Jun 2019 14:58:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1AB5285533; Sun, 9 Jun 2019 14:58:09 +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 755E31BF59C for ; Sun, 9 Jun 2019 14:58:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 72A1287476 for ; Sun, 9 Jun 2019 14:58:08 +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 ej-RfrrB9pcl for ; Sun, 9 Jun 2019 14:58:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8F49787568 for ; Sun, 9 Jun 2019 14:58:07 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id b17so6609226wrq.11 for ; Sun, 09 Jun 2019 07:58:07 -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; bh=VpR7lDHQkjbVbbJHQTE7V74vUVoFRv2SRmJHAJ9d2iI=; b=Ldm4+YqaXnAX6N2qFin2i5bWqZ/sdOcyVGmWSM/fniV2YG44MaHytGBYBmdq3tCbp+ 1+FG5xC1ezRLIqEeteq+i5cUNKDnuTYYu2F2eq0oxAIdBgsgYfuf0auz6mDWO3kHZkbl qONEFdON8bKe2C97ub6Uq9tXO0gc+wlVz39c+BPM7tJkcuTH6WfPhizbPO4zpBh0fIp+ uCCLZlziT406Pzp43HkEmg2Xi+gBAWp/uu3xURKGkDAKE1ZzvKGJtxCtVtfHfSnm/iwQ 8g0/D7o1TqeoocDjwuk1kTkB/fTKczBXh9dKE82Q+FlSzw5e0m3VT/NvLnbHJ727jeV7 HnUw== 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; bh=VpR7lDHQkjbVbbJHQTE7V74vUVoFRv2SRmJHAJ9d2iI=; b=OOQTRGHaRWfqMxJmGoN++0UxeT3aSGAqtQp74Ur+nG8kXJdNEPltFHT60jzFMNEC8b PHQdYDHOqpagJyMHoGHCXrKlAqsxmIO2OqPFlQtcGIIBgZmMH0JhIkLEsU665ANIa8Kc avUbLowhoyd6YbB1OQJtymByW7iBanuIc9LEDxAOO0SfWRgGMYIZDeUv1RglveDJCVly B+jjRugPQrO4D2qZWaFx3375IFOLtkoxwWy5VpX6wiWQg+BUnEn/l+NfB2kY44SXWB9S ipV6vgfjIxT8mNISF99VMPLkTqb+rOsbHcatlC0uRefc7EQCn8YyVMcL52OnAmUvMwVw tIdg== X-Gm-Message-State: APjAAAVm6csAls0YI52Pn3Kwo0Ru9u301nOgdgjirErz8ygkVuya+Jk9 e/ufOKFrYoqnXk++Ec5k7krYzEgYbjI= X-Google-Smtp-Source: APXvYqyCzq1ajzbCzTtJphUEReUhdsKt3kxCTnHuqyZ9ocIvpqcyHw8Giac906MtrfLbPugrSTQJEw== X-Received: by 2002:a5d:4bc7:: with SMTP id l7mr12993112wrt.96.1560092285835; Sun, 09 Jun 2019 07:58:05 -0700 (PDT) Received: from furher.home ([2a01:cb19:16b:9900:38ad:5796:9d4b:19c2]) by smtp.gmail.com with ESMTPSA id 11sm7504448wmd.23.2019.06.09.07.58.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 07:58:05 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Sun, 9 Jun 2019 16:57:48 +0200 Message-Id: <20190609145749.28766-2-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190609145749.28766-1-offougajoris@gmail.com> References: <20190609145749.28766-1-offougajoris@gmail.com> Subject: [Buildroot] [PATCH 2/3] boards/freescale/common: Introduce template_no_boot_part 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: Pierre-Jean Texier , Joris Offouga MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This includes the no_boot_part templates which use a /boot included in rootfs. Signed-off-by: Joris Offouga Signed-off-by: Pierre-Jean Texier --- .../imx/genimage.cfg.template_no_boot_part | 23 +++++++++++++++ .../genimage.cfg.template_no_boot_part_spl | 29 +++++++++++++++++++ board/freescale/common/imx/post-image.sh | 6 ++++ 3 files changed, 58 insertions(+) create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part create mode 100644 board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part b/board/freescale/common/imx/genimage.cfg.template_no_boot_part new file mode 100644 index 0000000000..9e19b4ee3e --- /dev/null +++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part @@ -0,0 +1,23 @@ +# Minimal SD card image for the Freescale boards Template +# +# We mimic the .sdcard Freescale's image format: +# * the SD card must have 1 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "%UBOOTBIN%" + offset = 1024 + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +} diff --git a/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl new file mode 100644 index 0000000000..6d3ae183e3 --- /dev/null +++ b/board/freescale/common/imx/genimage.cfg.template_no_boot_part_spl @@ -0,0 +1,29 @@ +# Minimal SD card image for the Freescale boards Template for SPL Boot +# +# We mimic the .sdcard Freescale's image format: +# * the SD card must have 1 kB free space at the beginning, +# * U-Boot is dumped as is, +# * a single root filesystem partition is required (ext2, ext3 or ext4) +# + +image sdcard.img { + hdimage { + } + + partition spl { + in-partition-table = "no" + image = "SPL" + offset = 1024 + } + + partition u-boot-img { + in-partition-table = "no" + image = "u-boot.img" + offset = 69K + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + } +} diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index 12a5bea73b..851ce97c57 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -36,6 +36,12 @@ genimage_type() echo "genimage.cfg.template_imx8" elif grep -Eq "^BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_imx8" + elif grep -Eq "^BR2_LINUX_KERNEL_INSTALL_TARGET=y$" ${BR2_CONFIG}; then + if grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then + echo "genimage.cfg.template_no_boot_part_spl" + else + echo "genimage.cfg.template_no_boot_part" + fi elif grep -Eq "^BR2_TARGET_UBOOT_SPL=y$" ${BR2_CONFIG}; then echo "genimage.cfg.template_spl" else From patchwork Sun Jun 9 14:57:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joris OFFOUGA X-Patchwork-Id: 1112655 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="A5doC55I"; 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 45MKBz1HGjz9s9y for ; Mon, 10 Jun 2019 00:58:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 28B8E875BB; Sun, 9 Jun 2019 14:58:17 +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 WG8I27nJaOcB; Sun, 9 Jun 2019 14:58:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EEDC387476; Sun, 9 Jun 2019 14:58:14 +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 13EC91BF59C for ; Sun, 9 Jun 2019 14:58:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 11946853FC for ; Sun, 9 Jun 2019 14:58:13 +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 mso2+qthyDs2 for ; Sun, 9 Jun 2019 14:58:12 +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 whitealder.osuosl.org (Postfix) with ESMTPS id 10DFA85B00 for ; Sun, 9 Jun 2019 14:58:12 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id x4so3969276wrt.6 for ; Sun, 09 Jun 2019 07:58:11 -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; bh=xcIaUwsEqUDaNUYAvxe+Ufu/aSWWx5TXTI9csX4/zEE=; b=A5doC55IJpr9ZFkOS6FnMRAIsgrsxHQCyqIDo2rfrqi6fRUh6JxHuVlWt2mx33MoIY Wd903mah//RLbnUnKXjFW4dgjF/j5o6O008T0ZbEs2VR0yTSsNAJKPesFMad1rIrhMQb jr9eFUEVrUGnp2CL/KKCEXuLzvJqFblZMpy0sMU5AszJKj6ZPPX+3KEr2QqfeHpVD2f8 6NCgFKuPWjHuAuWFbczCyuIAf+eXe5sVI89KV1OCMiym4OPUxWBwuogkQPoGDHKJgPqu YKLO+AU+1GDd+p0J0kmhSrq0lxkeqIcJUCHBxLPt21w2H+oet4eS2N0siePmYutay2vX 8yJQ== 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; bh=xcIaUwsEqUDaNUYAvxe+Ufu/aSWWx5TXTI9csX4/zEE=; b=S80e+g7UuH0MEC50doUtDa5CibpNlNDS7TpQoGLn82FYrZqihQ2kwfWw0pPJsJYjHt pgWvgkm22lu3vIkXDMzP8ujpO0hPhbVVvywObqiUf6+aqCEjbc0q+aJf6rJ/x9qfROvb Q7QgWnNqc4oFDAU+YhGD5k4eNTlz8iZMZs3qr9wmYBE/TcEiAkaJimLq9lT5wh5b04eQ idvQQfpsjLFwSHx3sk5cYkctirFWg/efCKmsoSgkuVw9tnyEXnrDcau0BI6eapVci/fh TMo5cd7xCCWQYu6oivFXVk0N7KA66xIFinF3t3DsgwbMPPe5TNReoaYNm144GLpBlv+U +6hw== X-Gm-Message-State: APjAAAX+rU+MgBl2EQp1aUi6HQNxoceZdWT90nhV38GDDCN0UTZDKdm6 mmXaQ6sdpKIdRYQUweVzwzYDbrMNJqg= X-Google-Smtp-Source: APXvYqwmOBZ6Zcvuv53+/OBmcC2EIZfHjCcHveHudWjQU6gjlD3FMF1xHezxbgzbYnjLlJkMpQ31aw== X-Received: by 2002:a05:6000:1241:: with SMTP id j1mr3489698wrx.63.1560092290430; Sun, 09 Jun 2019 07:58:10 -0700 (PDT) Received: from furher.home ([2a01:cb19:16b:9900:38ad:5796:9d4b:19c2]) by smtp.gmail.com with ESMTPSA id 11sm7504448wmd.23.2019.06.09.07.58.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jun 2019 07:58:10 -0700 (PDT) From: Joris Offouga To: buildroot@buildroot.org Date: Sun, 9 Jun 2019 16:57:49 +0200 Message-Id: <20190609145749.28766-3-offougajoris@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190609145749.28766-1-offougajoris@gmail.com> References: <20190609145749.28766-1-offougajoris@gmail.com> Subject: [Buildroot] [PATCH 3/3] configs/imx7dpico: Add Wifi 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: Joris Offouga , Fabio Estevam MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" imx7dpico has a BCM4339 Wifi chip. Add Wifi support by default to allow a better customer experience. Signed-off-by: Joris Offouga Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- board/technexion/imx7dpico/readme.txt | 11 +++ .../lib/firmware/brcm/brcmfmac4339-sdio.txt | 99 +++++++++++++++++++ configs/imx7dpico_defconfig | 12 +++ 3 files changed, 122 insertions(+) create mode 100644 board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt diff --git a/board/technexion/imx7dpico/readme.txt b/board/technexion/imx7dpico/readme.txt index 07e089c38e..1b9e80a0fd 100644 --- a/board/technexion/imx7dpico/readme.txt +++ b/board/technexion/imx7dpico/readme.txt @@ -57,4 +57,15 @@ To boot your newly created system: emulator at 115200 bps, 8n1; - power on the board. +Using Wifi +========== + +# modprobe brcmfmac +# iwconfig wlan0 essid ACCESSPOINTNAME +# wpa_passphrase ACCESSPOINTNAME > /etc/wpa.conf +(enter the wifi password and press enter) +# wpa_supplicant -Dwext -iwlan0 -c /etc/wpa.conf & +# udhcpc -i wlan0 +# ping buildroot.org + Enjoy! diff --git a/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt b/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt new file mode 100644 index 0000000000..41ccaa3cad --- /dev/null +++ b/board/technexion/imx7dpico/rootfs_overlay/lib/firmware/brcm/brcmfmac4339-sdio.txt @@ -0,0 +1,99 @@ +#AP6335_NVRAM_V1.5_03112014 +NVRAMRev=$Rev: 410316 $ +sromrev=11 +boardrev=0x1203 +boardtype=0x06c5 +boardflags=0x00000c01 +boardflags2=0x00002000 +boardflags3=0x101188 +macaddr=00:90:4c:c5:12:38 +ccode=0 +regrev=0 +antswitch=0 +pdgain2g=7 +pdgain5g=7 +tworangetssi2g=0 +tworangetssi5g=0 +femctrl=7 +pcieingress_war=15 +vendid=0x14e4 +devid=0x43ae +manfid=0x2d0 +nocrc=1 +otpimagesize=502 +xtalfreq=37400 +extpagain2g=2 +pdetrange2g=2 +extpagain5g=2 +pdetrange5g=2 +rxgains2gelnagaina0=0 +rxgains2gtrisoa0=7 +rxgains2gtrelnabypa0=0 +rxgains5gelnagaina0=0 +rxgains5gtrisoa0=11 +rxgains5gtrelnabypa0=0 +rxchain=1 +txchain=1 +aa2g=1 +aa5g=1 +tssipos5g=0 +tssipos2g=0 +pa2ga0=-161,6269,-723 +pa2gccka0=-116,7568,-852 +pa5ga0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pa5gbw40a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pa5gbw80a0=0xFF61,0x163C,0xFD55,0xFF5D,0x1671,0xFD4F,0xFF5F,0x16CA,0xFD45,0xFF60,0x1676,0xFD4D +pdoffset40ma0=0 +pdoffset80ma0=0 +pdoffsetcckma0=0 +maxp2ga0=75 +maxp5ga0=64,64,72,72 +cckbw202gpo=0x0000 +cckbw20ul2gpo=0x0 +mcsbw202gpo=0x99445533 +mcsbw402gpo=0x99775533 +dot11agofdmhrbw202gpo=0x2233 +ofdmlrbw202gpo=0x0000 +tssifloor2g=500 +mcsbw205glpo=0x66333330 +mcsbw405glpo=0x66665530 +mcsbw805glpo=0xAA555530 +mcsbw1605glpo=0x99555530 +mcsbw205gmpo=0x99BB5530 +mcsbw405gmpo=0x99BB5530 +mcsbw805gmpo=0xEE555530 +mcsbw1605gmpo=0x99555530 +mcsbw205ghpo=0x99995530 +mcsbw405ghpo=0x99BB5530 +mcsbw805ghpo=0xEE555530 +mcsbw1605ghpo=0x99555530 +mcslr5glpo=0x0000 +mcslr5gmpo=0x0000 +mcslr5ghpo=0x0000 +sb20in40hrrpo=0x0 +sb20in80and160hr5glpo=0x0 +sb40and80hr5glpo=0x0 +sb20in80and160hr5gmpo=0x0 +sb40and80hr5gmpo=0x0 +sb20in80and160hr5ghpo=0x0 +sb40and80hr5ghpo=0x0 +sb20in40lrpo=0x0 +sb20in80and160lr5glpo=0x0 +sb40and80lr5glpo=0x0 +sb20in80and160lr5gmpo=0x0 +sb40and80lr5gmpo=0x0 +sb20in80and160lr5ghpo=0x0 +sb40and80lr5ghpo=0x0 +dot11agduphrpo=0x0 +dot11agduplrpo=0x0 +phycal_tempdelta=25 +cckdigfilttype=2 +pacalidx2g=65 +dacrate2g=160 +swctrlmap_5g=0x00000008,0x00000010,0x00000008,0x000000,0x038 +swctrlmap_2g=0x00000001,0x00000002,0x00000001,0x040002,0x0ff +swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +rssicorrnorm_c0=3,3 +rssicorrnorm5g_c0=2,3,4,2,3,3,0,1,2,0,1,2 +muxenab=0x10 \ No newline at end of file diff --git a/configs/imx7dpico_defconfig b/configs/imx7dpico_defconfig index cd12e282ef..6b1184f672 100644 --- a/configs/imx7dpico_defconfig +++ b/configs/imx7dpico_defconfig @@ -28,6 +28,18 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.01" BR2_TARGET_UBOOT_FORMAT_IMG=y + +# wifi firmware for brcm43439 +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y + +# For automatic firmware loading +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y + +# wireless packages +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y # required tools to create the eMMC image BR2_PACKAGE_HOST_DOSFSTOOLS=y BR2_PACKAGE_HOST_GENIMAGE=y