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 4A592C0015E for ; Wed, 26 Jul 2023 17:09:02 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5685D86834; Wed, 26 Jul 2023 19:08:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id B5E298683A; Wed, 26 Jul 2023 19:08:03 +0200 (CEST) Received: from mail-m11886.qiye.163.com (mail-m11886.qiye.163.com [115.236.118.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D7E4C86823 for ; Wed, 26 Jul 2023 19:07:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [172.16.12.93] (unknown [58.22.7.114]) by mail-m11886.qiye.163.com (Hmail) with ESMTPA id AAB1A8032C; Wed, 26 Jul 2023 19:12:02 +0800 (CST) Message-ID: <239a3e7c-ef8b-511e-b318-7d04d894cd7b@rock-chips.com> Date: Wed, 26 Jul 2023 19:12:02 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/4] config: rock64: start USB to make storage usable Content-Language: en-US To: Jonas Karlman , Peter Robinson , "Matwey V. Kornilov" , Simon Glass , Philipp Tomsich Cc: u-boot@lists.denx.de References: <20230614124329.244462-1-pbrobinson@gmail.com> <4c49c588-aca0-64c6-39eb-85c264dbd5e5@kwiboo.se> From: Kever Yang In-Reply-To: <4c49c588-aca0-64c6-39eb-85c264dbd5e5@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQxlLTVZJTh5MGhoZSRhISRhVEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQl kG X-HM-Tid: 0a8991e617b12ebakusnaab1a8032c X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pzo6Pyo5Mj0CSEM2KEhRCBoz LFZPCy9VSlVKTUJLSE1CQklISEJDVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFJQk1INwY+ X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Hi Peter, On 2023/6/14 23:03, Jonas Karlman wrote: > Hi Peter, > > On 2023-06-14 14:43, Peter Robinson wrote: >> Start the USB stack so usb storage can be used. Adding the command >> as usb keyboard isn't enabled as there's not currently display output. > This is not needed for autoboot from usb to work and slows down boot > from sd/emmc by forcing usb to start. > > bootstd will init usb once it reaches usb in boot_targets and nothing > can boot before it. > > boot_targets="mmc1 mmc0 nvme scsi usb pxe dhcp spi"     Jonas is correct for usb boot, maybe you don't need this patch for usb scan. Thanks, - Kever > > You can change boot_targets env if you want to start from usb before mmc. > > Regards, > Jonas > >> Signed-off-by: Peter Robinson >> --- >> configs/rock64-rk3328_defconfig | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig >> index 5e36612bb80..1da9b0545a5 100644 >> --- a/configs/rock64-rk3328_defconfig >> +++ b/configs/rock64-rk3328_defconfig >> @@ -23,6 +23,8 @@ CONFIG_DEBUG_UART_BASE=0xFF130000 >> CONFIG_DEBUG_UART_CLOCK=24000000 >> CONFIG_SYS_LOAD_ADDR=0x800800 >> CONFIG_DEBUG_UART=y >> +CONFIG_USE_PREBOOT=y >> +CONFIG_PREBOOT="usb start" >> # CONFIG_ANDROID_BOOT_IMAGE is not set >> CONFIG_FIT=y >> CONFIG_FIT_VERBOSE=y