Newsgroup: it.comp.os.linux.debian
Titolo: Da kernel 2.6.xx a 2.4.20

Ciao a tutti, mi chiamo Roberto, sto cercando di fare un "downgrade" del
kernel dal default di ubuntu 5.04 (derivata da debian, con kernel 2.6.10,
se non sbaglio) al vecchio kernel 2.4.20. 
Secondo voi č possibile? 
Per me č indispensabile perchč il mio modem adsl č un itex, e quei gran
signori hanno fornito il modulo del driver compilato per il kernel 2.4.20
e basta (driver non gpl  ), cosě io non riesco a fare l' insmod -f
itexmodule 
Ho spacchettato i sorgenti del 2.4.20 kernel in /usr/src , 
ho fatto il link simbolico.....ma poi non funzionava il make menuconfig. 
Dopo aver letto mb di documentazione sono riuscito a far funzionare il
"make xconfig" (che prima non andava....), e il "make dep" sembra
funzionare. 
Il problema ora č quando lancio "make bzImage"....ottengo questo errore: 
In file included from /usr/src/linux/include/asm/string.h:292, 
from /usr/src/linux/include/linux/string.h:21, 
from /usr/src/linux/include/linux/fs.h:23, 
from /usr/src/linux/include/linux/capability.h:17, 
from /usr/src/linux/include/linux/binfmts.h:5, 
from /usr/src/linux/include/linux/sched.h:9, 
from /usr/src/linux/include/linux/mm.h:4, 
from /usr/src/linux/include/linux/slab.h:14, 
from /usr/src/linux/include/linux/proc_fs.h:5, 
from init/main.c:15: 
/usr/src/linux/include/asm/system.h:148:9: missing terminating " character 
In file included from /usr/src/linux/include/asm/string.h:292, 
from /usr/src/linux/include/linux/string.h:21, 
from /usr/src/linux/include/linux/fs.h:23, 
from /usr/src/linux/include/linux/capability.h:17, 
from /usr/src/linux/include/linux/binfmts.h:5, 
from /usr/src/linux/include/linux/sched.h:9, 
from /usr/src/linux/include/linux/mm.h:4, 
from /usr/src/linux/include/linux/slab.h:14, 
from /usr/src/linux/include/linux/proc_fs.h:5, 
from init/main.c:15: 
/usr/src/linux/include/asm/system.h: In function `__set_64bit': 
/usr/src/linux/include/asm/system.h:149: error: syntax error before "movl" 
/usr/src/linux/include/asm/system.h:150: warning: implicit declaration of 
function `cmpxchg8b' 
/usr/src/linux/include/asm/system.h:150: error: syntax error before '%' 
token 
/usr/src/linux/include/asm/system.h:151:21: invalid suffix "b" on integer 
constant 
/usr/src/linux/include/asm/system.h:151: error: `jnz' undeclared (first
use 
in this function) 
/usr/src/linux/include/asm/system.h:151: error: (Each undeclared
identifier 
is reported only once 
/usr/src/linux/include/asm/system.h:151: error: for each function it
appears 
in.) 
/usr/src/linux/include/asm/system.h:151:23: missing terminating "
character 
In file included from /usr/src/linux/include/linux/string.h:21, 
from /usr/src/linux/include/linux/fs.h:23, 
from /usr/src/linux/include/linux/capability.h:17, 
from /usr/src/linux/include/linux/binfmts.h:5, 
from /usr/src/linux/include/linux/sched.h:9, 
from /usr/src/linux/include/linux/mm.h:4, 
from /usr/src/linux/include/linux/slab.h:14, 
from /usr/src/linux/include/linux/proc_fs.h:5, 
from init/main.c:15: 
/usr/src/linux/include/asm/string.h:552:17: missing terminating "
character 
In file included from /usr/src/linux/include/linux/string.h:21, 
from /usr/src/linux/include/linux/fs.h:23, 
from /usr/src/linux/include/linux/capability.h:17, 
from /usr/src/linux/include/linux/binfmts.h:5, 
from /usr/src/linux/include/linux/sched.h:9, 
from /usr/src/linux/include/linux/mm.h:4, 
from /usr/src/linux/include/linux/slab.h:14, 
from /usr/src/linux/include/linux/proc_fs.h:5, 
from init/main.c:15: 
/usr/src/linux/include/asm/string.h: In function `memscan': 
/usr/src/linux/include/asm/string.h:553: error: syntax error before "jnz" 
/usr/src/linux/include/asm/string.h:553:21: invalid suffix "f" on integer 
constant 
/usr/src/linux/include/asm/string.h:555:17: missing terminating "
character 
In file included from /usr/src/linux/include/net/checksum.h:33, 
from /usr/src/linux/include/linux/raid/md.h:34, 
from init/main.c:24: 
/usr/src/linux/include/asm/checksum.h:72:30: missing terminating "
character 
In file included from /usr/src/linux/include/net/checksum.h:33, 
from /usr/src/linux/include/linux/raid/md.h:34, 
from init/main.c:24: 
/usr/src/linux/include/asm/checksum.h: In function `ip_fast_csum': 
/usr/src/linux/include/asm/checksum.h:73: error: syntax error before
"movl" 
/usr/src/linux/include/asm/checksum.h:75:17: invalid suffix "f" on integer 
constant 
/usr/src/linux/include/asm/checksum.h:82:17: invalid suffix "b" on integer 
constant 
/usr/src/linux/include/asm/checksum.h:90:13: missing terminating "
character 
/usr/src/linux/include/asm/checksum.h:105:17: missing terminating " 
character 
/usr/src/linux/include/asm/checksum.h: In function `csum_fold': 
/usr/src/linux/include/asm/checksum.h:106: error: syntax error before
"addl" 
/usr/src/linux/include/asm/checksum.h:108:17: missing terminating " 
character 
/usr/src/linux/include/asm/checksum.h:121:13: missing terminating " 
character 
/usr/src/linux/include/asm/checksum.h: In function `csum_tcpudp_nofold': 
/usr/src/linux/include/asm/checksum.h:122: error: syntax error before
"addl" 
/usr/src/linux/include/asm/checksum.h:126:9: missing terminating "
character 
/usr/src/linux/include/asm/checksum.h:128: error: `__x' undeclared (first 
use in this function) 
/usr/src/linux/include/asm/checksum.h: At top level: 
/usr/src/linux/include/asm/checksum.h:128: error: syntax error before ')' 
token 
/usr/src/linux/include/asm/checksum.h:161:17: missing terminating " 
character 
/usr/src/linux/include/asm/checksum.h: In function `csum_ipv6_magic': 
/usr/src/linux/include/asm/checksum.h:162: error: syntax error before
"addl" 
/usr/src/linux/include/asm/checksum.h:173:17: missing terminating " 
character 
/usr/src/linux/include/asm/checksum.h:176: error: `__x' undeclared (first 
use in this function) 
/usr/src/linux/include/asm/checksum.h:176: warning: no return statement in 
function returning non-void 
/usr/src/linux/include/asm/checksum.h: At top level: 
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before ')' 
token 
/usr/src/linux/include/asm/checksum.h:176: error: syntax error before 
"__u32" 
make: *** [init/main.o] Error 1 
Secondo me potrebbe essere legato alle librerie di gcc, ma da solo non
riesco ad andare avanti e non so piů dove sbattere la testa! 
Grazie a tutti quelli che mi vorranno dare una mano a downgradare il
kernel o a far funzionare il malefico modem adsl!!! 
Roberto
-- 
questo articolo e` stato inviato via web dal servizio gratuito 
http://www.newsland.it/news
 segnala gli abusi ad 
ab...@newsland.it

 /usr/src/linux/include/asm/system.h:151:23: missing terminating "
Anche x me e' un problema di gcc. C'e' una certa differenza tra la 2.96 e
la 3.0+ .
Magari ti do' 1 consiglio (ma non 1 soluzione, xche' non ho mai provato):
Prova a farti un disco di boot con kernel 2.4 (magari puoi usare il cd di
debian passandogli certi parametri... qui non ricordo, guarda la faq del
cd stesso e 1 po' di doc in giro...)
Prova a vedere se riesci a compilare usando un live-cd con kernel 2.4
(come knoppix o mepis).
Magari, prima di tutto, controlla di non aver scelto opzioni che vanno in
conflitto o che sono x altre architetture (ma dubito sia questo...)
--------------
Un saluto da Mazinga.


minix.