Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

asus_kgpe-d16: Unable to boot from onboard SATA HDD with PIKE2008 raid card #172

Open ybh1998 opened 2 years ago

ybh1998 commented 2 years ago

Dasharo version

Tested on asus_kgpe-d16_v0.2.0_16M.rom and asus_kgpe-d16_v0.3.0_16M_vboot_TPM2.0.rom

Affected component(s) or functionality

Booting from HDDs connected to onboard SATA ports when there is a PIKE2008 raid card

Brief summary

I have a bootable OS HDD connected to the motherboard SATA controller and several data HDD connected to PIKE2008. Without PIKE2008 raid card installed, the OS HDD boots fine. When PIKE2008 raid card exist, coreboot will execute the option ROM on it. Then the booting process shows Booting from Hard Disk... Boot failed: not a bootable disk. The boot menu only shows the OS HDD.

How reproducible

100%

How to reproduce

Steps to reproduce the behavior:

  1. Install a bootable HDD on the onboard SATA port
  2. Install a PIKE2008 raid card
  3. Boot

Expected behavior

Boot from HDD

Actual behavior

Booting from Hard Disk... Boot failed: not a bootable disk.

Solutions you've tried

I think this problem is related to the option ROM on PIKE2008. So I add a runtime option to coreboot using the following command: cbfstool asus_kgpe-d16_v0.2.0_16M.rom add-int -i 0 -n etc/pci-optionrom-exec This option disables option ROM execution. Coreboot doesn't run PIKE2008 option ROM and the HDD boots up correctly.

I also tested seabios_withgrub_kgpe-d16-rdimm_2mb_libgfxinit_txtmode_usqwerty.rom from libreboot. It also doesn't run the option ROM on PIKE2008 and boot from HDD correctly. But they set etc/pci-optionrom-exec to 2 (executing all ROMs) and I haven't figure out how they did it.

mrothfuss commented 2 years ago

This could be correct BIOS behavior depending on how your PIKE2008 card is configured. It should have its own settings and might be configured to boot a missing drive or a non bootable one.