HostAP on PPC

Lewis Adam-CAL022 Adam.Lewis
Tue Apr 15 11:12:36 PDT 2003


Hi all,
 
I am attempting to cross-compile HostAP onto an embedded PPC405 platform.  I
modified the Makefile to point CC to the ppc_405-gcc compiler, and added
some headers/cflags at the top of the Makefile:
 
# Edit this path to match with your system (it should point to the root
# directory of the Linux kernel source)
KERNEL_PATH=/root/mclb_work_directory/my_kernel/kernel

# Systems using external pcmcia-cs package (instead of kernel-tree pcmcia
# modules):
#

# hostap_cs.o can be compiled either by copying driver/* into pcmcia-cs root
# directory and compiling pcmcia-cs package or by configuring PCMCIA_PATH
# and using this Makefile with 'make pccard; make install_pccard'.
# Leave this blank for kernel-tree PCMCIA compilations (CONFIG_PCMCIA):
PCMCIA_PATH=

HEADERS=-I/root/mclb_work_directory/my_kernel/kernel/arch/ppc \
 
-I/root/mclb_work_directory/my_kernel/kernel/arch/ppc/platforms \
 
-I/root/mclb_work_directory/my_filesystem/target/usr/lib/gcc-lib/powerpc-har
dhat-linux/3.2.1/include

CC=ppc_405-gcc
CFLAGS=-O2 -D__KERNEL__ -DMODULE -Wall -c $(EXTRA_CFLAGS)
CFLAGS+=$(HEADERS)
CFLAGS+=-DPPC_BIG_ENDIAN
CFLAGS+=-nostdinc
CFLAGS+=-Wstrict-prototypes

 

Now for the problem, when I insert my LinkSys WPC11 card, I get the
following:
 
Jan 1 00:00:52 10 kernel: cs: memory probe 0x20000000-0x37ffffff: excluding
0x20000000-0x217fffff 0x36800000-0x37ffffff
Jan 1 00:00:52 10 cardmgr[121]: socket 1: Linksys WPC11 Ver3 11Mbps WLAN
Card
Jan 1 00:00:53 10 cardmgr[121]: executing: 'modprobe hostap_cs'
Jan 1 00:00:53 10 kernel: hostap_crypt: registered algorithm 'NULL'
Jan 1 00:00:53 10 kernel: hostap_cs: hostap_cs.c 0.0.0 2002-10-12 (SSH
Communications Security Corp, Jouni Malinen)
Jan 1 00:00:53 10 kernel: hostap_cs: (c) Jouni Malinen <jkmaline at cc.hut.fi>
Jan 1 00:00:54 10 kernel: hostap_cs: setting Vcc=33 (constant)
Jan 1 00:00:54 10 kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Jan 1 00:00:54 10 kernel: prism2_config()
Jan 1 00:00:54 10 kernel: hostap_cs: setting Vcc=50 (from config)
Jan 1 00:00:54 10 kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Jan 1 00:00:54 10 kernel: IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
Jan 1 00:00:54 10 kernel: io->flags = 0x0046, io.base=0x0000, len=64
Jan 1 00:00:54 10 kernel: hostap_cs: index 0x01: Vcc 5.0, irq 8, io
0x0100-0x013f
Jan 1 00:00:54 10 kernel: Oops: kernel access of bad area, sig: 11
Jan 1 00:00:54 10 kernel: NIP: C920E5A8 XER: 00000000 LR: C920F390 SP:
C76CF6E0 REGS: c76cf620 TRAP: 0800 Not tainted
Jan 1 00:00:54 10 kernel: MSR: 00009030 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
Jan 1 00:00:54 10 kernel: DEAR: 0001001A, ESR: 00000000
Jan 1 00:00:54 10 kernel: TASK = c76ce000[121] 'cardmgr' Last syscall: 54 
Jan 1 00:00:54 10 kernel: last math 00000000 last altivec 00000000
Jan 1 00:00:54 10 kernel: GPR00: 00002564 C76CF6E0 C76CE000 0001000E
00001030 00000001 00000001 C014501B 
Jan 1 00:00:54 10 kernel: GPR08: 00000000 C9210000 00000000 C9211EBC
82008428 10021FAC 00000000 00000000 
Jan 1 00:00:54 10 kernel: GPR16: 00000000 00000000 1001A384 1001A384
00009032 076CFF30 00000000 C0002B34 
Jan 1 00:00:54 10 kernel: GPR24: 40000000 00000000 0001000E C76CF728
C7FC0200 C76CF938 C7FE2D60 CCCCCCCD 
Jan 1 00:00:54 10 kernel: Call backtrace: 
Jan 1 00:00:54 10 kernel: C00B9A74 C920F390 C920F734 C00B2184 C00B3740
C920EC74 C00AF178 
Jan 1 00:00:54 10 kernel: C00AFF18 C004663C C00028FC 7FFFF930 10003008
10004448 0FED2268 
Jan 1 00:00:54 10 kernel: 00000000 
 
 
It sounds from previous threads on this list that running HostAP on a PPC
should not be a problem, what am I doing wrong?
Thanks!
 
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20030415/b1d67883/attachment.htm 



More information about the Hostap mailing list