* [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0
@ 2010-01-27 19:32 Petr Štetiar
2010-01-27 19:34 ` Petr Štetiar
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Petr Štetiar @ 2010-01-27 19:32 UTC (permalink / raw)
To: openembedded-devel
This patch adds support for rt3070 kernel driver, used for example by the new
Belkin F6D4050v2 USB WiFi stick.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
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
diff --git a/recipes/rt2x00/files/add-belkin-F6D4050v2.patch b/recipes/rt2x00/files/add-belkin-F6D4050v2.patch
new file mode 100644
index 0000000..7454faf
--- /dev/null
+++ b/recipes/rt2x00/files/add-belkin-F6D4050v2.patch
@@ -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 */
+ };
diff --git a/recipes/rt2x00/files/makefile.patch b/recipes/rt2x00/files/makefile.patch
new file mode 100644
index 0000000..e314d5f
--- /dev/null
+++ b/recipes/rt2x00/files/makefile.patch
@@ -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:
diff --git a/recipes/rt2x00/rt3070_2.1.2.bb b/recipes/rt2x00/rt3070_2.1.2.bb
new file mode 100644
index 0000000..16ad6a0
--- /dev/null
+++ b/recipes/rt2x00/rt3070_2.1.2.bb
@@ -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
+}
--
1.6.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0
2010-01-27 19:32 [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0 Petr Štetiar
@ 2010-01-27 19:34 ` Petr Štetiar
2010-02-07 18:12 ` [PATCH v2] " Petr Štetiar
2010-02-07 19:14 ` [PATCH] " Koen Kooi
2 siblings, 0 replies; 6+ messages in thread
From: Petr Štetiar @ 2010-01-27 19:34 UTC (permalink / raw)
To: openembedded-devel
Petr Štetiar <ynezz@true.cz> [2010-01-27 20:32:44]:
> This patch adds support for rt3070 kernel driver, used for example by the new
> Belkin F6D4050v2 USB WiFi stick.
>
...
> +SRC_URI = "http://ynezz.ibawizard.net/dump/${TMP}.tar.bz2;name=tarball \
Can it be mirrored on OE? It's hard to find working link. Thanks.
-- ynezz
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v2] rt2x00: new recipe for rt3070 version 2.1.2.0
2010-01-27 19:32 [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0 Petr Štetiar
2010-01-27 19:34 ` Petr Štetiar
@ 2010-02-07 18:12 ` Petr Štetiar
2010-02-07 19:14 ` [PATCH] " Koen Kooi
2 siblings, 0 replies; 6+ messages in thread
From: Petr Štetiar @ 2010-02-07 18:12 UTC (permalink / raw)
To: openembedded-devel
This patch adds support for rt3070 kernel driver, used for example by the new
Belkin F6D4050v2 USB WiFi stick.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
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
diff --git a/recipes/rt2x00/files/add-belkin-F6D4050v2.patch b/recipes/rt2x00/files/add-belkin-F6D4050v2.patch
new file mode 100644
index 0000000..7454faf
--- /dev/null
+++ b/recipes/rt2x00/files/add-belkin-F6D4050v2.patch
@@ -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 */
+ };
diff --git a/recipes/rt2x00/files/makefile.patch b/recipes/rt2x00/files/makefile.patch
new file mode 100644
index 0000000..e314d5f
--- /dev/null
+++ b/recipes/rt2x00/files/makefile.patch
@@ -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:
diff --git a/recipes/rt2x00/rt3070_2.1.2.bb b/recipes/rt2x00/rt3070_2.1.2.bb
new file mode 100644
index 0000000..aa6a1b0
--- /dev/null
+++ b/recipes/rt2x00/rt3070_2.1.2.bb
@@ -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
+}
--
1.6.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0
2010-01-27 19:32 [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0 Petr Štetiar
2010-01-27 19:34 ` Petr Štetiar
2010-02-07 18:12 ` [PATCH v2] " Petr Štetiar
@ 2010-02-07 19:14 ` Koen Kooi
2010-02-07 20:42 ` Petr Štetiar
2 siblings, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2010-02-07 19:14 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 27-01-10 20:32, Petr Štetiar wrote:
> 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-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0
2010-02-07 19:14 ` [PATCH] " Koen Kooi
@ 2010-02-07 20:42 ` Petr Štetiar
2010-02-07 22:10 ` Koen Kooi
0 siblings, 1 reply; 6+ messages in thread
From: Petr Štetiar @ 2010-02-07 20:42 UTC (permalink / raw)
To: openembedded-devel
Koen Kooi <k.kooi@student.utwente.nl> [2010-02-07 20:14:05]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 27-01-10 20:32, Petr Štetiar wrote:
> > 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0
2010-02-07 20:42 ` Petr Štetiar
@ 2010-02-07 22:10 ` Koen Kooi
0 siblings, 0 replies; 6+ messages in thread
From: Koen Kooi @ 2010-02-07 22:10 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07-02-10 21:42, Petr Štetiar wrote:
> Koen Kooi <k.kooi@student.utwente.nl> [2010-02-07 20:14:05]:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 27-01-10 20:32, Petr Štetiar wrote:
>>> 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.
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-----
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-02-07 22:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 19:32 [PATCH] rt2x00: new recipe for rt3070 version 2.1.2.0 Petr Štetiar
2010-01-27 19:34 ` Petr Štetiar
2010-02-07 18:12 ` [PATCH v2] " Petr Štetiar
2010-02-07 19:14 ` [PATCH] " Koen Kooi
2010-02-07 20:42 ` Petr Štetiar
2010-02-07 22:10 ` Koen Kooi
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.