[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kernel for sun4m -> hme fails



I am trying to get my first kernel compiled on a sparc using deb-2.2.
I got kernel-package plus kernel-source-2.2.17 on my SparcStation 20,
/proc/cpuinfo says its a SuperSparc50; (and it should contain two, which
are found at boot with the default-kernel (dmesg), but not used - so I
wanted to include smp-support).

dmesg:
[...]
ARCH: SUN4M
TYPE: Sun4m SparcStation10/20
[...]
Found CPU 0 <node=ffd6f150,mid=8>
Found CPU 1 <node=ffd6f510,mid=10>
Found 2 CPU prom device tree node(s).

dmesg also reports the following network-cards:
sunhme.c:v1.10 27/Jan/99 David S. Miller (davem@caipfs.rutgers.edu)
eth0: HAPPY MEAL (SBUS) 10/100baseT Ethernet 08:00:20:77:5f:4e 
sunlance.c:v1.12 11/Mar/99 Miguel de Icaza (miguel@nuclecu.unam.mx)
eth1: LANCE 08:00:20:77:5f:4e 
eth1: using auto-carrier-detection.
eth2: LANCE 08:00:20:77:5f:4e 
eth3: LANCE 08:00:20:77:5f:4e 
eth1: Carrier Lost, trying TPE

But kernel-image-build fails with
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.2.17/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-D__SMP__ -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7   -c -o sunhme.o
sunhme.c
sunhme.c: In function `pci_happy_meal_interrupt':
sunhme.c:2341: `pci_dma_wsync' undeclared (first use in this function)
sunhme.c:2341: (Each undeclared identifier is reported only once
sunhme.c:2341: for each function it appears in.)
make[4]: *** [sunhme.o] Error 1
make[4]: Leaving directory `/usr/src/kernel-source-2.2.17/drivers/net'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.2.17/drivers/net'
make[2]: *** [_subdir_net] Error 2
make[2]: Leaving directory `/usr/src/kernel-source-2.2.17/drivers'
make[1]: *** [_dir_drivers] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.2.17'
make: *** [stamp-build] Error 2

I did a recursive grep, but all things I found containing pci_dma_wsync
were in sparc64-dirs:
arch/sparc64/kernel/psycho.c
arch/sparc64/kernel/sparc64_ksyms.c
drivers/net/sunhme.c
include/asm-sparc64/pbm.h
include/asm-sparc64/psycho.h

So - do I have to activate a special feature to get the happy_meal
running?

     Balu



Reply to: