* Modifying Ralink RT3070 STA wifi driver for OpenEmbedded
@ 2010-04-12 18:08 Elvis Dowson
2010-04-12 18:31 ` Koen Kooi
0 siblings, 1 reply; 4+ messages in thread
From: Elvis Dowson @ 2010-04-12 18:08 UTC (permalink / raw)
To: OpenEmbedded Developer
Hi,
I would like to modify the Ralink RT3070 STA wifi driver, so that the Makefile can compile with openembedded.
At the moment, on line 132, I have to explicity set the source path
LINUX_SRC = /tool/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.29-r51/git
CROSS_COMPILE = arm-angstrom-linux-gnueabi-
What modification should I make to the following make file to make it compatible with OpenEmbedded?
Best regards,
Elvis
PS: You can download the driver here:
http://www.ralinktech.tw/license_us.php?n=2&p=0&t=U0wyRnpjMlYwY3k4eU1ERXdMekF5THpJMEwyUnZkMjVzYjJGa09UQTVOemcyT0RjMU1DNWllakk5UFQxU1ZETXdOekJmVEdsdWRYaFRWRUZmVmpJdU15NHdMakZmTWpBeE1EQXlNRGd1ZEdGeUM%3D
Makefile
MODE = STA
RT28xx_MODE = STA
TARGET = LINUX
CHIPSET = 3070
#RT28xx_DIR = home directory of RT28xx source code
RT28xx_DIR = $(shell pwd)
RTMP_SRC_DIR = $(RT28xx_DIR)/RT$(CHIPSET)
#PLATFORM: Target platform
PLATFORM = PC
#PLATFORM = 5VT
#PLATFORM = IKANOS_V160
#PLATFORM = IKANOS_V180
#PLATFORM = SIGMA
#PLATFORM = SIGMA_8622
#PLATFORM = INIC
#PLATFORM = STAR
#PLATFORM = IXP
#PLATFORM = INF_TWINPASS
#PLATFORM = INF_DANUBE
#PLATFORM = BRCM_6358
#PLATFORM = INF_AMAZON_SE
#PLATFORM = CAVM_OCTEON
#PLATFORM = CMPC
#PLATFORM = RALINK_2880
ifeq ($(PLATFORM),5VT)
LINUX_SRC = /project/stable/5vt/ralink-2860-sdk/linux-2.6.17
CROSS_COMPILE = /opt/crosstool/uClibc_v5te_le_gcc_4_1_1/bin/arm-linux-
endif
ifeq ($(PLATFORM),IKANOS_V160)
LINUX_SRC = /home/sample/projects/LX_2618_RG_5_3_00r4_SRC/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif
ifeq ($(PLATFORM),IKANOS_V180)
LINUX_SRC = /home/sample/projects/LX_BSP_VX180_5_4_0r1_ALPHA_26DEC07/linux-2.6.18
CROSS_COMPILE = mips-linux-
endif
ifeq ($(PLATFORM),SIGMA)
LINUX_SRC = /root/sigma/smp86xx_kernel_source_2.7.172.0/linux-2.6.15
CROSS_COMPILE = /root/sigma/smp86xx_toolchain_2.7.172.0/build_mipsel_nofpu/staging_dir/bin/mipsel-linux-
endif
ifeq ($(PLATFORM),SIGMA_8622)
LINUX_SRC = /home/snowpin/armutils_2.5.120.1/build_arm/linux-2.4.22-em86xx
CROSS_COMPILE = /home/snowpin/armutils_2.5.120.1/toolchain/bin/arm-elf-
CROSS_COMPILE_INCLUDE = /home/snowpin/armutils_2.5.120.1/toolchain/lib/gcc-lib/arm-elf/2.95.3
endif
ifeq ($(PLATFORM),INIC)
UCOS_SRC = /opt/uCOS/iNIC_rt2880
CROSS_COMPILE = /usr/bin/mipsel-linux-
endif
ifeq ($(PLATFORM),STAR)
LINUX_SRC = /opt/star/kernel/linux-2.4.27-star
CROSS_COMPILE = /opt/star/tools/arm-linux/bin/arm-linux-
endif
ifeq ($(PLATFORM), RALINK_2880)
LINUX_SRC = /project/stable/RT288x/RT288x_SDK/source/linux-2.4.x
CROSS_COMPILE = /opt/buildroot-gdb/bin/mipsel-linux-
endif
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif
ifeq ($(PLATFORM),IXP)
LINUX_SRC = /project/stable/Gmtek/snapgear-uclibc/linux-2.6.x
CROSS_COMPILE = arm-linux-
endif
ifeq ($(PLATFORM),INF_TWINPASS)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /project/stable/twinpass/release/2.0.1/source/kernel/opensource/linux-2.4.31/
CROSS_COMPILE = mips-linux-
endif
ifeq ($(PLATFORM),INF_DANUBE)
LINUX_SRC = /opt/danube/sdk/linux-2.6.16.x
CROSS_COMPILE = mips-linux-
ROOTDIR = /opt/danube/sdk
export ROOTDIR
endif
ifeq ($(PLATFORM),BRCM_6358)
LINUX_SRC =
CROSS_COMPILE =
endif
ifeq ($(PLATFORM),INF_AMAZON_SE)
# Linux 2.6
#LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
LINUX_SRC = /backup/ifx/3.6.2.2/source/kernel/opensource/linux-2.4.31
#CROSS_COMPILE = mips-linux-
#LINUX_SRC = /project/Infineon/3.6.2.2/source/kernel/opensource/linux-2.4.31
CROSS_COMPILE = /opt/uclibc-toolchain/ifx-lxdb-1-2-3-external/gcc-3.3.6/toolchain-mips/R0208V35/mips-linux-uclibc/bin/
endif
ifeq ($(PLATFORM),ST)
LINUX_SRC = /opt/STM/STLinux-2.2/devkit/sources/kernel/linux0039
CROSS_COMPILE = /opt/STM/STLinux-2.2/devkit/sh4/bin/sh4-linux-
ARCH := sh
export ARCH
endif
ifeq ($(PLATFORM),CAVM_OCTEON)
OCTEON_ROOT = /usr/local/Cavium_Networks/OCTEON-SDK
LINUX_SRC = $(OCTEON_ROOT)/linux/kernel_2.6/linux
CROSS_COMPILE = mips64-octeon-linux-gnu-
endif
ifeq ($(PLATFORM),CMPC)
LINUX_SRC = /opt/fvt_11N_SDK_0807/fvt131x_SDK_11n/linux-2.6.17
CROSS_COMPILE =
endif
LINUX_SRC = /tool/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.29-r51/git
CROSS_COMPILE = arm-angstrom-linux-gnueabi-
export RT28xx_DIR RT28xx_MODE LINUX_SRC CROSS_COMPILE CROSS_COMPILE_INCLUDE PLATFORM RELEASE CHIPSET RTMP_SRC_DIR LINUX_SRC_MODULE TARGET
all: build_tools $(TARGET)
build_tools:
make -C tools
$(RT28xx_DIR)/tools/bin2h
test:
make -C tools test
UCOS:
make -C os/ucos/ MODE=$(RT28xx_MODE)
echo $(RT28xx_MODE)
LINUX:
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
cp -f os/linux/Makefile.4 $(RT28xx_DIR)/os/linux/Makefile
make -C $(RT28xx_DIR)/os/linux/
#cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o /tftpboot
else
cp -f os/linux/Makefile.6 $(RT28xx_DIR)/os/linux/Makefile
make -C $(LINUX_SRC) SUBDIRS=$(RT28xx_DIR)/os/linux modules
#cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko /tftpboot
endif
clean:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
cp -f os/linux/Makefile.4 os/linux/Makefile
else
cp -f os/linux/Makefile.6 os/linux/Makefile
endif
make -C os/linux clean
rm -rf os/linux/Makefile
endif
ifeq ($(TARGET), UCOS)
make -C os/ucos clean MODE=$(RT28xx_MODE)
endif
uninstall:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
make -C $(RT28xx_DIR)/os/linux -f Makefile.4 uninstall
else
make -C $(RT28xx_DIR)/os/linux -f Makefile.6 uninstall
endif
endif
install:
ifeq ($(TARGET), LINUX)
ifneq (,$(findstring 2.4,$(LINUX_SRC)))
make -C $(RT28xx_DIR)/os/linux -f Makefile.4 install
else
make -C $(RT28xx_DIR)/os/linux -f Makefile.6 install
endif
endif
libwapi:
make -C $(RT28xx_DIR)/os/linux -f Makefile.libwapi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modifying Ralink RT3070 STA wifi driver for OpenEmbedded
2010-04-12 18:08 Modifying Ralink RT3070 STA wifi driver for OpenEmbedded Elvis Dowson
@ 2010-04-12 18:31 ` Koen Kooi
2010-04-12 20:21 ` Elvis Dowson
2010-07-27 11:42 ` victor
0 siblings, 2 replies; 4+ messages in thread
From: Koen Kooi @ 2010-04-12 18:31 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12-04-10 20:08, Elvis Dowson wrote:
> Hi,
> I would like to modify the Ralink RT3070 STA wifi driver, so that the Makefile can compile with openembedded.
>
> At the moment, on line 132, I have to explicity set the source path
>
> LINUX_SRC = /tool/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.29-r51/git
> CROSS_COMPILE = arm-angstrom-linux-gnueabi-
>
> What modification should I make to the following make file to make it compatible with OpenEmbedded?
Have a look at the existing rt3070 recipe:
http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/rt2x00/rt3070_2.1.1.0.bb?id=bb3c6f24758b490366543e7392dd13cdcb200b6f
And FWIW, with 2.6.32 you can use the in-kernel rt28xx driver with
rt3070 hw, but you still need the firmware
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFLw2bwMkyGM64RGpERAvLHAKCCa0z5bZlnKylGebqJ9IVhvnxPCQCfWwW8
DYhhZFj2kb6OewZLDKh8388=
=C1TA
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modifying Ralink RT3070 STA wifi driver for OpenEmbedded
2010-04-12 18:31 ` Koen Kooi
@ 2010-04-12 20:21 ` Elvis Dowson
2010-07-27 11:42 ` victor
1 sibling, 0 replies; 4+ messages in thread
From: Elvis Dowson @ 2010-04-12 20:21 UTC (permalink / raw)
To: openembedded-devel
On Apr 12, 2010, at 10:31 PM, Koen Kooi wrote:
>
> Have a look at the existing rt3070 recipe:
> http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/rt2x00/rt3070_2.1.1.0.bb?id=bb3c6f24758b490366543e7392dd13cdcb200b6f
>
> And FWIW, with 2.6.32 you can use the in-kernel rt28xx driver with
> rt3070 hw, but you still need the firmware
>
Thanks Koen!
Best regards,
Elvis
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Modifying Ralink RT3070 STA wifi driver for OpenEmbedded
2010-04-12 18:31 ` Koen Kooi
2010-04-12 20:21 ` Elvis Dowson
@ 2010-07-27 11:42 ` victor
1 sibling, 0 replies; 4+ messages in thread
From: victor @ 2010-07-27 11:42 UTC (permalink / raw)
To: openembedded-devel
Hi Koen,
sorry by this mail.
I'm trying to use a Ralink RT3070 STA wifi dongle with Overo,
but I have problem.
How did you get it? Didi you finally modify the rt3070_2.1.1.0.bb file?
I only need the module to load it, I don't need the sources.
Thank you,
Víctor Andrés
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-27 11:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-12 18:08 Modifying Ralink RT3070 STA wifi driver for OpenEmbedded Elvis Dowson
2010-04-12 18:31 ` Koen Kooi
2010-04-12 20:21 ` Elvis Dowson
2010-07-27 11:42 ` victor
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.