Difference between revisions of "Compile Ubuntu kernel"

From wikidb
Jump to: navigation, search
(Get Source)
(Get Source)
Line 31: Line 31:
 
   tar xjvf /usr/src/linux-source-2.6.32.tar.bz2
 
   tar xjvf /usr/src/linux-source-2.6.32.tar.bz2
 
   cd linux-source-2.6.32/
 
   cd linux-source-2.6.32/
 +
 +
=== Config ===
  
 
Copy the config-2.6.32-38-generic file
 
Copy the config-2.6.32-38-generic file
 
   cp -vi /boot/config-`uname -r` .config
 
   cp -vi /boot/config-`uname -r` .config
 +
 +
Get the libraries required for menuconfig. Not necessary. They were already install.
 +
  sudo apt-get install libncurses5 libncurses5-dev
 +
 +
  cp .config .config.org
 +
 +
  make oldconfig
 +
 +
This will tell me that it set random number generation to enable the x86 architectural RDRAND instruction (Intel Bull Mountain technology) to generate random numbers.
 +
 +
  diff .config .config.org
 +
  3,4c3,4
 +
  < # Linux kernel version: 2.6.32.61+drm33.26
 +
  < # Thu Jan  2 10:38:43 2014
 +
  ---
 +
  > # Linux kernel version: 2.6.32-38-generic
 +
  > # Wed Jan  4 11:12:56 2012
 +
  372d371
 +
  < CONFIG_ARCH_RANDOM=y

Revision as of 12:10, 2 January 2014

For FitPC2

Compile Kernel Used the Alternate Build Method: The Old-Fashioned Debian Way

Versions

Check version Update to 12.04 wouldn't boot

 date
 Mon Dec 30 15:27:20 PST 2013
 lsb_release -a
 No LSB modules are available.
 Distributor ID:	Ubuntu
 Description:	Ubuntu 10.04.4 LTS
 Release:	10.04
 Codename:	lucid
 cat /proc/version
 Linux version 2.6.32-41-generic (buildd@vernadsky) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #89-Ubuntu SMP Fri Apr 27 22:22:09 UTC 2012
 uname -r
 2.6.32-38-generic

Get Source

 sudo apt-get install linux-source 
 cd
 mkdir scr
 cd scr/
 tar xjvf /usr/src/linux-source-2.6.32.tar.bz2
 cd linux-source-2.6.32/

Config

Copy the config-2.6.32-38-generic file

 cp -vi /boot/config-`uname -r` .config

Get the libraries required for menuconfig. Not necessary. They were already install.

 sudo apt-get install libncurses5 libncurses5-dev
 cp .config .config.org
 make oldconfig

This will tell me that it set random number generation to enable the x86 architectural RDRAND instruction (Intel Bull Mountain technology) to generate random numbers.

 diff .config .config.org 
 3,4c3,4
 < # Linux kernel version: 2.6.32.61+drm33.26
 < # Thu Jan  2 10:38:43 2014
 ---
 > # Linux kernel version: 2.6.32-38-generic
 > # Wed Jan  4 11:12:56 2012
 372d371
 < CONFIG_ARCH_RANDOM=y