Compile Ubuntu kernel

From wikidb
Jump to: navigation, search

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
 make menuconfig

Wireless

Ralink RT3090

From make menuconfig select

  • Device Drivers
  • Staging drivers: second from bottom
  • Ralink 3090 wireless support: selected help
 CONFIG_RT3090:                                                          
                                                                           
 This is an experimental driver for the Ralink 3090 wireless chip.        
                                                                          
 Symbol: RT3090 [=m]                                                      
 Prompt: Ralink 3090 wireless support                                     
   Defined at drivers/staging/rt3090/Kconfig:1                            
   Depends on: STAGING [=y] && !STAGING_EXCLUDE_BUILD [=n] && PCI [=y] &  
   Location:                                                               
     -> Device Drivers                                                     
       -> Staging drivers (STAGING [=y])                                   
         -> Exclude Staging drivers from being built (STAGING_EXCLUDE_BU

Loaded module

 lsmod | grep rt
 rt3090sta             674216  0 
 
 find /lib/modules/ -name *3090*
 /lib/modules/2.6.32-38-generic/kernel/drivers/staging/rt3090
 /lib/modules/2.6.32-38-generic/kernel/drivers/staging/rt3090/rt3090sta.ko