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 97F0BC001DF for ; Sun, 30 Jul 2023 17:15:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9CF1786912; Sun, 30 Jul 2023 19:15:40 +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="f2aGRcff"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BFBE3865DE; Sun, 30 Jul 2023 19:15:38 +0200 (CEST) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 555E9865DE for ; Sun, 30 Jul 2023 19:15:36 +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-io1-xd33.google.com with SMTP id ca18e2360f4ac-77ac14ff51bso156633639f.3 for ; Sun, 30 Jul 2023 10:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690737335; x=1691342135; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4mHEojpyOikBDjhVuW5oaS0XwwlOWNYcSqrBU8jw9Cs=; b=f2aGRcffkx7ktVsWWUWCy4q5DsQxAjq+kWwf8QBxnChGwJ6DUSy8EFbNIsP3BcjYoi WG60/MI1gecPr/CnKkR4wmeXADdpfdeTUhhaZeaPcHvT9LBDkCtvXDkRuAYElL8aaj5b MZ1tTHUAo8+Cf5k9K3ucJyLdoG6LewuoHNIVk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690737335; x=1691342135; 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=4mHEojpyOikBDjhVuW5oaS0XwwlOWNYcSqrBU8jw9Cs=; b=IvgyvJOfUMvXMvuLY/xPWXeZ7nTYnD51af7Aj6kvHtYRUpDeSqyOGOTvrqRasWyHyZ nwNWpQR8IQu6PL4hADV1JpIhBZUKHMm8oUUAP/TYn23tO6G/qu4NEndvJyIKj2f7NwEI 7nkNddvwqfmqLW/ziT45ADZm3w5GFlZJ3FfUq4fi8lQjBx/ejYYkdvEGT1V6HB/knfxo SCaG9DHK0jcgnrDU1hRnUIxi1jbzAnaKqEYClSFnPZ5UGlyLrTRx9bUeh4C75Z2Ftco8 ZjHyGeddql/22tclYm3YFGQY5xNEihnLuthTY2bJCmT0lMa5k1pUwQutqGk3cSKG6SAt gtVg== X-Gm-Message-State: ABy/qLZZurJohfyBRjh6H0Nxh0TE13Te13fVykzUBJo2aXEpIpfvPc3X W+hRJL7ikg75JlOoXNVWGMFZi7D8SaQYk21bf9M= X-Google-Smtp-Source: APBJJlHEW/ZE+f9vI/2u+S379DhIJcLoWXZNjJNg56MKngkw6lp1o/myP0qeGNmZJ1335PnnyRIlUg== X-Received: by 2002:a6b:5901:0:b0:760:e308:107e with SMTP id n1-20020a6b5901000000b00760e308107emr5504687iob.0.1690737334852; Sun, 30 Jul 2023 10:15:34 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id y11-20020a6bd80b000000b00786582eb9fbsm2657473iob.15.2023.07.30.10.15.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:15:34 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mattijs Korpershoek , Bin Meng , Simon Glass , =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= , Fabrice Gasnier , Heinrich Schuchardt , Ilias Apalodimas , Jaehoon Chung , Marek Vasut , Patrice Chotard , Patrick Delaunay , Peng Fan , Ramon Fried , Stefan Herbrechtsmeier , Viacheslav Mitrofanov Subject: [PATCH v2 0/9] x86: Improve bootstd support Date: Sun, 30 Jul 2023 11:15:10 -0600 Message-ID: <20230730171531.914677-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. Changes in v2: - Use log_warning() for the warning - Fix the function name in the header as well Simon Glass (9): fs: fat: Support reading from a larger block size 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 +- fs/fat/Kconfig | 13 ++++ fs/fat/fat.c | 107 ++++++++++++++++++++++++++++---- fs/fat/fat_write.c | 8 ++- include/bootdev.h | 10 +-- include/usb.h | 9 ++- lib/vsprintf.c | 5 +- 18 files changed, 238 insertions(+), 52 deletions(-) -- 2.41.0.487.g6d72f3e995-goog