Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel compilation problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Captin
n00b
n00b


Joined: 21 Jan 2004
Posts: 42
Location: Minneapolis, MN

PostPosted: Sat Oct 23, 2004 11:56 pm    Post subject: Kernel compilation problems [SOLVED] Reply with quote

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
View user's profile Send private message
transienteagle
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 190
Location: UK

PostPosted: Sun Oct 24, 2004 10:38 am    Post subject: Reply with quote

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
View user's profile Send private message
nightblade
Guru
Guru


Joined: 20 Jul 2004
Posts: 368
Location: back from SE Asia

PostPosted: Sun Oct 24, 2004 12:35 pm    Post subject: Reply with quote

Code:
make mrproper
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
View user's profile Send private message
zurd
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 228
Location: Canada, Montreal

PostPosted: Sun Oct 24, 2004 1:00 pm    Post subject: j Reply with quote

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 :wink:
Back to top
View user's profile Send private message
Captin
n00b
n00b


Joined: 21 Jan 2004
Posts: 42
Location: Minneapolis, MN

PostPosted: Sun Oct 24, 2004 8:47 pm    Post subject: Reply with quote

Thanks guys, I compiled the 2.6.9-r1 kernel and the router is up and running.

I appreciate the help.
Back to top
View user's profile Send private message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 418
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Wed Jan 19, 2005 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
zurd
Apprentice
Apprentice


Joined: 17 Dec 2003
Posts: 228
Location: Canada, Montreal

PostPosted: Wed Jan 19, 2005 5:28 pm    Post subject: 1 Reply with quote

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
View user's profile Send private message
A.S. Pushkin
Guru
Guru


Joined: 09 Nov 2002
Posts: 418
Location: dx/dt, dy/dt, dz/dt, t

PostPosted: Thu Jan 20, 2005 10:31 pm    Post subject: Kernels Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum