Dave Cramer wrote:
> On 2-Sep-06, at 6:48 PM, Neil Cherry wrote:
>> Does anyone have an example of how to compile device drivers for
>> the TS-7xxx? I have several devices I'd like to use on the board
>> but no idea how to cross compile them?
> You have to setup the cross-compiler tools first,
> http://www.seiner.com/ts7000/index.php/CrossCompileTools then I'd
> suggest writing a simple helloworld.c program and download it and run it.
Already done, hello world works quite well compiled on my x86 box
and run on the board.
> Once you have that done that work on recompiling the kernel with the
> above mentioned CrossCompileTools and make sure that works. Once you
> have your kernel working try compiling one of your device drivers,
> (modules in the linux world)
I'm hoping to have the TS/Linux kernel (2.4.26) directory structure
put up on my x86 (running Linux 2.6.17) Linux box later today. I'll
the test out the compile. I'll also upgrade Busybox (I noticed dc
doesn't work).
The modules I wrote (bad habit of calling them device drivers, left
over from my SYSV days) work fine under x86 where I can compile
them without any trouble. I've tested them on Linux 2.4 and 2.6 on
x86 boxes. 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.
--
Linux Home Automation Neil Cherry
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site
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/
|