[ltp] [T40]Can't compile ibm-acpi on Slackware
Konstantin Filtschew
linux-thinkpad@linux-thinkpad.org
Tue, 04 Oct 2005 21:37:18 +0200
--=-YWiAuT7edKVtR19IaU+v
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
hi,
install fresh vanilla kernel 2.6.X from kernel.org
If you need a config, take one from thinkwiki.org for your notebook or
try google.
2.4.X is too old to support all your hardware especially acpi and
ibm-acpi.
Greetz
Konstantin Filtschew
On Wed, 2005-10-05 at 02:51 +0800, Rainarrow wrote:
> I just installed Slackware 10.2 on my T40 someday before, and now I am=20
> trying to install IBM-ACPI on it. I got the following error message while=
=20
> trying to "make"
>=20
> -------- Here begins error msg -----------
>=20
> root@Raw's_Slack:~/ibm-acpi-0.11# make
> make -C /lib/modules/2.4.31/build SUBDIRS=3D/root/ibm-acpi-0.11 modules
> make[1]: Entering directory `/usr/src/linux-2.4.31'
> make -C /root/ibm-acpi-0.11=20
> CFLAGS=3D"-D__KERNEL__ -I/usr/src/linux-2.4.31/include -Wall -Wstrict-pro=
totypes=20
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer=
-pipe=20
> -mpreferred-stack-boundary=3D2 -march=3Di486 -DMODULE" MAKING_MODULES=
=3D1=20
> modules
> make[2]: Entering directory `/root/ibm-acpi-0.11'
> make[2]: *** No rule to make target `modules'. Stop.
> make[2]: Leaving directory `/root/ibm-acpi-0.11'
> make[1]: *** [_mod_/root/ibm-acpi-0.11] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.31'
> make: *** [default] Error 2
> root@Raw's_Slack:~/ibm-acpi-0.11#
>=20
> --------- Here ends error msg ---------
>=20
> I've done some Googling for this, and someone says it's because I have no=
=20
> Linux kernel source installed on my system. But I checked the /usr/src/li=
nux=20
> 2.4.31, it does exists, containing some directories such as etc, include,=
.
>=20
> My Slackware is a fresh full install, with the bareacpi.i kernel, it's ve=
r=20
> 2.4.31.
>=20
> The readme file for IBM-ACPI could found here:
> http://ibm-acpi.sourceforge.net/README
>=20
> and the following is what "installation" section of the readme file said:
>=20
> ----------- Here begins reference to readme ---------------
>=20
> First, you need to get a kernel with ACPI support up and running.
> Please refer to http://acpi.sourceforge.net/ for help with this
> step. How successful you will be depends a lot on you ThinkPad model,
> the kernel you are using and any additional patches applied. The
> kernel provided with your distribution may not be good enough. I
> needed to compile a 2.6.7 kernel with the 20040715 ACPI patch to get
> ACPI working reliably on my ThinkPad X40. Old ThinkPad models may not
> be supported at all.
>=20
> Assuming you have the basic ACPI support working (e.g. you can see the
> /proc/acpi directory), follow the following steps to install this
> driver:
>=20
> - unpack the archive:
>=20
> tar xzvf ibm-acpi-x.y.tar.gz; cd ibm-acpi-x.y
>=20
> - compile the driver:
>=20
> make
>=20
> - install the module in your kernel modules directory:
>=20
> make install
>=20
> - load the module:
>=20
> modprobe ibm_acpi
>=20
> After loading the module, check the "dmesg" output for any error messages=
.
>=20
> ------------------- Here ends reference to the=20
> me ---------------------
>=20
>=20
> Now that I can't pass the compilation, I don't have a clue, could anyone=20
> offer some help?
> Thanks in advance.=20
>=20
--=20
Building an operation system without source code,
is like buying a self assemble space shuttle without
instructions.
--=-YWiAuT7edKVtR19IaU+v
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQBDQtnuxHXMYglFk4ARAmXhAJsH5uH+TlWP/dk+JicGgUOI5C11owCfZNgV
WmpZ65RDRynlxP8XVKiqpNs=
=vObL
-----END PGP SIGNATURE-----
--=-YWiAuT7edKVtR19IaU+v--