ts-7000
[Top] [All Lists]

[ts-7000] Help compiling modules for a TS-7200

To:
Subject: [ts-7000] Help compiling modules for a TS-7200
From: "codeandbrew" <>
Date: Sat, 14 Jul 2007 00:51:17 -0000
I'd love some friendly pointers on how to go about compiling custom
modules for the TS-7XXX.

Currently I'm using Eclipse on an Ubuntu box and cross compiling for
my TS-7200 platform.  I've no issue compiling the various example
programs and running them on the board but things are not going so
smoothly when trying my hand at custom modules.

Part of the issue, I believe, is my lack of understanding on just what
I need to add. So some clarification please:

1) For files such as module.h and kernel.h, I see people using the
following: <linux/include/*.h>.  I assume that this is just shorthand
for their kernel source directory? For example, I downloaded the
kernel from the TS site and extracted linux24 to a folder in my home
directory. Therefore I use: </home/me/workspace/linux24/include/*.h>.

2) When I extract the tskernel to my home directory, do I need to
recompile it? I ran across a topic on this news group that indicated
that might be the case.  If so, do I simply run make on ts_config? And
if so, should I answer 'y' to all the compilation questions?

3) Below is my makefile.  Does it look correct? 
KDIR  := /home/me/workspace/linux24/include/
    
all: Test4

Test4: main.o
        arm-unknown-linux-gnu-gcc -g -o Test4 main.o
        
main.o: main.c
        arm-unknown-linux-gnu-gcc -c -O2 -Wall -isystem $(KDIR) -D__KERNEL__
-DMODULE main.c 



Appreciate any help here.

- Bill



 
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