Skip to contentSkip to conversation

rt2x00: new recipe for rt3070 version 2.1.2.0

PATCH Superseded Petr Štetiar 2 participants 6 messages Jan 27, 2010 – Feb 7, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: new recipe for rt3070 version 2.1.2.0

This patch adds support for rt3070 kernel driver, used for example by the new Belkin F6D4050v2 USB WiFi stick.

---
 recipes/rt2x00/files/add-belkin-F6D4050v2.patch |   12 +++++++++
 recipes/rt2x00/files/makefile.patch             |   18 ++++++++++++++
 recipes/rt2x00/rt3070_2.1.2.bb                  |   28 +++++++++++++++++++++++
 3 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 recipes/rt2x00/files/add-belkin-F6D4050v2.patch
 create mode 100644 recipes/rt2x00/files/makefile.patch
 create mode 100644 recipes/rt2x00/rt3070_2.1.2.bb
recipes/rt2x00/files/add-belkin-F6D4050v2.patch new file +12 -0
new file mode 100644
index 0000000..7454faf
@@ -0,0 +1,12 @@
+Index: 2009_1110_RT3070_Linux_STA_v2.1.2.0/os/linux/usb_main_dev.c
+===================================================================
+--- 2009_1110_RT3070_Linux_STA_v2.1.2.0.orig/os/linux/usb_main_dev.c	2010-01-23 23:37:09.000000000 +0100
++++ 2009_1110_RT3070_Linux_STA_v2.1.2.0/os/linux/usb_main_dev.c	2010-01-23 23:37:14.000000000 +0100
+@@ -74,6 +74,7 @@
+ 	{USB_DEVICE(0x5A57,0x0283)}, /* Zinwell 3072 */
+ 	{USB_DEVICE(0x04BB,0x0945)}, /* I-O DATA 3072 */
+ 	{USB_DEVICE(0x203D,0x1480)}, /* Encore 3070 */
++	{USB_DEVICE(0x050d,0x935b)}, /* Belkin F6D4050v2 (N150 enhanced) */
+ #endif // RT3070 //
+ 	{ }/* Terminating entry */
+ };
recipes/rt2x00/files/makefile.patch new file +18 -0
new file mode 100644
index 0000000..e314d5f
@@ -0,0 +1,18 @@
+Index: 2009_1110_RT3070_Linux_STA_v2.1.2.0/Makefile
+===================================================================
+--- 2009_1110_RT3070_Linux_STA_v2.1.2.0.orig/Makefile	2010-01-23 23:07:42.000000000 +0100
++++ 2009_1110_RT3070_Linux_STA_v2.1.2.0/Makefile	2010-01-23 23:08:02.000000000 +0100
+@@ -149,11 +149,11 @@
+ 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
++	cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o $(RT28xx_DIR)
+ 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
++	cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko $(RT28xx_DIR)
+ endif	
+ 
+ clean:
recipes/rt2x00/rt3070_2.1.2.bb new file +28 -0
new file mode 100644
index 0000000..16ad6a0
@@ -0,0 +1,28 @@
+DESCRIPTION = "Driver for Ralink rt3070 USB 802.11abgn WiFi sticks"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+
+PR = "r0"
+
+TMP = "2009_1110_RT3070_Linux_STA_v${PV}.0"
+
+SRC_URI = "http://ynezz.ibawizard.net/dump/${TMP}.tar.bz2;name=tarball \
+           file://makefile.patch;patch=1 \
+           file://add-belkin-F6D4050v2.patch;patch=1 \
+"
+
+SRC_URI[tarball.md5sum] = "01a4d6804fff2a76584d20f7c21b1af4"
+SRC_URI[tarball.sha256sum] = "46723d7284360435a9d5769ac1f81fb7f6058c393bb0625dc3fa0a2f282feadd"
+
+inherit module
+
+S = "${WORKDIR}/${TMP}"
+
+EXTRA_OEMAKE = "LINUX_SRC=${STAGING_KERNEL_DIR}"
+
+do_install() {
+	install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
+	install -d ${D}${sysconfdir}/Wireless/RT2870STA
+	install -m 0644 ${S}/${PN}sta${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
+	touch ${D}${sysconfdir}/Wireless/RT2870STA/RT2870STA.dat
+}
Signature · 1 line
1.6.0.4
#2 lore raw

PATCH v2 1/1 rt2x00: new recipe for rt3070 version 2.1.2.0

In reply to Petr Štetiar

This patch adds support for rt3070 kernel driver, used for example by the new Belkin F6D4050v2 USB WiFi stick.

---
 recipes/rt2x00/files/add-belkin-F6D4050v2.patch |   12 +++++++++
 recipes/rt2x00/files/makefile.patch             |   18 ++++++++++++++
 recipes/rt2x00/rt3070_2.1.2.bb                  |   28 +++++++++++++++++++++++
 3 files changed, 58 insertions(+), 0 deletions(-)
 create mode 100644 recipes/rt2x00/files/add-belkin-F6D4050v2.patch
 create mode 100644 recipes/rt2x00/files/makefile.patch
 create mode 100644 recipes/rt2x00/rt3070_2.1.2.bb
recipes/rt2x00/files/add-belkin-F6D4050v2.patch new file +12 -0
new file mode 100644
index 0000000..7454faf
@@ -0,0 +1,12 @@
+Index: 2009_1110_RT3070_Linux_STA_v2.1.2.0/os/linux/usb_main_dev.c
+===================================================================
+--- 2009_1110_RT3070_Linux_STA_v2.1.2.0.orig/os/linux/usb_main_dev.c	2010-01-23 23:37:09.000000000 +0100
++++ 2009_1110_RT3070_Linux_STA_v2.1.2.0/os/linux/usb_main_dev.c	2010-01-23 23:37:14.000000000 +0100
+@@ -74,6 +74,7 @@
+ 	{USB_DEVICE(0x5A57,0x0283)}, /* Zinwell 3072 */
+ 	{USB_DEVICE(0x04BB,0x0945)}, /* I-O DATA 3072 */
+ 	{USB_DEVICE(0x203D,0x1480)}, /* Encore 3070 */
++	{USB_DEVICE(0x050d,0x935b)}, /* Belkin F6D4050v2 (N150 enhanced) */
+ #endif // RT3070 //
+ 	{ }/* Terminating entry */
+ };
recipes/rt2x00/files/makefile.patch new file +18 -0
new file mode 100644
index 0000000..e314d5f
@@ -0,0 +1,18 @@
+Index: 2009_1110_RT3070_Linux_STA_v2.1.2.0/Makefile
+===================================================================
+--- 2009_1110_RT3070_Linux_STA_v2.1.2.0.orig/Makefile	2010-01-23 23:07:42.000000000 +0100
++++ 2009_1110_RT3070_Linux_STA_v2.1.2.0/Makefile	2010-01-23 23:08:02.000000000 +0100
+@@ -149,11 +149,11 @@
+ 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
++	cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.o $(RT28xx_DIR)
+ 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
++	cp -f $(RT28xx_DIR)/os/linux/rt$(CHIPSET)sta.ko $(RT28xx_DIR)
+ endif	
+ 
+ clean:
recipes/rt2x00/rt3070_2.1.2.bb new file +28 -0
new file mode 100644
index 0000000..aa6a1b0
@@ -0,0 +1,28 @@
+DESCRIPTION = "Driver for Ralink rt3070 USB 802.11abgn WiFi sticks"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+
+PR = "r0"
+
+TMP = "2009_1110_RT3070_Linux_STA_v${PV}.0"
+
+SRC_URI = "http://sources.openembedded.org/${TMP}.tar.bz2;name=tarball \
+           file://makefile.patch;patch=1 \
+           file://add-belkin-F6D4050v2.patch;patch=1 \
+"
+
+SRC_URI[tarball.md5sum] = "01a4d6804fff2a76584d20f7c21b1af4"
+SRC_URI[tarball.sha256sum] = "46723d7284360435a9d5769ac1f81fb7f6058c393bb0625dc3fa0a2f282feadd"
+
+inherit module
+
+S = "${WORKDIR}/${TMP}"
+
+EXTRA_OEMAKE = "LINUX_SRC=${STAGING_KERNEL_DIR}"
+
+do_install() {
+	install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
+	install -d ${D}${sysconfdir}/Wireless/RT2870STA
+	install -m 0644 ${S}/${PN}sta${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/drivers/net/wireless
+	touch ${D}${sysconfdir}/Wireless/RT2870STA/RT2870STA.dat
+}
Signature · 1 line
1.6.0.4
#3 lore raw
In reply to Petr Štetiar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Petr Štetiar

This patch adds support for rt3070 kernel driver, used for example by the new Belkin F6D4050v2 USB WiFi stick.

How does this differ from recipes/ralink/rt3070_2.1.1.0.bb and why is it in another directory?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLbxD9MkyGM64RGpERAkbcAJ0Wf2CZDkWMDvwzEXY2yCxwTxEaiwCgtsYH 1ClbNFNVeabGEjow8O9s7eM=
=jYNT
-----END PGP SIGNATURE-----

#4 lore raw

Koen Kooi <[email protected]> [2010-02-07 20:14:05]:

Quoted 9 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Petr Štetiar

This patch adds support for rt3070 kernel driver, used for example by the new Belkin F6D4050v2 USB WiFi stick.

How does this differ from recipes/ralink/rt3070_2.1.1.0.bb and why is it in another directory?

Hm, looks like I overlooked this recipe:( I've seen rt61 and rt73 recipes in rt2x00 (was searching for packages starting with 'rt') dir and I thought, that this dir is appropriate for my recipe also. Anyway rt3070 is called 3070, but it's 2870 with some mods, you can see outputs of 2870 in dmesg, even config file is called RT2870sta.dat, it's a weird driver but the only option.

There's a difference in my recipe also, I create empty RT2870sta.dat file, because I was unable to get it working with it (what a driver reading config files from userspace) and I use it with iwconfig successfully.

There's a bug[1] for it and probably can be closed, patch[2] which can be discarded also. And FYI the direct links at Ralink's site don't work anymore(you've to agree with GNU/GPL EULA :D before downloading it), so I kindly asked Laibsch if he could mirror it on OE.

So, should I prepare a patch which will move recipes from rt2x00 dir to ralink dir and move my recipe there(newer version)? Thanks for you time reviewing my patch.

1. http://bugs.openembedded.org/show_bug.cgi?id=5322
2. http://patchwork.openembedded.org/patch/1089/

-- ynezz

#5 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 22 lines · Petr Štetiar

Koen Kooi <[email protected]> [2010-02-07 20:14:05]:

Quoted 9 lines

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 2 lines · Petr Štetiar

This patch adds support for rt3070 kernel driver, used for example by the new Belkin F6D4050v2 USB WiFi stick.

How does this differ from recipes/ralink/rt3070_2.1.1.0.bb and why is it in another directory?

Hm, looks like I overlooked this recipe:( I've seen rt61 and rt73 recipes in rt2x00 (was searching for packages starting with 'rt') dir and I thought, that this dir is appropriate for my recipe also. Anyway rt3070 is called 3070, but it's 2870 with some mods, you can see outputs of 2870 in dmesg, even config file is called RT2870sta.dat, it's a weird driver but the only option.

There's a difference in my recipe also, I create empty RT2870sta.dat file, because I was unable to get it working with it (what a driver reading config files from userspace) and I use it with iwconfig successfully.

Quoted 8 lines

There's a bug[1] for it and probably can be closed, patch[2] which can be discarded also. And FYI the direct links at Ralink's site don't work anymore(you've to agree with GNU/GPL EULA :D before downloading it), so I kindly asked Laibsch if he could mirror it on OE.

So, should I prepare a patch which will move recipes from rt2x00 dir to ralink dir and move my recipe there(newer version)? Thanks for you time reviewing my patch.

I have no strong opinion on that, I would only like to keep the wifi of my touchbook working :)

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLbzpsMkyGM64RGpERAuweAJsGhuhaZsCgEQquAg12Y9S3VEuQMgCfVXWx w5x8t7ISW1SOH9Yj0r6vtr0=
=PZcN
-----END PGP SIGNATURE-----