Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Kernel] Far Convivere Il Kernel 2.4 con il 2.6
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Sun Jun 27, 2004 3:48 pm    Post subject: [Kernel] Far Convivere Il Kernel 2.4 con il 2.6 Reply with quote

E' possibile far convivere un kernel 2.4 con un 2.6
io ho un 2.4 basta emergiare e compilare il 2.6 per essere aposto ???
_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Sun Jun 27, 2004 3:52 pm    Post subject: Reply with quote

Sul mio posrtatile convivevano i due kernel. Basta che quando usi uno ricordati di cambiare il link /usr/src/linux. Questo perche', per esempio, se vuoi compilare gli alsa-driver sul tuo 2.4 il link dovra' puntare ad esso se no ti da errore.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
zUgLiO
l33t
l33t


Joined: 12 Aug 2003
Posts: 754
Location: Ferrara (Italy)

PostPosted: Sun Jun 27, 2004 3:56 pm    Post subject: Reply with quote

oppure basta fare uno scrippettino da mettere all'avvio che controlla con uname -r quale kernel stai usando e se ad esempio è il 2.4 cambia il link simbolico, altrimenti lo lascia com'è.. o viceversa.
_________________

voglio poi dire che il tempo mi avrà fatto abituare,

ma io non trovo nemmeno brutta la stiva buia di questa nave
Back to top
View user's profile Send private message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Sun Jun 27, 2004 4:02 pm    Post subject: Reply with quote

ho gia' iniziato a emergiare...

Come faccio a mettere uno script all'avvio ???
_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht
Back to top
View user's profile Send private message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Sun Jun 27, 2004 4:21 pm    Post subject: Reply with quote

Io ho fatto questo scrippettino...
Un po' banale ma dovrebbe funzionare...

Qualcuno sa' come si confrontano n caratteri cosi' confronto sol 2.4...
Grazie.
Code:

#!/bin/bash

kernel_version=$(uname -r)

if [ "$kernel_version" = "2.4.26-gentoo-r3" ];
then
   echo "Stai usando un 2.4"
   rm /usr/src/linux
   ln -s /usr/src/linux-2.4.26-gentoo-r3 /usr/src/linux
else
   echo "Stai usando un 2.6"
   rm /usr/src/linux
   ln -s /usr/src/linux-2.6.7-gentoo-r7 /usr/src/linux
fi

_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht
Back to top
View user's profile Send private message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Sun Jun 27, 2004 5:21 pm    Post subject: Reply with quote

Questo e' Migliore...
Code:

#!/bin/bash

kernel_version=$(uname -r)
kernel_path="/usr/src/"
kernel_name=$kernel_path"linux-"$kernel_version

echo $kernel_name
rm $kernel_name
ln -s $kernel_name /usr/src/linux


Se volete la serie del Kernel (2.4, 2.6)
Code:

kernel_serie=$(uname -r |cut -d '.' -f-2)
echo $kernel_serie

_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht
Back to top
View user's profile Send private message
kNemo
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2004
Posts: 116

PostPosted: Wed Jun 30, 2004 3:50 pm    Post subject: Reply with quote

Ho compilato il Kernel 2.6.7...
Il Sistema ha cominciato ad avere dei problemi..
Il 2.4.26 non mi caricava piu' dei moduli....

In Conclusione Ho Reinstallato Tutto ed e' 2 giorni che compilo...
Ho messo xfree-4.3.0-r6 e il rendering fa' schifo...

(Ho deciso, con dispiacere, di non passare al 2.6 fino che non diventera' gentoo-sources)
_________________
Powered by:
Gentoo Base System version 1.4.16 (Kernel 2.4.26-gentoo-r9)
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9)

ScreenShot
http://gendevel.altervista.org/home.php?s=oth&p=screensht
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31470
Location: here

PostPosted: Wed Jun 30, 2004 3:58 pm    Post subject: Reply with quote

kNemo wrote:
In Conclusione Ho Reinstallato Tutto ed e' 2 giorni che compilo...

Mi sembra un po' drastica come soluzione
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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