ts-7000
[Top] [All Lists]

Re: [ts-7000] Compiling device drivers for the TS-7xxx?

To:
Subject: Re: [ts-7000] Compiling device drivers for the TS-7xxx?
From: chris dewbery <>
Date: Wed, 06 Sep 2006 11:40:57 +1200
They're compiled separate from the kernel directory
>> structure. Will this work the same way with the cross compiler
>> in my path instead of the native compiler? The hello world
>> example works just fine using 'gcc -O3 hello.c -o hello'. The
>> kernel and modules are, obviously, a bit more complicated.

The following command is what I use to compile modules for the
TS-7250, it may not be the best method but works for me :)

arm-unknown-linux-gnu-gcc -D__KERNEL__ -DMODULE -isystem \
 ~/linux-2.4-ts11/include -O3 -c ModuleName.c

where ~/linux-2.4-ts11 is the path to the TS-72xx kernel.

then its just a case of coping the ModuleName.o file into your
/lib/modules/<kernel>/kernel/drivers/ directory on the TS-72XX

Chris.



 
Yahoo! Groups Links

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

<*> 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