From patchwork Sat Jan 28 22:00:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1733358 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=KrM5P/1F; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P47gK6fhCz23hg for ; Sun, 29 Jan 2023 09:01:00 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 960F385742; Sat, 28 Jan 2023 23:00:49 +0100 (CET) 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="KrM5P/1F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E4BD48574A; Sat, 28 Jan 2023 23:00:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 1F2BE856DD for ; Sat, 28 Jan 2023 23:00:45 +0100 (CET) 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@chromium.org Received: by mail-il1-x129.google.com with SMTP id g15so3762398ild.3 for ; Sat, 28 Jan 2023 14:00:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V0d28fuddIRZt7a0XkuRUCIU5Y1/K1BKdsbs/nmadbI=; b=KrM5P/1F/0p58nRh56ls4W5US4IrYtueYN+VF9jS5uK5/ya5OZLmkG5x1rGA2+rDlO WLwdKeIxERAMh5bV4VcUWcOzHmLED5AxTber3J9nLkDe9fnG5Z8a6l1phvtVYAvr4Uzo HJcvsIH9X1Jh/6bU4BFyWklD7D2m1E4OIazCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V0d28fuddIRZt7a0XkuRUCIU5Y1/K1BKdsbs/nmadbI=; b=n/1qJJ19OYrMRI/TaoZWzHyAPP61bbxtmKIKoDYa7lzhA0HHoeFpk4G+ydvR3sm9Ur fzMOXFb3rOo1MncNpAR6JiOts/me6pEy7JCj4TYfxGksLbV3qSt9swjQWDmo+wakINoZ nayd9k/aTtrAh83M6P/BKgC8MtCFYmqA7xWFU9o8KbFA9ZYlvTRtYFjx3I5FXjO3kqyP l5qfU/AhvNe5hi5752ujC7GK8HdODOu4EO0Yj0s6ZPn4TnZ4jN5M96TLeZxCTTQ42we0 n9sJ/C4DAoQaGvJx7tbBzoSxVc0gHC6CruOK2Dt/IJWZjsC7cPsRRURkAqa8sJiT7bOQ 8ofg== X-Gm-Message-State: AO0yUKWAfwQbyKATpIi4nZ3WBEJyMNvrGkD3YNv8JnENIq+4mPLb/ekx MPLGAmc/sl6nkXELKwGUElgt54AGGZqGHO+p X-Google-Smtp-Source: AK7set8jzJ2Pz4OBIagbvv+zsGJC2nlEkMHCzusytq7fyvKdv7xS5Dzsiv+f2ji9RLIECxpwdVteoQ== X-Received: by 2002:a92:9510:0:b0:310:ada6:e6fa with SMTP id y16-20020a929510000000b00310ada6e6famr7288345ilh.16.1674943243627; Sat, 28 Jan 2023 14:00:43 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id f15-20020a056e0212af00b0030f1be2e051sm2525521ilr.39.2023.01.28.14.00.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Jan 2023 14:00:43 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Albert Aribaud , Ilias Apalodimas , Simon Glass , Andre Przywara , Bin Meng , John Keeping , Philippe Reynes , =?utf-8?q?Pierre-Cl=C3=A9?= =?utf-8?q?ment_Tosi?= , Tuomas Tynkkynen Subject: [PATCH 00/13] bootstd: Update ARM QEMU for standard boot and environment Date: Sat, 28 Jan 2023 15:00:15 -0700 Message-Id: <20230128220028.53575-1-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog MIME-Version: 1.0 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 This series fixes a few reported problems with virtio block-device handling. It also moves QEMU over to use standard boot on ARM, by adding a suitable bootdev and bootmeth for qfw. Finally, it moves the boards to use a text-based environment. The only remaining item in the config.h header file is CFG_SYS_SDRAM_BASE so it would be nice to move that to Kconfig, if possible. Simon Glass (13): log: Add a category for filesystems virtio: Add some debugging bootstd: Allow enabling BOOTSTD_FULL without needing EXPO bootstd: Probe the block device before use bootstd: Correct virtio block-device handling bootstd: Add some default filesystems and commands qemu: Update qfw command to use addresses qemu: Move qfw kernel setup into a common file qemu: Add a bootdev for qfw qemu: Add a bootmeth for qfw arm: qemu: Switch to standard boot arm: qemu: Switch to a text environment arm: qemu: Move GUIDs to the C file board/emulation/qemu-arm/qemu-arm.c | 10 +++ board/emulation/qemu-arm/qemu-arm.env | 12 +++ boot/Kconfig | 28 +++++++ boot/Makefile | 5 +- boot/bootdev-uclass.c | 3 + boot/bootflow.c | 6 +- boot/bootmeth_qfw.c | 102 ++++++++++++++++++++++++++ cmd/bootflow.c | 21 ++++-- cmd/qfw.c | 89 +++------------------- common/log.c | 1 + common/qfw.c | 66 ++++++++++++++++- configs/qemu_arm64_defconfig | 5 +- configs/qemu_arm_defconfig | 5 +- configs/tools-only_defconfig | 1 + doc/develop/bootstd.rst | 4 + drivers/misc/qfw.c | 87 ++++++++++++++++++++++ drivers/virtio/virtio-uclass.c | 8 +- drivers/virtio/virtio_blk.c | 7 ++ fs/fat/fat_write.c | 2 + include/configs/qemu-arm.h | 75 ------------------- include/log.h | 2 + include/qfw.h | 13 ++++ test/boot/bootdev.c | 25 ++++--- test/boot/bootstd_common.h | 2 +- 24 files changed, 398 insertions(+), 181 deletions(-) create mode 100644 board/emulation/qemu-arm/qemu-arm.env create mode 100644 boot/bootmeth_qfw.c