Ticket #684 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

kernel oops under xscale BE 2.4.x rev > madwifi-ng-r-1451

Reported by: avila@nomotech.com Assigned to:
Priority: major Milestone: version 0.9.3
Component: madwifi: driver Version: v0.9.0
Keywords: xscale kernel oops Cc:
Patch is attached: 1 Pending:

Description

versions <= madwifi-ng-r1447, drivers compilated as modules for kernel 2.4.x for xscale BE (ixp425) are running

After vertion r1451 until version r1637, i obtain a kernel oops

here is logs with madwifi 0.9.0 stable

ath_pci: 0.9.4.5 (0.9.0)
Unable to handle kernel paging request at virtual address 4bff4004
pgd = c3e18000
[4bff4004] *pgd=00000000, *pmd = 00000000
Internal error: Oops: f5
CPU: 0
pc : [<c497822c>]    lr : [<c498b404>]    Tainted: P 
sp : c3b37de8  ip : c3b37e08  fp : c3b37e04
r10: c3ab4160  r9 : 00000013  r8 : c3ab4000
r7 : c3b37e74  r6 : 00000001  r5 : c3910000  r4 : c3910000
r3 : 4bff0000  r2 : 00000001  r1 : 00004004  r0 : c3910000
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 39FF  Table: 03E18000  DAC: 00000015
Process insmod (pid: 70, stack limit = 0xc3b36368)
Stack: (0xc3b37de8 to 0xc3b38000)
7de0:                   00000013 00000000 c3910000 00000001 c3b37e20 c3b37e08 
7e00: c498b5a0 c498b3f0 c3ab58e4 c3910000 c3910000 c3b37e58 c3b37e24 c49880cc 
7e20: c498b574 c3b37e74 20000013 c00470cc c3ab58e4 00000000 c3ab4160 c3ab4160 
7e40: c3ab4000 00000013 c3ab4160 c3b37e6c c3b37e5c c49786b8 c4988098 c3b37e74 
7e60: 00000007 c3b37e70 c497807c c49785f0 c3b37e74 c49bb8f4 c49ac1a0 c3b37e90 
7e80: c3b37ea2 c03f7000 c03f7000 00000001 0000001c c3d4aec0 c49ae208 c3ab4000 
7ea0: c03f7000 00000013 c3ab4160 4bff0000 c49be258 4bff0000 00000007 c49bb5f8 
7ec0: c3ab4000 00000000 c3b37e08 c49be258 c49be420 c03f7000 00000000 c3d4ae60 
7ee0: 00000007 c49c0000 c010bfe8 c03f7000 c49be420 c01defd0 00000000 c010c054 
7f00: ffffffea c49ac000 c01d7400 000b69c8 c49bb870 c00545ec c391a000 c391a000 
7f20: c391c000 00000060 c49a9000 c49ac060 000129bc 00000000 00000000 00000000 
7f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
7f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
7f80: 00000000 0000000e 000b69c8 c49ac000 00000080 c0046684 c3b36000 0009fa18 
7fa0: 00000000 c00464c0 0000000e c004643c 00085014 000b69c8 00000000 c49bb784 
7fc0: 0000000e 000b69c8 c49ac000 000870c0 c49be44c c49bc1a8 0009fa18 c49be510 
7fe0: 4008eb58 bfffd85c 0002c05c 4008eb64 20000010 00085014 23313135 30313232 
Backtrace: 
Function entered at [<c498b3e4>] from [<c498b5a0>]
 r6 = 00000001  r5 = C3910000  r4 = 00000000 
Function entered at [<c498b568>] from [<c49880cc>]
 r6 = C3910000  r5 = C3910000  r4 = C3AB58E4 
Function entered at [<c498808c>] from [<c49786b8>]
Function entered at [<c49785e4>] from [<c497807c>]
Backtrace aborted due to bad frame pointer <00000007>
Code: 25903014 27930001 2a000009 e5903014 (e7933001) 
Segmentation fault

And here is kernel logs with r1637

