Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, November 26, 2015 10:13 pm, Jonathan Gray wrote: > Can you include a full dmesg when booted via uefi with radeondrm > still enabled? pcidump -v output would be helpful as well. > > We may have to read the video bios out of the acpi VFCT table > when booting via efi and the radeondrm code doesn't do that currently. Sure, here you go: OpenBSD 5.8-current (GENERIC.MP) #1666: Thu Nov 26 00:22:53 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8470441984 (8078MB) avail mem = 8209608704 (7829MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbc41b018 (58 entries) bios0: vendor American Megatrends Inc. version "2601" date 03/24/2015 bios0: ASUSTeK COMPUTER INC. M5A97 LE R2.0 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT BGRT acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC4(S4) UHC6(S4) UHC7(S4) PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 16 (boot processor) cpu0: AMD Opteron(tm) Processor 3350 HE, 2809.72 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 17 (application processor) cpu1: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 18 (application processor) cpu2: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 19 (application processor) cpu3: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 5 pa 0xfec0, version 21, 24 pins ioapic1 at mainbus0: apid 6 pa 0xfec2, version 21, 32 pins acpimcfg0 at acpi0 addr 0xe000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 4 (P0PC) acpiprt2 at acpi0: bus 1 (PC02) acpiprt3 at acpi0: bus -1 (PC03) acpiprt4 at acpi0: bus 2 (PC04) acpiprt5 at acpi0: bus -1 (PC05) acpiprt6 at acpi0: bus -1 (PC06) acpiprt7 at acpi0: bus 3 (PC07) acpiprt8 at acpi0: bus -1 (PC09) acpiprt9 at acpi0: bus -1 (PC0A) acpiprt10 at acpi0: bus -1 (PC0B) acpiprt11 at acpi0: bus -1 (PC0C) acpiprt12 at acpi0: bus -1 (PC0D) acpiprt13 at acpi0: bus -1 (PE20) acpiprt14 at acpi0: bus -1 (PE21) acpiprt15 at acpi0: bus -1 (PE22) acpiprt16 at acpi0: bus -1 (PE23) acpiec0
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, Nov 26, 2015 at 11:51:03AM -0500, Joe Gidi wrote: > The newly installed system boots successfully, but then it seems to fail > to initialize video properly at the end of the boot process. My monitor > goes into an endless cycle of trying to sync up. I can ssh in and see this > in /var/log/messages: > > Nov 26 11:45:55 opteron /bsd: root on sd0a (ef051b8fc18f2fbe.a) swap on > sd0b dump on sd0b > Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed > Nov 26 11:45:55 opteron /bsd: drm:pid0:evergreen_init *ERROR* disabling > GPU acceleration > Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* > 0x802922c0 unpin not necessary > Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* > 0x802922c0 unpin not necessary > Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed > Nov 26 11:45:55 opteron /bsd: error: [drm:pid0:radeonfb_create] *ERROR* > failed to create fbcon object -12 > Nov 26 11:45:55 opteron ntpd[27846]: /var/db/ntpd.drift is empty > Nov 26 11:45:55 opteron savecore: no core dump > > My video card is: > radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00 > drm0 at radeondrm0 > radeondrm0: msi > > And the radeondrm-firmware-20150927 package is installed. Can you include a full dmesg when booted via uefi with radeondrm still enabled? pcidump -v output would be helpful as well. We may have to read the video bios out of the acpi VFCT table when booting via efi and the radeondrm code doesn't do that currently.
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
[big snip] >> The newly installed system boots successfully, but then it seems to fail >> to initialize video properly at the end of the boot process. My monitor >> goes into an endless cycle of trying to sync up. I can ssh in and see >> this >> in /var/log/messages: >> >> Nov 26 11:45:55 opteron /bsd: root on sd0a (ef051b8fc18f2fbe.a) swap on >> sd0b dump on sd0b >> Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed >> Nov 26 11:45:55 opteron /bsd: drm:pid0:evergreen_init *ERROR* disabling >> GPU acceleration >> Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* >> 0x802922c0 unpin not necessary >> Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* >> 0x802922c0 unpin not necessary >> Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed >> Nov 26 11:45:55 opteron /bsd: error: [drm:pid0:radeonfb_create] *ERROR* >> failed to create fbcon object -12 >> Nov 26 11:45:55 opteron ntpd[27846]: /var/db/ntpd.drift is empty >> Nov 26 11:45:55 opteron savecore: no core dump >> >> My video card is: >> radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00 >> drm0 at radeondrm0 >> radeondrm0: msi >> >> And the radeondrm-firmware-20150927 package is installed. >> >> Thanks again for all your help. I had a few more minutes to play around with this today. Disabling radeondrm in ukc results in a usable console. Here's a dmesg: OpenBSD 5.8-current (GENERIC.MP) #1666: Thu Nov 26 00:22:53 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8470441984 (8078MB) avail mem = 8209608704 (7829MB) User Kernel Config UKC> disable radeondrm 214 radeondrm* disabled UKC> quit Continuing... mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbc41b018 (58 entries) bios0: vendor American Megatrends Inc. version "2601" date 03/24/2015 bios0: ASUSTeK COMPUTER INC. M5A97 LE R2.0 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT BGRT acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC4(S4) UHC6(S4) UHC7(S4) PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 16 (boot processor) cpu0: AMD Opteron(tm) Processor 3350 HE, 2809.74 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 17 (application processor) cpu1: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 18 (application processor) cpu2: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 19 (application processor) cpu3: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, 26 Nov 2015 11:51:03 -0500 "Joe Gidi" wrote: > On Thu, November 26, 2015 11:27 am, YASUOKA Masahiko wrote: >> On Thu, 26 Nov 2015 11:10:33 -0500 >> "Joe Gidi" wrote: >>> On Thu, November 26, 2015 10:59 am, YASUOKA Masahiko wrote: On Thu, 26 Nov 2015 09:57:12 -0500 "Joe Gidi" wrote: > On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: >> On Wed, 11 Nov 2015 15:33:06 -0500 >> "Joe Gidi" wrote: >>> I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard >>> in >>> one >>> of my systems and tried to boot the November 11th amd64 >>> miniroot58.fs >>> image to test UEFI booting. I get to the bootloader, but it appears >>> to >>> fail while loading the kernel and goes into a reboot loop. Here's >>> everything I see on screen before it reboots: >>> >>> probing: pc0 mem[640K 2984M 4M 48K 5103M] >>> disk: hd0 hd1 hd2* > OpenBSD/amd64 EFIBOOT 3.29 >>> boot> >>> cannot open hd0a:/etc/random.seed: No such file or directory >>> booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 >> >> I'd like to figure out where the efiboot is stopping. Can you >> replace >> the BOOTX64.EFI in the miniroot58.fs and check the output? > > Sure, I now get these two lines after the 'booting' line: > > GOP setmode failed(7) > Hit any key to reboot The bootloader changs the video resolution before start the kernel. It seems to fail. "GOP", Graphic Output Protocol, returns an error. 7 means EFI_DEVICE_ERROR. > Please let me know if I can do any further testing, and thank you for > looking into this. Can you provide the result of "machine video" and try to change the video mode to the best and some others. And also please try the diff below. >>> >>> This appears to fix it. I did not have to change the video mode. Output >>> from the bootloader: >> >> UEFI seems to have refused changing the video mode since it >> isn't to change. >> >> Can you try this again? (I'd like to verify whether the assumption >> above is correct). > > Is there something specific you want me to test? I had wanted to know the latest one can boot successfuly. Since I'd like to fix it on the tree. Thanks for your reports. > With the latest bootloader you provided, the 'machine video' output is > still the same: > > boot> machine video > Mode 0: 80 x 25 > Mode 1: 80 x 50 > Mode 2: 100 x 31 > > Current Mode = 2 > > I am able to boot successfully from miniroot.fs and run through a UEFI > install as described by jasper@ here: > https://blog.jasper.la/openbsd-uefi-bootloader-howto/ > > The only thing I did differently from his blog post was to use the > bootloader you provided, rather than copying in the one from > /mnt/usr/mdec. > > The newly installed system boots successfully, but then it seems to fail > to initialize video properly at the end of the boot process. My monitor > goes into an endless cycle of trying to sync up. I can ssh in and see this > in /var/log/messages: > > Nov 26 11:45:55 opteron /bsd: root on sd0a (ef051b8fc18f2fbe.a) swap on > sd0b dump on sd0b > Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed > Nov 26 11:45:55 opteron /bsd: drm:pid0:evergreen_init *ERROR* disabling > GPU acceleration > Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* > 0x802922c0 unpin not necessary > Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* > 0x802922c0 unpin not necessary > Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed > Nov 26 11:45:55 opteron /bsd: error: [drm:pid0:radeonfb_create] *ERROR* > failed to create fbcon object -12 > Nov 26 11:45:55 opteron ntpd[27846]: /var/db/ntpd.drift is empty > Nov 26 11:45:55 opteron savecore: no core dump > > My video card is: > radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00 > drm0 at radeondrm0 > radeondrm0: msi > > And the radeondrm-firmware-20150927 package is installed. > > Thanks again for all your help. > > -- > Joe Gidi > j...@entropicblur.com > > "You cannot buy skill." -- Ross Seyfried
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, November 26, 2015 11:27 am, YASUOKA Masahiko wrote: > On Thu, 26 Nov 2015 11:10:33 -0500 > "Joe Gidi" wrote: >> On Thu, November 26, 2015 10:59 am, YASUOKA Masahiko wrote: >>> On Thu, 26 Nov 2015 09:57:12 -0500 >>> "Joe Gidi" wrote: On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: > On Wed, 11 Nov 2015 15:33:06 -0500 > "Joe Gidi" wrote: >> I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard >> in >> one >> of my systems and tried to boot the November 11th amd64 >> miniroot58.fs >> image to test UEFI booting. I get to the bootloader, but it appears >> to >> fail while loading the kernel and goes into a reboot loop. Here's >> everything I see on screen before it reboots: >> >> probing: pc0 mem[640K 2984M 4M 48K 5103M] >> disk: hd0 hd1 hd2* OpenBSD/amd64 EFIBOOT 3.29 >> boot> >> cannot open hd0a:/etc/random.seed: No such file or directory >> booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 > > I'd like to figure out where the efiboot is stopping. Can you > replace > the BOOTX64.EFI in the miniroot58.fs and check the output? Sure, I now get these two lines after the 'booting' line: GOP setmode failed(7) Hit any key to reboot >>> >>> The bootloader changs the video resolution before start the kernel. >>> It seems to fail. "GOP", Graphic Output Protocol, returns an error. >>> 7 means EFI_DEVICE_ERROR. >>> Please let me know if I can do any further testing, and thank you for looking into this. >>> >>> Can you provide the result of "machine video" and try to change the >>> video mode to the best and some others. >>> >>> >>> And also please try the diff below. >> >> This appears to fix it. I did not have to change the video mode. Output >> from the bootloader: > > UEFI seems to have refused changing the video mode since it > isn't to change. > > Can you try this again? (I'd like to verify whether the assumption > above is correct). Is there something specific you want me to test? With the latest bootloader you provided, the 'machine video' output is still the same: boot> machine video Mode 0: 80 x 25 Mode 1: 80 x 50 Mode 2: 100 x 31 Current Mode = 2 I am able to boot successfully from miniroot.fs and run through a UEFI install as described by jasper@ here: https://blog.jasper.la/openbsd-uefi-bootloader-howto/ The only thing I did differently from his blog post was to use the bootloader you provided, rather than copying in the one from /mnt/usr/mdec. The newly installed system boots successfully, but then it seems to fail to initialize video properly at the end of the boot process. My monitor goes into an endless cycle of trying to sync up. I can ssh in and see this in /var/log/messages: Nov 26 11:45:55 opteron /bsd: root on sd0a (ef051b8fc18f2fbe.a) swap on sd0b dump on sd0b Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed Nov 26 11:45:55 opteron /bsd: drm:pid0:evergreen_init *ERROR* disabling GPU acceleration Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* 0x802922c0 unpin not necessary Nov 26 11:45:55 opteron /bsd: drm:pid0:radeon_bo_unpin *WARNING* 0x802922c0 unpin not necessary Nov 26 11:45:55 opteron /bsd: ttm_bo_ioremap bus_space_map failed Nov 26 11:45:55 opteron /bsd: error: [drm:pid0:radeonfb_create] *ERROR* failed to create fbcon object -12 Nov 26 11:45:55 opteron ntpd[27846]: /var/db/ntpd.drift is empty Nov 26 11:45:55 opteron savecore: no core dump My video card is: radeondrm0 at pci1 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00 drm0 at radeondrm0 radeondrm0: msi And the radeondrm-firmware-20150927 package is installed. Thanks again for all your help. -- Joe Gidi j...@entropicblur.com "You cannot buy skill." -- Ross Seyfried
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, 26 Nov 2015 11:10:33 -0500 "Joe Gidi" wrote: > On Thu, November 26, 2015 10:59 am, YASUOKA Masahiko wrote: >> On Thu, 26 Nov 2015 09:57:12 -0500 >> "Joe Gidi" wrote: >>> On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: On Wed, 11 Nov 2015 15:33:06 -0500 "Joe Gidi" wrote: > I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in > one > of my systems and tried to boot the November 11th amd64 miniroot58.fs > image to test UEFI booting. I get to the bootloader, but it appears to > fail while loading the kernel and goes into a reboot loop. Here's > everything I see on screen before it reboots: > > probing: pc0 mem[640K 2984M 4M 48K 5103M] > disk: hd0 hd1 hd2* >>> OpenBSD/amd64 EFIBOOT 3.29 > boot> > cannot open hd0a:/etc/random.seed: No such file or directory > booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 I'd like to figure out where the efiboot is stopping. Can you replace the BOOTX64.EFI in the miniroot58.fs and check the output? >>> >>> Sure, I now get these two lines after the 'booting' line: >>> >>> GOP setmode failed(7) >>> Hit any key to reboot >> >> The bootloader changs the video resolution before start the kernel. >> It seems to fail. "GOP", Graphic Output Protocol, returns an error. >> 7 means EFI_DEVICE_ERROR. >> >>> Please let me know if I can do any further testing, and thank you for >>> looking into this. >> >> Can you provide the result of "machine video" and try to change the >> video mode to the best and some others. >> >> >> And also please try the diff below. > > This appears to fix it. I did not have to change the video mode. Output > from the bootloader: UEFI seems to have refused changing the video mode since it isn't to change. Can you try this again? (I'd like to verify whether the assumption above is correct). compiled: http://yasuoka.net/~yasuoka/BOOTX64.EFI (updated) diff: Index: efiboot/efiboot.c === RCS file: /cvs/src/sys/arch/amd64/stand/efiboot/efiboot.c,v retrieving revision 1.9 diff -u -p -r1.9 efiboot.c --- efiboot/efiboot.c 8 Nov 2015 00:17:29 - 1.9 +++ efiboot/efiboot.c 26 Nov 2015 16:21:23 - @@ -526,10 +526,10 @@ efi_makebootargs(void) bestsiz = gopsiz; } } - if (bestmode >= 0) { + if (bestmode >= 0 && conout->Mode->Mode != bestmode) { status = EFI_CALL(gop->SetMode, gop, bestmode); if (EFI_ERROR(status)) - panic("GOP setmode failed(%d)", status); + printf("GOP setmode failed(%d)\n", status); } gopi = gop->Mode->Info; --yasuoka
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, November 26, 2015 10:59 am, YASUOKA Masahiko wrote: > Hi, > > On Thu, 26 Nov 2015 09:57:12 -0500 > "Joe Gidi" wrote: >> On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: >>> On Wed, 11 Nov 2015 15:33:06 -0500 >>> "Joe Gidi" wrote: I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in one of my systems and tried to boot the November 11th amd64 miniroot58.fs image to test UEFI booting. I get to the bootloader, but it appears to fail while loading the kernel and goes into a reboot loop. Here's everything I see on screen before it reboots: probing: pc0 mem[640K 2984M 4M 48K 5103M] disk: hd0 hd1 hd2* >> OpenBSD/amd64 EFIBOOT 3.29 boot> cannot open hd0a:/etc/random.seed: No such file or directory booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 >>> >>> I'd like to figure out where the efiboot is stopping. Can you replace >>> the BOOTX64.EFI in the miniroot58.fs and check the output? >> >> Sure, I now get these two lines after the 'booting' line: >> >> GOP setmode failed(7) >> Hit any key to reboot > > The bootloader changs the video resolution before start the kernel. > It seems to fail. "GOP", Graphic Output Protocol, returns an error. > 7 means EFI_DEVICE_ERROR. > >> Please let me know if I can do any further testing, and thank you for >> looking into this. > > Can you provide the result of "machine video" and try to change the > video mode to the best and some others. > > > And also please try the diff below. This appears to fix it. I did not have to change the video mode. Output from the bootloader: boot> machine video Mode 0: 80 x 25 Mode 1: 80 x 50 Mode 2: 100 x 31 Current Mode = 2 boot> cannot open hd0a:/etc/random.seed: No such file or directory booting hd0a:/bsd: 3263848+1395072+2409472+0+569344=74a238 run_loadfile() calling makebootargs32() entry point at 0xf000160 [7205c766, 3404, 24448b12, 680a304] Hit any key to continue After hitting any key, the kernel loads successfully and takes me into the installer. Thanks! -- Joe Gidi j...@entropicblur.com "You cannot buy skill." -- Ross Seyfried
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
Hi, On Thu, 26 Nov 2015 09:57:12 -0500 "Joe Gidi" wrote: > On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: >> On Wed, 11 Nov 2015 15:33:06 -0500 >> "Joe Gidi" wrote: >>> I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in >>> one >>> of my systems and tried to boot the November 11th amd64 miniroot58.fs >>> image to test UEFI booting. I get to the bootloader, but it appears to >>> fail while loading the kernel and goes into a reboot loop. Here's >>> everything I see on screen before it reboots: >>> >>> probing: pc0 mem[640K 2984M 4M 48K 5103M] >>> disk: hd0 hd1 hd2* > OpenBSD/amd64 EFIBOOT 3.29 >>> boot> >>> cannot open hd0a:/etc/random.seed: No such file or directory >>> booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 >> >> I'd like to figure out where the efiboot is stopping. Can you replace >> the BOOTX64.EFI in the miniroot58.fs and check the output? > > Sure, I now get these two lines after the 'booting' line: > > GOP setmode failed(7) > Hit any key to reboot The bootloader changs the video resolution before start the kernel. It seems to fail. "GOP", Graphic Output Protocol, returns an error. 7 means EFI_DEVICE_ERROR. > Please let me know if I can do any further testing, and thank you for > looking into this. Can you provide the result of "machine video" and try to change the video mode to the best and some others. And also please try the diff below. compiled: http://yasuoka.net/~yasuoka/BOOTX64.EFI (updated) diff: Index: efiboot/efiboot.c === RCS file: /cvs/src/sys/arch/amd64/stand/efiboot/efiboot.c,v retrieving revision 1.9 diff -u -p -r1.9 efiboot.c --- efiboot/efiboot.c 8 Nov 2015 00:17:29 - 1.9 +++ efiboot/efiboot.c 26 Nov 2015 15:57:56 - @@ -528,8 +528,10 @@ efi_makebootargs(void) } if (bestmode >= 0) { status = EFI_CALL(gop->SetMode, gop, bestmode); +#if 0 if (EFI_ERROR(status)) panic("GOP setmode failed(%d)", status); +#endif } gopi = gop->Mode->Info; @@ -569,7 +571,7 @@ efi_makebootargs(void) void _rtt(void) { -#ifdef EFI_DEBUG +#if defined(EFI_DEBUG) || 1 printf("Hit any key to reboot\n"); efi_cons_getc(0); #endif Index: libsa/exec_i386.c === RCS file: /cvs/src/sys/arch/amd64/stand/libsa/exec_i386.c,v retrieving revision 1.16 diff -u -p -r1.16 exec_i386.c --- libsa/exec_i386.c 26 Nov 2015 10:52:40 - 1.16 +++ libsa/exec_i386.c 26 Nov 2015 15:57:56 - @@ -123,6 +123,7 @@ run_loadfile(u_long *marks, int howto) * This code may be used both for 64bit and 32bit. Make sure the * bootarg is 32bit always on even on amd64. */ + printf("%s() calling makebootargs32()\n", __func__); #ifdef __amd64__ makebootargs32(av, &ac); #else @@ -134,6 +135,10 @@ run_loadfile(u_long *marks, int howto) printf("entry point at 0x%lx [%x, %x, %x, %x]\n", entry, ((int *)entry)[0], ((int *)entry)[1], ((int *)entry)[2], ((int *)entry)[3]); + + printf("Hit any key to continue\n"); + efi_cons_getc(0); + #ifndef EFIBOOT /* stack and the gung is ok at this point, so, no need for asm setup */ (*(startfuncp)entry)(howto, bootdev, BOOTARG_APIVER, marks[MARK_END],
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Thu, November 26, 2015 5:20 am, YASUOKA Masahiko wrote: > On Wed, 11 Nov 2015 15:33:06 -0500 > "Joe Gidi" wrote: >> I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in >> one >> of my systems and tried to boot the November 11th amd64 miniroot58.fs >> image to test UEFI booting. I get to the bootloader, but it appears to >> fail while loading the kernel and goes into a reboot loop. Here's >> everything I see on screen before it reboots: >> >> probing: pc0 mem[640K 2984M 4M 48K 5103M] >> disk: hd0 hd1 hd2* OpenBSD/amd64 EFIBOOT 3.29 >> boot> >> cannot open hd0a:/etc/random.seed: No such file or directory >> booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 > > I'd like to figure out where the efiboot is stopping. Can you replace > the BOOTX64.EFI in the miniroot58.fs and check the output? Sure, I now get these two lines after the 'booting' line: GOP setmode failed(7) Hit any key to reboot Please let me know if I can do any further testing, and thank you for looking into this. Thanks, -- Joe Gidi j...@entropicblur.com "You cannot buy skill." -- Ross Seyfried
Re: UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
On Wed, 11 Nov 2015 15:33:06 -0500 "Joe Gidi" wrote: > I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in one > of my systems and tried to boot the November 11th amd64 miniroot58.fs > image to test UEFI booting. I get to the bootloader, but it appears to > fail while loading the kernel and goes into a reboot loop. Here's > everything I see on screen before it reboots: > > probing: pc0 mem[640K 2984M 4M 48K 5103M] > disk: hd0 hd1 hd2* >>> OpenBSD/amd64 EFIBOOT 3.29 > boot> > cannot open hd0a:/etc/random.seed: No such file or directory > booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 I'd like to figure out where the efiboot is stopping. Can you replace the BOOTX64.EFI in the miniroot58.fs and check the output? compiled version: http://yasuoka.net/~yasuoka/BOOTX64.EFI diff: Index: efiboot/efiboot.c === RCS file: /disk/cvs/openbsd/src/sys/arch/amd64/stand/efiboot/efiboot.c,v retrieving revision 1.9 diff -u -p -r1.9 efiboot.c --- efiboot/efiboot.c 8 Nov 2015 00:17:29 - 1.9 +++ efiboot/efiboot.c 26 Nov 2015 09:15:17 - @@ -569,7 +569,7 @@ efi_makebootargs(void) void _rtt(void) { -#ifdef EFI_DEBUG +#if defined(EFI_DEBUG) || 1 printf("Hit any key to reboot\n"); efi_cons_getc(0); #endif Index: libsa/exec_i386.c === RCS file: /disk/cvs/openbsd/src/sys/arch/amd64/stand/libsa/exec_i386.c,v retrieving revision 1.15 diff -u -p -r1.15 exec_i386.c --- libsa/exec_i386.c 5 Oct 2015 22:59:39 - 1.15 +++ libsa/exec_i386.c 26 Nov 2015 09:15:17 - @@ -123,6 +123,7 @@ run_loadfile(u_long *marks, int howto) * This code may be used both for 64bit and 32bit. Make sure the * bootarg is 32bit always on even on amd64. */ + printf("%s() calling makebootargs32()\n", __func__); #ifdef __amd64__ makebootargs32(av, &ac); #else @@ -134,6 +135,10 @@ run_loadfile(u_long *marks, int howto) printf("entry point at 0x%lx [%x, %x, %x, %x]\n", entry, ((int *)entry)[0], ((int *)entry)[1], ((int *)entry)[2], ((int *)entry)[3]); + + printf("Hit any key to continue\n"); + efi_cons_getc(0); + #ifndef EFIBOOT /* stack and the gung is ok at this point, so, no need for asm setup */ (*(startfuncp)entry)(howto, bootdev, BOOTARG_APIVER, marks[MARK_END],
UEFI boot-looping on Asus M5A97 LE R2.0 motherboard
Hello, I recently installed a UEFI-capable Asus M5A97 LE R2.0 motherboard in one of my systems and tried to boot the November 11th amd64 miniroot58.fs image to test UEFI booting. I get to the bootloader, but it appears to fail while loading the kernel and goes into a reboot loop. Here's everything I see on screen before it reboots: probing: pc0 mem[640K 2984M 4M 48K 5103M] disk: hd0 hd1 hd2* >> OpenBSD/amd64 EFIBOOT 3.29 boot> cannot open hd0a:/etc/random.seed: No such file or directory booting hd0a:/bsd:3273216+1394144+2409472+0+569344=0x74d238 This is with the latest available UEFI version for this board (version 2601). All BIOS/UEFI options are default values except for setting the Secure Boot option to "Other OS". I am able to boot normally in BIOS mode. Full dmesg of a regular BIOS-mode install follows at the end of this email. I understand that UEFI support is still a work in progress, so if there's any way I can provide further info or test new code, please let me know. OpenBSD 5.8-current (GENERIC.MP) #1591: Wed Nov 11 09:38:33 MST 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8470441984 (8078MB) avail mem = 8209600512 (7829MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbc41b018 (58 entries) bios0: vendor American Megatrends Inc. version "2601" date 03/24/2015 bios0: ASUSTeK COMPUTER INC. M5A97 LE R2.0 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT MCFG HPET SSDT BGRT acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC4(S4) UHC6(S4) UHC7(S4) PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 16 (boot processor) cpu0: AMD Opteron(tm) Processor 3350 HE, 2809.75 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu0: mwait min=64, max=64, IBE cpu1 at mainbus0: apid 17 (application processor) cpu1: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 18 (application processor) cpu2: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 19 (application processor) cpu3: AMD Opteron(tm) Processor 3350 HE, 2809.37 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR 8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC, BMI1 cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 5 pa 0xfec0, version 21, 24 pins ioapic1 at mainbus0: apid 6 pa 0xfec2, version 21, 32 pi