up

カーネル再構築 例 その2

lx:/usr/src/linux-2.4.22# make menuconfig
lx:/usr/src/linux-2.4.22# make dep && make clean && make bzImage
...
Root device is (8, 5)
Boot sector 512 bytes.
Setup is 2628 bytes.
System is 978 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.22/arch/i386/boot'

lx:/usr/src/linux-2.4.22# cd /lib/modules/
lx:/lib/modules# rm -r 2.4.22/  /* or change name and store */

lx:/lib/modules# cd -
/usr/src/linux-2.4.22
lx:/usr/src/linux-2.4.22# make modules && make modules_install
...
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.22; fi

lx:/usr/src/linux-2.4.22# cd /
lx:/# cp /usr/src/linux-2.4.22/arch/i386/boot/bzImage vmlinuz
lx:/# cd /boot/
lx:/boot# cp /usr/src/linux-2.4.22/System.map .

lx:/boot# cd /usr/src/alsa-driver-1.0.7/
lx:/usr/src/alsa-driver-1.0.7# ./configure
lx:/usr/src/alsa-driver-1.0.7# make 

lx:/usr/src/alsa-driver-1.0.7# make install
cat WARNING

WARNING!!! The mixer channels for the ALSA driver are muted by default!!!
**************************************************************************
You would use some ALSA or OSS mixer to set the appropriate volume.

lx:/usr/src/alsa-driver-1.0.7# cd ../alsa-lib-1.0.7
lx:/usr/src/alsa-lib-1.0.7# ./configure
lx:/usr/src/alsa-lib-1.0.7# make
lx:/usr/src/alsa-lib-1.0.7# make install
lx:/usr/src/alsa-lib-1.0.7# ldconfig
lx:/usr/src/alsa-lib-1.0.7# cd ../alsa-utils-1.0.7
lx:/usr/src/alsa-utils-1.0.7# ./configure
lx:/usr/src/alsa-utils-1.0.7# make
lx:/usr/src/alsa-utils-1.0.7# make install


にゃんたろう 拝!

2007年11月25日 (日) 22:13:42 JST 作成


up

Copyright © 2004.-2007. nyantarou All Rights Reserved.