<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4915.500" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=977495917-15042003><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=977495917-15042003>
<P><FONT size=2># Edit this path to match with your system (it should point to
the root<BR></FONT><FONT size=2># directory of the Linux kernel
source)<BR></FONT><FONT
size=2>KERNEL_PATH=/root/mclb_work_directory/my_kernel/kernel</FONT></P>
<P><FONT size=2># Systems using external pcmcia-cs package (instead of
kernel-tree pcmcia<BR></FONT><FONT size=2># modules):<BR></FONT><FONT
size=2>#</FONT></P>
<P><FONT size=2># hostap_cs.o can be compiled either by copying driver/* into
pcmcia-cs root<BR></FONT><FONT size=2># directory and compiling pcmcia-cs
package or by configuring PCMCIA_PATH<BR></FONT><FONT size=2># and using this
Makefile with 'make pccard; make install_pccard'.<BR></FONT><FONT size=2># Leave
this blank for kernel-tree PCMCIA compilations (CONFIG_PCMCIA):<BR></FONT><FONT
size=2>PCMCIA_PATH=</FONT></P>
<P><FONT size=2>HEADERS=-I/root/mclb_work_directory/my_kernel/kernel/arch/ppc
\<BR><SPAN
class=977495917-15042003>
</SPAN>-I/root/mclb_work_directory/my_kernel/kernel/arch/ppc/platforms
\<BR><SPAN
class=977495917-15042003>
</SPAN>-I/root/mclb_work_directory/my_filesystem/target/usr/lib/gcc-lib/powerpc-hardhat-linux/3.2.1/include</FONT></P>
<P><FONT size=2>CC=ppc_405-gcc<BR></FONT><FONT size=2>CFLAGS=-O2 -D__KERNEL__
-DMODULE -Wall -c $(EXTRA_CFLAGS)<BR></FONT><FONT
size=2>CFLAGS+=$(HEADERS)<BR></FONT><FONT
size=2>CFLAGS+=-DPPC_BIG_ENDIAN<BR></FONT><FONT
size=2>CFLAGS+=-nostdinc<BR></FONT><FONT
size=2>CFLAGS+=-Wstrict-prototypes</FONT></P>
<P><FONT size=2></FONT> </P></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial size=2>Now for the problem,
when I insert my LinkSys WPC11 card, I get the following:</FONT></SPAN></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2></FONT></SPAN> </DIV><SPAN class=977495917-15042003>
<DIV><FONT size=2>Jan 1 00:00:52 10 kernel: cs: memory probe
0x20000000-0x37ffffff: excluding 0x20000000-0x217fffff
0x36800000-0x37ffffff</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:52 10 cardmgr[121]: socket 1: Linksys WPC11 Ver3
11Mbps WLAN Card</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:53 10 cardmgr[121]: executing: 'modprobe
hostap_cs'</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:53 10 kernel: hostap_crypt: registered algorithm
'NULL'</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:53 10 kernel: hostap_cs: hostap_cs.c 0.0.0
2002-10-12 (SSH Communications Security Corp, Jouni Malinen)</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:53 10 kernel: hostap_cs: (c) Jouni Malinen
<jkmaline@cc.hut.fi></FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: hostap_cs: setting Vcc=33
(constant)</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: hostap_cs:
CS_EVENT_CARD_INSERTION</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: prism2_config()</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: hostap_cs: setting Vcc=50 (from
config)</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: Checking CFTABLE_ENTRY 0x01 (default
0x01)</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: IO window settings:
cfg->io.nwin=1 dflt.io.nwin=1</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: io->flags = 0x0046,
io.base=0x0000, len=64</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: hostap_cs: index 0x01: Vcc 5.0, irq
8, io 0x0100-0x013f</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: Oops: kernel access of bad area,
sig: 11</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: NIP: C920E5A8 XER: 00000000 LR:
C920F390 SP: C76CF6E0 REGS: c76cf620 TRAP: 0800 Not tainted</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: MSR: 00009030 EE: 1 PR: 0 FP: 0 ME:
1 IR/DR: 11</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: DEAR: 0001001A, ESR:
00000000</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: TASK = c76ce000[121] 'cardmgr' Last
syscall: 54</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: last math 00000000 last altivec
00000000</FONT></DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: GPR00: 00002564 C76CF6E0 C76CE000
0001000E 00001030 00000001 00000001 C014501B</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: GPR08: 00000000 C9210000 00000000
C9211EBC 82008428 10021FAC 00000000 00000000</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: GPR16: 00000000 00000000 1001A384
1001A384 00009032 076CFF30 00000000 C0002B34</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: GPR24: 40000000 00000000 0001000E
C76CF728 C7FC0200 C76CF938 C7FE2D60 CCCCCCCD</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: Call backtrace:</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: C00B9A74 C920F390 C920F734 C00B2184
C00B3740 C920EC74 C00AF178</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: C00AFF18 C004663C C00028FC 7FFFF930
10003008 10004448 0FED2268</FONT> </DIV>
<DIV><FONT size=2>Jan 1 00:00:54 10 kernel: 00000000</FONT> </DIV></SPAN>
<DIV></SPAN> </DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial size=2>It sounds from
previous threads on this list that running HostAP on a PPC should not be a
problem, what am I doing wrong?</FONT></SPAN></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=977495917-15042003><FONT face=Arial
size=2>Adam</FONT></SPAN></DIV></BODY></HTML>