From mboxrd@z Thu Jan 1 00:00:00 1970 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 C7F0DC001DE for ; Thu, 27 Jul 2023 01:39:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 515DC867F6; Thu, 27 Jul 2023 03:39:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.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 53588867E6; Thu, 27 Jul 2023 03:39:26 +0200 (CEST) Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) (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 E9CF7867D9 for ; Thu, 27 Jul 2023 03:39:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ycliang@andestech.com Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 36R1dAqW090489; Thu, 27 Jul 2023 09:39:10 +0800 (+08) (envelope-from ycliang@andestech.com) Received: from ubuntu01 (10.0.12.75) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Thu, 27 Jul 2023 09:39:08 +0800 Date: Thu, 27 Jul 2023 01:39:00 +0000 From: Leo Liang To: Rick Chen CC: Simon Glass , Rick Chen , , Subject: Re: [PATCH] riscv: Support riscv64 image type Message-ID: References: <20230410072718.3484-1-rick@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (2021-01-21) X-Originating-IP: [10.0.12.75] X-DNSRBL: X-MAIL: Atcsqr.andestech.com 36R1dAqW090489 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 Rick, On Thu, Jul 27, 2023 at 09:27:31AM +0800, Rick Chen wrote: > > Hi Rick, > > > > On Wed, 19 Apr 2023 at 00:56, Rick Chen wrote: > > > > > > Hi Simon, > > > > > > > Hi Rick, > > > > > > > > On Mon, 10 Apr 2023 at 01:26, Rick Chen wrote: > > > > > > > > > > Allow U-Boot to load 32 or 64 bits RISC-V Kernel Image > > > > > distinguishly. It helps to avoid someone maybe make a mistake > > > > > to run 32-bit U-Boot to load 64-bit kernel. > > > > > > > > > > Signed-off-by: Rick Chen > > > > > > > > > > --- > > > > > The patchset is based on Simon's patch: > > > > > riscv: Add a 64-bit image type > > > > > --- > > > > > --- > > > > > arch/riscv/include/asm/u-boot.h | 4 ++++ > > > > > cmd/booti.c | 2 +- > > > > > 2 files changed, 5 insertions(+), 1 deletion(-) > > > > > > > > Reviewed-by: Simon Glass > > > > > > > > I don't know much about RISC-V, but I assume U-Boot is able to do this > > > > successfully? Does it not need to switch modes first? > > > > > > No, it is not need to switch modes as far as I know. > > > Here only provide a check mechanism just like arm to see if loader and > > > OS are match > > > > > > But This patch is for bootm flow. > > > Maybe I still need to check if it is necessary to prepare a patch for > > > binman flow ? > > > /arch/riscv/dts/binman.dtsi > > > arch = "riscv"; > > > > > > maybe provide another binman64.dtsi for arch="riscv64" > > > > Yes I think that is needed too. Are you going to update this patch, or > > send a second one? > > Hi Simon, > > OK. > > HI Leo, > > I am a little busy on other things.Can you help to update this patch ? > No problem! I will send a v2 patch ASAP. Best regards, Leo > Thanks. > Rick > > > > > Regards, > > Simon