ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: insmod execution error

To:
Subject: Re: [ts-7000] Re: insmod execution error
From: David Hawkins <>
Date: Mon, 18 Feb 2008 09:58:11 -0800
Hi Eugen,

> All the instructions that you provided me made me succeed in compiling
> a rtai  module for the TS7200 device , but i still have 2 questions:
> 
> i will include the context to make the problem more clear:
> mkdir modutils-build
> cd modutils-build
> ../modutils-2.4.26/configure -- prefix=/home/dwh etc,etc
> --target=arm-unknown etc
> export PATH=/opt/crosstool/arm-unknown-linux-gcc/gcc..etc
> make
> make install
> 
> I saw that the compiler that was called for compiling modutils was gcc
> and not arm-gcc. Is that OK??

Yes. The tool is used by the host CPU, not the target, so gcc should
be the compiler.

> When i tried to execute this last command line:
> make modules_install INSTALL_MOD_PATH=/home/dwh/ts7200/linux24-modules



> i get the following error:
> 
> make[1]: Leaving directory `/home/eugen/test3/linux24/arch/arm/common'

Er, you can't have typed
make modules_install INSTALL_MOD_PATH=/home/dwh/ts7200/linux24-modules

perhaps you meant

make modules_install 
INSTALL_MOD_PATH=/home/eugen/test3/linux24/arch/arm/common

> cd /home/dwh/ts7200/linux24-modules/lib/modules/2.4.26-ts11; \
> mkdir -p pcmcia; \
> find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
> pcmcia
> if [ -r System.map ]; then
> /home/dwh/ts7200/modutils-install/sbin/depmod -ae -F System.map -b

But hang on, you've got /home/dwh/ again. The path should be
for whatever user account you decided to install into.

> /home/dwh/ts7200/linux24-modules -r 2.4.26-ts11; fi
> depmod: Unexpected value (8319668457729687572) in
> '/home/dwh/ts7200/linux24-modules/lib/modules/2.4.26-ts11/kernel/drivers/bluetooth/bfusb.o'
> for usb_device_size
>         It is likely that the kernel structure has changed, if so then
>         you probably need a new version of modutils to handle this kernel.
>         Check linux/Documentation/Changes.

Ok, so perhaps you are installing into /home/dwh ... perhaps I
should document this as $HOME instead :)

Anyway, ok, so you have a build error. And the error tells you
what the problem is.

> *** glibc detected *** double free or corruption (!prev):
> 0x00000000005fcdb0 ***
> /bin/sh: line 1: 31941 Aborted                
> /home/dwh/ts7200/modutils-install/sbin/depmod -ae -F System.map -b
> /home/dwh/ts7200/linux24-modules -r 2.4.26-ts11
> make: *** [_modinst_post] Error 134
> 
> I HAVE to specify that i patched this kernel source with the adeos
> patch. But everything went fine at compile time.
> 
> Please tell me how to resolve this problem. I also tryed with that
> .pl script fut that one waas failing at some pont too.
> Maybe you can give me a link with the correct .pl script and some
> other posibilities to solve this small problem.

Try this; do everything again but do *not* patch with RTAI, if you still
get the error, then clearly there is a bug in the TS source.
If you use exactly the same kernel version as I do in the
documentation, ts11, then you will not get an error - since
I didn't. Then try patching that kernel, and run the build
again. It'll either work, or you'll get the build error.
The build error is telling you what is wrong, so you just
have to figure out what the fix is, or to edit the kernel
configuration to eliminate USB or bluetooth, which will then
stop the compilation of USB components. Then once you definitely
know everything else works, go back and enable this stuff if
you need it, and figure out what is wrong.

Hope that helps,
Dave



 
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