Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #1118 (new defect)

Opened 15 years ago

Last modified 14 years ago

ath_hal problem with arm9 bad instruction and Unknown symbol

Reported by: always0806@gmail.com Assigned to:
Priority: major Milestone:
Component: madwifi: HAL Version: v0.9.2.1
Keywords: Cc:
Patch is attached: 0 Pending:

Description (Last modified by mrenzmann)

I Cross compiling madwifi with arm9 I get message with

  CC [M]  /source/madwifi-0.9.2.1/ath/ah_osdep.o
/tmp/ccpzDR4g.s: Assembler messages:
/tmp/ccpzDR4g.s:379: Error: bad instruction `mrs r1,cpsr'
/tmp/ccpzDR4g.s:380: Error: register expected, not '#128' -- `orr r3,r1,#128'
/tmp/ccpzDR4g.s:381: Error: bad instruction `msr cpsr_c,r3'
/tmp/ccpzDR4g.s:387: Error: bad instruction `msr cpsr_c,r1'
/tmp/ccpzDR4g.s:422: Error: bad instruction `mrs r1,cpsr'
/tmp/ccpzDR4g.s:423: Error: register expected, not '#128' -- `orr r3,r1,#128'
/tmp/ccpzDR4g.s:424: Error: bad instruction `msr cpsr_c,r3'
/tmp/ccpzDR4g.s:430: Error: bad instruction `msr cpsr_c,r1'

so I modify arm9-le-thumb-elf.inc

COPTS+= -mthumb -mlittle-endian -msoft-float \
	-ffunction-sections -fdata-sections
don't use -mthumb parameter can compiling well
but when I insmod ath_hal module 
I will get message
~ # insmod  ath_hal.ko
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: Unknown symbol _call_via_r4
ath_hal: Unknown symbol _call_via_r9
ath_hal: Unknown symbol _call_via_r3

what problem is it?

Change History

01/31/07 07:24:37 changed by mrenzmann

  • description changed.

09/19/07 09:32:59 changed by hiwu.tw@msa.hinet.net

Please donot use thumb mode on linux kernel. Using HAL "armv4-le-" is more safe.