This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ralink rt3070 USB WiFi Driver build issues

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Can anyone please Help?

Using ti-dvsdk_omapl138-evm_4_02_00_06 SDK located in my /home/user/ti-dvsdk_omapl138-evm_4_02_00_06 with its linux-2.6.33-rc4-psp03.20.00.14.sdk., located in /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/ linux-2.6.33-rc4-psp03.20.00.14.sdk

On OMAP-L138 Logic P.D. Zoom evaluation board.

I also have CodeSourcery tools and its Sourcery_G++_Lite/arm-none-linux-gnueabi tools (i.e. gcc and ld) in my /home/user directory /home/user/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/bin.

I am trying to build the USB WiFi driver for a Ralink rt3070 part.

The driver firmware provided by the manufacture is attached.

6177.RalinkFirmware.zip

I have extracted 2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO.tar to a folder under

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/ wyfy... so it looks like this

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO> ls -l

total 96

drwxr-xr-x 2 user user 4096 2011-01-06 20:18 chips

drwxr-xr-x 2 user user 4096 2011-08-03 14:14 common

drwxr-xr-x 5 user user 4096 2011-01-06 20:20 include

-rwxrwxrwx 1 user user 14819 2011-01-06 20:18 iwpriv_usage.txt

-rw-r--r-- 1 user user 14343 2011-08-03 10:10 Makefile

drwxrwxrwx 3 user user 4096 2011-01-06 20:18 os

-rw-r--r-- 1 user user 13527 2011-01-06 20:18 README_STA_usb

-rwxrwxrwx 1 user user 613 2011-01-06 20:18 RT2870STACard.dat

-rwxrwxrwx 1 user user 1118 2011-01-06 20:18 RT2870STA.dat

drwxr-xr-x 2 user user 4096 2011-01-06 20:18 sta

-rwxrwxrwx 1 user user 14253 2011-01-06 20:18 sta_ate_iwpriv_usage.txt

drwxr-xr-x 2 user user 4096 2011-08-03 21:06 tools

In the firmware package is README_STA_usb file describing what to do to build it.

I have made a attempt to carry out step 2 and 3 i.e.

----------------------------------------------------

2> In Makefile

set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"

define the linux kernel source include file path LINUX_SRC

modify to meet your need.

3> In os/linux/config.mk

define the GCC and LD of the target machine

define the compiler flags CFLAGS

modify to meet your need.

** Build for being controlled by NetworkManager or wpa_supplicant wext functions

Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.

=> #>cd wpa_supplicant-x.x

=> #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d

** Build for being controlled by WpaSupplicant with Ralink Driver

Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.

=> #>cd wpa_supplicant-0.5.7

=> #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d

----------------------------------------------------

In step 2 I have created a OMAP_L138 PLATFORM definition and “think” I have the correct defines as follows...

PLATFORM = OMAP_L138

…............

…...........

…...........

ifeq ($(PLATFORM),OMAP_L138)

LINUX_SRC = /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk

CROSS_COMPILE = /home/user/CodeSourcery/Sourcery_G++_Lite/bin/

endif

in the /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/makefile.

Note: the reason I say “think” concernes how I defined LINUX_SRC as

LINUX_SRC = /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk see comment below...

In step 3 I have created / changed the followin

changed

# CC := $(CROSS_COMPILE)gcc

# LD := $(CROSS_COMPILE)ld

 

CC := $(CROSS_COMPILE)arm-none-linux-gnueabi-gcc

LD := $(CROSS_COMPILE)arm-none-linux-gnueabi-ld

created

ifeq ($(PLATFORM),OMAP_L138)

EXTRA_CFLAGS := -v -Wfatal-errors -I$(RT28xx_DIR)/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include $(WFLAGS)

endif

Note: I'm not at all sure about

-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include

Or if any of the -I includes are correct? However I do manage to get ferther along in the build / make process with them included.

I also included some echo, warning messages in the make file to verify my defines. The will be seen in the output from make. Sorry this is a long output but maybe a clue for someone to help etc.

[linux-devkit]:~/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO> make ARCH=arm

make -C tools

make[1]: Entering directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools'

gcc -g bin2h.c -o bin2h

make[1]: Leaving directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools'

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools/bin2h

Making Bin2h

Exiting bin2h make

Makefile:372: pLATFORME is OMAP_L138

Makefile:372: LINUX_SRC is /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk

Makefile:372: CROSS_COMPILE is /home/user/CodeSourcery/Sourcery_G++_Lite/bin/

Makefile:372: RT28xx_DIR is /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO

cp -f os/linux/Makefile.6 /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/Makefile

make -C /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk SUBDIRS=/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux modules

make[1]: /home/user/CodeSourcery/Sourcery_G++_Lite/bin/gcc: Command not found

make[1]: Entering directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk'

CC [M] /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.o

Using built-in specs.

Target: arm-none-linux-gnueabi

Configured with: /scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2009q1-203' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin

Thread model: posix

gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)

COLLECT_GCC_OPTIONS='-nostdinc' '-isystem' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include' '-Iinclude' '-include' 'include/generated/autoconf.h' '-D__KERNEL__' '-mlittle-endian' '-Iarch/arm/mach-davinci/include' '-Wundef' '-fno-strict-aliasing' '-fno-common' '-Werror-implicit-function-declaration' '-Wno-format-security' '-fno-delete-null-pointer-checks' '-Os' '-mapcs' '-mno-sched-prolog' '-mabi=aapcs-linux' '-mno-thumb-interwork' '-D__LINUX_ARM_ARCH__=5' '-march=armv4t' '-mtune=arm9tdmi' '-msoft-float' '-Uarm' '-fno-omit-frame-pointer' '-fno-optimize-sibling-calls' '-v' '-Wfatal-errors' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include' '-DAGGREGATION_SUPPORT' '-DPIGGYBACK_SUPPORT' '-DWMM_SUPPORT' '-DLINUX' '-Wall' '-Wstrict-prototypes' '-Wno-trigraphs' '-DSYSTEM_LOG_SUPPORT' '-DRT28xx_MODE=STA' '-DCHIPSET=3070' '-DRESOURCE_PRE_ALLOC' '-DCONFIG_STA_SUPPORT' '-DDBG' '-DDOT11_N_SUPPORT' '-DDOT11N_DRAFT3' '-DSTATS_COUNT_SUPPORT' '-DRTMP_MAC_USB' '-DRT30xx' '-DRT3070' '-DRTMP_USB_SUPPORT' '-DRTMP_TIMER_TASK_SUPPORT' '-DRTMP_RF_RW_SUPPORT' '-DRTMP_EFUSE_SUPPORT' '-DSPECIFIC_VCORECAL_SUPPORT' '-DMODULE' '-DKBUILD_STR(s)=#s' '-DKBUILD_BASENAME=KBUILD_STR(crypt_md5)' '-DKBUILD_MODNAME=KBUILD_STR(rt3070sta)' '-c' '-o' '/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.tmp_crypt_md5.o'

/home/user/CodeSourcery/Sourcery_G++_Lite/bin/../libexec/gcc/arm-none-linux-gnueabi/4.3.3/cc1 -quiet -nostdinc -v -Iinclude -Iarch/arm/mach-davinci/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include -imultilib armv4t -iprefix /home/user/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/ -isysroot /home/user/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc -D__KERNEL__ -D__LINUX_ARM_ARCH__=5 -Uarm -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX -DSYSTEM_LOG_SUPPORT -DRT28xx_MODE=STA -DCHIPSET=3070 -DRESOURCE_PRE_ALLOC -DCONFIG_STA_SUPPORT -DDBG -DDOT11_N_SUPPORT -DDOT11N_DRAFT3 -DSTATS_COUNT_SUPPORT -DRTMP_MAC_USB -DRT30xx -DRT3070 -DRTMP_USB_SUPPORT -DRTMP_TIMER_TASK_SUPPORT -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DSPECIFIC_VCORECAL_SUPPORT -DMODULE -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(crypt_md5) -DKBUILD_MODNAME=KBUILD_STR(rt3070sta) -isystem -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include -include include/generated/autoconf.h -MD /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.crypt_md5.o.d /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.c -quiet -dumpbase crypt_md5.c -mlittle-endian -mapcs -mno-sched-prolog -mabi=aapcs-linux -mno-thumb-interwork -march=armv4t -mtune=arm9tdmi -msoft-float -auxbase-strip /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.tmp_crypt_md5.o -Os -Wundef -Werror-implicit-function-declaration -Wno-format-security -Wfatal-errors -Wall -Wstrict-prototypes -Wno-trigraphs -version -fno-strict-aliasing -fno-common -fno-delete-null-pointer-checks -fno-omit-frame-pointer -fno-optimize-sibling-calls -o /tmp/cccVBZrK.s

ignoring nonexistent directory "-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include"

#include "..." search starts here:

#include <...> search starts here:

include

arch/arm/mach-davinci/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include

.

End of search list.

GNU C (Sourcery G++ Lite 2009q1-203) version 4.3.3 (arm-none-linux-gnueabi)

compiled by GNU C version 4.3.2, GMP version 4.2.4, MPFR version 2.3.2.

GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63653

Compiler executable checksum: ff2e25870db5a86cad0a49ae0451c7d1

In file included from include/linux/mmzone.h:20,

from include/linux/gfp.h:4,

from include/linux/kmod.h:22,

from include/linux/module.h:13,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/os/rt_linux.h:31,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_os.h:44,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_comm.h:60,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rt_config.h:33,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.c:28:

include/asm/page.h:9:2: error: #error need to prove a real asm/page.h

In file included from include/linux/ktime.h:25,

from include/linux/timer.h:5,

from include/linux/workqueue.h:8,

from include/linux/slub_def.h:11,

from include/linux/slab.h:162,

from include/linux/percpu.h:5,

from include/asm/local.h:4,

from include/linux/module.h:20,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/os/rt_linux.h:31,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_os.h:44,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_comm.h:60,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rt_config.h:33,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.c:28:

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: warning: "CLOCK_TICK_RATE" is not defined

include/linux/jiffies.h:257:31: error: division by zero in #if

include/linux/jiffies.h:257:31: error: division by zero in #if

In file included from include/linux/mm.h:39,

from include/asm/cacheflush.h:5,

from include/asm/io.h:15,

from include/linux/io.h:22,

from include/linux/pci.h:54,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/os/rt_linux.h:41,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_os.h:44,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rtmp_comm.h:60,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include/rt_config.h:33,

from /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.c:28:

include/asm/pgtable.h: In function 'ptep_set_wrprotect':

include/asm/pgtable.h:98: error: implicit declaration of function 'set_pte_at'

compilation terminated due to -Wfatal-errors.

make[2]: *** [/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.o] Error 1

make[1]: *** [_module_/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux] Error 2

make[1]: Leaving directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk'

make: *** [LINUX] Error 2

This error above “include/asm/page.h:9:2: error: #error need to prove a real asm/page.h”

leads me to beleave I have a path or define or include incorrect for my sdk / environment or ?

This is the reason for the “Note: the reason I say “think” concerns how I defined LINUX_SRC as

LINUX_SRC = /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk “

Also I question issuing make ARCH=arm

with the ARCH=arm, note: if I do not use the ARCH=arm I get the following

[linux-devkit]:~/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO> make

make -C tools

make[1]: Entering directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools'

gcc -g bin2h.c -o bin2h

make[1]: Leaving directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools'

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/tools/bin2h

Making Bin2h

Exiting bin2h make

Makefile:372: pLATFORME is OMAP_L138

Makefile:372: LINUX_SRC is /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk

Makefile:372: CROSS_COMPILE is /home/user/CodeSourcery/Sourcery_G++_Lite/bin/

Makefile:372: RT28xx_DIR is /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO

cp -f os/linux/Makefile.6 /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/Makefile

make -C /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk SUBDIRS=/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux modules

make[1]: /home/user/CodeSourcery/Sourcery_G++_Lite/bin/gcc: Command not found

make[1]: Entering directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk'

CC [M] /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.o

Using built-in specs.

Target: arm-none-linux-gnueabi

Configured with: /scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/src/gcc-4.3/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2009q1-203' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/obj/host-libs-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/mitchell/builds/4.3-arm-none-linux-gnueabi-respin/lite/install/arm-none-linux-gnueabi/bin

Thread model: posix

gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203)

COLLECT_GCC_OPTIONS='-nostdinc' '-isystem' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/x86/include' '-Iinclude' '-include' 'include/generated/autoconf.h' '-D__KERNEL__' '-Wundef' '-fno-strict-aliasing' '-fno-common' '-Werror-implicit-function-declaration' '-Wno-format-security' '-fno-delete-null-pointer-checks' '-Os' '-m64' '-mno-red-zone' '-mcmodel=kernel' '-maccumulate-outgoing-args' '-pipe' '-Wno-sign-compare' '-fno-asynchronous-unwind-tables' '-fno-omit-frame-pointer' '-fno-optimize-sibling-calls' '-v' '-Wfatal-errors' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include' '-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include' '-DAGGREGATION_SUPPORT' '-DPIGGYBACK_SUPPORT' '-DWMM_SUPPORT' '-DLINUX' '-Wall' '-Wstrict-prototypes' '-Wno-trigraphs' '-DSYSTEM_LOG_SUPPORT' '-DRT28xx_MODE=STA' '-DCHIPSET=3070' '-DRESOURCE_PRE_ALLOC' '-DCONFIG_STA_SUPPORT' '-DDBG' '-DDOT11_N_SUPPORT' '-DDOT11N_DRAFT3' '-DSTATS_COUNT_SUPPORT' '-DRTMP_MAC_USB' '-DRT30xx' '-DRT3070' '-DRTMP_USB_SUPPORT' '-DRTMP_TIMER_TASK_SUPPORT' '-DRTMP_RF_RW_SUPPORT' '-DRTMP_EFUSE_SUPPORT' '-DSPECIFIC_VCORECAL_SUPPORT' '-DMODULE' '-DKBUILD_STR(s)=#s' '-DKBUILD_BASENAME=KBUILD_STR(crypt_md5)' '-DKBUILD_MODNAME=KBUILD_STR(rt3070sta)' '-c' '-o' '/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.tmp_crypt_md5.o' '-funwind-tables'

/home/user/CodeSourcery/Sourcery_G++_Lite/bin/../libexec/gcc/arm-none-linux-gnueabi/4.3.3/cc1 -quiet -nostdinc -v -Iinclude -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include -iprefix /home/user/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/ -isysroot /home/user/CodeSourcery/Sourcery_G++_Lite/bin/../arm-none-linux-gnueabi/libc -D__KERNEL__ -DAGGREGATION_SUPPORT -DPIGGYBACK_SUPPORT -DWMM_SUPPORT -DLINUX -DSYSTEM_LOG_SUPPORT -DRT28xx_MODE=STA -DCHIPSET=3070 -DRESOURCE_PRE_ALLOC -DCONFIG_STA_SUPPORT -DDBG -DDOT11_N_SUPPORT -DDOT11N_DRAFT3 -DSTATS_COUNT_SUPPORT -DRTMP_MAC_USB -DRT30xx -DRT3070 -DRTMP_USB_SUPPORT -DRTMP_TIMER_TASK_SUPPORT -DRTMP_RF_RW_SUPPORT -DRTMP_EFUSE_SUPPORT -DSPECIFIC_VCORECAL_SUPPORT -DMODULE -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(crypt_md5) -DKBUILD_MODNAME=KBUILD_STR(rt3070sta) -isystem -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/x86/include -include include/generated/autoconf.h -MD /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.crypt_md5.o.d /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.c -quiet -dumpbase crypt_md5.c -m64 -mno-red-zone -mcmodel=kernel -maccumulate-outgoing-args -auxbase-strip /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.tmp_crypt_md5.o -Os -Wundef -Werror-implicit-function-declaration -Wno-format-security -Wno-sign-compare -Wfatal-errors -Wall -Wstrict-prototypes -Wno-trigraphs -version -fno-strict-aliasing -fno-common -fno-delete-null-pointer-checks -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -funwind-tables -o - |

/home/user/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/as -v -Iinclude -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include -I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include -meabi=5 -o /home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/.tmp_crypt_md5.o

GNU assembler version 2.19.51 (arm-none-linux-gnueabi) using BFD version (Sourcery G++ Lite 2009q1-203) 2.19.51.20090205

cc1: error: unrecognized command line option "-m64"

cc1: error: unrecognized command line option "-mno-red-zone"

