Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is bzImage enough? Do I need the sources? [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
simvin76
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2005
Posts: 96

PostPosted: Thu Jun 07, 2007 9:10 pm    Post subject: Is bzImage enough? Do I need the sources? [solved] Reply with quote

Hello

Is it necessary to emerge a gentoo-source to use it?
Will everything work if I use a bzImage from a different Gentoo installation?

I have a 2.6.14 kernel but I want to use a 2.6.20 kernel compiled on another installation.
The hardware for both installations are identical.

Best regards
/Simon


Last edited by simvin76 on Sat Jun 16, 2007 8:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Thu Jun 07, 2007 9:39 pm    Post subject: Reply with quote

If there are no modules, or if you copy them along as well (and do a depmod, iirc), and if you don't plan to compile anything on the machine with the copied kernel (since some applications require some files in the kernel source to compile against), then yes, it'll work.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Thu Jun 07, 2007 10:12 pm    Post subject: Reply with quote

Errtu wrote:
If there are no modules, or if you copy them along as well (and do a depmod, iirc), and if you don't plan to compile anything on the machine with the copied kernel (since some applications require some files in the kernel source to compile against), then yes, it'll work.


Most applications would compile just ok if you install linux-headers, which will be installed anyway as part of the base system. Only a few drivers need the real kernel sources. But note that amongst these drivers, are the nvidia and ati ones, and also some wireless stuff, qemu (and probably other virtualizers) and so on. Those will not compile if there are no kernel sources installed and configured in your /usr/src/linux.
Back to top
View user's profile Send private message
simvin76
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2005
Posts: 96

PostPosted: Sat Jun 16, 2007 8:01 pm    Post subject: Reply with quote

Hello

Thank you for the answers.
The computer booted, but it didn't work. :(

The old kernel only supported eth0, and the new supported both eth0 and eth1. The problem was that it called the network card connected to the internet eth1, and because of that I couldn't connect to the computer (which is 1000 km away).

For once I did some thinking and added
Code:
shutdown -r +5
to local.start and used savedefault fallback in grub before rebooting with the new kernel. Worked like a charm, the computer rebooted 5 minutes after it had booted with the new kernel and I could log on to my rescue dist instead.


I know that the eth0 <--> eth1 thing can be fixed with udev.rules.

Again, thanks for the answers.
/Simon
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