Solved Installer fails to boot... hangs on at a line "ahcich0: AHCI reset..."

I bought a Lenovo Thinkpad E485(Ryzen3 2200, only HDD attached) and trying to install FreeBSD 12.0-RELEASE, but booting always stucks on a line:
Code:
ahcich0: AHCI reset...
and sometimes hangs on one line before or after that line.

I'm wondering if the laptop is defective, in case I have to change it.
 
This reddit thread suggests that there is an ACPI firmware bug. Not even linux works on these laptops.
(I only did a quick google search though.)
 
OK, I'm now in OK prompt...
I want to set parameter
Code:
ivrs_ioapic[32]=00:14.0
which command should I use?
 
I'm not sure you can set that; and if you can it is going to look av bit different in FreeBSD than in Linux.
Do a verbose boot and grep dmesg for "ivrs" and "ioapic". Do you see anything that looks similar?
If you do, perhaps that could be used as a starting point to figure out what needs to be changed.
 
I'm not sure you can set that; and if you can it is going to look av bit different in FreeBSD than in Linux.
Do a verbose boot and grep dmesg for "ivrs" and "ioapic". Do you see anything that looks similar?
If you do, perhaps that could be used as a starting point to figure out what needs to be changed.

Thanks for your advice, but I can't type
Code:
grep dmesg
since the boot can't be completed.
It always stops here:
Code:
blah blah...
AcpiOsExecute: task queue not started
AcpiOsExecute: task queue not started
AcpiOsExecute: task queue not started
AcpiOsExecute: task queue not started
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
Device configuration finished.
procfs registered
Timecounters tick every 1.000 msec
vlan: initialized, using hash tables with chaining
lo0: bpf attached
arc4random: no preload entropy cache
tcp_init: net.inet.tcp.tcbhashsize auto tuned to 65536
IPsec: Initialized Security Association Processing.
AcpiOsExecute: enqueue 6 pending tasks
battery0: battery initialization start
hptnr: no controller detected.
acpi_acad0: acline initialization start
htprr: no controller detected.
hpt27xx: no controller detected.
ahcich0: AHCI reset...

It seems to be the only way I can set flags of booting is getting into loader prompt...
 
if you want to try to get it to boot, you can try to disable ahci from the loader (see ahci(4)) with one of the hints in the manual page - sorry, I haven't tried this so I don't which hint or if it will work), however you will be wihout ahci (= sata controller) so it would only be useful for debugging / finding out more.
But - it might be hanging on something else.
 
I tried disabling ahci, but nothing was cured.

this link says it must be ACPI IVRS bug, which came from broken bios of E485.

so, I typed
Code:
set hint.acpi.0.disabled=1
and did a verbose boot, it showed this:
Code:
---<<BOOT>>---
APIC: Could not find any APICs.
panic: running without device atpic requires a local APIC
cpuid = 0
time = 1
KDB: stack backtrace:
#0 0xffffffff(something like that) at ??+0
#1 0xffffffff~ at ??+0
#2 0xffffffff~ at ??+0
#3 0xffffffff~ at ??+0
#4 0xffffffff~ at ??+0
#5 0xffffffff~ at ??+0
Uptime: 1s

the default setting I can find is
Code:
hint.acpi_throttle.0.disabled=1
maybe this will be a clue...
 
Back
Top