View previous topic :: View next topic |
Author |
Message |
kNemo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173876703740e9a53c39535.jpg)
Joined: 03 Jun 2004 Posts: 116
|
Posted: Sun Jun 27, 2004 3:48 pm Post subject: [Kernel] Far Convivere Il Kernel 2.4 con il 2.6 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31470 Location: here
|
Posted: Sun Jun 27, 2004 3:52 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zUgLiO l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/985447670455dd0b1ab705.gif)
Joined: 12 Aug 2003 Posts: 754 Location: Ferrara (Italy)
|
Posted: Sun Jun 27, 2004 3:56 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kNemo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173876703740e9a53c39535.jpg)
Joined: 03 Jun 2004 Posts: 116
|
Posted: Sun Jun 27, 2004 4:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kNemo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173876703740e9a53c39535.jpg)
Joined: 03 Jun 2004 Posts: 116
|
Posted: Sun Jun 27, 2004 4:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kNemo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173876703740e9a53c39535.jpg)
Joined: 03 Jun 2004 Posts: 116
|
Posted: Sun Jun 27, 2004 5:21 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kNemo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173876703740e9a53c39535.jpg)
Joined: 03 Jun 2004 Posts: 116
|
Posted: Wed Jun 30, 2004 3:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31470 Location: here
|
Posted: Wed Jun 30, 2004 3:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|