Kernel Compilation..

Asked by omesh

i tried to compile linux -2.6.22.3 on my computer...
i followed the procedure:
make xconfig
make dep
make bzImage
make modules
make modules_install

after booting to the compiled kernel....
i am getting the errrors:

modprobe:fatal:couldnot load /lib/modules/2.6.22.3/modules.dep
no such file or directory exists

mount:unknown filesystem type 'devfs'

unmount:devfs:not mounted
/scripts/ext3-add-jornal.sh:27:arith:syntax error:"0x"
[11.647989] kernel panic -not syncing:
attempt to kill init!

also when i check the folder /lib/modules/2.6.22.3 there alredy is a file modules.dep

can u help me to solve the problem and boot into the newly complied kernel

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nicolas Robin (nicolas-robin-deactivatedaccount) said :
#1

Why have you compiled this kernel ? are you sure it was necessary ?

Compiling a kenel is not an easy task, and you often fail doing it. You should better explain your problem, maybe there is an other way to fix it, without compiling a kenel.

Revision history for this message
Sam Cater (wraund-deactivatedaccount) said :
#2

none of that jargon looks right to me, i have compiled kernels for my laptop and i use this guide. It works for me :D

http://www.howtoforge.com/kernel_compilation_ubuntu

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Bhavani Shankar suggests this article as an answer to your question:
http://ubuntuforums.org/showthread.php?t=43065&highlight=kernel+compilation
FAQ #15: “cannot run a compiled kernel....”.

Revision history for this message
omesh (pandita-omesh) said :
#4

i was trying to compile the kernel just to see how can i do it and wanted to ann new system calls to this kernel....
i was doing what was given on my os book..

Revision history for this message
Bhavani Shankar (bhavi) said :
#5

best kernel programming book is by beck,bohme and others... Pearson education... Linux kernel programming... Go thro the book. one of the best books i ve read... for a brief intro take a look at this...
http://fossil.wpi.edu/docs/howto_add_systemcall.html

Can you help with this problem?

Provide an answer of your own, or ask omesh for more information if necessary.

To post a message you must log in.