Problem w/ ACPI in -CURRENT
Nate Lawson
nate at root.org
Thu Sep 25 16:13:10 PDT 2003
On Thu, 25 Sep 2003, Jeremy Bingham wrote:
> > Unfortunately, no. You can cvsup to 2003/8/23 on just the sys/dev/ata
> > directory and revert the change to sys/conf/files. That does the trick.
> > Currently ATAng causes a hang on resume from suspend whereas it has worked
> > for months before ATAng. I am running -current without ATAng with no
> > problems.
> >
> > -Nate
>
> Herm. I checked out a copy of the sys tree from 8/23, copied the files
> from sys/dev/ata over (after deleting the current ones), made the
> changes in sys/conf/files, and tried making a new kernel, but it won't
> do it. I get errors like:
>
> ../../../dev/ata/ata-all.c: In function `ataioctl':
> ../../../dev/ata/ata-all.c:409: error: `ATAPICMD' undeclared (first use
> in this function)
> ... etc. etc. etc.
>
> What am I missing?
/sys/sys/ata.h needs to be reverted. You should look at the original
commit message to have a full understanding of what needs to be reverted.
> Incidentally, compiling a kernel w/ ACPI_DEBUG and
> putting those lines in /boot/loader.conf that you mentioned in that
> other email did nothing -- booting with verbose logging gave the same
> amount of logging, and booting normally didn't give any more messages
> than normal.
That's because ACPI is a module and options defined in the kernel config
do not apply to the modules. I think someone was working on fixing this
annoyance.
To rebuild it, cd /sys/modules/acpi and do:
make ACPI_DEBUG=1
cp acpi.ko /boot/kernel.test (or wherever your test kernel is)
reboot
An easier way is to just include acpi in the kernel build. Add this to
your kernel config and rebuild:
device acpica
options ACPI_DEBUG
-Nate
More information about the freebsd-current
mailing list