Dear Community.                                                                 
                                                         
                                                                                
                                               
I'm trying to run OpenBSD on a Clevo W840SU laptop. After a successful install  
                                               
and starting the machine the BIOS hangs. That is, when the booting drive is     
                                                
connected via SATA/mSATA. When connected via USB, it works just fine.

The identical laptop model is mentioned as a working one 
in Peter Hansteen's blog (including a dmesg log) [1].                           
                                                                                
                

A detailed documentation of the issue is given in the plain text document       
                                                  
attached. 
                                                                                
                                             
So is this a broken BIOS issue?
What else could I try to get this to work?
How to debug this issue further?                                                
                                                
                                                                                
                                               
I've been using GNU/Linux before and have had not problem with a hanging BIOS   
                                                     
whatsoever. In fact it's still working without a problem on this machine.       
                                                                                
                           
                                                                                
                                                                                
                                                                                
                                                                                
                                                 
Thank you very much for your attention and help.                                
                                                                       
                                                                                
                                               
Fox

--
[1] https://bsdly.blogspot.com/2017/07/openbsd-and-modern-laptop.html
OpenBSD 6.5 on Clevo W840SU: BIOS hangs when disk attached via SATA
===================================================================

== Error Description

=== With BIOS UEFI disabled 

That is, BIOS Settings _Boot -> UEFI Setting -> UEFI Boot_ disabled.

* Successfully installed install65.fs from USB to SATA/mSATA connected disk
* With
** Fdisk MBR whole
** Disklabling auto

==== Result

1. Upon restart system hangs showing only the American Megatrends logo and 
version.
2. CPU fan starts to turn up.
3. BIOS settings cannot be reached. (press/hold ESC key upon boot)

NOTE: Attaching the same disk via USB, BIOS boot does not hang, system can be 
successfully booted.  

=== With BIOS UEFI enabled

That is, BIOS Settings _Boot -> UEFI Setting -> UEFI Boot_ enabled.

* Successfully installed install65.fs from USB to SATA connected disk
* With
** Fdisk GPT whole
** Disklabling auto

==== Result

1. Upon system start screen remains blank (not black) and goes in a restart 
loop.  
2. CPU fan starts to turn up.
3. BIOS settings cannot be reached. (press/hold ESC key upon boot)
 
NOTE: Attaching the same disk via USB, BIOS boot does not hang, system can be 
successfully booted.

== Machine Description

* Clevo W840SU
* American Megatrends Version 2.15.1236 2012
* ME FW Version 9.5.13.1706
* BIOS Version 1.03.02
* KBC/EC Firmware Revision 1.03.02

=== BIOS Settings

==== Advanced

* Intel(R) Smart Connect Technology : disabled
* Intel(R) Rapid Start Technology : disabled
* SATA Mode : AHCI Mode
* Boot Logo: Disabled
* Power On Boot Beep: Enabled
* Battery Low Alarm Beep: Disabled

==== Security

* TPM Configuration : disabled


== Things tried but did not work

=== Clear partition table

* Erase first 2M of disk before install 

----
dd if=/dev/zero of=/dev/sdx bs=2M count=1
----

=== Initialized EFI boot files with MBR

See https://marc.info/?m=15190459022533

Step 1 : Initialize MBR

----
newfs -t msdos sdNi
mount /dev/sdNi /mnt
mkdir -p /mnt/efi/boot
cp /usr/mdec/BOOT*.EFI /efi/boot/
umount /mnt
sync
----

Step 2 : install openbsd -> choose "OpenBSD" configure disk fdisk step (which 
supposedly does not alter the MBR)

Step 3 : reboot with and without UEFI enabled.

==== Result

* MBR after successfull install
----
$ doas fdisk -v sd2

Primary GPT:
        Not Found

Secondary GPT:
        Not Found

MBR:
Disk: sd2       geometry: 121601/255/63 [1953525168 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
 0: EF      0   1   2 -      0  16  16 [          64:         960 ] EFI Sys     
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
*3: A6      0  16  17 - 121600 254  63 [        1024:  1953519041 ] OpenBSD     

----

== Links

* Clevo W840SU User Manual 
https://www.clevo.com.tw/en/e-services/download/USRManualOut.asp?model=W840SU
* Peter Hansteen's mentions Clevo W840S working 
https://bsdly.blogspot.com/2017/07/openbsd-and-modern-laptop.html
* Peter Hansteen's dmesg of the same model 
https://home.nuug.no/~peter/dmesg.elke.20170709.txt

== Dmesg

.from install usb stick
----
OpenBSD 6.5-beta (RAMDISK_CD) #771: Mon Mar 18 23:31:28 MDT 2019
    [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 17045577728 (16255MB)
avail mem = 16525004800 (15759MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe96d0 (35 entries)
bios0: vendor American Megatrends Inc. version "4.6.5" date 11/21/2013
bios0: Notebook W840SU Series
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC FPDT ASF! SSDT SSDT SSDT MCFG HPET SSDT SSDT DMAR 
CSRT
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz, 2793.95 MHz, 06-45-01
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP03)
acpiprt3 at acpi0: bus 3 (RP04)
acpiprt4 at acpi0: bus -1 (P0P2)
acpiprt5 at acpi0: bus -1 (P0PA)
acpiprt6 at acpi0: bus -1 (P0PB)
acpiprt7 at acpi0: bus -1 (PEG0)
acpiprt8 at acpi0: bus -1 (PEG1)
acpiprt9 at acpi0: bus -1 (PEG2)
acpiec0 at acpi0
acpicpu at acpi0 not configured
acpitz at acpi0 not configured
"PNP0A08" at acpi0 not configured
acpicmos0 at acpi0
"PNPC000" at acpi0 not configured
"PNP0C0C" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"PNP0C14" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x0b
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x0b
wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation)
"Intel Core 4G HD Audio" rev 0x0b at pci0 dev 3 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 
addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
"Intel 8 Series HD Audio" rev 0x04 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xe4: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 "Intel 8 Series PCIE" rev 0xe4: msi
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 2 int 18
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address 08:3e:8e:d0:7b:31
ppb2 at pci0 dev 28 function 3 "Intel 8 Series PCIE" rev 0xe4: msi
pci3 at ppb2 bus 3
rtsx0 at pci3 dev 0 function 0 "Realtek RTL8411B Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
re0 at pci3 dev 0 function 1 "Realtek 8168" rev 0x12: RTL8411B (0x5c80), msi, 
address 80:fa:5b:08:66:84
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ehci0 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
"Intel 8 Series LPC" rev 0x04 at pci0 dev 31 function 0 not configured
"Intel 8 Series SMBus" rev 0x04 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay1
umass0 at uhub0 port 1 configuration 1 interface 0 "MXTronics MXT USB Device" 
rev 2.00/13.08 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <MXT-USB, Storage Device, 1308> SCSI0 0/direct 
removable
sd0: 30436MB, 512 bytes/sector, 62333952 sectors
"vendor 0x0489 product 0xe027" rev 1.10/0.01 addr 3 at uhub0 port 5 not 
configured
uhub2 at uhub1 port 1 configuration 1 interface 0 "vendor 0x8087 product 
0x8000" rev 2.00/0.04 addr 2
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
----

Reply via email to