ath_pci: 0.9.4.5 (svn r1637)
Unable to handle kernel paging request at virtual address 4bff4004
pgd = c3bb4000
[4bff4004] *pgd=00000000, *pmd = 00000000
Internal error: Oops: f5
CPU: 0
pc : [<c497822c>]    lr : [<c498b644>]    Tainted: P 
sp : c3b21de8  ip : c3b21e08  fp : c3b21e04
r10: c3ab2160  r9 : 00000013  r8 : c3ab2000
r7 : c3b21e74  r6 : 00000001  r5 : c38b0000  r4 : c38b0000
r3 : 4bff0000  r2 : 00000001  r1 : 00004004  r0 : c38b0000
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 39FF  Table: 03BB4000  DAC: 00000015
Process insmod (pid: 74, stack limit = 0xc3b20368)
Stack: (0xc3b21de8 to 0xc3b22000)
1de0:                   00000013 00000000 c38b0000 00000001 c3b21e20 c3b21e08 
1e00: c498b7e0 c498b630 c3ab38e4 c38b0000 c38b0000 c3b21e58 c3b21e24 c498835c 
1e20: c498b7b4 c3b21e74 c01e5b6c c3d4a560 c3ab38e4 00000000 c3ab2160 c3ab2160 
1e40: c3ab2000 00000013 c3ab2160 c3b21e6c c3b21e5c c49786b8 c4988328 c3b21e74 
1e60: 00000007 c3b21e70 c497807c c49785f0 c3b21e74 c49bc8e4 c49ad1a0 c3b21e90 
1e80: c49bf250 4bff0000 00000007 00000001 0000001c c398f300 c49af208 c3ab2000 
1ea0: c03f7000 00000013 c3ab2160 4bff0000 c49bf250 4bff0000 00000007 c49bc5f0 
1ec0: c3ab2000 00000000 c3b21e08 c49bf250 c49bf418 c03f7000 00000000 c398f2a0 
1ee0: 00000007 c49c1000 c010bfe8 c03f7000 c49bf418 c01defd0 00000000 c010c054 
1f00: ffffffea c49ad000 c01d7400 000b69b8 c49bc868 c00545ec c38b7000 c38b7000 
1f20: c38b9000 00000060 c49aa000 c49ad060 000129b4 00000000 00000000 00000000 
1f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
1f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
1f80: 00000000 0000000e 000b69b8 c49ad000 00000080 c0046684 c3b20000 0009fa08 
1fa0: 00000000 c00464c0 0000000e c004643c 00085014 000b69b8 00000000 c49bc77c 
1fc0: 0000000e 000b69b8 c49ad000 000870c0 c49bf444 c49bd198 0009fa08 c49bf508 
1fe0: 4008eb58 bfffd85c 0002c05c 4008eb64 20000010 00085014 00000000 00000000 
Backtrace: 
Function entered at [<c498b624>] from [<c498b7e0>]
 r6 = 00000001  r5 = C38B0000  r4 = 00000000 
Function entered at [<c498b7a8>] from [<c498835c>]
 r6 = C38B0000  r5 = C38B0000  r4 = C3AB38E4 
Function entered at [<c498831c>] from [<c49786b8>]
Function entered at [<c49785e4>] from [<c497807c>]
Backtrace aborted due to bad frame pointer <00000007>
Code: 25903014 27930001 2a000009 e5903014 (e7933001) 
Segmentation fault

Thanks, Phil

Attachments

patch-ah_osdep.txt (1.4 kB) - added by taku_k@pb3.so-net.ne.jp on 08/28/06 06:42:31.
patch for ah_osdep.h
ixp425-ah_osdep.pach (1.6 kB) - added by taku_k@pb3.so-net.ne.jp on 08/31/06 10:41:04.
signed-off
madwifi.pci-register.diff (2.5 kB) - added by mentor on 09/15/06 04:13:35.

Change History

06/13/06 06:43:28 changed by mrenzmann

  • version set to v0.9.0.
  • milestone deleted.

Thanks for the report. Please check DevDocs/KernelOops to learn about how to "decode" the kernel oops. The opaque pointers that are contained in the oops you've pasted above are of no help, and decoding them to something more useful is required in order to be able to find the cause of the problem you're facing.

07/13/06 08:13:04 changed by avila@nomotech.com

I/O pci mapping error must change base addr under kernel file arm-asm/io.h

07/19/06 15:32:59 changed by guerin@6wind.com

same with 0.9.1 release: crash happens inside _ath_hal_attach().

07/21/06 21:06:21 changed by ediment@veyu.com

