Originally Posted by
paul_in_london
Finally got around to compiling 3.12-rc5 today.
Gnotes quit sync'ing, after yesterday's upgrades (Ubu 13.10), so I'm going to paste it here, for safe keeping.
Been doing your drill on my desktop box with unfettered success...
Code:
HOWTO Compile a Custom Kernel in /home, paul_in_london-style
# Here are the steps I use, to compile a custom kernel in my /home partition.
# You may need to install some additional packages/libraries, depending on your distro, to do this (noted below).
# Kill any unnecessary background processes, such as Conky, audio/video player, temp monitor, email client, et cetera.
# Download tar from this pool: https://www.kernel.org/pub/linux/kernel/v3.x/testing => (to whichever path you wish).
vindsl@Zuul:~$ cd ~/Downloads/Kernels # (example)
vindsl@Zuul:~$ tar zxvf ~/Downloads/Kernels/linux-3.12-rc5.tar.gz # (extract the files, preserving the tree - example)
vindsl@Zuul:~$ cd linux-3.12-rc5 # (example)
# Copy & paste a working .config file (from /usr/src or /boot) to this folder, before running the following make commands.
vindsl@Zuul:~$ make-kpkg clean
# You may need to install 'make-kpkg' (sudo apt-get install kernel-package) to perform the above, and repeat.
vindsl@Zuul:~$ make localmodconfig
vindsl@Zuul:~$ make menuconfig # (make changes, if necessary, and/or save and exit)
# If you get menuconfig errors, you may need to install ncurses, libncurses5-dev, libncursesw5-dev, et cetera, and repeat.
vindsl@Zuul:~$ time fakeroot make-kpkg -j3 --initrd --append-to-version=-vindsl-custom-1 kernel-image kernel-headers
# Lastly, you may need to install fakeroot also, to perform the above, and repeat.
# Install the resultant .deb files, as you normally would. I use:
vindsl@Zuul:~/Downloads/Kernels$ sudo dpkg -i *.deb # (example)
# Reboot.
# That's it. Have fun!
And, the survey says...
Code:
vindsl@Zuul:~$ echo && echo "~ VinDSL Unity Debug Script 13.07.08 (vindsl.com) ~" && echo -n "Current Date/Time: " && TZ='UTC' date && echo -n "Distro Release: " && lsb_release -sd && echo -n "Kernel Release: " || cat /etc/*release && uname -s -r && echo -n "Gnome Release: " && gnome-shell --version && echo -n "Unity Release: " && unity --version && echo && /usr/lib/nux/unity_support_test -p -f && echo || echo && dpkg -s mesa-utils && echo || echo && echo "Package: mesa-common-dev" && dpkg -s mesa-common-dev | sed 's/^/ /' | grep Version && echo || echo && echo "Package: xserver-xorg-core" && apt-cache policy xserver-xorg-core | grep Installed && echo || echo && echo "Package: xserver-common" && apt-cache policy xserver-common | grep Installed && echo || echo && echo "Package: xserver-xephyr" && apt-cache policy xserver-xephyr | grep Installed && echo || echo && echo "Tree Map of PCI Devices:" && lspci -tv && echo || echo && echo "Display Properties:" && echo -n " lcd monitor: Dell UltraSharp 1907FP (analog input)" && echo && xdpyinfo | grep -E '(resolution|dimensions)' && echo
~ VinDSL Unity Debug Script 13.07.08 (vindsl.com) ~
Current Date/Time: Sat Oct 19 23:46:28 UTC 2013
Distro Release: Ubuntu Trusty Tahr (development branch)
Kernel Release: Linux 3.12.0-rc5-vindsl-custom-1
Gnome Release: GNOME Shell 3.10.0.1
Unity Release: unity 7.1.2
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV4B
OpenGL version string: 2.1 Mesa 9.2.1
Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes
Unity 3D supported: yes
Package: mesa-utils
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 115
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: mesa-demos
Version: 8.1.0-2
Replaces: xbase-clients (<< 6.8.2-38)
Depends: libc6 (>= 2.4), libgl1-mesa-glx | libgl1, libx11-6
Description: Miscellaneous Mesa GL utilities
This package provides several basic GL utilities built by Mesa, including
glxinfo and glxgears.
Original-Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Homepage: http://mesa3d.org/
Package: mesa-common-dev
Version: 9.2.1-1ubuntu3
Package: xserver-xorg-core
Installed: 2:1.14.3-3ubuntu2
Package: xserver-common
Installed: 2:1.14.3-3ubuntu2
Package: xserver-xephyr
Installed: 2:1.14.3-3ubuntu2
Tree Map of PCI Devices:
-[0000:00]-+-00.0 Intel Corporation 82875P/E7210 Memory Controller Hub
+-01.0-[01]----00.0 NVIDIA Corporation G73 [GeForce 7600 GT]
+-03.0-[02]----01.0 Intel Corporation 82547EI Gigabit Ethernet Controller
+-06.0 Intel Corporation 82875P/E7210 Processor to I/O Memory Interface
+-1d.0 Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
+-1d.1 Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
+-1d.2 Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3
+-1d.3 Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4
+-1d.7 Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
+-1e.0-[03]----0c.0 Lite-On Communications Inc LNE100TX
+-1f.0 Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge
+-1f.2 Intel Corporation 82801EB (ICH5) SATA Controller
+-1f.3 Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller
\-1f.5 Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller
Display Properties:
lcd monitor: Dell UltraSharp 1907FP (analog input)
dimensions: 1280x1024 pixels (338x270 millimeters)
resolution: 96x96 dots per inch
vindsl@Zuul:~$
A bug has cropped up on my lappy (Peppermint Four/Raring - hacked). Compiles just fine, but won't install because of some *supposed* unmet dependencies - which are actually being met, but unrecognized by the OS.