戻る

カーネルの再構築

整理

root@p71sda9:/usr/src/linux-3.15.10# cd /boot/
root@p71sda9:/boot# mkdir 016_GooD-n71a9t16
root@p71sda9:/boot# diff -s config-3.15.10-n71a9t16 /usr/src/linux-3.15.10/.config
Files config-3.15.10-n71a9t16 and /usr/src/linux-3.15.10/.config are identical
root@p71sda9:/boot# mv System.map* config* vmlinuz* 016_GooD-n71a9t16/
root@p71sda9:/boot# ls -l 016_GooD-n71a9t16/
total 5357568
lrwxrwxrwx 1 root root      27 Dec 26 17:11 System.map -> System.map-3.15.10-n71a9t16
-rw-r--r-- 1 root root 1894137 Dec 26 17:09 System.map-3.15.10-n71a9t16
lrwxrwxrwx 1 root root      23 Dec 26 17:11 config -> config-3.15.10-n71a9t16
-rw-r--r-- 1 root root  125520 Dec 26 17:10 config-3.15.10-n71a9t16
lrwxrwxrwx 1 root root      24 Dec 26 17:11 vmlinuz -> vmlinuz-3.15.10-n71a9t16
-rw-r--r-- 1 root root 3320672 Dec 26 17:09 vmlinuz-3.15.10-n71a9t16
root@p71sda9:/boot# cd -
/usr/src/linux-3.15.10
root@p71sda9:/usr/src/linux-3.15.10# cp .config base.config

カーネルの再構築

root@p71sda9:/usr/src/linux-3.15.10# make menuconfig
/*  メモとして 見てくださいここから          */
 .config - Linux/x86 3.15.10 Kernel Configuration 
 > General setup
General setup
(-nouveau-sda9-IP71-NO-FD-BootOK) Local version - append to kernel release 

.config - Linux/x86 3.15.10 Kernel Configuration
 > Device Drivers > Block devices 
Block devices
<M>   Normal floppy disk support
            |
            |
            v
< >   Normal floppy disk support
/*   メモとして 見てくださいここまで            */
Do you wish to save your new configuration?    
(Press <ESC><ESC> to continue kernel configuration.)
  < Yes >      <  No  >    
scripts/kconfig/mconf Kconfig
configuration written to .config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
root@p71sda9:/usr/src/linux-3.15.10# time make -j4 V=1 2>&1 | tee log-make-nouveau-sda9-IP71-NO-FD-BootOK
...
real    3m10.957s
user    6m9.147s
sys     1m4.847s
root@p71sda9:/usr/src/linux-3.15.10# make modules_install 2>&1 | tee log-mod-nouveau-sda9-IP71-NO-FD-BootOK
root@p71sda9:/usr/src/linux-3.15.10# ls /lib/modules/
3.15.10-n71a9t01/  3.15.10-n71a9t05/  3.15.10-n71a9t09/  3.15.10-n71a9t13/  3.15.10-nouveau-sda9-IP71-NO-FD-BootOK/
3.15.10-n71a9t02/  3.15.10-n71a9t06/  3.15.10-n71a9t10/  3.15.10-n71a9t14/  3.15.10-nusda902/
3.15.10-n71a9t03/  3.15.10-n71a9t07/  3.15.10-n71a9t11/  3.15.10-n71a9t15/
3.15.10-n71a9t04/  3.15.10-n71a9t08/  3.15.10-n71a9t12/  3.15.10-n71a9t16/
root@p71sda9:/usr/src/linux-3.15.10# cd /boot/
root@p71sda9:/boot# ls -l /usr/src/linux-3.15.10/arch/x86/boot/bzImage 
root@p71sda9:/boot# cp /usr/src/linux-3.15.10/arch/x86/boot/bzImage vmlinuz-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
root@p71sda9:/boot# cp /usr/src/linux-3.15.10/System.map System.map-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
root@p71sda9:/boot# cp /usr/src/linux-3.15.10/.config config-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK       
root@p71sda9:/boot# ln -s System.map-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK System.map                                     
root@p71sda9:/boot# ln -s config-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK config                                        
root@p71sda9:/boot# ln -s vmlinuz-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK vmlinuz    
root@p71sda9:/boot# ls -l | grep -v drw | grep -v img | grep -v grub | grep -v bmp | sed 1d
lrwxrwxrwx 1 root root      49 Dec 27 19:40 System.map -> System.map-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
-rw-r--r-- 1 root root 1894137 Dec 27 19:39 System.map-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
lrwxrwxrwx 1 root root      45 Dec 27 19:41 config -> config-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
-rw-r--r-- 1 root root  125553 Dec 27 19:40 config-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
lrwxrwxrwx 1 root root      46 Dec 27 19:41 vmlinuz -> vmlinuz-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK
-rw-r--r-- 1 root root 3320416 Dec 27 19:39 vmlinuz-3.15.10-nouveau-sda9-IP71-NO-FD-BootOK

再起動 してみましょう。

にゃんたろう 拝!

2014年 12月 27日 土曜日 21:03:16 JST 作成


戻る

Copyright © 2006.-2014.-- nyantarou All Rights Reserved.