우분투 edgy 에서 커널 교체하는 방법

lcm의 이미지


시냅틱에서 커널 소스 받아서

$ sudo cp /boot/config??? /usr/src/linux-source/.config

로 복사하고,

$ cd /usr/src/linux-source/

$ sudo make oldconfig

$ sudo make

했습니다. 근데 시간이 너무 오래 걸립니다.

그리고, 부팅 실패합니다.

$ cp arch/i386/boot/bzImage /boot

$ vi /boot/grub/menu.lst 를 수정했습니다.

혹시, 커널 소스 컴파일해서 바꿔 보신 분 있으시면, 답변 부탁드립니다.

그리고, 또 하나 질문입니다.

$ make SUBDIRS=sound modules 이렇게 하면 안되는데,

특정 모듈만 컴파일하는 방법 좀 가르쳐 주세요..

lcm의 이미지


다음과 같은 메시지가 나옵니다.

root 파일 시스템을 마운트할 수 없다는 것같은데, 어떻게 해야 할까요?

Loading essentail drivers ......... ok

Running /scripts/init-premount .... ok

Mounting root file system

Starting up RAIDs Please wait, the process might take a long time ... ok

Waiting for root file system

doodoo의 이미지

윽.....우분투에서는...커널을 교체하는 방법이 좀 독특하죠..
데비안 계열이 다 이런지는 잘 모르겠습니다만..

http://ubuntu.or.kr/wiki.php/KernelHowTo
여기 한번 보세요...
거의 따라하기 식이니깐 잘 성공하실것으로 믿겠습니다.

kyagrd의 이미지

그냥 패키지 업그레이드하고 리부팅만 시켜 주면 됩니다.

그런데 원글 쓰신 분 소스 컴파일이라니 ...
우분투에서는 커널 업그레이드 할 때 소스도 컴파일해야 하나요?
바이너리 패키지가 웬만하면 있을 것 같은데요.

단 SATA하드라든가 hda1이 아닌 곳에 설치되어 있을 경우 grub 파일을 편집하는 것을 잊지 말아야 한다는 것은 우분투와 같은 걸로 알고 있습니다. 얼마 전에 우분투에서 그런 문제가 있다고 올리신 분이 있더라고요.

--
There's nothing so practical as a good theory.
- Kurt Lewin

--
There's nothing so practical as a good theory. - Kurt Lewin
"하스켈로 배우는 프로그래밍" http://pl.pusan.ac.kr/~haskell/

lcm의 이미지


주위 분의 도움으로 어찌해서 커널 교체하고 부팅은 성공했습니다.

# vi /boot/grub/menu.lst

kernel /boot/bzImage root=/dev/hda4 ro
savedefault
#initrd /boot/initrd.img
boot

initrd 사용하지 않고, # lspci 명령으로 보이는 내용들을 built-in 하고,

ext2/3, usb-kbd/mouse 등도 built-in 해서 컴파일했습니다.

제게 해볼려고 했던 게, ALSA 사운드 드라이버 디버깅이 목적이어서, 커널 컴파일과 모듈 컴파일을 해보려고 한것이었습니다. PC 에서 먼저 테스트해보고, 보드로 포팅할려구요..

답변주셔서 감사합니다.

혹시, 사운드 쪽 모듈만 따로 컴파일하는 방법을 아시는 분 좀 가르쳐 주세요..^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.