Kernel 2.4.x, Rel 0.9.1 crash happens inside ath_hal_attach() as described above. r1447 (old hal) works Ok. See ticket #617. Does anybody have a patch?

08/28/06 06:42:31 changed by taku_k@pb3.so-net.ne.jp

  • attachment patch-ah_osdep.txt added.

patch for ah_osdep.h

08/28/06 06:51:00 changed by taku_k@pb3.so-net.ne.jp

Hello,

I think this is IXP425 specific. I did attachment as patch-ah_osdep.txt. I confirmed it by kernel2.4. I believe that the patch will be useful not only kernel2.4 but also kenel2.6.

08/30/06 23:51:28 changed by ediment@veyu.com

That worked for me. Taku, thank you!

08/31/06 09:46:05 changed by mrenzmann

  • patch_attached set to 1.

The patch would need a review by one of our devs (I think of Pavel), but it seems to be ok. However, in order to be able to commit it to the repository it needs to be signed off. Taku, can you please do that?

08/31/06 10:41:04 changed by taku_k@pb3.so-net.ne.jp

  • attachment ixp425-ah_osdep.pach added.

signed-off

08/31/06 10:57:36 changed by taku_k@pb3.so-net.ne.jp

Could you please check this signed-off ? Please let me know if I have any mis-operation

09/10/06 15:13:19 changed by demiurg@metalinkbb.com

I'm having the same problem on the same configuration and the patch does not seem to help

09/10/06 16:43:54 changed by anonymous

sorry, false alarm

09/15/06 04:13:35 changed by mentor

  • attachment madwifi.pci-register.diff added.

09/15/06 04:15:39 changed by mentor

Here is what I think we should be doing. {read,write}l have been ported to all architectures by the Linux kernel architecture proters anyway; no point in us reproducing the effort.

$(linux-source)/Documentation/IO-mapping.tx

09/15/06 04:33:08 changed by mrenzmann

  • milestone set to version 0.9.3.

That - and the things you told me on IRC (basically: available in all kernel versions we support, no known side effects) - makes sense, and the proposed patch (madwifi.pci-register.diff) looks good. Feel free to commit at will.

09/16/06 16:41:36 changed by mentor

Commited r1715, r1716.

avila: Can you check this fixes your problem?

09/19/06 15:11:58 changed by avila@nomotech.com

Dear Mentor,

Patch apply correctly,

i recompile:

make clean KERNELPATH=/usr/src/arm/linux-2.4.31

make ARCH=arm CROSS_COMPILE=arm-linux- KERNELPATH=/usr/src/arm/linux-2.4.31

and i obtain: ...

arm-linux-gcc -mbig-endian -D__KERNEL__ -I/usr/src/arm/linux-2.4.31/include -Wall -Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale -mtune=xscale -mshort-load-bytes -msoft-float -Uarm -DMODULE  -include ./../include/compat.h -I./../include -I./../hal -I. -I./../hal/linux -I./../net80211 -I./.. -DATH_PCI -Werror -DAH_BYTE_ORDER=AH_BIG_ENDIAN -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32 -mtune=xscale -msoft-float -mfp=2 -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1 -DOPT_AH_H=\"./../hal/public/xscale-be-elf.opt_ah.h\" -nostdinc -iwithprefix include -DKBUILD_BASENAME=ah_osdep  -DEXPORT_SYMTAB -o ah_osdep.o -c ah_osdep.c

