ts-7000
[Top] [All Lists]

[ts-7000] Re: Kernel bug: drivers built with a crosstool won't load

To:
Subject: [ts-7000] Re: Kernel bug: drivers built with a crosstool won't load
From: "j.chitte" <>
Date: Thu, 06 May 2010 12:00:20 -0000

--- In  "Blair" <> wrote:
>
> If you have encountered a similar problem to the following:
> 
> insmod: error inserting '/home/alsa/drivers/snd.ko': -1 Invalid module format
> 
> Dmesg | tail says:
> 
> snd: unknown relocation: 40
> 
> For drivers that you built with a crosstool rather than on the hardware 
> itself, apparently there is a bug in the kernel.  This link describes it in 
> more detail:
> 
> https://patchwork.kernel.org/patch/15546/
> 
> I have patched the 2.6.21-ts kernel and I can now load the drivers that were 
> built on a crosstool.  Kris at TS confirmed there is a potential problem and 
> had me verify with their crosstool.
> 
> Another web reference talked about binutils after 2.18 having a problem but 
> apparently 2.18 has some sort of problem with EABI and 2.20 didn't help.  The 
> above patch seems to work fine.
>

If you have a working cross compiled toolchain you may as well move to a more 
recent kernel (at least 2.6.29) quite a lot more support specically for armv4 
and TS boards has now got into mainline kernel.

It's possible to use the maverick fpu as well which may be useful depending on 
what the board does.

You only need to build about 10 packages to reproduce the equivalent of TSlinux 
(although figuring out all the ./configure options etc needs some digging). 

crosstools-ng does most of the work of providing and applying relevent patches.





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU