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 19376C433FE for ; Thu, 3 Nov 2022 18:09:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B86F284B26; Thu, 3 Nov 2022 19:09:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="UB07IHmL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CF9E084BE3; Thu, 3 Nov 2022 19:09:36 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 F163683F50 for ; Thu, 3 Nov 2022 19:09:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x736.google.com with SMTP id v8so1662190qkg.12 for ; Thu, 03 Nov 2022 11:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Noc6BiYUu3QOTKiWbJtMzjUlA2TTa706RJ4QYXFhp1U=; b=UB07IHmLbzgo4LDnF/gCJKOjCxLhGtC/bRmothLAzPPWGws2e9KTVS4oq8RvLbbs1Z m1IzDyfh7fDVxnF9ZDeoOo9lotLpmfiIJJ9VqqFIrk45rsS/PLDQfDXjazTraUxf+zCf z3xx306f/R4rSGRNEXA/yADnClvFeiQfcGqvo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Noc6BiYUu3QOTKiWbJtMzjUlA2TTa706RJ4QYXFhp1U=; b=IrQiLj8ik2mxgGhELSWqSIUdnuwjkDLlHJkGcetCiT/qMDmkqTR7sNTraI2I2Ddqk2 d1itBf2rupPJYgHPCB+RbjWoRDfAA5xyQT4p9K7I1yTg0iZSM1udljdE5m1EwbMB7O0B u74OJivTZ1xvpLTXBEVM02WEIpiLagiO9ObwW18daU4J3W7zVGnFyx7oWZW2KfRcfnhO XXopNA+gtvA22KGQgcywIoL+rxy2MOC/XQ/yxh9mcJ8AHEIw6rmldXD4JQc+89VErCoC oOgyebKQEDajpHlrDEgkaxG1vEt5yVHTyBYSVOjHGv9gUtcCCpbCGaFbjs9ERdS/IwAd xxPQ== X-Gm-Message-State: ACrzQf19O/xqu+9S1enLxmEr3Y4BIxypRTv/HKoYjI9P+/ffEFJTpOcE x/gqVt4W48Gr3e/DCQDdYwnnLd3dWzZ3ug== X-Google-Smtp-Source: AMsMyM61XkPQG6s7jgC/k+SjJy7mO8g29XEdz/Fvdm33b+hNvRmjsvyYDHbc2aWplCXJwn3pzWH6hA== X-Received: by 2002:a05:620a:254e:b0:6c7:855c:6eb with SMTP id s14-20020a05620a254e00b006c7855c06ebmr23807593qko.39.1667498972732; Thu, 03 Nov 2022 11:09:32 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-994c-dfba-30d0-8ee5.res6.spectrum.com. [2603:6081:7b00:6400:994c:dfba:30d0:8ee5]) by smtp.gmail.com with ESMTPSA id 204-20020a3706d5000000b006eed094dcdasm1165320qkg.70.2022.11.03.11.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 11:09:32 -0700 (PDT) Date: Thu, 3 Nov 2022 14:09:30 -0400 From: Tom Rini To: Lists Nick Betteridge Cc: u-boot@lists.denx.de Subject: Re: Running u-boot standalone hello_world on an image partition with qemu Message-ID: <20221103180930.GT2116612@bill-the-cat> References: <7ca7738f-1a47-dd45-fcf7-d0bde0280a02@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fwVzdwcpG0LlK9IO" Content-Disposition: inline In-Reply-To: <7ca7738f-1a47-dd45-fcf7-d0bde0280a02@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --fwVzdwcpG0LlK9IO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 03, 2022 at 09:54:40AM +0000, Lists Nick Betteridge wrote: > I'm developing on an ubuntu x86 machine, trying to run the u-boot > hello_world standalone application which resides on an image |sd.img| whi= ch > contains a partition >=20 > I've compiled u-boot (|v2022.10|) with |qemu-x86_64_defconfig| >=20 > I run qemu with "|qemu-system-x86_64 -m 1024 -nographic -bios u-boot.rom > -drive format=3Draw,file=3Dsd.img"| >=20 > u-boot starts up, doesn't find a script, doesn't detect tftp, and awaits a > command. If I type |"ext4ls ide 0:1|", I can clearly see hello_world.bin > (|3932704 hello_world.bin|). >=20 > When I do a |ext4load ide 0:1 0x40000 hello_world.bin| (in preparation for > |go 40000 This is another test|), qemu/u-boot restarts. >=20 > 0x40000 is the |CONFIG_STANDALONE_LOAD_ADDR| for x86. >=20 > I have also tried making an image of hello_world |"mkimage -n "Hello stand > alone" -A x86_64 -O u-boot -T standalone -C none -a 0x40000 -d > hello_world.bin -v hello_world.img|" and tried to load the image into > 0x40000 with the intention of using |bootm| in case of cache issues - > qemu/u-boot still resets. >=20 > Could anyone possibly point out the basic mistake I'm making? Using the standalone API on platforms where we support UEFI applications is strongly discouraged. If some part of the UEFI support in U-Boot is lacking for your use case we strongly encourage patches adding support for that (as we're doing right now for enhancing SPI support). --=20 Tom --fwVzdwcpG0LlK9IO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNkA9YACgkQFHw5/5Y0 tyyfEAv/RQc+PM15DOgUHIwgmQNjxi5lOSS4X5fx1rDGeG5wzCqHgWa3oSlefnf6 bDaR9SWp84ZJtWiPtd8Qqy1Vt1HXgwnVoj9sdn5HrIphcqe/XtPNlAZdrYbI8t8W 1YCM5fI0lVbgzPgpyWlGYR6SRzLGXPhSFl9VVYom9Go3f1jc0qNfm2eJORirZ5mS 7aQjGPbja28HNnAAi13AK7gy0CoKVvTZZjEEm6LoRUdDCYxKPRh+qnOKmByIubxV wmduBrLm6e3W/+0/AWM2AlcKrNdVo0GBhMLS/mGCs91EjnfEWE5dMwMAg2riImEF 24ea/tAA3nYP0a9hcXUBBwLi1h33/Fo51h6uR95jWNCv01uwGtNTRaJ4aurxFdEo 4YjtKx1GRoxg/sCL1AVEltGqTvgkA0GlyOv48+IDXBgWiwb0zGNFtkDMLW7zZzzz 5vT/96bFeGUEQhfL1wu3CUemIXrPiOZP59JiOqErhV8ZkRqmpWkHLwSqoWZcZcCy /F4kIxRz =J0A3 -----END PGP SIGNATURE----- --fwVzdwcpG0LlK9IO--