우분투&민트 커널 업그레이드

민트도 우분투의 브랜치 배포판 중에 하나이기 때문에 동일하다. 어짜피 뿌리는 데비안계열이니...


1. 공식 메인라인 이용방법
https://wiki.ubuntu.com/Kernel/MainlineBuilds

mkdir v3.5.4-quantal
cd v3.5.4-quantal
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504_3.5.4-030504.201209142010_all.deb

-32비트의 경우-
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-extra-3.5.4-030504-generic_3.5.4-030504.201209142010_i386.deb

-64비트의 경우-
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-headers-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5.4-quantal/linux-image-extra-3.5.4-030504-generic_3.5.4-030504.201209142010_amd64.deb


sudo dpkg -i *.deb


2. 직접 빌드 방법.

https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

직접 커널에서 받아서 빌드하는 방법이 있다.
먼저 필요한 패키지 설치부터...
sudo apt-get install git build-essential kernel-package fakeroot libncurses5-dev


git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

git checkout COMMIT

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

여기서 '가 아니고 `이다. ~표시키에 있는`이다.

make oldconfig

yes '' | make oldconfig

make menuconfig

make clean

make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-custom

Change to one directory level up (this is where the linux-image and linux-header .deb files were put):

cd ..

sudo dpkg -i *.deb

Now install the .deb files. In this example, the files are linux-image-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb and linux-headers-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb. You may receive warnings about '/lib/firmware/2.6.24-rc5-custom/' - this is expected and will only be problematic if the driver you are trying to test requires firmware:


You are now ready to boot into your new kernel. Just make sure you select the new kernel when you boot:

sudo reboot


sudo dpkg -i linux-image-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb
sudo dpkg -i linux-headers-2.6.24-rc5-custom_2.6.24-rc5-custom-10.00.Custom_i386.deb

  INSTALL debian/headertmp/usr/include/uapi/ (0 file)
  INSTALL debian/headertmp/usr/include/asm/ (65 files)
hostname: Name or service not known
make[1]: *** [deb-pkg] Error 1
make: *** [deb-pkg] Error 2


이런에러가 나와서 /etc/hosts에 로컬호스트 이름 다른게 있어서 수정함.
127.0.1.1 simon-VB

그러면 해결됨.

 

3. make.kpkg를 이용하는 방법

이 방법은 아래 강좌를 보고 알게되었다. 그러나 아직 해보지는 않았다. 동일하게 가능할 것 같다.

http://forum.falinux.com/zbxe/index.php?_filter=search&mid=lecture_tip&search_target=title&search_keyword=%EC%BB%A4%EB%84%90&document_srl=864227

 

+ Recent posts