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 6DE3BC00528 for ; Sun, 30 Jul 2023 17:16:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B97A4869EE; Sun, 30 Jul 2023 19:16:00 +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="S6ENIIxn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1FA4C8695F; Sun, 30 Jul 2023 19:15:45 +0200 (CEST) Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 3E76A865DE for ; Sun, 30 Jul 2023 19:15:42 +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-xd31.google.com with SMTP id ca18e2360f4ac-7909808a504so60384839f.1 for ; Sun, 30 Jul 2023 10:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690737341; x=1691342141; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K+cT66pI3tb85Mz1WB2CBHWsRh7oIZp6n/EmlNTw7PA=; b=S6ENIIxnpZag9YJ/tiOMs6i/pQ+YHhdBt4LMZ7YUJc3pytj9nCfBkYvOK6t6v71LVS 9Oaac6F1PtymW9PanjT71Kxcx4WSW2X/VGmn0hEXuGhumPvwEVURWudWpLUkaemUnkBo VJagtSFbrasIePeBOf9TvDMdzQV6jUTzdIcpw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690737341; x=1691342141; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K+cT66pI3tb85Mz1WB2CBHWsRh7oIZp6n/EmlNTw7PA=; b=CJx4sinDpwoEwoCROv0m4BvaIDvPW+sTTkg19PsJ/eALyTCFfDkJAULPUTq18uKY+a UEWj9aPXT7avW3JRfV7l4VA5WhRwlJgCEALIZvNOaQrRdBhrFmPcWapTHiNiZCevi6T+ YIV/Qx2Qo+1R+Tdslh6f0TZy71U95eUJCFWxTJ6pmohhkW50ed9qneGMHZAz4/AyD91e awCtGcPiPM8IRty2usNsjmEkkbLErTNGTMnpY1Blmou/+tICIpPhz0PSU4oZgNDgCdmW Z6NcCVwyPr0WLlIjkVHrOovMFQ8sGrlZkgFM+oy3jtrVC+fyVC7Ldw3ZqBaxaUb1iXUT V/4A== X-Gm-Message-State: ABy/qLaXlintCFJUO1bFhey2rPSRn5tTI1uEvR/e+vYkcM5yeIyIjznL JHVWEF9fleKtxH/yim74A1zRqCSxU9XePYgrgYg= X-Google-Smtp-Source: APBJJlGaUPr5gNIxLJfrzX8zSm0y2vHmz50VOi4zBL3UzWeobmrdkWKKDDE6RCoInyTd3pPGnAirkQ== X-Received: by 2002:a05:6602:329a:b0:783:572c:9caa with SMTP id d26-20020a056602329a00b00783572c9caamr5824785ioz.0.1690737340859; Sun, 30 Jul 2023 10:15:40 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:15:40 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mattijs Korpershoek , Bin Meng , Simon Glass Subject: [PATCH v2 7/9] x86: coreboot: Add IDE and SATA Date: Sun, 30 Jul 2023 11:15:17 -0600 Message-ID: <20230730171531.914677-7-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230730171531.914677-1-sjg@chromium.org> References: <20230730171531.914677-1-sjg@chromium.org> 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 Add these options to permit access to more disk types. Add some documentation as well. Signed-off-by: Simon Glass --- (no changes since v1) configs/coreboot64_defconfig | 1 + configs/coreboot_defconfig | 9 +++++++++ doc/board/coreboot/coreboot.rst | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/configs/coreboot64_defconfig b/configs/coreboot64_defconfig index 8aadaa68c279..ded0e6f2422d 100644 --- a/configs/coreboot64_defconfig +++ b/configs/coreboot64_defconfig @@ -26,6 +26,7 @@ CONFIG_SYS_PBSIZE=532 CONFIG_CMD_IDE=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y +CONFIG_CMD_SATA=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y diff --git a/configs/coreboot_defconfig b/configs/coreboot_defconfig index 8e11de663819..56cc542df6c6 100644 --- a/configs/coreboot_defconfig +++ b/configs/coreboot_defconfig @@ -22,8 +22,10 @@ CONFIG_LOGF_FUNC=y CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_LAST_STAGE_INIT=y CONFIG_PCI_INIT_R=y +CONFIG_CMD_IDE=y CONFIG_CMD_MMC=y CONFIG_CMD_PART=y +CONFIG_CMD_SATA=y CONFIG_CMD_USB=y # CONFIG_CMD_SETEXPR is not set CONFIG_CMD_DHCP=y @@ -48,6 +50,13 @@ CONFIG_USE_ROOTPATH=y CONFIG_REGMAP=y CONFIG_SYSCON=y # CONFIG_ACPIGEN is not set +CONFIG_SYS_IDE_MAXDEVICE=4 +CONFIG_SYS_ATA_DATA_OFFSET=0 +CONFIG_SYS_ATA_REG_OFFSET=0 +CONFIG_SYS_ATA_ALT_OFFSET=0 +CONFIG_ATAPI=y +CONFIG_LBA48=y +CONFIG_SYS_64BIT_LBA=y CONFIG_NVME_PCI=y # CONFIG_PCI_PNP is not set CONFIG_SOUND=y diff --git a/doc/board/coreboot/coreboot.rst b/doc/board/coreboot/coreboot.rst index 0fe95af56d2d..8e638a3c74cf 100644 --- a/doc/board/coreboot/coreboot.rst +++ b/doc/board/coreboot/coreboot.rst @@ -41,6 +41,26 @@ At present it seems that for Minnowboard Max, coreboot does not pass through the video information correctly (it always says the resolution is 0x0). This works correctly for link though. +You can run via QEMU using:: + + qemu-system-x86_64 -bios build/coreboot.rom -serial mon:stdio + +The `-serial mon:stdio` part shows both output in the display and on the +console. It is optional. You can add `nographic` as well to *only* get console +output. + +To run with a SATA drive called `$DISK`:: + + qemu-system-x86_64 -bios build/coreboot.rom -serial mon:stdio \ + -drive id=disk,file=$DISK,if=none \ + -device ahci,id=ahci \ + -device ide-hd,drive=disk,bus=ahci.0 + +Then you can scan it with `scsi scan` and access it normally. + +To use 4GB of memory, typically necessary for booting Linux distros, add +`-m 4GB`. + 64-bit U-Boot ------------- -- 2.41.0.487.g6d72f3e995-goog