커널 컴파일 에러... 어떻게 하죠?

qurinel의 이미지

sh /usr/src/linux-2.6.24/arch/i386/boot/install.sh 2.6.24 arch/i386/boot/bzImage System.map "/boot"
WARNING: Couldn't open directory /lib/modules/2.6.24: No such file or directory
FATAL: Could not open /lib/modules/2.6.24/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.24 is not a directory.
mkinitrd failed
make[1]: *** [install] 오류 1
make: *** [install] 오류 2

/lib/modules/2.6.24 폴더를 제가 만들어야 하나요?ㅠㅠ
현재 버전은 2.6.18인데요..
왜 이런 에러가 나는 걸까요?
알려주세요 ㅠㅠ

ihavnoth의 이미지

mkdir -p /lib/modules/2.6.24

make install

했습니다..

디렉토리 만들고 나선 에러없이 잘 되길래....

[왜?] 에러 났는지에 대해서는 찾아보지 않았습니다.

bzImage가 생성됬으니 컴파일 에러는 아니고

모듈을 복사하는 스트립트에서 에러 난겁니다.

없음

bushi의 이미지

상당히 위태로운 작업을 하고 계시는군요.

make bzImage modules modules_install install

모듈은 modules_install 단계에서 설치 위치로 복사됩니다.
디렉토리가 없다면 만들어지고요.

module 을 사용하지 않도록 config 했다면,
mkdir 로 직접 만들어줘도 상관없긴 합니다.

OTL

ihavnoth의 이미지

요즘...

make bzImage; make modules
를.... make로 그냥하고 있습니다....

없음

bushi의 이미지

그럴리가요.
CONFIG_MODULES 이 빠져있으면 make modules 에서 에러날텐데요.

[bushi@rose kernel-2.6]$ cat include/linux/utsrelease.h 
#define UTS_RELEASE "2.6.26.5-smdk6410"
[bushi@rose kernel-2.6]$ grep CONFIG_MODULE .config
# CONFIG_MODULES is not set
[bushi@rose kernel-2.6]$ make modules
 
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
 
make: *** [modules] 오류 1
[bushi@rose kernel-2.6]$

make bzImage; make modules
는 아주 좋지 않은 습관입니다.
make bzImage && make modules
가 올바른 방법인데... make 를 모욕하는 거죠.
make bzImage modules
처럼 필요한 target 을 적어주면 됩니다. 중간에 에러가 발생하면 그 단계에서 바로 중지됩니다.

OTL

ihavnoth의 이미지

$ make

했더니..

$ make bzImage && make modules

가 진행됬다는 이야기를 할려고했는데

습관적으로 저렇게 표기해버렸네요.

없음

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.