From patchwork Wed Mar 18 22:27:07 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: 1257822 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=E6FVEtR4; 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 48jPn55F12z9sPR for ; Thu, 19 Mar 2020 09:27:53 +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=gRDO3T7U74jtFW2nMEmM8Gt1AmXIM1ZTkQCIBmf2IMI=; b=E6FVEtR4vgF/RX Doy63ISw6OTgwSD6H81f3l8M/MuPGDOOeVIhAHlBZ6WZ6IuSvI7oI9d1z1Rf2N1Cz1fYGdph7ceDL ZIcuZucpvhkdlhB0/0W3DIrljeYNddZdOfLoL5CR64OsDPTRG87+W9COOE2QCLWgic8mHqsTWDi+b abiJZ7KBbA/2VVSonsU8JhAE/8R3gOko+uvfzav9maF8lQLcOt3YcnTqf9EVbIEmwSJrhhwoOXBC+ mjMAXWKYnTUV93vMmb028knfDO4YuC2LZLvxH0OJF/vIoin+3AgQSj2yh+LYvcc4HHT/awFrQmnUZ mrl6eo3lhWQIS67uMMLg==; 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 1jEhA9-0006xC-1v; Wed, 18 Mar 2020 22:27:45 +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 1jEhA4-0006ua-NM for openwrt-devel@lists.openwrt.org; Wed, 18 Mar 2020 22:27:42 +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 630E74C1A; Wed, 18 Mar 2020 23:27:37 +0100 (CET) Received: by meh.true.cz (OpenSMTPD) with ESMTP id f77fed7e; Wed, 18 Mar 2020 23:27:24 +0100 (CET) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Wed, 18 Mar 2020 23:27:07 +0100 Message-Id: <20200318222713.1495-4-ynezz@true.cz> In-Reply-To: <20200318222713.1495-1-ynezz@true.cz> References: <20200318222713.1495-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200318_152740_918591_97E01A66 X-CRM114-Status: GOOD ( 10.32 ) 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_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH 3/9] uboot-sunxi: add support for Olimex A64-Olinuxino eMMC 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 Adding U-Boot image for Olimex A64-Olinuxino eMMC, including patch which adds eMMC boot partition configuration commands. Signed-off-by: Petr Štetiar --- package/boot/uboot-sunxi/Makefile | 9 ++++++ ...uxino-emmc-add-eMMC-boot-part-config.patch | 29 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 package/boot/uboot-sunxi/patches/260-configs-a64-olinuxino-emmc-add-eMMC-boot-part-config.patch diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile index 35c40984b876..544b2a2c6f7b 100644 --- a/package/boot/uboot-sunxi/Makefile +++ b/package/boot/uboot-sunxi/Makefile @@ -33,6 +33,14 @@ define U-Boot/a64-olinuxino UENV:=a64 endef +define U-Boot/a64-olinuxino-emmc + BUILD_SUBTARGET:=cortexa53 + NAME:=Olimex A64-OLinuXino eMMC + BUILD_DEVICES:=olimex_a64-olinuxino-emmc + DEPENDS:=+PACKAGE_u-boot-olimex_a64-olinuxino-emmc:arm-trusted-firmware-sunxi + UENV:=a64 +endef + define U-Boot/A10-OLinuXino-Lime BUILD_SUBTARGET:=cortexa8 NAME:=A10 OLinuXino LIME @@ -269,6 +277,7 @@ endef UBOOT_TARGETS := \ a64-olinuxino \ + a64-olinuxino-emmc \ A10-OLinuXino-Lime \ A13-OLinuXino \ A20-OLinuXino-Lime \ diff --git a/package/boot/uboot-sunxi/patches/260-configs-a64-olinuxino-emmc-add-eMMC-boot-part-config.patch b/package/boot/uboot-sunxi/patches/260-configs-a64-olinuxino-emmc-add-eMMC-boot-part-config.patch new file mode 100644 index 000000000000..a448b8319f5e --- /dev/null +++ b/package/boot/uboot-sunxi/patches/260-configs-a64-olinuxino-emmc-add-eMMC-boot-part-config.patch @@ -0,0 +1,29 @@ +From 7fa26c287b225c5e42be6d1a81d45592ec45bd9c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= +Date: Wed, 18 Mar 2020 12:59:01 +0100 +Subject: [PATCH] configs: a64-olinuxino-emmc: add eMMC boot part config + commands +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +mmc bootbus and partconf commands are needed in order to be able to +configure booting from separate boot0/boot1 eMMC partitions. + +Signed-off-by: Petr Štetiar +--- + configs/a64-olinuxino-emmc_defconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/configs/a64-olinuxino-emmc_defconfig b/configs/a64-olinuxino-emmc_defconfig +index 8443a6dae9e3..9a96a964b1dc 100644 +--- a/configs/a64-olinuxino-emmc_defconfig ++++ b/configs/a64-olinuxino-emmc_defconfig +@@ -12,6 +12,7 @@ CONFIG_USE_PREBOOT=y + CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino-emmc" + CONFIG_SYS_RELOC_GD_ENV_ADDR=y + CONFIG_SUN8I_EMAC=y ++CONFIG_SUPPORT_EMMC_BOOT=y + CONFIG_USB_EHCI_HCD=y + CONFIG_USB_OHCI_HCD=y + CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y