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 38EF0C25B0E for ; Fri, 12 Aug 2022 15:11:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4DCF484AA9; Fri, 12 Aug 2022 17:11:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="KxQmOudn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 095DA84AF5; Fri, 12 Aug 2022 17:11:26 +0200 (CEST) Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DEDF384B10 for ; Fri, 12 Aug 2022 17:11:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-10d845dcf92so1212053fac.12 for ; Fri, 12 Aug 2022 08:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=b9OeD+wVDabEVo4QUg7RLfE8jMoIDM4rezn+vVjmmCg=; b=KxQmOudn5zu62LXs0aQ8i+B+PT8k3kvwAQKxvm5UYooUhmO5IqrJUKNOLzivyrHPnz p56C8Qh1X929A/ImLksNlmsNtZAqWjdmDBCX+9qB73Uui2Mip4RPLxtMR5YdAr32YUhK KZOS2iv3AUV2JGkWqwXyGDAIepf6wzRqE88K4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=b9OeD+wVDabEVo4QUg7RLfE8jMoIDM4rezn+vVjmmCg=; b=R/qD7Nxr4zI8/0qCb06TNMkxiN37IXOr+o6WI6FHA8Q2BWeC5d9VX1/4B6IvQYIgog JFK1Jo96FDA1AZ77Qv72XujWF4cMREPniJPgXMZ5jMhx9XwzAlR9QaLIXUAuMF6LalSO NASG0dTEN2+WMnn79vL01Zr5M0cpV06Bubnj4AbZWxYns2FrDvacmpwYkpb0g7OYOi3Q Eux3Os03Jz0tkOt2nwaDJ+a8nGZylLR2i0Y/vlED2QxPL8JpeWlzd3x8KER+jVQSyWXU gtsFOEmPmzjhcG6p03vrRit+VtVFr6yYFa1n39A4eeXbESGlw80nVN4dynMSt4vHK7sc AyEw== X-Gm-Message-State: ACgBeo3Jfk4Aknef9FYavN7+Yw0gduKAqr3L2fBLdC2hZ/GNYvUcSUGC /dXWwm3jw7sz1T3TpPwVeBo9Oh1zsvtaLMCztRcCzm3mwM/2gA== X-Google-Smtp-Source: AA6agR6EioAwodROFTCMES2fRIg/xZ9p7BqZq72+TxLXkCXGr/nJyE3oCkpD77YcnUvOFJu7W62PQSF+u9g8tedsixE= X-Received: by 2002:a05:6870:a2cf:b0:10f:5de:7d36 with SMTP id w15-20020a056870a2cf00b0010f05de7d36mr1993544oak.64.1660317079123; Fri, 12 Aug 2022 08:11:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Simon Glass Date: Fri, 12 Aug 2022 09:11:06 -0600 Message-ID: Subject: Re: u-boot patch "[v2,02/16] arm: qemu: Add an SPL build" issue help To: =?UTF-8?B?5pu55a2Q5oGS?= Cc: "u-boot@lists.denx.de" , LV , =?UTF-8?B?5p2O5a+M5pil?= , =?UTF-8?B?546L5a2m5pWP?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.6 at phobos.denx.de X-Virus-Status: Clean On Thu, 11 Aug 2022 at 21:02, =E6=9B=B9=E5=AD=90=E6=81=92 wrote: > > Hi, Simon=EF=BC=9A > it works OK based on your u-boot tree ! > Thank you very much ! OK good, you're welcome! - Simon > > Regards, > ziheng > > From: "Simon Glass" > Date: Thu, Aug 11, 2022, 10:48 PM > Subject: Re: u-boot patch "[v2,02/16] arm: qemu: Add an SPL build" issue= help > To: "=E6=9B=B9=E5=AD=90=E6=81=92" > Cc: "u-boot@lists.denx.de", "LV", "=E6=9D=8E=E5=AF=8C=E6=98=A5", "=E7=8E=8B=E5= =AD=A6=E6=95=8F" > Hi ziheng, > > On Thu, 11 Aug 2022 at 00:26, =E6=9B=B9=E5=AD=90=E6=81=92 wrote: > > > > Hi, Simon Glass=EF=BC=9A > > we have an issue based on this patch below, can you help us ? > > Patch=EF=BC=9Ahttps://patchwork.ozlabs.org/project/uboot/patch/= 20220117150428.1580273-2-sjg@chromium.org/ > > > > Our Environment=EF=BC=9A > > Qemu Version=EF=BC=9A7.0.0 > > U-boot Baseline Version: 2021.10 > > > > Steps: > > 1. we have only patched "[v2,02/16] arm: qemu: Add an SPL build= ", not all the "passage: Define a standard for firmware data flow" series p= atchs. > > > > 2. Baseed on this patch, we have made the following modificatio= ns=EF=BC=9A > > a. arch/arm/dts/qemu-arm-u-boot.dtsi =EF=BC=88Left is o= riginal, right is modified=EF=BC=8C we think they are actually the same=EF= =BC=89 > > 3. After compiling, image.bin is generated, image.map is as fol= lows=EF=BC=88we think it's ok, spl base addr is 0x00000000, and u-boot base= addr is 0x00010000=EF=BC=89=EF=BC=9A > > 4. but when we use following command to execute, it will block. > > command: ./qemu-system-arm -machine virt -nographic -bios image.bin > > result=EF=BC=9A > > 5. some key files size=EF=BC=9A > > image.bin=EF=BC=9A 767936 > > u-boot.bin=EF=BC=9A694764 > > u-boot-spl.bin=EF=BC=9A15112 > > > > We don't know what could be causing this problem, hope you can help us = ! > > I cannot repeat this problem. > > $ qemu-system-arm -machine virt -nographic -bios > /tmp/b/qemu_arm_spl/image.bin -version > QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.23) > Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers > > I use the tree here: > > https://github.com/sjg20/u-boot/tree/try-qemu > > buildman -k -o /tmp/b/qemu_arm_spl -w qemu_arm_spl > > $ qemu-system-arm -machine virt -nographic -bios /tmp/b/qemu_arm_spl/imag= e.bin > > U-Boot SPL 2022.10-rc2-00042-g5dac8f83d0d-dirty (Aug 11 2022 - 08:36:05 -= 0600) > Trying to boot from QEMU > > > U-Boot 2022.10-rc2-00042-g5dac8f83d0d-dirty (Aug 11 2022 - 08:36:05 -0600= ) > > DRAM: 128 MiB > Core: 47 devices, 14 uclasses, devicetree: board > Flash: 32 MiB > Loading Environment from Flash... *** Warning - bad CRC, using default > environment > > In: pl011@9000000 > Out: pl011@9000000 > Err: pl011@9000000 > Net: eth0: virtio-net#32 > Hit any key to stop autoboot: 0 > =3D> QEMU: Terminated > > Regards, > Simon