View previous topic :: View next topic |
Author |
Message |
Captin n00b
Joined: 21 Jan 2004 Posts: 42 Location: Minneapolis, MN
|
Posted: Sat Oct 23, 2004 11:56 pm Post subject: Kernel compilation problems [SOLVED] |
|
|
I've never had any luck compiling my own kernel, I've always used genkernel. I'm trying to build a box as a router at the moment and need to change a few compile options. Whenever I attempt to compile I get errors. The one I'm having right now is Code: | drivers/usb/usbdrv.o(text+blah): in function 'hidinput_hid_event':
: undefined reference to 'input_event'
...
make: *** [vmlinux] Error 1 |
Does anyone have any ideas?
I'm using gentoo 1.4.26-Gentoo
Last edited by Captin on Sun Oct 24, 2004 8:48 pm; edited 1 time in total |
|
Back to top |
|
|
transienteagle Apprentice
Joined: 24 Dec 2003 Posts: 190 Location: UK
|
Posted: Sun Oct 24, 2004 10:38 am Post subject: |
|
|
Captin,
If you are comfortable with building routers, then I would strongly reccomend that you move away from genkernel and use the normal make (of course modules and modules_install). I think that you would have fewer problems and if you do, much easier to correct.
rgds
TE |
|
Back to top |
|
|
nightblade Guru
Joined: 20 Jul 2004 Posts: 368 Location: back from SE Asia
|
Posted: Sun Oct 24, 2004 12:35 pm Post subject: |
|
|
cleans your source directories from all files left from previous compilations that might mess up things. Just be sure to make a backup of your .config file, as the command erases it.
Also consider switching to 2.6 kernel. _________________ In God we trust. All the others must provide a valid X.509 certificate |
|
Back to top |
|
|
zurd Apprentice
Joined: 17 Dec 2003 Posts: 228 Location: Canada, Montreal
|
Posted: Sun Oct 24, 2004 1:00 pm Post subject: j |
|
|
First time you compile your first kernel it can be very painful, since you never compile it with the right options to boot and to properly use all of your hardware correctly. But it is the way to do it. You'll have much more control over hardware with Linux this way.
p.s. compiling the kernel the first and second time do takes time, but at the third time it will only compiles the changes you requested, so it's pretty fast to compile a kernel afterwards |
|
Back to top |
|
|
Captin n00b
Joined: 21 Jan 2004 Posts: 42 Location: Minneapolis, MN
|
Posted: Sun Oct 24, 2004 8:47 pm Post subject: |
|
|
Thanks guys, I compiled the 2.6.9-r1 kernel and the router is up and running.
I appreciate the help. |
|
Back to top |
|
|
A.S. Pushkin Guru
Joined: 09 Nov 2002 Posts: 418 Location: dx/dt, dy/dt, dz/dt, t
|
Posted: Wed Jan 19, 2005 7:07 am Post subject: |
|
|
Code:
make mrproper
cleans your source directories from all files left from previous compilations[/quote]
Does this require re-merging the kernel source code?
One other thing, I've already installed the 2.4.26-gentoo-r6 kernel and I am attempting to get the box fully functional. There seem to be significant changes to the 2.6 kernel. Is it a problem to upgrade or even run the two side by side?
Thanks. _________________ ASPushkin
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell |
|
Back to top |
|
|
zurd Apprentice
Joined: 17 Dec 2003 Posts: 228 Location: Canada, Montreal
|
Posted: Wed Jan 19, 2005 5:28 pm Post subject: 1 |
|
|
1) If you do make mrproper, you do not have to re-emerge the kernel.
2) Yes 2.6 has significant changes over 2.4, I higly recommend it.
3) You can compile a 2.4 and 2.6 kernel and boot with the one you like, most people on gentoo have this configuration I suppose but you can't boot both of them at the same time, of course. |
|
Back to top |
|
|
A.S. Pushkin Guru
Joined: 09 Nov 2002 Posts: 418 Location: dx/dt, dy/dt, dz/dt, t
|
Posted: Thu Jan 20, 2005 10:31 pm Post subject: Kernels |
|
|
Thanks for that info.
I was afraid I might sound like I was trying to run both kernels simultaneously.
My question was based on whta I had read - limited right now, on the devfs vs. udev, bith of which I do not quite understand at this point. I suppose this may be due to confusin based on the /dev directory.
Beyond that it is not clear regarding the modules used by the kernels, i.e. how to run two different kernels requiring two sets of modules.
The 2.6 kernel caught my attention due to drivers for the Aureal Vortex sound card. I have AlSA running under 2.4 and it's nicer to get my card running now than it has been under SuSE.
Confirmed Gentoo user!
Thanks again for the info.
There are parents, who give there kids games and parents, who give there kids Linux.
This is sort of like giving a person a fish and they eat for a day and those who teach how to fish and they will eat every day. _________________ ASPushkin
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell |
|
Back to top |
|
|
|