From patchwork Mon Mar 2 17:42:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1247785 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=Vyjpwmlj; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WShb4cMsz9sQt for ; Tue, 3 Mar 2020 05:04:31 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1j28UolRB82oSnr02PzveBEjRkUdC0KqNGM+Z7n7mDk=; b=VyjpwmljEERALe 26bGLmVfIfpzYwyi3nIeAkna/TZlJ9BlM4cheH0/FR8sBd4qmRamRTCZQCDOpJPAAFN7gW3Pu3fnS UGY+NhNOgTbbZuhMXtxm0a1D4W2AigU9eFJkvo9CyXkMJ+c79Ml30wlFQyHNWmLzpBjhFSDu95JUx 1sOKqXw6z55YJzVU93L3Z9YwkVZ7wuSR2sVl1P4XqNhjKhx/CSevgxaspO52Amzr5has+9J5Woi1R lQ6fgSxAfzmrvN2TpmRbl2+oZw/bDvMvLSqIpiNn4ZvYSFd2kLb/7AVlTnjavAAVfRHw2351kK55v VMw+TR5S+0GM+8ksFbww==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQb-0000tF-Qe; Mon, 02 Mar 2020 18:04:29 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQH-0000Sd-39 for openwrt-devel@lists.openwrt.org; Mon, 02 Mar 2020 18:04:12 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id D7EE6416E; Mon, 2 Mar 2020 19:04:05 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 4b31f5f8; Mon, 2 Mar 2020 19:03:52 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 2 Mar 2020 18:42:54 +0100 Message-Id: <20200302174256.3238-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_100409_436877_28D207C0 X-CRM114-Status: GOOD ( 21.24 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH 1/3] uboot-imx6: bump to 2020.01 and refresh patches X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vladimir Vid , =?utf-8?q?Petr_=C5=A0tetiar?= , Tim Harvey , Koen Vandeputte Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Update U-Boot to latest release, remove `100-wandboard-enable-fit.patch` as FIT support was added in commit 5b8585825128 ("wandboard: Add FIT image support"). Rework `110-mx6cuboxi-mmc-fallback.patch` into two patches as there was new config option `CONFIG_SPL_FORCE_MMC_BOOT` added upstream which should provide the same functionality as the previous patch hunk. Moving Apalis towards generic distro_bootcmd. Cc: Vladimir Vid Cc: Tim Harvey Cc: Koen Vandeputte Signed-off-by: Petr Štetiar --- package/boot/uboot-imx6/Makefile | 4 +- ...efconfig-enable-some-useful-commands.patch | 39 ++++++ ...s-Make-the-boot-process-more-generic.patch | 123 ------------------ .../patches/100-wandboard-enable-fit.patch | 17 --- .../patches/110-mx6cuboxi-mmc-fallback.patch | 13 +- ...1-mx6cuboxi_defconfig-force-mmc-boot.patch | 23 ++++ 6 files changed, 65 insertions(+), 154 deletions(-) create mode 100644 package/boot/uboot-imx6/patches/0001-apalis_imx6_defconfig-enable-some-useful-commands.patch delete mode 100644 package/boot/uboot-imx6/patches/0001-imx6-apalis-Make-the-boot-process-more-generic.patch delete mode 100644 package/boot/uboot-imx6/patches/100-wandboard-enable-fit.patch create mode 100644 package/boot/uboot-imx6/patches/111-mx6cuboxi_defconfig-force-mmc-boot.patch diff --git a/package/boot/uboot-imx6/Makefile b/package/boot/uboot-imx6/Makefile index 193a35d27cb0..3f6bb1c5de10 100644 --- a/package/boot/uboot-imx6/Makefile +++ b/package/boot/uboot-imx6/Makefile @@ -7,10 +7,10 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=2019.04 +PKG_VERSION:=2020.01 PKG_RELEASE:=1 -PKG_HASH:=76b7772d156b3ddd7644c8a1736081e55b78828537ff714065d21dbade229bef +PKG_HASH:=aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk diff --git a/package/boot/uboot-imx6/patches/0001-apalis_imx6_defconfig-enable-some-useful-commands.patch b/package/boot/uboot-imx6/patches/0001-apalis_imx6_defconfig-enable-some-useful-commands.patch new file mode 100644 index 000000000000..18ad2d66d326 --- /dev/null +++ b/package/boot/uboot-imx6/patches/0001-apalis_imx6_defconfig-enable-some-useful-commands.patch @@ -0,0 +1,39 @@ +From 630b39c46b29de1874149c6b2c18c64966a0fabf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= +Date: Sun, 1 Mar 2020 22:47:31 +0100 +Subject: [PATCH] apalis_imx6_defconfig: enable some useful commands +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +partition table info, EXT4 write support, support for FAT and generic FS +commands like load/ls that work for multiple FS types. + +Signed-off-by: Petr Štetiar +--- + configs/apalis_imx6_defconfig | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig +index 0d11ab53d663..bbb3ec1aa554 100644 +--- a/configs/apalis_imx6_defconfig ++++ b/configs/apalis_imx6_defconfig +@@ -43,6 +43,7 @@ CONFIG_CMD_GPIO=y + CONFIG_CMD_GPT=y + CONFIG_CMD_I2C=y + CONFIG_CMD_MMC=y ++CONFIG_CMD_PART=y + CONFIG_CMD_USB=y + CONFIG_CMD_USB_SDP=y + CONFIG_CMD_USB_MASS_STORAGE=y +@@ -52,6 +53,10 @@ CONFIG_CMD_PMIC=y + CONFIG_CMD_REGULATOR=y + CONFIG_OF_CONTROL=y + CONFIG_DEFAULT_DEVICE_TREE="imx6-apalis" ++CONFIG_CMD_EXT4=y ++CONFIG_CMD_EXT4_WRITE=y ++CONFIG_CMD_FAT=y ++CONFIG_CMD_FS_GENERIC=y + CONFIG_ENV_IS_IN_MMC=y + CONFIG_SYS_RELOC_GD_ENV_ADDR=y + CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y diff --git a/package/boot/uboot-imx6/patches/0001-imx6-apalis-Make-the-boot-process-more-generic.patch b/package/boot/uboot-imx6/patches/0001-imx6-apalis-Make-the-boot-process-more-generic.patch deleted file mode 100644 index 4de8ede39f74..000000000000 --- a/package/boot/uboot-imx6/patches/0001-imx6-apalis-Make-the-boot-process-more-generic.patch +++ /dev/null @@ -1,123 +0,0 @@ -From 42cc2cffb6d550fbb21dad033d2564d4da571015 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20=C5=A0tetiar?= -Date: Sat, 1 Dec 2018 12:46:37 +0100 -Subject: [PATCH] imx6: apalis: Make the boot process more generic -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -I'm preparing support for Apalis imx6 boards in OpenWrt and I've ended -up with quite huge patchset against upstream U-Boot 2018.03, so I'm -trying to propose more generic way of boot process handling. - -In OpenWrt we usually have kernel, dtbs and U-Boot boot script in boot -partition with ext4fs, so for some use cases it would be handy to be -able to replace some of the files in the boot partion, that's why I've -added write support to the ext4. - -I've added `set_blkcnt` environment variable which is needed for every -`mmc write` command as we need to always specify size in block count. -This is copy&pasted from official Toradex's flashing scripts, so all the -credits for this work belongs to them. - -Currently the rootfs location is passed via mmcblk number and the -problem with this approach is that the mmcblk number for the boot device -changes depending on the kernel version and imx6 SoC type. In order to -avoid such issues, use the UUID method to specify the rootfs location. - -I've added new boot sequence, where we first try to load and run boot -script defined in the new `script` variable, so the boot process could -be more generic and overridden by the distro. When the boot script isn't -loaded, it will use the previous boot sequence so it should be backward -compatible. - -For the recovery purposes and better end user experience I've added boot -from SDP as the last boot command if every other boot option fails. I -plan to use SDP as official flashing/recovery procedure in OpenWrt for -Apalis imx6 boards. - -I've copy&pasted almost everything from the `f086812a mx6sxsabresd: Use -PARTUUID to specify the rootfs location` commit, so credits for the rest -of this patch belongs to Fabio. - -Cc: Stefan Agner -Cc: Max Krummenacher -Signed-off-by: Petr Štetiar ---- - configs/apalis_imx6_defconfig | 2 ++ - include/configs/apalis_imx6.h | 26 +++++++++++++++++++++----- - 2 files changed, 23 insertions(+), 5 deletions(-) - ---- a/configs/apalis_imx6_defconfig -+++ b/configs/apalis_imx6_defconfig -@@ -40,6 +40,7 @@ CONFIG_CMD_DFU=y - CONFIG_CMD_GPIO=y - CONFIG_CMD_I2C=y - CONFIG_CMD_MMC=y -+CONFIG_CMD_PART=y - CONFIG_CMD_USB=y - CONFIG_CMD_USB_SDP=y - CONFIG_CMD_USB_MASS_STORAGE=y -@@ -49,6 +50,7 @@ CONFIG_CMD_PING=y - CONFIG_CMD_BMP=y - CONFIG_CMD_CACHE=y - CONFIG_CMD_EXT4=y -+CONFIG_CMD_EXT4_WRITE=y - CONFIG_CMD_FAT=y - CONFIG_CMD_FS_GENERIC=y - CONFIG_ENV_IS_IN_MMC=y ---- a/include/configs/apalis_imx6.h -+++ b/include/configs/apalis_imx6.h -@@ -138,9 +138,9 @@ - "imx6q-colibri-cam-eval-v3.dtb fat 0 1" - - #define EMMC_BOOTCMD \ -- "emmcargs=ip=off root=/dev/mmcblk0p2 rw,noatime rootfstype=ext3 " \ -+ "emmcargs=ip=off root=PARTUUID=${uuid} rw,noatime rootfstype=ext3 " \ - "rootwait\0" \ -- "emmcboot=run setup; " \ -+ "emmcboot=run setup; run finduuid;" \ - "setenv bootargs ${defargs} ${emmcargs} ${setupargs} " \ - "${vidargs}; echo Booting from internal eMMC chip...; " \ - "run emmcdtbload; load mmc 0:1 ${kernel_addr_r} " \ -@@ -197,10 +197,17 @@ - #define FDT_FILE "imx6q-apalis_v1_0-eval.dtb" - #endif - #define CONFIG_EXTRA_ENV_SETTINGS \ -- "bootcmd=run emmcboot ; echo ; echo emmcboot failed ; " \ -+ "script=boot.scr\0" \ -+ "finduuid=part uuid mmc 0:2 uuid\0" \ -+ "loadbootscript=" \ -+ "load mmc 0:1 ${loadaddr} ${script};\0" \ -+ "bootscript=echo Running bootscript from mmc ...; " \ -+ "source\0" \ -+ "bootcmd_default=run emmcboot ; echo ; echo emmcboot failed ; " \ - "run nfsboot ; echo ; echo nfsboot failed ; " \ - "usb start ;" \ -- "setenv stdout serial,vga ; setenv stdin serial,usbkbd\0" \ -+ "setenv stdout serial,vga ; setenv stdin serial,usbkbd;" \ -+ "sdp 0\0" \ - "boot_file=uImage\0" \ - "console=ttymxc0\0" \ - "defargs=enable_wait_mode=off vmalloc=400M\0" \ -@@ -228,7 +235,16 @@ - "vidargs=mxc_hdmi.only_cea=1 " \ - "video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 " \ - "video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off " \ -- "fbmem=32M\0 " -+ "fbmem=32M\0 " \ -+ "set_blkcnt=setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200\0" -+ -+#define CONFIG_BOOTCOMMAND \ -+ "mmc dev 0;" \ -+ "if run loadbootscript; then " \ -+ "run bootscript; " \ -+ "else " \ -+ "run bootcmd_default; " \ -+ "fi; " - - /* Miscellaneous configurable options */ - #undef CONFIG_SYS_CBSIZE --- -1.9.1 - diff --git a/package/boot/uboot-imx6/patches/100-wandboard-enable-fit.patch b/package/boot/uboot-imx6/patches/100-wandboard-enable-fit.patch deleted file mode 100644 index 2fd207e11c87..000000000000 --- a/package/boot/uboot-imx6/patches/100-wandboard-enable-fit.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/configs/wandboard_defconfig -+++ b/configs/wandboard_defconfig -@@ -30,7 +30,7 @@ CONFIG_CMD_I2C=y - CONFIG_CMD_MMC=y - CONFIG_CMD_SATA=y - CONFIG_CMD_USB=y --CONFIG_CMD_CACHE=y -+# CONFIG_CMD_CACHE is not set - CONFIG_CMD_EXT4_WRITE=y - CONFIG_ENV_IS_IN_MMC=y - CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y -@@ -44,3 +44,5 @@ CONFIG_USB=y - CONFIG_VIDEO=y - # CONFIG_VIDEO_SW_CURSOR is not set - CONFIG_OF_LIBFDT=y -+CONFIG_FIT=y -+CONFIG_FIT_VERBOSE=y diff --git a/package/boot/uboot-imx6/patches/110-mx6cuboxi-mmc-fallback.patch b/package/boot/uboot-imx6/patches/110-mx6cuboxi-mmc-fallback.patch index 2b2fde5ec9a6..111e1b980918 100644 --- a/package/boot/uboot-imx6/patches/110-mx6cuboxi-mmc-fallback.patch +++ b/package/boot/uboot-imx6/patches/110-mx6cuboxi-mmc-fallback.patch @@ -1,6 +1,6 @@ --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c -@@ -290,6 +290,12 @@ static void setup_iomux_enet(void) +@@ -292,6 +292,12 @@ static void setup_iomux_enet(void) udelay(100); } @@ -13,14 +13,3 @@ int board_phy_config(struct phy_device *phydev) { if (phydev->drv->config) ---- a/arch/arm/mach-imx/spl.c -+++ b/arch/arm/mach-imx/spl.c -@@ -176,7 +176,7 @@ int g_dnl_bind_fixup(struct usb_device_d - /* called from spl_mmc to see type of boot mode for storage (RAW or FAT) */ - u32 spl_boot_mode(const u32 boot_device) - { -- switch (spl_boot_device()) { -+ switch (boot_device) { - /* for MMC return either RAW or FAT mode */ - case BOOT_DEVICE_MMC1: - case BOOT_DEVICE_MMC2: diff --git a/package/boot/uboot-imx6/patches/111-mx6cuboxi_defconfig-force-mmc-boot.patch b/package/boot/uboot-imx6/patches/111-mx6cuboxi_defconfig-force-mmc-boot.patch new file mode 100644 index 000000000000..19b73e3c9f5d --- /dev/null +++ b/package/boot/uboot-imx6/patches/111-mx6cuboxi_defconfig-force-mmc-boot.patch @@ -0,0 +1,23 @@ +From 00ad8b42dfe801107db25ead8249cb10afcd0f94 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= +Date: Sun, 1 Mar 2020 22:10:23 +0100 +Subject: [PATCH] mx6cuboxi_defconfig: force mmc boot +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Štetiar +--- + configs/mx6cuboxi_defconfig | 1 + + 1 file changed, 1 insertion(+) + +--- a/configs/mx6cuboxi_defconfig ++++ b/configs/mx6cuboxi_defconfig +@@ -6,6 +6,7 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y + CONFIG_SPL_LIBGENERIC_SUPPORT=y + CONFIG_TARGET_MX6CUBOXI=y + CONFIG_SPL_MMC_SUPPORT=y ++CONFIG_SPL_FORCE_MMC_BOOT=y + CONFIG_SPL_SERIAL_SUPPORT=y + CONFIG_ENV_SIZE=0x2000 + CONFIG_ENV_OFFSET=0xFE000 From patchwork Mon Mar 2 17:42:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1247781 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=r35rH1u6; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WShN5r7bz9sSJ for ; Tue, 3 Mar 2020 05:04:20 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SBlNDsUjAqlBK5tStxc9R5SZKcKOaQnjzsK/yiabPAs=; b=r35rH1u6DlaJjn ke2KQxaku6Pc3V2433WxLQ7v4BfrNrOgzXvouJVLmcASNn4ZkRJ84g8vJJ4d5rWdZxbkq0f4hG7M6 QEFvRIW2qUwe9OIJ7cfSwt3mfEAqrhP20u48zfjmlLNqsVltUix8erez4+vk1gWMNvfG+ffLpKXPw BYAjCDXZ1nAW/v3aJUYo7BDZA2g74SRQM9u9szkXfc6fgnBN9SXACNCohNikGOzHIicrwQPMgEKtD shm5peyJwIk5aRF4OD2YUHL7G6AR2S5kE9Sud1YfQW+ty3FsegUXMlwilh2KYW+cb8v6ZIG1cciHp 9MVggDZWH1mUktgo4Q5Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQP-0000a9-Jw; Mon, 02 Mar 2020 18:04:17 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQH-0000Sc-39 for openwrt-devel@lists.openwrt.org; Mon, 02 Mar 2020 18:04:10 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 24AC84170; Mon, 2 Mar 2020 19:04:06 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id b05bd899; Mon, 2 Mar 2020 19:03:52 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 2 Mar 2020 18:42:55 +0100 Message-Id: <20200302174256.3238-2-ynezz@true.cz> In-Reply-To: <20200302174256.3238-1-ynezz@true.cz> References: <20200302174256.3238-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_100409_292781_B36BDDB3 X-CRM114-Status: UNSURE ( 6.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH 2/3] imx6: apalis: fix variables in bootscript X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org U-Boot 2020.01 has changed names for same variables, adjust the bootscript accordingly. Added boot_file variable as the default value is zImage. Signed-off-by: Petr Štetiar --- target/linux/imx6/image/bootscript-apalis | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/target/linux/imx6/image/bootscript-apalis b/target/linux/imx6/image/bootscript-apalis index 81a501cc63d6..3a3a6dadb145 100644 --- a/target/linux/imx6/image/bootscript-apalis +++ b/target/linux/imx6/image/bootscript-apalis @@ -1,12 +1,13 @@ -echo "Toradex Apalis OpenWrt Boot script v1.0" +echo "Toradex Apalis OpenWrt Boot script v1.1" -run finduuid +run emmcfinduuid setenv nextcon 0 +setenv boot_file uImage setenv fdt_file imx6q-apalis-ixora.dtb setenv root root=PARTUUID=${uuid} rootfstype=squashfs rootwait setenv bootargs earlyprintk console=${console},${baudrate}n8 ${root} -setenv fsload ext4load mmc ${mmcbootdev}:${bootpart} +setenv fsload ext4load mmc ${emmcdev}:${emmcbootpart} if ${fsload} ${kernel_addr_r} ${boot_file}; then if ${fsload} ${fdt_addr_r} ${fdt_file}; then From patchwork Mon Mar 2 17:42:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1247778 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=NRj0E0Sk; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WShG6YQcz9sQt for ; Tue, 3 Mar 2020 05:04:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HFZMyiY5WdDRq5VYwgHzbscmH+yzHKvtmhZlxOmUJsw=; b=NRj0E0SkD1vUKj NwmFZOOwGXymoGjbDVAl1o2HUZ205q85dIQaiOjIdk8UIZLA4BOnTHKReEGHJkV004SWyTg+Ki0hz 5ozZAJXA+2WiUfPuHpyKqrf/d+mAAfxYFpTYePraBrP6S7tdgoqbK1OBncBZ9bWGXWelbwAMw525Q Qapq02vTz3CKYvGxmMFuClRQMUqoFNm4AgnQlqk0LKw1HXB0mZf49wDtPwnT7c7HLMdl5zV8oSGcq InQFmDmA6hvGp2odf6b5biMaOT0dEWqHzUxgeJAlB0N+2rrMNhmmy65O7Dc5k17srrF9wXktwTY7D K5uCm8kAXjc5JYjkKF0Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQJ-0000Tc-UA; Mon, 02 Mar 2020 18:04:11 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8pQH-0000Sb-3A for openwrt-devel@lists.openwrt.org; Mon, 02 Mar 2020 18:04:10 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 4D2E84171; Mon, 2 Mar 2020 19:04:06 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id a7e8bf69; Mon, 2 Mar 2020 19:03:53 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 2 Mar 2020 18:42:56 +0100 Message-Id: <20200302174256.3238-3-ynezz@true.cz> In-Reply-To: <20200302174256.3238-1-ynezz@true.cz> References: <20200302174256.3238-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_100409_291532_870F1B9B X-CRM114-Status: UNSURE ( 7.90 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH 3/3] imx6: apalis: move set_blkcnt variable into recovery script X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org I've added `set_blkcnt` environment variable which is needed for every `mmc write` command as we need to always specify size in block count. That `set_blkcnt` variable was previously present in the U-Boot's default environment, but that needed patching U-Boot every time, so that patch was dropped with 2020.01 version bump. Signed-off-by: Petr Štetiar --- target/linux/imx6/image/recovery-apalis | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/imx6/image/recovery-apalis b/target/linux/imx6/image/recovery-apalis index c1c5a3f5d62f..d75b95434587 100644 --- a/target/linux/imx6/image/recovery-apalis +++ b/target/linux/imx6/image/recovery-apalis @@ -4,6 +4,7 @@ mmc dev 0 1 mmc write 0x12100000 0x2 0x800 # flash openwrt-imx6-apalis-squashfs.combined.bin +setenv set_blkcnt 'setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200' run set_blkcnt mmc dev 0 0 mmc write 0x12500000 0 ${blkcnt}