From patchwork Wed Jul 13 06:30:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2115 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1AB983F1F7 for ; Wed, 13 Jul 2022 08:31:02 +0200 (CEST) Received: by mail-oi1-f197.google.com with SMTP id j22-20020a544816000000b0033a1a39d6b4sf1796323oij.2 for ; Tue, 12 Jul 2022 23:31:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657693861; cv=pass; d=google.com; s=arc-20160816; b=tmacjCLi7xYuUlu6bppgCnZk9gA53mHLFP4IfbA0cAF4QmDKuxzrh8Lk4RmOCq0jnc d7qy2Pc8WE9rHSUKKcDF0vxPJmgf44CevIKxR8/vInIIBnBdUFzwtT6iXappKGM4Yt4c 88dzZJzWPGQR8u4ngFXEaa+X+qzvgPPbayQ4Q/CslURKpVYF8roIAj0/nwFvEUaXkQYp UYKeIg7DuER8SE73ktAI+IiNKbtbmn9mQkZ2YPqfi4ifQ7UdABPLFZsxAd4/JrmBawuB MxkT7EDel8mu5/huvJsk3h5xh+tdqRr+f/rJRj/wjpLULRBiUr10cuki5cBLsWr0EsS0 VFfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=+IdCVxb6dSP1gJdcf6blAeO06vZe5Ieq/X8u9MCnzkQ=; b=eZutWg5T2DDhD85s71Pq/7NXsXFrUXlQFAkKsYXkVN2hE/Ci35LepqLrcrp+5e+b1/ q2D/Slg7d08j0IOQZrjfjXTcfEzqtnLVJI+X3dPF8Ci9voyQ6DCbKzAxXQugHHy6aLlU DE9B8KrholMHVNbWRXnaLSydTMOGcwAcZ110NACznPgh6Yj8LQdVXZEFcSlS+/yDJFc6 lYBYcV04I3JCEY/ljU3OU5wkDXjFadKn6pA5TrYAgjh6tV9BkI/cMDhLDqB4LCc8etwH ZcitmGFIdcNjiRvxZKLql22jia4n/i3hStK4dVca0frPgsFZuGAPFqOqdd/JSp1cgck9 ouzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dK8JccSd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+IdCVxb6dSP1gJdcf6blAeO06vZe5Ieq/X8u9MCnzkQ=; b=i74GyHrpzyPm/5ErE9NcaO795laFIQvH5aokQmzrHP6vRsOgohqhxdeWUcU3OYLtZb wHU3o8hKuDnpoxKJRp6uHEHx16vkA30ZHs6nlUWBJx951qAthw1I5QbBiBS71LdTsXBC nYOKJfkhqqFs4YZxd5mxuLAZBozCtz6+my1Bw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=+IdCVxb6dSP1gJdcf6blAeO06vZe5Ieq/X8u9MCnzkQ=; b=xUsjzxBPnHcoemA78CPZrrAZOzCd/uONS6LWz8SgTrMyX50iA3KqrnnmiIwRmFy7/R EWCdVf3+511Eav5IpAicoM6YaHdDTIoh+XjdQH8gOM8i9HAe7XcWIWygFaFcsaEz0UqZ iVT3mPMiKDKvFSYIAKwe87zTdVFYWRuDQGT6OcI8RSFpJ17YW/CS+66M/qUaU0kfXL68 JSu8K/q5VabrLBSKgGvpnGSLFgRgWK9sfvOudDXM3+0fL78fL/jC/GxEPqeygVDfowV5 HeDn81zoiNWXjFPmw4QkUgk+9vjeADcivjGPKl9CfSksnAgdGdO7tJfKszOxLL7GtJ45 38OA== X-Gm-Message-State: AJIora8ESARNMIGIIN2jK46JPQNc2IDtrNBsSDGg9Uv7KwsClK7OHUIU hIIlvz8T+JAIlomVV6gjlrgvWK5s X-Google-Smtp-Source: AGRyM1uFVS0PVyhj+TOHOhJV8hwMO3ae7t0AZIINUugonZ0+AEgW7JgipdJ/mUvQS6ncUOckaIwUlQ== X-Received: by 2002:a05:6870:8314:b0:10c:cc1a:57fc with SMTP id p20-20020a056870831400b0010ccc1a57fcmr3268472oae.153.1657693860967; Tue, 12 Jul 2022 23:31:00 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6870:618c:b0:101:b0dd:89d3 with SMTP id a12-20020a056870618c00b00101b0dd89d3ls24031194oah.7.gmail; Tue, 12 Jul 2022 23:31:00 -0700 (PDT) X-Received: by 2002:a05:6870:2409:b0:10b:c5d0:3edb with SMTP id n9-20020a056870240900b0010bc5d03edbmr995300oap.293.1657693860395; Tue, 12 Jul 2022 23:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657693860; cv=none; d=google.com; s=arc-20160816; b=nNl68eHPxB7lgn4ONNorhc3coSkAEO0oolNFauAtZ5pTjywU/VHbQ14WfOrXbyjP/O lIt1n1ErSMRnHolE4w257xDPFxIxrfmY4aZx94AXN3EXLKw0fF5cJopd9du0payBAw55 TH9XNLyN1oG9OROOuOSonmwMRGV/wBY7SQvetS+kWmguy360CXivv6k/YL8BfftMWb6G 3JcXjLwsw9WcPAzOn+tTMdFQRUqFLC5PABCR6K4m+f3kOslsnJrV2TrwsABkmKjHIzfj pcRWuFKZevnIF6xHYQRCI0kPgZ2w57j3us1Wr2M8uxIlB2D251Ae773+Oa3BYwT5N5Cs tFHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=BN2XJovqbAeYvwC/hW/CRmol4MH8WPLc9X8xcb8bNuQ=; b=oPFB7py3PNh+zb0y88FyYrXBNIU8Lw0sUJYYpez4H8B8Bsg59h8U6T01uuj4QA72q9 IzkbOrOxvOFanBe7JWqXMuGUqSMIAE38nhtiI7/uLIQ0ZfLnMYlyCyKx+RDbj9qpLRbK fvuCy7/Vtgq9mO+OCREbn5mEna3IWV6/h4XSj0s3UJXN/qKI+E0zcUY1ta9fDSKELIzp wHZpCKXnuLgG+xtl1muB60CYRTbzcyMfjrnoGNWeINfI9EcWvonpryGhvvsMiDRKNMwC Er+IaOG8YbAJ5PGXu/G9bJ5+SqposCXzmSw4ZGim1OV9TkNHUzv+lAyJ+3Rl6HlHYG4P LwlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dK8JccSd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ge16-20020a056870669000b0010be1167bf1sor2408502oab.54.2022.07.12.23.31.00 for (Google Transport Security); Tue, 12 Jul 2022 23:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6871:611:b0:10c:b18e:9f1a with SMTP id w17-20020a056871061100b0010cb18e9f1amr3784043oan.251.1657693860039; Tue, 12 Jul 2022 23:31:00 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (mob-5-90-140-209.net.vodafone.it. [5.90.140.209]) by smtp.gmail.com with ESMTPSA id m10-20020a4ab30a000000b004354a4412edsm2335404ooo.29.2022.07.12.23.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Jul 2022 23:30:59 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Arnout Vandecappelle , linux-amarula@amarulasolutions.com, Ariel D'Alessandro , Dario Binacchi , Michael Trimarchi Subject: [PATCH v3 0/2] Add support for BSH smm s2 [pro] boards Date: Wed, 13 Jul 2022 08:30:32 +0200 Message-Id: <20220713063034.14924-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=dK8JccSd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The series applies the changes requested by Arnout Vandecappelle to the V3 patch for adding support to BSH smm s2 pro board ([1]). It also adds the support for the BSH smm s2 board and It builds the uuu package, used for flashing the boards, as part of buildroot. [1] https://patchwork.ozlabs.org/project/buildroot/patch/20220131145555.2819020-1-michael@amarulasolutions.com/ Changes in v3: - Update the commit description. - Bump U-Boot to version 2022-07. - Remove U-Boot patches merged in version 2022-07. - Update the Linux patches. Changes in v2: - Drop the patch that added the 'uuu' package. It has been merged. - Patch 1/2: "configs/imx8mn_bsh_smm_s2_defconfig: new defconfig": - Change commit subject and description. - Update linux patch to version 4. It hasn't been merged yet but has been reviewed. This is the most up-to-date version. - Replace `Co-developed-by:' tag with `Co-authored-by'. - Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script. - Replace the linux.config file with an architectural defconfig and a config fragment for the changes. - Remove useless and deprecated statements in nand-full.lst. - Remove the buildroot configurations for ext2/ext4 filesystem creation. - Patch 2/2: "configs/imx8mn_bsh_smm_s2_pro_defconfig: new defconfig": - Change commit subject line. - Use the buildroot's output directory if the binaries directory is not passed as a parameter to the `flash.sh' script. - Replace the linux.config file with an architectural defconfig and a config fragment for the changes. Dario Binacchi (1): configs/imx8mn_bsh_smm_s2_defconfig: new defconfig Michael Trimarchi (1): configs/imx8mn_bsh_smm_s2_pro_defconfig: new defconfig DEVELOPERS | 8 + .../common/imx8mn-bsh-smm-s2/linux.fragment | 931 ++++++++++++++++++ board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf | 4 + board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh | 23 + board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg | 17 + board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh | 7 + board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh | 3 + board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt | 73 ++ board/bsh/imx8mn-bsh-smm-s2/flash.sh | 26 + board/bsh/imx8mn-bsh-smm-s2/nand-full.lst | 29 + ...dmaengine-mxs-fix-driver-registering.patch | 69 ++ ..._nand-Fix-specific-hook-registration.patch | 78 ++ ...-mxs_nand_spl-Fix-bad-block-skipping.patch | 165 ++++ ...x-cmd_nandbcb-fix-bad-block-handling.patch | 95 ++ ...d-Fix-bad-block-handling-in-fitImage.patch | 42 + ...h-to-nand-spl-load-instead-of-romapi.patch | 30 + ...Remove-rootwait-1-to-all-the-affecte.patch | 159 +++ ...gs-imx8mn_bsh_smm_s2-add-NAND-driver.patch | 42 + ...s-imx8mn_bsh_smm_s2-add-UBI-commands.patch | 29 + ...sh_smm_s2-remove-console-from-bootar.patch | 32 + ..._bsh_smm_s2-add-mtdparts-to-bootargs.patch | 30 + board/bsh/imx8mn-bsh-smm-s2/post-build.sh | 4 + board/bsh/imx8mn-bsh-smm-s2/readme.txt | 75 ++ configs/imx8mn_bsh_smm_s2_defconfig | 40 + configs/imx8mn_bsh_smm_s2_pro_defconfig | 41 + 25 files changed, 2052 insertions(+) create mode 100644 board/bsh/common/imx8mn-bsh-smm-s2/linux.fragment create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/extlinux.conf create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/flash.sh create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/genimage.cfg create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-build.sh create mode 100755 board/bsh/imx8mn-bsh-smm-s2-pro/post-image.sh create mode 100644 board/bsh/imx8mn-bsh-smm-s2-pro/readme.txt create mode 100755 board/bsh/imx8mn-bsh-smm-s2/flash.sh create mode 100644 board/bsh/imx8mn-bsh-smm-s2/nand-full.lst create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/linux/0001-dmaengine-mxs-fix-driver-registering.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0001-nand-raw-mxs_nand-Fix-specific-hook-registration.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0002-mtd-nand-mxs_nand_spl-Fix-bad-block-skipping.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0003-arm-mach-imx-cmd_nandbcb-fix-bad-block-handling.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0004-spl-spl_nand-Fix-bad-block-handling-in-fitImage.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0005-board-bsh-Switch-to-nand-spl-load-instead-of-romapi.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0006-include-configs-Remove-rootwait-1-to-all-the-affecte.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0007-configs-imx8mn_bsh_smm_s2-add-NAND-driver.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0008-configs-imx8mn_bsh_smm_s2-add-UBI-commands.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0009-configs-imx8mn_bsh_smm_s2-remove-console-from-bootar.patch create mode 100644 board/bsh/imx8mn-bsh-smm-s2/patches/uboot/0010-configs-imx8mn_bsh_smm_s2-add-mtdparts-to-bootargs.patch create mode 100755 board/bsh/imx8mn-bsh-smm-s2/post-build.sh create mode 100644 board/bsh/imx8mn-bsh-smm-s2/readme.txt create mode 100644 configs/imx8mn_bsh_smm_s2_defconfig create mode 100644 configs/imx8mn_bsh_smm_s2_pro_defconfig