[ltp] TP770Z Sound (FC2): Update

Adrien Beaucreux linux-thinkpad@linux-thinkpad.org
Fri, 04 Jun 2004 08:57:26 +0200


Hi,

Le ven 04/06/2004 =E0 06:57, Mendel Cooper a =E9crit :

> 5) make bzImage
>    This builds a compressed kernel. It takes maybe 25 minutes on a
>    TP 770Z.
>=20
> 6) make modules
>    This builds the modules. It takes a couple of hours!

With my 2.6.6-mm5 on gentoo, there is a possibility to do :
$make all
which replaces these two steps. It also build vmlinuz (if this is no
dependency of one of the others).

> 7) make modules_install
>    This installs the new set of modules into /lib/modules/2.6.5-1.358cust=
om.
>=20
> 8) makeinitrd initrd-2.6.5-1.358.img 2.5.5-1.358
>    This builds the new ramdisk for the modules to load from at bootup
>    time.
>=20
> Now the really tricky part. You'll have to copy the new kernel, system
> map, and initrd files to /boot, then set up some symbolic links. WARNING:
> Changing things in /boot is *dangerous*. If you make a mistake you'll
> end up with an unbootable system.
>=20
>=20
> The point of no return . . .
>=20
> 9) Renaming the files, and copying to /boot:
>    mv initrd-2.6.5-1.358.img initrd-2.6.5-1.358.img.custom
>    cp /usr/src/linux-2.6.5-1.358/initrd-2.6.5-1.358.img.custom /boot
>    cp /usr/src/linux-2.6.5-1.358/arch/i386/boot/bzImage /boot
>    cp System.map /boot
>=20
> 10) Changing the files in /boot:
>     cd /boot
>     mv System.map-2.6.5-1.358 System.map-2.6.5-1.358.BAK
>     (Keep a backup copy, just in case.)
>     ln -s System.map System.map-2.6.5-1.358
>     cp /boot/initrd-2.6.5-1.358.img /boot/initrd-2.6.5-1.358.img.BAK
>     (Keep a backup copy, just in case.)
>     ln -s initrd-2.6.5-1.358.img.custom initrd-2.6.5-1.358
>     cp System.map-2.6.5-1.358 System.map-2.6.5-1.358.BAK
>     (Keep a backup copy, just in case.)
>     ln -s System.map System.map-2.6.5-1.358

With the same kernel, I have a=20
$ make install

which does pretty much the same, without the hassle.

> 11) Renaming the modules directory:
>     cd /lib/modules
>     mv 2.6.5-1.358 2.5.5-1.358OLD
>     ln -s 2.5.5-1.358custom 2.5.5-1.358

And why do you want to put the modules for a 2.6.5 kernel in the 2._5_.5
dir. Typo ?

Ciao,
Adrien