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: "Blair" <>
Date: Thu, 06 May 2010 15:20:34 -0000

--- In  "j.chitte" <> wrote:
>
> 
> 
> --- In  "Blair" <bburtan65@> 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.
>


I'd like to use a more recent kernel since I'm having trouble with the ALSA 
drivers in 2.6.21 (1.0.14 IIRC).  Is there a working config file around for 
2.6.29 for the 7350?  I only see one for the 7400 and 7800.  The TS ftp site 
has a 2.6.30 source archive but there aren't any config files and I know the 
TSUART stuff isn't there.




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

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