Compiling a kernel: no success yet
I must confess that I'm unable to compile any kernel for my new Alpha 500au.
It runs presently 2.0.35, as shipped with Debian.
$ gcc --version
egcs-2.91.60
The things I tried:
1) 2.2.0-pre7, retrieved from a mirror of ftp.kernel.org, compiled "by hand"
(make menuconfig; make; make). The kernel compiles, starts booting, displays
the SCSI controller (a Qlogic) and hangs. Nothing after "scsi: 1 host".
Here are the messages of 2.0.35 about that controller:
qlogicisp : new isp1020 revision ID (5)
qlogicisp : 1040B detected, no firmware reload
ppa: Version 1.42
ppa: Probing port 03bc
ppa: SPP port present
ppa: EPP not supported at this address
ppa: Probing port 0378
ppa: Probing port 0278
scsi0 : QLogic ISP1020 SCSI on PCI bus 2 device 4 irq 27 base 0x9000
scsi : 1 host.
2) 2.1.125, from kernel-source-2.1.125, compiled with make-kpkg:
gcc -D__KERNEL__ -I/usr/local/src/kernel/kernel-source-2.1.125/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8
-Wa,-m21164a -DBWIO_ENABLED -c -o dma.o dma.c
dma.c:35: parse error before `dma_spin_lock'
dma.c:35: warning: type defaults to `int' in declaration of `dma_spin_lock'
dma.c:35: `SPIN_LOCK_UNLOCKED' undeclared here (not in a function)
dma.c:35: warning: data definition has no type or storage class
make[3]: *** [dma.o] Error 1
make[3]: Leaving directory `/usr/local/src/kernel/kernel-source-2.1.125/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/local/src/kernel/kernel-source-2.1.125/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/usr/local/src/kernel/kernel-source-2.1.125'
make: *** [build] Error 2
3) 2.0.36, from kernel-source-2.0.36, compiled with make-kpkg, after Paul
Slootman's patches in arch/alpha/Makefile:
gcc -D__KERNEL__ -I/usr/local/src/kernel/kernel-source-2.0.36/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
-mno-fp-regs -Wa,-m21164a -DBWX_USABLE -DBWIO_ENABLED -c -o tty_io.o tty_io.c
selection.h: In function `scr_writew':
In file included from tty_io.c:77:
selection.h:113: `con_blitc' undeclared (first use in this function)
selection.h:113: (Each undeclared identifier is reported only once
selection.h:113: for each function it appears in.)
selection.h:114: `con_blitc' used prior to declaration
selection.h:114: warning: implicit declaration of function `con_blitc'
selection.h: In function `memsetw':
selection.h:114: `con_blitc' used prior to declaration
selection.h: In function `memcpyw':
selection.h:114: `con_blitc' used prior to declaration
make[4]: *** [tty_io.o] Error 1
make[4]: Leaving directory `/usr/local/src/kernel/kernel-source-2.0.36/drivers/
char'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/local/src/kernel/kernel-source-2.0.36/drivers/
char'
make[2]: *** [sub_dirs] Error 2
make[2]: Leaving directory `/usr/local/src/kernel/kernel-source-2.0.36/drivers'
make[1]: *** [linuxsubdirs] Error 2
make[1]: Leaving directory `/usr/local/src/kernel/kernel-source-2.0.36'
make: *** [build] Error 2
4) Linux 2.1.132, retrieved from a mirror of ftp.kernel.org, compiled by hand:
gcc -D__KERNEL__ -I/usr/local/src/kernel/linux-2.1.132/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs -ffixed-8
-Wa,-m21164a -DBWIO_ENABLED -DEXPORT_SYMTAB -c ksyms.c
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h: In function
`init_bh':
In file included from /usr/local/src/kernel/linux-2.1.132/include/linux/interru
pt.h:51,
from ksyms.c:21:
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h:30: incompatible
types in assignment
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h: In function
`disable_bh':
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h:119: wrong type
argument to increment
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h: In function
`enable_bh':
/usr/local/src/kernel/linux-2.1.132/include/asm/softirq.h:124: wrong type
argument to decrement
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/local/src/kernel/linux-2.1.132/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/local/src/kernel/linux-2.1.132/kernel'
make: *** [_dir_kernel] Error 2
Reply to: