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 B9A68C001DC for ; Fri, 28 Jul 2023 02:39:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D74B8688F; Fri, 28 Jul 2023 04:39:08 +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="JJesdASS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E5B18686B; Fri, 28 Jul 2023 04:38:56 +0200 (CEST) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (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 B969E863EE for ; Fri, 28 Jul 2023 04:38:52 +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@chromium.org Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3466725f0beso7075075ab.1 for ; Thu, 27 Jul 2023 19:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690511931; x=1691116731; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nQCwSQO8LXNqWj5mbYcy1P8Jac6H9Y8aqnLVrFf1p3Y=; b=JJesdASSwRtojfK64p4h8PcCEuDUUf++m1zVmcNZWHqgdxIjrAVHxxRLQPWXqGcmLv UoiIDvyNPIwmdwhT2vV/5nwzhOuxfK/nJOsIF7tLwY1iuvY9/GvWNLg00EVHQVjx5Keg yGpgKBQ1+o9AVZo53PrbrUfP6ZBsZXyuypGA4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690511931; x=1691116731; 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=nQCwSQO8LXNqWj5mbYcy1P8Jac6H9Y8aqnLVrFf1p3Y=; b=hNl2LxaUtfdyYaMBPLKxPGRtS/9upPmxiQuF+V3qu+QdW5ociGFtBonXGdrJUJyCwv 5+AHFrvHBqURPzWRUV5AkxCKdqY9+XuZxLLn+X8UgxqsTE7qyuaWsP6a2jIrZk0o5jGf OBOkRJjYDSqp4Fhn8T3ye3/uQTXnSCC79w+114onFTBYZwacBYQhY6TufrUL22xWLPGd rmbDZ7NanlzESzg9qoUqyfCSMWEvsP0UaT0os3l1k5fRrBnU55UbQWGDAX9SURFXEY9C dNfi1U+QgW0S6hzHsI57aIzIryKPJ6rMZQyvQ6sxH4FKRs5rIAwfYmA8raxoOayBvS+U S5Jw== X-Gm-Message-State: ABy/qLaQ2qRwSez8Ua4sampKueX2pnwYYwKGoyOaG9kQ0SC8nv8gzrQR 1rs90PM9YQ2PBuwatBMW8TZJQ8ixzBodYdMOKeo= X-Google-Smtp-Source: APBJJlE+6BglNYD+xynASb9WZBPgRWrnjeFi7xYRnf4bn/A4SjN9b+u7oY19A4uSPG21IjIrZUszIQ== X-Received: by 2002:a05:6e02:156d:b0:347:69b8:d407 with SMTP id k13-20020a056e02156d00b0034769b8d407mr1581265ilu.25.1690511931327; Thu, 27 Jul 2023 19:38:51 -0700 (PDT) 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 g18-20020a0566380c5200b0042acf389acesm799266jal.71.2023.07.27.19.38.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 19:38:51 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Fabrice Gasnier , Heinrich Schuchardt , Jaehoon Chung , Marek Vasut , Mattijs Korpershoek , Patrice Chotard , Patrick Delaunay , Peng Fan , Ramon Fried , Viacheslav Mitrofanov Subject: [PATCH 0/8] x86: Improve bootstd support Date: Thu, 27 Jul 2023 20:37:43 -0600 Message-ID: <20230728023755.680278-1-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This series provides some bootstd fixes so that IDE can be used reliably for booting a distro. It also includes some documentation on how to boot from coreboot in various scenarios, using QEMU. With this it is possible to boot Ubuntu 2023.04 from coreboot64, for example. Simon Glass (8): usb: Return -ENOENT when no devices are found lib: Suppress E when writing error-string output bootstd: Rename bootdev_setup_sibling_blk() bootstd: Correct creating of bootdev sibling bootstd: Add some more debugging in the bootdev uclass x86: coreboot: Add IDE and SATA x86: coreboot: Enable standard boot x86: coreboot: Enable support for CBFS boot/bootdev-uclass.c | 17 ++++++-- common/usb_storage.c | 2 +- configs/coreboot64_defconfig | 16 ++----- configs/coreboot_defconfig | 11 +++++ doc/board/coreboot/coreboot.rst | 74 +++++++++++++++++++++++++++++++-- doc/develop/bootstd.rst | 4 +- drivers/block/ide.c | 4 +- drivers/mmc/mmc-uclass.c | 2 +- drivers/nvme/nvme.c | 2 +- drivers/scsi/scsi.c | 2 +- drivers/usb/host/usb-uclass.c | 2 +- drivers/virtio/virtio-uclass.c | 2 +- include/bootdev.h | 8 ++-- include/usb.h | 9 +++- lib/vsprintf.c | 5 ++- 15 files changed, 123 insertions(+), 37 deletions(-) -- 2.41.0.487.g6d72f3e995-goog