Linux Kernel 3.17 ããªãªãŒã¹ãããã®ã§ãã«ãããŠã¿ãã
ãšããããèŠããããã«ãµã¯ã«ãªã£ãããšããçµæã
Linux Mint ã®ã«ãŒãã«ã¯ä»çŸåš 3.13.0-24ãAPT 㧠3.13.0-36 ãã€ã³ã¹ããŒã«ã§ããã
èªåã®ç°å¢ã§ã¯ãã«ãã«è¶³ããªããããªãã®ã¯ kernel-package
ãããã ã£ãã
sudo aptitude install kernel-package
make menuconfig
ã§ããŒã«ã«åã決ããŠããã®ãå¿ããã«ã
cd /usr/src su - git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git cd linux-stable cp /boot/config-3.13.0-24-generic .config make oldconfig make menuconfig make-kpkg clean CONCURRENCY_LEVEL=`nproc` make-kpkg --revision `date +%Y%m%d` --initrd kernel_{image,headers} cd .. dpkg -i linux-image-3.17.0-local_20141006_i386.deb dpkg -i linux-headers-3.17.0-local_20141006_i386.deb reboot
ã€ã¡ãŒãžãã€ã³ã¹ããŒã«ããæç¹ã§ nvidia-331 ãš virtualbox-guest é¢é£ã®ãšã©ãŒãåºãŠãã®ã§ããçšåºŠäºæ³ã¯ããŠãããã©åèµ·åããŠã X ãèµ·åã§ããªãã£ãã"Linux Mint 17" ã®æåã¯åºãããã®åŸç»é¢ã®è¡šç€ºããããããªããæ°å X ãåèµ·åããåŸã«ãé 匵ã£ããã©ç¡çã ã£ãããâŠãã¿ãããªã¡ãã»ãŒãžã
ã³ã³ãœãŒã«ã«åãæ¿ã㊠nvidia-331 ãš virtualbox-guest é¢é£ãå šãŠã¢ã³ã€ã³ã¹ããŒã«ãããããä»®æ³ãã·ã³ã§ã¯ãªãã®ã§ virtualbox-guest ã¯å¿ èŠãªãã
ã§ãç¡äºã«ãã°ã€ã³ã§ããŠèŠãããã£ãŠã¿ããä»ãŸã§ 90% ããããŸã§ CPU ãå°ãããŠããã© 65% ããããŸã§æžå°ãçŸ éç€ã®å転ãšãã空æ¯ã®å€ãèªç©ºæŠãæ»ããã«åãããã«ãªã£ãããã·ãŒã³ã«ããããã€ããå šç¶ãªãã15 FPS ã 30 FPS ã«ãªã£ãããããªå°è±¡ïŒnouveau ã«æ»ããã®ãåå ã§ã«ãŒãã«ã®ã¢ããã°ã¬ãŒãé¢ä¿ãªãããããªãããšããå¯èœæ§ãâŠïŒãKDE ãš Pentium D 925 ã§ãèŠããããã«ãµã¯ã ãïŒ
VLC ã§ã·ãŒã¯ããããããšé³ã鳎ããªããªãåé¡ããã£ããã ãã©ãããä»ã®ãšããçºçããŠãªããªãã
ããšã¯ã€ã³ãããã¡ãœããã®åå¿ãè¥å¹²è¯ããªã£ããšãã ããããåãŸã§ã¯ããã€ãããšããã£ããã©ãããæ»ããã«å ¥åã»å€æãã§ããã
ããã§æ«ãæ§åèŠããŠã¿ãããPentium 4 ã®æ¹ã®ãã·ã³ãããã§å€å°ãã·ã«ãªããããªãã
2åç®
ããããã° CPU ãã¡ããªãæå®ããã®ãå¿ãããšããã£ãŠããçŽãã
make menuconfig
㧠Processor type and features > Processor family ãéã㊠CPU ãæå®ãããPentium D ã䜿çšããŠããã®ã§ Pentium 4 ã·ãªãŒãºã«ããŠããããããšã¢ãžã¥ãŒã«ãäœãçŽãããŠãããman make-kpkg
ãèªãã§ã¿ããããŒã«ã«ããŒãžã§ã³ã¯ make menuconfig
ã§æå®ãããšã --append-to-version
ã§è¿œå ã§ãããããã
CONCURRENCY_LEVEL=`nproc` MODULE_LOC=`pwd`/modules make-kpkg --revision `date +%Y%m%d` --append-to-version -p4-1 kernel_image kernel_headers modules_image
1åç®ããæç¶æ©ãçµãã£ãã
ããŒãããã VirtualBox ãåããªããªã£ãŠãã®å¿ããŠãŸãããâŠãvirtualbox-nonfree
ã ã£ããã© virtualbox-dkms
ã§å¯Ÿå¿ããŸããããã
------------------------------ Deleting module version: 4.3.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-4.3.10 DKMS files... Building only for 3.17.0-p4-2 Building initial module for 3.17.0-p4-2 Error! Bad return status for module build on kernel: 3.17.0-p4-2 (i686) Consult /var/lib/dkms/virtualbox/4.3.10/build/make.log for more information. * Stopping VirtualBox kernel modules [ OK ] * Starting VirtualBox kernel modules * No suitable module for running kernel found [fail] invoke-rc.d: initscript virtualbox, action "restart" failed.
ã§ããããŒããããªã«äžæããããããªããšæã£ãŠãŸããããã°ãèŠããš
DKMS make.log for virtualbox-4.3.10 for kernel 3.17.0-p4-2 (i686) Wed Oct 8 23:37:10 JST 2014 make: ãã£ã¬ã¯ã㪠`/usr/src/linux-stable' ã«å ¥ããŸã LD /var/lib/dkms/virtualbox/4.3.10/build/built-in.o LD /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/built-in.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/linux/SUPDrv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrvSem.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/SUPDrvTracer.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/alloc-r0drv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/initterm-r0drv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/memobj-r0drv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/mpnotification-r0drv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/powernotification-r0drv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/process-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/semmutex-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/spinlock-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/thread-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/thread2-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/threadctxhooks-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/time-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/generic/semspinmutex-r0drv-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/alloc/alloc.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/crc32.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/ipv4.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/checksum/ipv6.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/err/RTErrConvertFromErrno.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/err/RTErrConvertToErrno.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/log.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logellipsis.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logrel.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logrelellipsis.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logcom.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/log/logformat.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg1Weak.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2Add.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2AddWeak.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2AddWeakV.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2Weak.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/RTAssertMsg2WeakV.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/assert.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/handletable.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/handletablectx.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/misc/thread.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopy.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopyEx.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrCopyP.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrNCmp.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/RTStrNLen.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/stringalloc.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformat.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformatrt.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strformattype.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strprintf.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/string/strtonum.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/table/avlpv.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/common/time/time.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTAssertShouldPanic-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteStdErr-stub-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteStdOut-stub-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTLogWriteUser-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTMpGetArraySize-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTMpGetCoreCount-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventWait-2-ex-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventWaitNoResume-2-ex-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventMultiWait-2-ex-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/RTTimerCreate-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/errvars-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/mppresent-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/generic/uuid-generic.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/VBox/log-vbox.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/math/gcc/divdi3.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/math/gcc/moddi3.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/math/gcc/qdivrem.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/math/gcc/udivdi3.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/math/gcc/umoddi3.o LD [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxdrv/vboxdrv.o LD /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/built-in.o CC [M] /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: In function âvboxNetAdpOsCreateâ: /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given vboxNetAdpNetDevInit); ^ /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: error: âalloc_netdevâ undeclared (first use in this function) pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV), ^ /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c: At top level: /var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.c:159:13: warning: âvboxNetAdpNetDevInitâ defined but not used [-Wunused-function] static void vboxNetAdpNetDevInit(struct net_device *pNetDev) ^ make[2]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp/linux/VBoxNetAdp-linux.o] ãšã©ãŒ 1 make[1]: *** [/var/lib/dkms/virtualbox/4.3.10/build/vboxnetadp] ãšã©ãŒ 2 make: *** [_module_/var/lib/dkms/virtualbox/4.3.10/build] ãšã©ãŒ 2 make: ãã£ã¬ã¯ã㪠`/usr/src/linux-stable' ããåºãŸã
äœãã®ãåŒæ°4ã€å¿ èŠã ãã©3ã€ãããªããïŒãã£ãŠãããšã©ãŒããœãŒã¹ééããããšã©ããããããªããã§ããâŠã
ä»æ¹ãªããå ¬åŒããã€ã³ã¹ããŒã«ãããã
sudo add-apt-repository 'deb http://download.virtualbox.org/virtualbox/debian trusty contrib' wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - sudo apt-get update
/etc/apt/preferences.d/additional-repositories.pref
ãäœæããŠä»¥äžãæžã蟌ã¿åªå
床ãäžããããšãããã /etc/apt/preferences.d/official-package-repositories.pref
ã«æžããŠãããŠããããšæããã¢ããã°ã¬ãŒãæã«äžæžãããããããããªãã
Package: virtualbox-4.3 Pin: origin download.virtualbox.org Pin-Priority: 701
aptitude show virtualbox-4.3
ã§ããŒãžã§ã³ã VirtualBox ã®ãµãŒãã«ãããã®ãšç¢ºèªããŠããã€ã³ã¹ããŒã«ã2014幎10æ09æ¥çŸåšã ãš 4.3.16-95972~Ubuntu~raring ãç®çã®ç©ã
sudo aptitude install virtualbox-4.3 --with-recommends
: Trying to register the VirtualBox kernel modules using DKMS ...done. Starting VirtualBox kernel modules ...done. :
ïŸââââ(ïŸâïŸ)ââââ!!
ã§ããšãããã VirtualBox åé¡ã¯çµäºã
詳ãã㯠https://www.virtualbox.org/wiki/Linux_Downloads ãèŠãã¹ãã
2åç®ãã®åŸ
nouveau ã䜿ã£ãŠãããšãµã¹ãã³ããã埩垰åºæ¥ãªãããšãå€æãNVIDIA ããå ¬åŒãã©ã€ããããŠã³ããŒãããŠããŠå ¥ããããšã«ããã
ã³ã³ãœãŒã«ã«ç§»åã㊠telinit 1
㧠X ãçµäºããnouveau ãã¢ã³ããŒãããŠããäœæ¥ããã
telinit 1
rmmod nouveau
ERROR: Module nouveau is in use
ãããLinux Mint ã®ã³ã³ãœãŒã«ã¯ nouveau 絶è³äœ¿çšäžã§ããâŠã/boot/grub/grub.cfg
ãäžæçã«æžãæããŠããŒãããªãããã«ããŸããããçŸåšäœ¿çšããŠããã«ãŒãã«ã®ãªãã·ã§ã³è¡ã« nouveau.modeset=0
ãè¿œå ã
quiet nosplash nouveau.modeset=0
åèµ·åããŠãŸã telinit
ã
åã¯è©³ãã調ã¹ãŠããªãã£ããã© http://us.download.nvidia.com/XFree86/Linux-x86/340.46/README/index.html ã«ããã¥ã¢ã«ããããã€ã³ã¹ããŒã©ã« -A
ãªãã·ã§ã³ãäžãããšè©³çŽ°ãã«ããåºããã ãããªåºããã ãããªã倧äºãªããšãªã®ã§ïŒry
詳现ãã«ããèŠããšã«ãŒãã«ã®ååãšãã¹ãæå®ã§ãããšã®ããšã--dkms
ãš --disable-nouveau
ã¯åæã«ãã£ãŠãããããªæ°ããããã©ãšããããè¿œå ããŠãããéäž /etc/X11/xorg.conf
ã®æžãæãã«ã€ããŠèãããã Linux Mint ã¯ãããç¡ãã®ã§ç¡èŠã
telinit 1 rmmod nouveau sh /home/me/Downloads/NVIDIA-Linux-x86-340.46.run --kernel-name=`uname -r` --kernel-source-path=/usr/src/linux-stable --dkms --disable-nouveau
å°ããã®ã€ã³ã¹ããŒã©ãŒã--silent
ã --latest
ã--update
ã--uninstall
ãåããŠããã--silent
ã¯ãã€ã¢ãã°ãªãã§ã€ã³ã¹ããŒã«ã--latest
ã --update
㯠FTP 㧠NVIDIA ã®ãµãŒãããæ°ãããã®ãæŸã£ãŠãããè²ã
æ
å ±ãæ¢ããŠã¿ããšãªãã·ã§ã³ã«ã€ããŠèšèŒããŠãããµã€ããã»ãšãã©ãªãã£ãã®ã§ãããªã«å€æ©èœã ãšã¯æããªãã£ãã
ã§ãåèµ·åã㊠lsmod
ããŠã¿ããšãŸã nouveau ãèªãã§ããã®ã§ã¯ãŠïŒãšæã£ããã© initramfs ã®ã¢ããããŒããããŠããªãã£ããå
ã»ã© /boot/grub/grub.cfg
ãæžãæããŠããŸã£ãã®ã§ update-grub2
ãå®è¡ããŠå
ã«æ»ããŠããïŒãã©ã€ãã€ã³ã¹ããŒã«æã«ãã£ãŠãããªæ°ããããã©ïŒã
sudo update-grub2 && sudo update-initramfs -u
åèµ·åã㊠nouveau ãããŒããããŠããªãããšã確èªããã
lsmod | grep nouveau
ãµã¹ãã³ããåé¡ãªããnouveau ã®æ¹ãè¥å¹²ã¬ã¹ãã³ã¹ãè¯ããããªæ°ããããã©ãµã¹ãã³ãã䜿ããªãã®ã¯å°ãã®ã§ä»æ¹ããªãã