In file included from ah_osdep.c:2:
../hal/linux/ah_osdep.c: In function `ath_hal_reg_write':
../hal/linux/ah_osdep.c:330: warning: passing arg 2 of `__writel' makes integer from pointer without a cast
In file included from ah_osdep.c:2:
../hal/linux/ah_osdep.c: In function `ath_hal_reg_read':
../hal/linux/ah_osdep.c:339: warning: passing arg 1 of `__readl' makes integer from pointer without a cast
../hal/linux/ah_osdep.c:339: warning: passing arg 1 of `__readl' makes integer from pointer without a cast
make[3]: *** [ah_osdep.o] Error 1

Thank you

09/23/06 03:55:37 changed by mentor

Please try again with latest subversion. There were a few issues with licensing, which have been sorted. There was also some issue with iomem types, but that is fixed now too (I hope).

11/06/06 19:41:26 changed by d.baker@mchsi.com

Using madwifi r1791 and target IXP425 kernel 2.4.31-uc0-adi0, I get the similar kernel oops shown below.

# insmod ath_pci
Using /lib/modules/2.4.31-uc0-adi0/kernel/drivers/net/ath_pci.o
ath_pci: 0.9.4.5 (svn r)
Unable to handle kernel paging request at virtual address 4bff8004
pgd = c3374000
[4bff8004] *pgd=00000000, *pmd = 00000000
Internal error: Oops: f5
CPU: 0
pc : [<c5cd4224>]    lr : [<c5ce792c>]    Not tainted
sp : c3373de8  ip : 00000000  fp : c3373e08
r10: c0334160  r9 : 0000001b  r8 : c0334000
r7 : c3373e90  r6 : 00004004  r5 : 00000023  r4 : c0338000
r3 : 4bff0000  r2 : ff00c020  r1 : 00008004  r0 : c0338000
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 39FF  Table: 03374000  DAC: 00000015
Process insmod (pid: 37, stack limit = 0xc3372368)
Stack: (0xc3373de8 to 0xc3374000)
3de0:                   00000014 c5ce792c 00000000 c0338000 00000001 c3373e24
3e00: c3373e0c c5ce7a48 c5ce7898 c03358e8 c0338000 c0338000 c3373e5c c3373e28
3e20: c5ce448c c5ce7a1c c3373e90 c01a820c c0356480 c03358e8 00000000 c0334160
3e40: c0334160 c0334000 0000001b c0334160 c3373e70 c3373e60 c5cd46dc c5ce4458
3e60: c3373e90 00000007 c3373e74 c5cd407c c5cd4614 c3373e90 c5d341a4 c3373e90
3e80: c5d46c70 4bff0000 00000007 00000001 c0d6a9a0 00000015 c5d36308 c0334000
3ea0: c02d0000 0000001b c0334160 4bff0000 c5d46c70 4bff0000 00000007 c5d43e80
3ec0: c0334000 00000000 c3373e08 c5d46d04 c5d46c70 c02d0000 00000000 c0d6aa60
3ee0: c5d49000 00000007 c00ee8ac c02d0000 c5d46d04 c01a2b54 00000000 c00ee918
3f00: ffffffea c5d34000 c019d3bc 0007d640 c5d440f4 c00536a8 c0d8f000 c0d8f000
3f20: c0d91000 00000060 c5d32000 c5d34060 0001329c 00000000 00000000 00000000
3f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
3f80: 00000000 0000000d 0007d640 c5d34000 00000080 c0045704 c3372000 0004d918
3fa0: 00000000 c0045540 0000000d c00453a8 00049b00 0007d640 00000000 c5d44008
3fc0: 0000000d 0007d640 c5d34000 c5d46d30 00049cd0 c5d44a20 0004d918 c5d46df0
3fe0: 4005bc88 bfffdb5c 00025414 4005bc94 20000010 00049b00 00000000 00000000
Backtrace:
Function entered at [<c5ce788c>] from [<c5ce7a48>]
 r6 = 00000001  r5 = C0338000  r4 = 00000000
Function entered at [<c5ce7a10>] from [<c5ce448c>]
 r6 = C0338000  r5 = C0338000  r4 = C03358E8
Function entered at [<c5ce444c>] from [<c5cd46dc>]
Function entered at [<c5cd4608>] from [<c5cd407c>]
Backtrace aborted due to bad frame pointer <00000007>
Code: e24dd004 e2413901 e3530a01 25903014 (27930001)
Segmentation fault

# cat /proc/ksyms
...
c5cd4210 ath_hal_reg_read       [ath_hal]
c5cd4294 ath_hal_getuptime      [ath_hal]
...

Since I don't have ksymoops running for my target yet, I just show the results of cat /proc/ksyms for addresses near the value of pc shown in the oops above.

Dennis

11/07/06 07:03:42 changed by mrenzmann

Even if you don't have ksymoops on the target, you could gather the relevant information and feed that into ksymoops on another machine. Refer to ksymoops(8) for details, then please provide a fully decoded oops dump. DevDocs/KernelOops might also be of help.

12/08/06 15:45:59 changed by mrenzmann

  • status changed from new to closed.
  • resolution set to fixed.

Originally reported issue seems to have been fixed by r1716, r1726 and r1729. It's unsure if the oops that has been reported by d.baker is actually related to this ticket (since the oops is not yet provided decoded).

I close this ticket as "fixed". If the originally reported issue still shows up, feel free to reopen this ticket.

@d.baker: In case you can provide a decoded oops dump, please open a new ticket for your issue. Thanks.

01/06/07 04:03:05 changed by jingmobile@yahoo.com

I get an kernel oops similar as d.baker@mchsi.com has. The build is the latest(r1885) I am running uclinux 2.4.31-uc0 @IXP425 BE

# insmod /lib/modules/2.4.31-uc0/net/ath_hal.o Using /lib/modules/2.4.31-uc0/net/ath_hal.o ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOP S_FUNC) # insmod /lib/modules/2.4.31-uc0/net/wlan.o Using /lib/modules/2.4.31-uc0/net/wlan.o wlan: 0.8.4.2 (svn r1885) # echo 8 > /proc/sys/kernel/printk # cat /proc/oops cat: /proc/oops: No such file or directory # insmod /lib/modules/2.4.31-uc0/net/ath_pci.o Using /lib/modules/2.4.31-uc0/net/ath_pci.o # insmod /lib/modules/2.4.31-uc0/net/ath_rate_sample.o Using /lib/modules/2.4.31-uc0/net/ath_rate_sample.o ath_rate_sample: 1.2 (svn r1885) # insmod /lib/modules/2.4.31-uc0/net/ath_pci.o Using /lib/modules/2.4.31-uc0/net/ath_pci.o ath_pci: 0.9.4.5 (svn r1885) Unable to handle kernel paging request at virtual address 4bff8004 pgd = c0b94000 [4bff8004] *pgd=00000000, *pmd = 00000000 Internal error: Oops: f5 CPU: 0 pc : [<c590c230>] lr : [<00008004>] Not tainted sp : c0b99dc4 ip : 00000000 fp : c0b99de8 r10: c0c58000 r9 : 4bff0000 r8 : c0c59794 r7 : c0b99e8c r6 : 00004004 r5 : 00000023 r4 : c0340000 r3 : 4bff0000 r2 : ff00c020 r1 : 00008004 r0 : c0340000 Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment user Control: 39FF Table: 00B94000 DAC: 00000015 Process insmod (pid: 33, stack limit = 0xc0b98368) Stack: (0xc0b99dc4 to 0xc0b9a000) 9dc0: 00000014 c0340000 c591f91c 00000000 c0340000 00000001 c0b99e04 9de0: c0b99dec c591fa38 c591f888 c0c598ec c0340000 c0340000 c0b99e3c c0b99e08 9e00: c591c47c c591fa0c c0b99e8c 00000001 c00cd3fc c0c598ec 00000013 00000000 9e20: 00000013 c0c59794 4bff0000 c0c58000 c0b99e50 c0b99e40 c590c6cc c591c448 9e40: c0b99e8c c0c58160 c0b99e54 c590c07c c590c604 c0b99e8c c596819c c0b99e8c 9e60: 01c20001 c0b99e84 0000002f 00000001 c004e41c c004e41c 02900346 c0b99e9e 9e80: c02f7000 00000001 00000000 0000001c c03486a0 c596a308 c0c58000 c0c58160 9ea0: c02f7000 00000013 4bff0000 4bff0000 c597d000 c597aa74 c5977ce0 c0c58000 9ec0: 00000000 00000008 c597aa74 c597ac3c c02f7000 00000000 c03486e0 00000007 9ee0: c597d000 00000007 c00d96f0 c02f7000 c597ac3c c01a48f4 00000000 c00d975c 9f00: ffffffea c5968000 c019f3f8 0007e2f0 c5978014 c0054290 c0a1d000 c0a1d000 9f20: c0a1f000 00000060 c5964000 c5968060 000131dc 00000000 00000000 00000000 9f40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 9f60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 9f80: 00000000 00000050 0004f868 0007e2f0 00000080 c0046684 c0b98000 000131dc 9fa0: 00000000 c00464c0 0004f868 0007e2f0 00900080 0004f66c 0007e2f0 00000000 9fc0: 00000050 0004f868 0007e2f0 c5968000 0004f66c 00000002 000131dc 00047d74 9fe0: bfffdbc8 bfffdbbc 00034f6c 40154010 60000010 00900080 315f6164 645f7363 Backtrace: Function entered at [<c591f87c>] from [<c591fa38>]

r6 = 00000001 r5 = C0340000 r4 = 00000000

Function entered at [<c591fa00>] from [<c591c47c>]

r6 = C0340000 r5 = C0340000 r4 = C0C598EC

Function entered at [<c591c43c>] from [<c590c6cc>] Function entered at [<c590c5f8>] from [<c590c07c>] Backtrace aborted due to bad frame pointer <c0c58160> Code: e3530a01 25903014 e24dd004 e1a0e001 (27930001)

APP: ath_pci = 0xc5968060 init=0xc5977ff0 APP: ath_rate_sample = 0xc5964060 init=0xc5965d08 APP: wlan = 0xc593e060 init=0xc595a3b8 APP: ath_hal = 0xc590c060 init=0xc590c388 APP: ixp400 = 0xc587f060 init=0xc587f060 APP: = 0xc019f458 init=0x00000000

Segmentation fault

ksysmoops shows this:

wcs:/home/jwang/work/snapgear-3.3.0/romfs # ksymoops -k /tmp/ksymoops -l /proc/ modules -o lib/modules/2.4.31-uc0/ -m ../linux-2.4.x/System.map ...

EIP; c590c230 <[ath_hal]ath_hal_reg_read+18/84> <=====

sp; c0b99dc4 <_end+9c3dfc/56a9098>

>>fp; c0b99de8 <_end+9c3e20/56a9098>

i>>r10; c0c58000 <_end+a82038/56a9098> n>>r8; c0c59794 <_end+a837cc/56a9098> i>>r7; c0b99e8c <_end+9c3ec4/56a9098>

r4; c0340000 <_end+16a038/56a9098>

t>>r0; c0340000 <_end+16a038/56a9098> = Trace; c591f87c <[ath_hal]zz016d9d41+30/1b4> 0Trace; c591fa38 <[ath_hal]zz016e1251+38/6c>

r5; c0340000 <_end+16a038/56a9098>

Trace; c591fa00 <[ath_hal]zz016e1251+0/6c> xcTrace; c591c47c <[ath_hal]zz0005b6b2+40/760>

r6; c0340000 <_end+16a038/56a9098>

5>>r5; c0340000 <_end+16a038/56a9098>

r4; c0c598ec <_end+a83924/56a9098>

Trace; c591c43c <[ath_hal]zz0005b6b2+0/760> 9Trace; c590c6cc <[ath_hal]ath_hal_attach+d4/18c> Trace; c590c5f8 <[ath_hal]ath_hal_attach+0/18c> Trace; c590c07c <[ath_hal]_ath_hal_attach+1c/60>

5Code; c590c220 <[ath_hal]ath_hal_reg_read+8/84> 00000000 <_EIP>: Code; c590c220 <[ath_hal]ath_hal_reg_read+8/84>

0: 01 0a add %ecx,(%edx)

Code; c590c222 <[ath_hal]ath_hal_reg_read+a/84>

2: 53 push %ebx

Code; c590c223 <[ath_hal]ath_hal_reg_read+b/84>

3: e3 14 jecxz 19 <_EIP+0x19>

Code; c590c225 <[ath_hal]ath_hal_reg_read+d/84>

5: 30 90 25 04 d0 4d xor %dl,0x4dd00425(%eax)

aCode; c590c22b <[ath_hal]ath_hal_reg_read+13/84>

b: e2 01 loop e <_EIP+0xe>

Code; c590c22d <[ath_hal]ath_hal_reg_read+15/84>

d: e0 a0 loopne ffffffaf <_EIP+0xffffffaf>

Code; c590c22f <[ath_hal]ath_hal_reg_read+17/84> <=====

f: e1 01 loope 12 <_EIP+0x12> <=====

Code; c590c231 <[ath_hal]ath_hal_reg_read+19/84>

11: 00 93 27 00 00 00 add %dl,0x27(%ebx)

3b8 APP: ath_hal = 0xc590c060 init=0xc590c388 APP: ixp400 = 0xc587f060 init=0xc587f060 APP: = 0xc019f458 init=0x00000000

I did get warnings below when I compile, then I remove Werror. ah_os.c: In function `ath_hal_reg_write': ah_os.c:331: warning: passing arg 2 of `writel' makes integer from pointer without a cast ah_os.c: In function `ath_hal_reg_read': ah_os.c:340: warning: passing arg 1 of `readl' makes integer from pointer without a cast

