Martin Michlmayr a écrit :
* Aurelien Jarno <[EMAIL PROTECTED]> [2006-03-23 09:05]:
I was unable to build the kernel module on mipsel. The problem is that
1) The mipsisa32-be-elf version of hal.o is used on mipsel, which is
little endian
2) Depending on the CPU, the kernel could have multiple formats, MIPS-I,
MIPS-II or MIPS-III. In the case of the madwifi driver, it is
hardcoded to mipsisa32 aka MIPS-III.
3) The gcc flags passed by madwifi to select the processor conflict
with the kernel ones.
Please find attached a patch to fix that. It try to detect R1 or R2
processor, and select the hal.o file accordingly. It goes by default to
Hmm, you select the hal.o file accordingly? Won't mips1-le-elf work
on both R1 and R2? Checking for R1/R2 doesn't seem ideal to me if it
can be avoided.
Well actually I don't know because I don't own the hardware. I have
tried on MIPS-III and MIPS-I kernels, but that's all.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]