ts-7000
[Top] [All Lists]

Re: [ts-7000] module versioning

To:
Subject: Re: [ts-7000] module versioning
From: Ollie Eisman <>
Date: Wed, 6 Sep 2006 17:42:44 -0700 (PDT)
I found the problem.   As soon as I went back to using
the crosstools (gcc3.3.4-glibc-2.3.2) from TS, all
problems evaporated! :)  No module versioning errors
(or missing version errors).  Even zd.o works, as
supplied from the TS website.

The crosstools I was using from seiner.com worked fine
until I got a SD card-based 7260 with the Debian
filesystem.  I should have heeded Yan's warnings on
his website and stuck with TS's unless absolutely
necessary.

I should also mention that I did not need the
CFLAGS_KERNEL options shown below, nor did I need to
modify include/linux/nand_ecc.h now that I am using a
ts11 kernel.

Ollie

--- Ollie Eisman <> wrote:

> I have been stuck for the past several days with a
> module versioning problem and I hope someone on this
> list can point me in the right direction.
> 
> I have cross-compiled the ts-10 kernel and it seems
> to
> work well on my TS-7260.  I run it, along with a
> modified initrd from the group download area, to
> load
> a TS-supplied SD card with Debian.  
> 
> All seems to go well but modules I have
> cross-compiled
> and copied over don't load.  I get this error for
> each
> module Debian attempts to use:
> 
> "couldn't find the kernel version the module was
> compiled for"
> 
> I am not setting any MODFLAGS in the kernel src
> Makefile and I commented out the depmod section,
> figuring Debian would take care of it on boot.
> 
> make modules_install seems to work fine.  I have a
> modules directory name that matches the kernel
> version
> and copy it over.
> 
> Any suggestions on where my procedure is flawed?
> 
> Here are the steps I take when building a kernel:
> 
> # Compile
> cd ~/src/linux24
> 
> vi Makefile
> # set:
> # CROSS_COMPILE = /home/ollie/xbin/
> # CFLAGS_KERNEL = -fno-unit-at-a-time
> 
> make ts7260_config
> make oldconfig
> # N
> # N
> make menuconfig
> # Choose Multimedia devices -> v4l
> 
> make dep
> 
> vi drivers/char/keyboard.c
> # put ";" at start of line 413
> 
> vi include/linux/nand_ecc.h
> # line 23, change "void" to "int"
> 
> make zImage
> make modules
> 
> INSTALL_MOD_PATH=/home/ollie/ts
> export INSTALL_MOD_PATH
> 
> make modules_install
> 
> # Note: I tried the following once but no luck.
> # Build module dependencies
> depmod.pl -k ./vmlinux  -b
> /home/ollie/ts/lib/modules
> > /home/ollie/ts/lib/modules/2.4.26-ts10/modules.dep
> 
> # Load zImage into firmware on TS-7260
> # boot up
> # Copy over new modules and unpack in /lib/modules
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~-> 

 
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