Bug#358559: madwidi-source: Fails to build kernel module on mipsel

Aurelien Jarno aurelien at aurel32.net
Thu Mar 23 13:25:29 UTC 2006


Martin Michlmayr a écrit :
> * Aurelien Jarno <aurel32 at debian.org> [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
  `. `'   aurel32 at debian.org         | aurelien at aurel32.net
    `-    people.debian.org/~aurel32 | www.aurel32.net




More information about the Pkg-madwifi-maintainers mailing list