NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/57542: NetBSD shuts down during installation on Intel Atom Baytrail Notebook with 32-bit EFI



The following reply was made to PR install/57542; it has been noted by GNATS.

From: RVP <rvp%SDF.ORG@localhost>
To: Werner Lehmann <lehmannwer%gmail.com@localhost>
Cc: gnats-bugs%netbsd.org@localhost, martin%duskware.de@localhost
Subject: Re: install/57542: NetBSD shuts down during installation on Intel
 Atom Baytrail Notebook with 32-bit EFI
Date: Wed, 26 Jul 2023 21:28:26 +0000 (UTC)

 On Wed, 26 Jul 2023, Werner Lehmann wrote:
 
 > utility shell. However I was able to make a video and make a screenshot 
 > (shutdown) of the short moment where the shutdown occurs.
 >
 
 In that screenshot, you can see:
 
 ```
 [time.stamp] acpibat0: state changed on 'charge state' to 'LOW'
 [time.stamp] sysmon: LOW POWER! SHUTTING DOWN
 ```
 
 > though. I am also providing the dmesg output from the device which 
 > has Fedora 38 installed and running right now.
 >
 
 And in the dmesg output we see:
 
 ```
 [    1.889493] ACPI: found native INT33F4 PMIC, skipping ACPI AC and battery devices
 [...]
 [    3.730785] axp20x-i2c i2c-INT33F4:00: AXP20x variant AXP288 found
 [    3.775066] axp20x-i2c i2c-INT33F4:00: AXP20X driver loaded
 ```
 
 So, it looks like Linux isn't using the ACPI CM-battery methods at all on this
 HW, (see: linux-6.4.6/drivers/acpi/x86/utils.c, lines 468 onwards) and has
 a different driver for this: linux-6.4.6/drivers/mfd/axp20x*.c. And, it
 doesn't look like NetBSD as a driver for your battery controller HW.
 
 For the present, a workaround is to disable the ACPI CM-batt driver so that
 it doesn't get confused by bogus values returned by the BIOS. Drop into the
 bootloader, then type:
 
 ```
 userconf disable acpibat*
 ```
 
 This should let you complete the install. To make the change permanent, after
 the install is finished, edit `/boot.cfg` and add this line:
 
 ```
 userconf=disable acpibat*
 ```
 
 Not that you won't get any battery stats at all like this and you'll have to
 keep an eye on the battery LED to gauge the battery low-power state.
 
 But, before this can you make a `dmesg` output after passing `-vx` to the
 bootloader? You should have about 30 seconds to do this. Quit the installer
 immediatesly it comes up, then type:
 
 ```
 dmesg > /var/log/dmesg.txt
 ```
 
 Then, you can retrieve that file from the USB drive once NetBSD has been
 installed.
 
 HTH,
 -RVP
 


Home | Main Index | Thread Index | Old Index