My board is able to run madwifi-old without any problem, but when I move to madwifi-ng, haven't get any luck with mulitple revisions. Any help is highly appreciated.

Thanks!

01/06/07 04:23:18 changed by jingmobile@yahoo.com

I open a new ticket (1064) for my post since I don't want to mess up with this ticket anymore.

02/02/07 10:09:54 changed by vincent

Hi, I am trying to compile madwifi-0.9.2.1 under snapgear-3.4.0 Kernel 2.4.31 for IXP425 MonteJade? but am encountering some problem.

Here's the error messages.

[durian@fc5 madwifi-0.9.2.1]$ make ARCH=arm CROSS_COMPILE=/usr/local/bin/arm-lin ux- KERNELPATH=/home/durian/projects/snapgear-3.4.0/linux-2.4.x TOOLPREFIX=/usr/ local/bin/arm-linux- Checking requirements... ok. Checking kernel configuration... ok. for i in ./ath ath_rate/sample ./net80211; do \

make -C $i exit 1; \

done make[1]: Entering directory `/home/durian/projects/snapgear-3.4.0/user/madwifi-0 .9.2.1/ath' make -C /home/durian/projects/snapgear-3.4.0/linux-2.4.x SUBDIRS=/home/durian/pr ojects/snapgear-3.4.0/user/madwifi-0.9.2.1/ath modules make[2]: Entering directory `/home/durian/projects/snapgear-3.4.0/linux-2.4.x' make -C /home/durian/projects/snapgear-3.4.0/user/madwifi-0.9.2.1/ath CFLAGS="- DKERNEL -I/home/durian/projects/snapgear-3.4.0/linux-2.4.x/include -Wall -W strict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common -Uarm -fno- common -pipe -mapcs-32 -DLINUX_ARM_ARCH=5 -mcpu=xscale -mtune=xscale -malign ment-traps -msoft-float -Uarm -DMODULE " MAKING_MODULES=1 modules make[3]: Entering directory `/home/durian/projects/snapgear-3.4.0/user/madwifi-0 .9.2.1/ath' /usr/local/bin/arm-linux-gcc -mbig-endian -DKERNEL -I/home/durian/projects/s napgear-3.4.0/linux-2.4.x/include -Wall -Wstrict-prototypes -Wno-trigraphs -O - fno-strict-aliasing -fno-common -Uarm -fno-common -pipe -mapcs-32 -DLINUX_ARM_ ARCH=5 -mcpu=xscale -mtune=xscale -malignment-traps -msoft-float -Uarm -DMODUL E -include ./../include/compat.h -I./../include -I./../hal -I. -I./../hal/linux

