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 E2633C433FE for ; Thu, 3 Nov 2022 11:11:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 596418512E; Thu, 3 Nov 2022 12:11:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QHYRk3JK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DD3E3850E2; Thu, 3 Nov 2022 10:54:44 +0100 (CET) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 6C2FB83F50 for ; Thu, 3 Nov 2022 10:54:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=lists.nick.betteridge@gmail.com Received: by mail-wr1-x435.google.com with SMTP id w14so1793668wru.8 for ; Thu, 03 Nov 2022 02:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=obof21PhrfN1jtRnn5AYJL/4OZEgRn9ui3Xq0ugcWp0=; b=QHYRk3JKLh55CGADr9LTr7qDxj56XBg2s6m1x0ejvSTJIwU98nVehizkDoaJ8V9ZQn vy28MsgVeM8wRP1L5Zmg1I5FTMEeYjy35s0sSRzFN4yW9FKrIvQGxJ/lpMlLEh9Rkc+d gOR/HV3ELBOWPOQw1PjrATq4qaP3J+RM/Y+eKq3o4Q2ciJxrfbPEtPActazW3D8jXQ+y VjfC0pKvdjO/QrgISAnzZDYdcRy5WSe8Wf3WPsBpBwHVThgvL4KZobDFdQq1unV7a2aB hgJqDjkNR97UB4KARAg0Z/V6CjKM9Q9/UTCBa497pwktSgyN39Wkq4lRm6jxMFeXUcmC qJtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=obof21PhrfN1jtRnn5AYJL/4OZEgRn9ui3Xq0ugcWp0=; b=MAw5ZySSfM1MRyS0fM2wIaVDFr2jNvpBdwzxRyb7ufPIZWE/v7BtI5ecCy8yToUZZe sfqKyWDDSNSdzuVcnjzsouNo7oj7OFYuTx9ROufFxnarFTNmBQ/fWTyoEXsoue8/k/Xe 8oqdV/WRYOaKVvAhQS6fSD6W42OoO5gqF3D6jtBlAlQKJa4CxXDQxeJ02yy1hw3JAVE1 4HfedpMAaTW48FC1EzNcbKqmMGZ9D1SM3LLIo1aspdF+0rZ0pofa6IjngoYYArXUNDnR 127cx2p3fYQyRW0RPFwuZQlvNb6Ns/5qlu3n+PBFKJKifma25WdBnzZtCLy8fLiMFLAR uU0w== X-Gm-Message-State: ACrzQf3yP0FBFfUWzP35FGYm39KnDRQTQP+zZg/lrablcLXUrYm61lcZ in2j9pNvnAstklOFfUmj3wFB79Xr/6w= X-Google-Smtp-Source: AMsMyM5yx9XzHutNku+qV325sxAS1V07XW/mqc7pXaY2D390eMsUDleo1vVFKrg9lO0xgTEDEgPEdw== X-Received: by 2002:a5d:6b8d:0:b0:236:6d5d:bcbc with SMTP id n13-20020a5d6b8d000000b002366d5dbcbcmr17555996wrx.628.1667469281914; Thu, 03 Nov 2022 02:54:41 -0700 (PDT) Received: from [10.0.0.12] (static-90-255-244-241.vodafonexdsl.co.uk. [90.255.244.241]) by smtp.gmail.com with ESMTPSA id h8-20020a05600c314800b003a1980d55c4sm4861652wmo.47.2022.11.03.02.54.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Nov 2022 02:54:41 -0700 (PDT) Message-ID: <7ca7738f-1a47-dd45-fcf7-d0bde0280a02@gmail.com> Date: Thu, 3 Nov 2022 09:54:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: u-boot@lists.denx.de From: Lists Nick Betteridge Subject: Running u-boot standalone hello_world on an image partition with qemu X-Mailman-Approved-At: Thu, 03 Nov 2022 12:10:49 +0100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.39 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 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| which contains a partition I've compiled u-boot (|v2022.10|) with |qemu-x86_64_defconfig| I run qemu with "|qemu-system-x86_64 -m 1024 -nographic -bios u-boot.rom -drive format=raw,file=sd.img"| 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|). 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. 0x40000 is the |CONFIG_STANDALONE_LOAD_ADDR| for x86. 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. Could anyone possibly point out the basic mistake I'm making? Thanks in advance