cc1: error: unrecognized command line option "-mcmodel=kernel"

cc1: error: unrecognized command line option "-maccumulate-outgoing-args"

ignoring nonexistent directory "-I/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/x86/include"

#include "..." search starts here:

#include <...> search starts here:

include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk/arch/arm/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/cgt6x_6_1_14/include

/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/linux-devkit//arm-none-linux-gnueabi/usr/include

.

End of search list.

GNU C (Sourcery G++ Lite 2009q1-203) version 4.3.3 (arm-none-linux-gnueabi)

compiled by GNU C version 4.3.2, GMP version 4.2.4, MPFR version 2.3.2.

GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63653

make[2]: *** [/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux/../../common/crypt_md5.o] Error 1

make[1]: *** [_module_/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/wyfy/2011_0107_RT3070_RT3370_Linux_STA_v2.5.0.1_DPO/os/linux] Error 2

make[1]: Leaving directory `/home/user/ti-dvsdk_omapl138-evm_4_02_00_06/psp/linux-2.6.33-rc4-psp03.20.00.14.sdk'

make: *** [LINUX] Error 2

cc1: error: unrecognized command line option "-m64"

cc1: error: unrecognized command line option "-mno-red-zone"

Set up for some kind of AMD x86-64 GCC options dont know?

Again, sorry for the long post, and the -v flag to GCC but I am trying to provide as much information as possible so maybe someone can help me.

Thanks all !!

Brian

 

  • Hi Brian

     

    I am also getting almost same type of error on omapl138.

    I have made the required changes in config.mk for

    CC and LD and has beeen following the README_STA_usb.txt.

    Here is the error Code

     

    hitesh@hitesh-IPM41-D3:~/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0$ make
    make -C tools
    make[1]: Entering directory `/home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/tools'
    gcc -g bin2h.c -o bin2h
    make[1]: Leaving directory `/home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/tools'
    /home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/tools/bin2h
    cp -f os/linux/Makefile.6 /home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/Makefile
    make  -C  /home/hitesh/work/SVN_sync/AEGIS/development/os/linux-arm/trunk/linux-03.21.00.04 SUBDIRS=/home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux modules
    make[1]: Entering directory `/home/hitesh/work/SVN_sync/AEGIS/development/os/linux-arm/trunk/linux-03.21.00.04'
      CC [M]  /home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/crypt_md5.o
    cc1: error: unrecognized command line option "-m64"
    cc1: error: unrecognized command line option "-mno-red-zone"
    cc1: error: unrecognized command line option "-mcmodel=kernel"
    cc1: error: unrecognized command line option "-maccumulate-outgoing-args"
    make[2]: *** [/home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux/../../common/crypt_md5.o] Error 1
    make[1]: *** [_module_/home/hitesh/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0/os/linux] Error 2
    make[1]: Leaving directory `/home/hitesh/work/SVN_sync/AEGIS/development/os/linux-arm/trunk/linux-03.21.00.04'
    make: *** [LINUX] Error 2

     

    I am not able to understand from where these options are coming.

     

    I request you to please if you have found solution for the above problem, any help would be appreciated.

     

    Thanks

    Hitesh Kumar

  • Hitesh

    Try

    hitesh@hitesh-IPM41-D3:~/Downloads/2009_1204_RT3070_Linux_STA_v2.1.2.0$ make ARCH=arm

    and see if

    cc1: error: unrecognized command line option "-m64"
    cc1: error: unrecognized command line option "-mno-red-zone"
    cc1: error: unrecognized command line option "-mcmodel=kernel"
    cc1: error: unrecognized command line option "-maccumulate-outgoing-args"

    errors go away.

    See my earlier post, but now you will probably get the other errors I mention.

    Bottom line is NO, I have not solved the problems and am unable to build it.

    I by no means am a Linux expert, but by what I have been able to tell several things could be wrong.

    I believe there are broken, or missing files / paths etc in the TI provided SDK that prevent make from completing for this project.

    Until some help comes from someone more experienced in the problem then I / we have abandoned any hope of using Ralink.

    Sorry I could not be of more help, but I spent 3 weeks trying to figure it out, and had to stop at that point.

    Good luck and let us know if you find a solution.

    Thanks

    Brian