-I./../net80211 -I./.. -DATH_PCI -Werror -DAH_BYTE_ORDER=AH_BIG_ENDIAN -march=a

rmv4 -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32 -mtune=xscale -msof t-float -mfp=2 -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DAT H_SUPERG_XR=1 -DOPT_AH_H=\"./../hal/public/xscale-be-elf.opt_ah.h\" -nostdinc -i withprefix include -DKBUILD_BASENAME=if_ath -c -o if_ath.o if_ath.c if_ath.c:1: warning: switch -mcpu=xscale conflicts with -march= switch make[3]: *** [if_ath.o] Error 1 make[3]: Leaving directory `/home/durian/projects/snapgear-3.4.0/user/madwifi-0. 9.2.1/ath' make[2]: *** [_mod_/home/durian/projects/snapgear-3.4.0/user/madwifi-0.9.2.1/ath ] Error 2 make[2]: Leaving directory `/home/durian/projects/snapgear-3.4.0/linux-2.4.x' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/durian/projects/snapgear-3.4.0/user/madwifi-0. 9.2.1/ath' make: *** [modules] Error 1 [durian@fc5 madwifi-0.9.2.1]$

Could anyone tell me how to solve this problem?

Thanks. vincent

02/05/07 01:59:25 changed by Takumi Kadode

Hi, vincent

Plase try to remove "-march=armv4" option from "COPTS+" in "hal/public/xscale-be-elf.inc" file.

I belive that it will fix this compile error.


Add/Change #684 (kernel oops under xscale BE 2.4.x rev > madwifi-ng-r-1451)