NetBSD-Bugs archive

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

Re: install/58932: NetBSD-10.99.12-i386-install.img ACPI problems Compal DL-75 laptop



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

From: Ramiro Aceves <ea1abz%gmail.com@localhost>
To: Taylor R Campbell <riastradh%NetBSD.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost, install-manager%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: install/58932: NetBSD-10.99.12-i386-install.img ACPI problems
 Compal DL-75 laptop
Date: Tue, 24 Dec 2024 14:32:37 +0100

 El 23/12/24 a las 22:58, Taylor R Campbell escribió:
 ....
 ....
 > Unfortunately, there's no userconf(4) trick to disabling the ACPI
 > timecounter at boot, but I would be curious to see what happens if you
 > patch acpitimer_init in sys/dev/acpi/acpi_timer.c to just return -1
 > unconditionally without doing anything to attach a timecounter.
 > 
 > If that produces the same results, you could try additionally patching
 > acpipmtimer_attach in sys/dev/ic/acpipmtimer.c to just return NULL
 > unconditionally without doing anything to attach a timecounter.  Then
 > your system might boot with i8254 -- suboptimal, but better than not
 > booting, and it would help to confirm this hypothesis about what's
 > happening.
 > 
 > I would also be curious to see output of `acpidump -dt' on this system
 > (whether from NetBSD, if you can get it that way, or even from Linux
 > if you can't, with the caveat I'm not 100% sure the command-line
 > options are the same).
 
 Hello Taylor.
 
 Trying to to patch the program in the functions you mentioned I arrived 
 to warnings as errors like a function that where in the code but not 
 used (I think it was acpitimer_test() ) when compiling GENERIC. Changing 
 the code to overcome that arrived to an error when compiling  the am7990 
 driver. So I started again with a clean source without any modifications 
 in ACPI just to test that the standard GENERIC kernel could be built and 
 arrived to the same error, compilation stops at that point.
 
 
 netbsd-compal$ cat /usr/src/sys/CVS/Tag
 D2024.12.21.11.00.00
 
 
 #   compile  GENERIC/am7990.o
 gcc -msoft-float -mno-mmx -mno-sse -mno-avx -mindirect-branch=thunk 
 -mindirect-branch-register -ffreestanding -fno-zero-initialized-in-bss 
 -fno-delete-null-pointer-checks -O2 -fno-omit-frame-pointer 
 -fstack-protector -Wstack-protector --param ssp-buffer-size=1 
 -fstack-usage -Wstack-usage=3584 -fno-strict-aliasing -fno-common 
 -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length 
 -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes 
 -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings 
 -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-type-limits 
 -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare 
 -Walloca -Di386 -I. -I../../../../external/mit/xen-include-public/dist/ 
 -I../../../../external/bsd/libnv/dist 
 -I../../../../external/bsd/acpica/dist 
 -I../../../../../common/lib/libx86emu 
 -I../../../../../common/lib/libc/misc -I../../../../../common/include 
 -I../../../../arch -I../../../.. -nostdinc -DCOMPAT_UTILS 
 -D__XEN_INTERFACE_VERSION__=0x3020a -DDIAGNOSTIC -DCOMPAT_44 -D_KERNEL 
 -D_KERNEL_OPT -std=gnu99 
 -I../../../../lib/libkern/../../../common/lib/libc/quad 
 -I../../../../lib/libkern/../../../common/lib/libc/string 
 -I../../../../lib/libkern/../../../common/lib/libc/arch/i386/string 
 -I../../../../lib/libkern/../../../common/lib/libc/arch/i386/atomic 
 -I../../../../lib/libkern/../../../common/lib/libc/hash/sha3 
 -D_FORTIFY_SOURCE=2 -I../../../../external/isc/atheros_hal/dist 
 -I../../../../external/isc/atheros_hal/ic 
 -I../../../../../common/include 
 -I../../../../external/bsd/acpica/dist/include 
 -I../../../../external/bsd/libnv/dist -c ../../../../dev/ic/am7990.c -o 
 am7990.o
 ../../../../dev/ic/am7990.c: In function 'am7990_meminit':
 ../../../../dev/ic/am7990.c:163:39: error: taking address of packed 
 member of 'struct leinit' may result in an unaligned pointer value 
 [-Werror=address-of-packed-member]
    163 |  lance_setladrf(&sc->sc_ethercom, init.init_ladrf);
        |                                   ~~~~^~~~~~~~~~~
 cc1: all warnings being treated as errors
 *** Error code 1
 
 Stop.
 make: stopped in /usr/src/sys/arch/i386/compile/GENERIC
        106.78 real        91.77 user        12.45 sys
 
 I would like to know if I am doing something wrong before continuing. 
 ¿is it ok to build NetBSD-current from NetBSD-10.1 RELEASE?
 
 Sorry for my ignorance, be pacient.
 
 Regards.
 Ramiro
 
 
 
 
 
 


Home | Main Index | Thread Index | Old Index