Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 01211C4167D for ; Thu, 25 Nov 2021 18:05:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C4ADB83003; Thu, 25 Nov 2021 19:05:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=metanate.com header.i=@metanate.com header.b="wAKfesHs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E05F8321B; Thu, 25 Nov 2021 19:05:38 +0100 (CET) Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D44D782FDE for ; Thu, 25 Nov 2021 19:05:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=john@metanate.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=rGPcSnbvdGqA8WbxRQOcDx5xaeNWQaHEXeg8Ma/RlzA=; b=wA KfesHsGEvcU/0v2lqcu4D48VEPaqu1XD6a7TnMg4v9btfz18txiI/kMu/hvohx+CHDXAbPaBiXtKn xpYxMGTgTzEsuHWKrcwJb80fE734QJ9LubozMqWrY1hg5MaN/znHGy5ZUv4FR2VTCPUDyHkut2+DM oEbKNHSLlj5iSn4WBp1UExFWqZFx1vPoE1fdmmJd2uYM+UowakNTo9PP4TdcZQ4DE9aHhfXxX0Fif UOMCo2v/IVwHkg24+pwm+9xpfCXcPUucMMs5N0wvjWnzdZd6l17BSbGGR2rYsf2qShwAlDlFfmVtS uJO4V6UM08qt9B6/at/wIf3uGl3AyMKA==; Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mqJ7i-0000fG-4g; Thu, 25 Nov 2021 18:05:30 +0000 From: John Keeping To: u-boot@lists.denx.de Cc: John Keeping , Kever Yang , Philipp Tomsich , Philipp Tomsich , Simon Glass Subject: [PATCH] rockchip: boot_mode: fix fastboot command Date: Thu, 25 Nov 2021 18:05:22 +0000 Message-Id: <20211125180522.4113337-1-john@metanate.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated: YES X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The USB controller index must be separated from the type argument, otherwise the preboot command fails with the error: Error: Wrong USB controller index format Add the missing space to fix fastboot mode here. Signed-off-by: John Keeping --- arch/arm/mach-rockchip/boot_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/boot_mode.c b/arch/arm/mach-rockchip/boot_mode.c index 2158934159..1a1a887fc2 100644 --- a/arch/arm/mach-rockchip/boot_mode.c +++ b/arch/arm/mach-rockchip/boot_mode.c @@ -95,7 +95,7 @@ int setup_boot_mode(void) switch (boot_mode) { case BOOT_FASTBOOT: debug("%s: enter fastboot!\n", __func__); - env_set("preboot", "setenv preboot; fastboot usb0"); + env_set("preboot", "setenv preboot; fastboot usb 0"); break; case BOOT_UMS: debug("%s: enter UMS!\n", __func__); -- 2.34.1