戻る

前へ| 次へ

カーネル再構築

X が うまく動かないので カーネルの再構築を 試みます。

make menuconfig

# cd /usr/src/linux-3.12.5/
# ls -a
./       Documentation/  README          drivers/   ipc/     samples/   usr/
../      Kbuild          REPORTING-BUGS  firmware/  kernel/  scripts/   virt/
.config  Kconfig         arch/           fs/        lib/     security/
COPYING  MAINTAINERS     block/          include/   mm/      sound/
CREDITS  Makefile        crypto/         init/      net/     tools/
# cp -a .config .config-20131218-org-cp
# make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
configuration written to .config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

make make modules &make modules_install

# ls  arch/x86/boot/ | grep bzImage
# make 
#  ls  arch/x86/boot/ | grep bzImage
bzImage
# cd /boot/
# mv System.map-3.12.5-plamoSMP 001_org-System.map-3.12.5-plamoSMP 
# cp /usr/src/linux-3.12.5/System.map System.map-3.12.5-plamoSMP
# mv vmlinuz-3.12.5-plamoSMP 002_org-vmlinuz-3.12.5-plamoSMP
# cp /usr/src/linux-3.12.5/arch/x86/boot/bzImage vmlinuz-3.12.5-plamoSMP
# cd -
/usr/src/linux-3.12.5
# cd /lib/modules/
# mv 3.12.5-plamoSMP/ 001_org-3.12.5-plamoSMP/
# cd -
/usr/src/linux-3.12.5
# make modules
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 1775 modules
# make modules_install

make modules

Execute "make" or "make all" to build all targets marked with [*]
For further info see the ./README file

つまり

Other generic targets:
  all             - Build all targets marked with [*]
* vmlinux         - Build the bare kernel
* modules         - Build all modules
* bzImage      - Compressed kernel image (arch/x86/boot/bzImage)

というふうな事の様です

# pwd
/usr/src/linux-2.6.30.7
# make help | sed -n '/^*/p'
* vmlinux         - Build the bare kernel
* modules         - Build all modules
* bzImage      - Compressed kernel image (arch/x86/boot/bzImage)

これは さておき

これで 良いはずなのですが 再起動させておきましょう

# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sdb2       14564400 6908804   6921596  50% /
none             1616304     364   1615940   1% /dev
/media           1616304       0   1616304   0% /media
/tmp             1616304       0   1616304   0% /tmp

にゃんたろう 拝!

2014年 2月 14日 金曜日 21:03:48 JST 作成


前へ| 次へ

戻る

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