up

カーネル再構築 例 その1

lx:/usr/src/linux-2.4.22# make menuconfig


lx:/usr/src/linux-2.4.22# make dep && make clean && make bzImage
....
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > 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# mv 2.4.22/ non_usb_ok_2.4.22/
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:/# mv vmlinuz 007_20070423_non_usb_good_vmlinuz 
lx:/# cp /usr/src/linux-2.4.22/arch/i386/boot/bzImage vmlinuz
lx:/# cd /boot/
lx:/boot# mv System.map 0007_System.map_20070423 
lx:/boot# cp /usr/src/linux-2.4.22/System.map .

$ /dev/dsp: No such device

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

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

ALSA modules were successfully compiled.
lx:/usr/src/alsa-driver-1.0.7# make install
....
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
....
config.status: include/config.h is unchanged
config.status: executing depfiles commands
lx:/usr/src/alsa-lib-1.0.7# make
....
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/src/alsa-lib-1.0.7'
lx:/usr/src/alsa-lib-1.0.7# make install
....
make[2]: Leaving directory `/usr/src/alsa-lib-1.0.7'
make[1]: Leaving directory `/usr/src/alsa-lib-1.0.7'
========================================
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 
....
config.status: include/aconfig.h is unchanged
config.status: executing depfiles commands
lx:/usr/src/alsa-utils-1.0.7# make 
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/src/alsa-utils-1.0.7'
lx:/usr/src/alsa-utils-1.0.7# make install
....
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/alsa-utils-1.0.7'
make[1]: Leaving directory `/usr/src/alsa-utils-1.0.7'
======================================================
lx:/usr/src/alsa-utils-1.0.7# which alsaconf
/usr/sbin/alsaconf
lx:/usr/src/alsa-utils-1.0.7# cd /etc/
lx:/etc# cp modules.conf modules.conf_20070423_bk

にゃんたろう 拝!

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


up

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