Hey, I'm having some heavy trouble getting my laptop to run Qubes and I first thought I was having issues with the OS. But after digging into the logs I managed to get(crashes too early during boot to get any persistent logs, had to write most by hand) it feels more like an issue with my Coreboot built.<br><br>So there are the details :<br> - G505s with integrated HD 8650G + discrete R5 M230 graphics.<br> - Coreboot 4.6-2477-g6ab3edac3c-dirty with processor microcode patch (change-ID: Ibbfee47ce1d5081640d6924e2b12f5213a7fcadb).<br> - Runs Debian Stretch fine.<br> - Fails to start Qubes 3.2 / 4.0 rc3 / Live 3.1.<br> - I added the vgabios.rom  for the integrated card with menuconfig and the one for the discrete card with cbfstool.<br> - Coreboot.rom, .config and full make output as attachment.<br><br><br>Some more error data I gathered from coreinfo's Bootlog :
<br>
<br>Failed to enable LTR for dev = PCI: 01:00.0
<br>Failed to enable LTR for dev = PCI: 02:00.0
<br>...
<br>I2C: 01:50 missing read_resources
<br>I2C: 01:51 missing read_resources
<br>PNP: 00ff.1 missing read_resources
<br>...
<br>Warning: Can't write PCI_INTR 0xC00/0xC01 registers because 'mainboard_picr_data' or 'mainboard_intr_data' tables are NULL
<br>Warning: Can't write PCI IRQ assignments because 'mainboard_pirq_data' structure does not exist
<br>...
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/Common/CommonReturns.c', line 187
<br>ASSERTION ERROR: file 'src/vendorcode/amd/agesa/f15tn/Proc/CPU/cpuGeneralServices.c', line 776
<br>...
<br>Manufacturer: ef
<br>SF: Detected W25Q32 with sector size 0x1000, total 0x400000
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>Manufacturer: ef
<br>SF: Detected W25Q32 with sector size 0x1000, total 0x400000
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/spi/spi_flash.c', line 425
<br>ASSERTION ERROR: file 'src/drivers/amd/agesa/state_machine.c', line 309
<br>...
<br>EEPROM not found
<br>EEPROM not found
<br>EEPROM not found
<br>EEPROM not found
<br>EEPROM not found
<br>EEPROM not found
<br>EEPROM not found
<br>...
<br>I2C: 01:50 (unknown)
<br>I2C: 01:51 (unknown)
<br>...
<br>APIC: 11 (unknown)
<br>APIC: 12 (unknown)
<br>APIC: 13 (unknown)
<br>PCI: 01:00.0 (unknown)
<br>PCI: 02:00.0 (unknown)
<br>PNP: 00ff.0 (unknown)
<br>
<br>
<br>"..." are parts I didn't write down as they didn't show any obvious errors(but I'm bad at seeing them) and it would take me a loooong time to write down the full log as I can't export it as far as I know, if you need any more information from it, I can write down any part missing.
<br>
<br>Output of "cbfstool coreboot.rom print" after I added the optionrom for the R5 M230 discrete graphic card :
<br>Name                           Offset     Type           Size   Comp
<br>cbfs master header             0x0        cbfs header        32 none
<br>fallback/ramstage              0x80       stage          129247 none
<br>config                         0x1f9c0    raw               263 none
<br>revision                       0x1fb00    raw               582 none
<br>payload_revision               0x1fd80    raw               239 none
<br>apu/amdfw                      0x1fec0    raw            131072 none
<br>fallback/romstage              0x3ff00    stage          320556 none
<br>cmos_layout.bin                0x8e3c0    cmos_layout      1164 none
<br>pci1002,990b.rom               0x8e8c0    optionrom       61952 none
<br>fallback/postcar               0x9db40    stage           13268 none
<br>fallback/dsdt.aml              0xa0f80    raw              9435 none
<br>img/coreinfo                   0xa34c0    payload        102712 none
<br>img/nvramcui                   0xbc640    payload        141628 none
<br>fallback/payload               0xdefc0    payload         67370 none
<br>payload_config                 0xef740    raw              1611 none
<br>pci1002,6665.rom               0xefe00    optionrom       32768 none
<br>(empty)                        0xf7e80    null          3112984 none
<br>s3nv                           0x3efec0   raw             32768 none
<br>(empty)                        0x3f7f00   null            31192 none
<br>bootblock                      0x3ff900   bootblock        1424 none 
<br>
<br>
What happened when I tried to boot each version of Qubes :<br><br>Live 3.1 :
<br>mce: Unable to init device /dev/mcelog (rc: -16)
<br>radeon 000:04:00:0: Invalid ROM contents
<br>radeon 000:04:00:0: Invalid ROM contents
<br>[drm:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
<br>radeon 000:04:00:0: Fatal error during GPU init
<br>[TTM] Memory type 3 has not been initialized
<br>SQUASHFS error: squashfs_read_data failed to read block 0x5cb75d68
<br>SQUASHFS error: Unable to read data cache entry [0x5cb75d68]
<br>SQUASHFS error: Unable to read page, block 0x5cb75d68, size af0
<br>SQUASHFS error: Unable to read data cache entry [0x5cb75d68]
<br>SQUASHFS error: Unable to read page, block 0x5cb75d68, size af0
<br>EXT4-fs error (device dm-0): ext4_find_entry:1289: inode #41642: comm plymouthd: reading directory lblock 0
<br>(Hangs at the Qubes graphical loading screen, with loading bar full.)
<br>
<br>3.2 (Install looked fine) :
<br>Hangs at "Booting from Hard Disk..." in SeaBIOS on every try
<br>
<br>4.0 rc3 :
<br>[ FAILED ] Failed to start Load Kernel Modules.
<br>...
<br>[ OK ] Reached target Basic System.
<br>(Hangs for about 10secs, followed by 5s of black screen)
<br>BUG: Unable to handle NULL pointer dereference at (null)
<br>(followed by a lot of output likely concerning the error and quickly back to boot)
<br>Sadly too much output and disappearing too fast for me to get anything out of it if all I can do is read and type to export it. Tried Ctrl+S/Ctrl+Q to "pause" it but nope, also checked that the laptop should not reboot in case of kernel panic but it still does...
<br><br>Thanks to anyone that could help me find what's wrong and how to fix it :)<br><br>---<br>Emil Novik<br><br><br><br><br>