mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
x86: coreboot: Add IDE and SATA
Add these options to permit access to more disk types. Add some documentation as well. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
fb5cfbe17d
commit
350c0df30d
3 changed files with 30 additions and 0 deletions
|
@ -25,6 +25,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
|
||||
|
|
|
@ -21,8 +21,10 @@ CONFIG_LOGF_LINE=y
|
|||
CONFIG_LOGF_FUNC=y
|
||||
CONFIG_DISPLAY_BOARDINFO_LATE=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
|
||||
|
@ -47,6 +49,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
|
||||
|
|
|
@ -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
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue