ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: How do I install the toolchain

To:
Subject: Re: [ts-7000] Re: How do I install the toolchain
From: Dan Weese <>
Date: Thu, 18 Feb 2010 08:29:38 -0700




On Thu, Feb 18, 2010 at 7:57 AM, rajsaima <> wrote:
 

Hi Dan,
I will try modifying this Makefile. Thanks for the help. The issue I am having is that there is a version problem with the linux2.4 that I downloaded form the Technologic website. When I compile the driver module and attempt to load it, I get -

:driver# insmod my_skull.o
my_skull.o: kernel-module version mismatch
my_skull.o was compiled for kernel version 2.6.0


while this kernel is version 2.4.26-ts11.
:driver#

Oddly enough, I am using the toolchain and the linux2.4 headers
that I got from Technologic. wondering why does it think that the
kernel version is 2.0 ???
Any clues ??

On my TS7400
# cat /proc/version
Linux version 2.4.26-ts11 (gcc version 3.3.4) #2 Tue Jun 10 13:55:19 MST 2008

On my dev box:
$ cat /proc/version
Linux version 2.6.31.12-174.2.19.fc12.i686 (gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) ) #1 SMP Thu Feb 11 07:39:11 UTC 2010

Remember, the compiler produces its compatibility tags.  You may have invoked the wrong version of the compiler, I am pretty sure. 
 
Raj


--- In ts-7000%40yahoogroups.com, "Dan" <> wrote:
>
> Here's an abbreviated version of my makefile
>
>
> # if 0 then Debian
> TS7400 = 1
>
> OPT_DIR = /usr/local/opt
> KERNEL = DEBIAN
>
> ifeq "$(TS7400)" "1"
>
> PCB = TS7400_BOARD
> CPU = ARM
> GNU_DIR = $(OPT_DIR)/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2
> LINUX_INC = $(OPT_DIR)/ts7400-32-128F/dist/linux24/include
> AS_NAME = arm-linux-as
> GCC_NAME = arm-linux-gcc
> LD_NAME = arm-linux-ld
>
> else
>
> PCB = DEBIAN_I386_PC
> CPU = I386
> GNU_DIR = /usr
> LINUX_INC = $(GNU_DIR)/include
> AS_NAME = as
> GCC_NAME = gcc
> LD_NAME = ld
>
> endif
>
>
>
> GNU_TOOLS = $(GNU_DIR)/bin
> GLIBC_INC = $(GNU_DIR)/include
> LIB_DIR = $(GNU_DIR)/lib
>
> WD = $(shell pwd)
>
> WD_INCLUDE = $(WD)/include
> CGI_DIR = /usr/lib/cgi-bin
> SRC_DIR = $(WD)/src
> COMMON_INC = ../common_II/v1.0.0/include
> DAEMON_INC = ../daemon/include
> TEST_INC = ../daemon/test/testDaemon
>
> INC_DIR = -I$(WD_INCLUDE) -I$(LINUX_INC) -I$(GLIBC_INC) -I$(COMMON_INC) -I$(DAEMON_INC) -I$(TEST_INC)
>
> CFLAGS = -Wall
> CFLAGS += -g
> CFLAGS += -mcpu=arm9
> CFLAGS += -O0
> CFLAGS += -D_MULTI_THREADED -D__REENTRANT -D__USE_SVID
> CFLAGS += -DCM_II -DARCH=1 -D$(PCB) -D$(CPU)
> CFLAGS += -D$(KERNEL) $(INC_DIR)
>
> LDFLAGS = -L$(LIB_DIR) -lpthread -lrt
>
> AS = $(GNU_TOOLS)/$(AS_NAME)
> CC = $(GNU_TOOLS)/$(GCC_NAME)
> LD = $(GNU_TOOLS)/$(LD_NAME)
>
> TARGETS = StartDiscovery
> # += more TARGETS as you need em
>
> CGI_TARGETS = $(patsubst %,$(CGI_DIR)/%,$(TARGETS) index.html)
>
> OBJS = cgiI18N.o
> OBJS += StartDiscovery.o
> # += more OBJS as you need em
>
>
> all: $(TARGETS)
>
> StartDiscovery: StartDiscovery.o cgiDiscoveryLib.o cgiDaemonLib.o cgiI18N.o
> $(CC) $(CFLAGS) $(LDFLAGS) StartDiscovery.o cgiDiscoveryLib.o cgiDaemonLib.o cgiI18N.o -o StartDiscovery
>
> StartDiscovery.o: $(WD_INCLUDE)/cgiDiscoveryLib.h $(WD_INCLUDE)/cgiDaemonLib.h
>
> %.o: $(SRC_DIR)/%.c
> $(CC) $(CFLAGS) -c $< -o $@
>
> clean:
> @rm -f $(OBJS)
>
> clobber:
> @rm -f $(OBJS) $(TARGETS)
>
> install: $(CGI_TARGETS)
> cp $(CGI_TARGETS) /usr/lib/cgi-bin
>
> $(CGI_DIR)/%: %
> sudo -u www-data cp $< $@
> sudo -u www-data chmod g+w $@
>
> uninstall:
> @sudo -u www-data rm -f $(CGI_TARGETS)
>




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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