Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-06 Thread Florian Fainelli

Hi,

Le 04/05/12 23:36, Hanno Schupp a écrit :

I am at a loss then what to do. I even went to the length of installing alpine 
on my pc just for the purpose of sending one email.

Why is this so hard? This makes porting openwrt to a new router model look easy 
in comparison. I sent it to myself as a copy and it looked completely normal to 
me. Where and how can I check it got mangled and how can I avoid it getting it 
mangled. I followed the instructions in kernel.org for email-clients and 
apparently the patch still gets mangled. Argh.


It is hard because you should be using git-send-email to make sure your 
patches are not mangled by your mailer in any form.




Kind Regards

Hanno


On 6/04/2012, at 9:24 AM, Jo-Philipp Wichx...@subsignal.org  wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It got line wrapped.

~ Jow
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9+DYgACgkQdputYINPTPPmbgCePy75NtkXFACVcCe01xA4Go7G
9uAAn0DGSguFrkM+5U01dbltb4Yg9kbG
=k+Hp
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-06 Thread Hanno Schupp
Should I then? If that is what I 'should do', why does
https://dev.openwrt.org/wiki/SubmittingPatches not tell me about it?




On 6 April 2012 20:20, Florian Fainelli flor...@openwrt.org wrote:
 Hi,

 Le 04/05/12 23:36, Hanno Schupp a écrit :

 I am at a loss then what to do. I even went to the length of installing
 alpine on my pc just for the purpose of sending one email.

 Why is this so hard? This makes porting openwrt to a new router model look
 easy in comparison. I sent it to myself as a copy and it looked completely
 normal to me. Where and how can I check it got mangled and how can I avoid
 it getting it mangled. I followed the instructions in kernel.org for
 email-clients and apparently the patch still gets mangled. Argh.


 It is hard because you should be using git-send-email to make sure your
 patches are not mangled by your mailer in any form.



 Kind Regards

 Hanno


 On 6/04/2012, at 9:24 AM, Jo-Philipp Wichx...@subsignal.org  wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 It got line wrapped.

 ~ Jow
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9+DYgACgkQdputYINPTPPmbgCePy75NtkXFACVcCe01xA4Go7G
 9uAAn0DGSguFrkM+5U01dbltb4Yg9kbG
 =k+Hp
 -END PGP SIGNATURE-
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel

 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-06 Thread Gabor Juhos
2012.04.06. 0:01 keltezéssel, Hanno Schupp írta:
 Great collaboration on these two fantastic routers on the openwrt forum:
 https://forum.openwrt.org/viewtopic.php?id=32320
 Above all kudos to aryufan. Well done and thank you everyone else who
 contributed.
 
 To-Do: LED for wlan is not yet activated
 To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by
 the router
 
 Signed-off-by: Hanno Schupp hanno.sch...@gmail.com

I have fixed the previous version of this patch and applied that.

Thanks,
Gabor
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hanno Schupp
Was that patch now received unmangled?
If so, can it be applied, please?
Thanks
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It got line wrapped.

~ Jow
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9+DYgACgkQdputYINPTPPmbgCePy75NtkXFACVcCe01xA4Go7G
9uAAn0DGSguFrkM+5U01dbltb4Yg9kbG
=k+Hp
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hanno Schupp
I am at a loss then what to do. I even went to the length of installing alpine 
on my pc just for the purpose of sending one email. 

Why is this so hard? This makes porting openwrt to a new router model look easy 
in comparison. I sent it to myself as a copy and it looked completely normal to 
me. Where and how can I check it got mangled and how can I avoid it getting it 
mangled. I followed the instructions in kernel.org for email-clients and 
apparently the patch still gets mangled. Argh.

Kind Regards

Hanno 


On 6/04/2012, at 9:24 AM, Jo-Philipp Wich x...@subsignal.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 It got line wrapped.
 
 ~ Jow
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAk9+DYgACgkQdputYINPTPPmbgCePy75NtkXFACVcCe01xA4Go7G
 9uAAn0DGSguFrkM+5U01dbltb4Yg9kbG
 =k+Hp
 -END PGP SIGNATURE-
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread edgar . soldin
this is different from client to client. if unsure or unable to fix it simply 
attach the patch to the email. this way it will survive whatever comes. people 
on this mailing list like the patches inline for commenting, but heck.. if it 
does not work out for you, simply attach it (for usage) *and* send it inline 
(for commenting).

generally mail programs have options to disable automatic line breaks and html 
composition. look for those.

..ede

On 05.04.2012 23:36, Hanno Schupp wrote:
 I am at a loss then what to do. I even went to the length of installing 
 alpine on my pc just for the purpose of sending one email. 
 
 Why is this so hard? This makes porting openwrt to a new router model look 
 easy in comparison. I sent it to myself as a copy and it looked completely 
 normal to me. Where and how can I check it got mangled and how can I avoid it 
 getting it mangled. I followed the instructions in kernel.org for 
 email-clients and apparently the patch still gets mangled. Argh.
 
 Kind Regards
 
 Hanno 
 
 
 On 6/04/2012, at 9:24 AM, Jo-Philipp Wich x...@subsignal.org wrote:
 
 It got line wrapped.
 
 ~ Jow
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hartmut Knaack
It might help to send an e-mail to yourself with inline code and diff the 
received code with your original code files.
Take care

Hartmut


Hanno Schupp schrieb:
 I am at a loss then what to do. I even went to the length of installing 
 alpine on my pc just for the purpose of sending one email. 

 Why is this so hard? This makes porting openwrt to a new router model look 
 easy in comparison. I sent it to myself as a copy and it looked completely 
 normal to me. Where and how can I check it got mangled and how can I avoid it 
 getting it mangled. I followed the instructions in kernel.org for 
 email-clients and apparently the patch still gets mangled. Argh.

 Kind Regards

 Hanno 


 On 6/04/2012, at 9:24 AM, Jo-Philipp Wich x...@subsignal.org wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 It got line wrapped.

 ~ Jow
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9+DYgACgkQdputYINPTPPmbgCePy75NtkXFACVcCe01xA4Go7G
 9uAAn0DGSguFrkM+5U01dbltb4Yg9kbG
 =k+Hp
 -END PGP SIGNATURE-
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hanno Schupp
Great collaboration on these two fantastic routers on the openwrt forum:
https://forum.openwrt.org/viewtopic.php?id=32320
Above all kudos to aryufan. Well done and thank you everyone else who
contributed.

To-Do: LED for wlan is not yet activated
To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by
the router

Signed-off-by: Hanno Schupp hanno.sch...@gmail.com


Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c  (revision 31152)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c  (working copy)
@@ -9,17 +9,24 @@
  */
 
 #include linux/export.h
+#include linux/pci.h
+#include linux/ath9k_platform.h
 #include linux/platform_device.h
 #include linux/phy.h
 #include linux/ar8216_platform.h
 
 #include asm/mach-ath79/ar71xx_regs.h
 #include asm/mach-ath79/ath79.h
+#include asm/mach-ath79/pci.h
+#include asm/mach-ath79/irq.h
 #include asm/mach-ath79/mach-rb750.h
 
 #include common.h
+#include dev-usb.h
 #include dev-eth.h
 #include machtypes.h
+#include pci-ath9k-fixup.h
+#include pci.h
 
 static struct rb750_led_data rb750_leds[] = {
{
@@ -270,3 +277,88 @@
 
 MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 750GL,
 rb750gr3_setup);
+
+static struct ath9k_platform_data rb751_wmac_data = {
+   .led_pin = -1,
+};
+
+static u8 rb751_wmac_mac[6];
+
+static int rb751_pci_plat_dev_init(struct pci_dev *dev)
+{
+   switch (PCI_SLOT(dev-devfn)) {
+   case 0:
+   dev-dev.platform_data = rb751_wmac_data;
+   break;
+   }
+
+   return 0;
+}
+
+static int decode_rle(char* output, int len, char* in)
+{
+   char* ptr = output;
+   char* end = output + len;
+   while(*in) {
+   if(*in  0) {
+   int i = -*in++;
+   while(i--  0) {
+   if(ptr = end)
+   return -1;
+   *ptr++ = *in++;
+   }
+   } else if(*in  0) {
+   int i = *in++;
+   while(i--  0) {
+   if(ptr = end)
+   return -1;
+   *ptr++ = *in;
+   }
+   in++;
+   }
+   }
+   return ptr - output;
+}
+
+#define RB751_HARDCONFIG 0x1f00b000
+#define RB751_MAC_ADDRESS_OFFSET 0xE80
+#define RB751_CALDATA_OFFSET 0x27C
+
+static void __init rb751_wlan_and_usb_setup(void)
+{
+   u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);
+
+   ath79_register_usb();
+
+   ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);
+   ath79_register_pci();
+
+   rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac, 
+   hardconfig + RB751_MAC_ADDRESS_OFFSET, 6);
+
+   if(decode_rle((char*)rb751_wmac_data.eeprom_data, 
+   sizeof(rb751_wmac_data.eeprom_data), 
+   hardconfig + RB751_CALDATA_OFFSET) == 
+   sizeof(rb751_wmac_data.eeprom_data)) {
+   pr_info(rb7xx: calibration data found\n);
+   pci_enable_ath9k_fixup(0, rb751_wmac_data.eeprom_data); 
+   }
+}
+
+static void __init rb751_setup(void)
+{
+   rb750_setup();
+   rb751_wlan_and_usb_setup();
+}
+
+MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,
+rb751_setup);
+
+static void __init rb751g_setup(void)
+{
+   rb750gr3_setup();
+   rb751_wlan_and_usb_setup();
+}
+
+MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,
+rb751g_setup);
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 31152)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -250,6 +250,12 @@
*RouterBOARD 750GL)
name=rb-750gl
;;
+   *RouterBOARD 751)
+   name=rb-751
+   ;;
+   *RouterBOARD 751G)
+   name=rb-751g
+   ;;
*Rocket M)
name=rocket-m
;;
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/network (revision 31152)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network (working copy)
@@ -63,6 +63,7 @@
;;
 
 rb-750gl |\
+rb-751g |\
 wzr-hp-g450h)
ucidef_set_interfaces_lan_wan eth0.1 eth0.2
ucidef_add_switch switch0 1 1
@@ -153,6 +154,7 @@
 dir-615-e4 |\
 ja76pf |\
 rb-750 |\
+rb-751 |\
 tew-632brp |\
 tl-mr3220 |\
 tl-mr3420 |\
___
openwrt-devel mailing list

Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

this one is fine...

Now we still have to wait fore gabor to review it :)

~ Jow
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9+Fn4ACgkQdputYINPTPPd4wCfbvi6Up8VrBxC3JNZa9TG0q0p
c30An0hdXrhMVGyIq3t6Y5jx+a9JYaQg
=1B2j
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hanno Schupp
Apologies fr my frustrated rant ;-)
Thanks everyone for your advice.

One last try in-line. Is that any better?

Please advise



On 6 April 2012 10:01, Hanno Schupp hanno.sch...@gmail.com wrote:
 Great collaboration on these two fantastic routers on the openwrt forum:
 https://forum.openwrt.org/viewtopic.php?id=32320
 Above all kudos to aryufan. Well done and thank you everyone else who
 contributed.

 To-Do: LED for wlan is not yet activated
 To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by
 the router

 Signed-off-by: Hanno Schupp hanno.sch...@gmail.com


 Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
 ===
 --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c      (revision 
 31152)
 +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c      (working copy)
 @@ -9,17 +9,24 @@
  */

  #include linux/export.h
 +#include linux/pci.h
 +#include linux/ath9k_platform.h
  #include linux/platform_device.h
  #include linux/phy.h
  #include linux/ar8216_platform.h

  #include asm/mach-ath79/ar71xx_regs.h
  #include asm/mach-ath79/ath79.h
 +#include asm/mach-ath79/pci.h
 +#include asm/mach-ath79/irq.h
  #include asm/mach-ath79/mach-rb750.h

  #include common.h
 +#include dev-usb.h
  #include dev-eth.h
  #include machtypes.h
 +#include pci-ath9k-fixup.h
 +#include pci.h

  static struct rb750_led_data rb750_leds[] = {
        {
 @@ -270,3 +277,88 @@

  MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 750GL,
             rb750gr3_setup);
 +
 +static struct ath9k_platform_data rb751_wmac_data = {
 +       .led_pin = -1,
 +};
 +
 +static u8 rb751_wmac_mac[6];
 +
 +static int rb751_pci_plat_dev_init(struct pci_dev *dev)
 +{
 +       switch (PCI_SLOT(dev-devfn)) {
 +       case 0:
 +               dev-dev.platform_data = rb751_wmac_data;
 +               break;
 +       }
 +
 +       return 0;
 +}
 +
 +static int decode_rle(char* output, int len, char* in)
 +{
 +       char* ptr = output;
 +       char* end = output + len;
 +       while(*in) {
 +               if(*in  0) {
 +                       int i = -*in++;
 +                       while(i--  0) {
 +                               if(ptr = end)
 +                                       return -1;
 +                               *ptr++ = *in++;
 +                       }
 +               } else if(*in  0) {
 +                       int i = *in++;
 +                       while(i--  0) {
 +                               if(ptr = end)
 +                                       return -1;
 +                               *ptr++ = *in;
 +                       }
 +                       in++;
 +               }
 +       }
 +       return ptr - output;
 +}
 +
 +#define RB751_HARDCONFIG 0x1f00b000
 +#define RB751_MAC_ADDRESS_OFFSET 0xE80
 +#define RB751_CALDATA_OFFSET 0x27C
 +
 +static void __init rb751_wlan_and_usb_setup(void)
 +{
 +       u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);
 +
 +       ath79_register_usb();
 +
 +       ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);
 +       ath79_register_pci();
 +
 +       rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac,
 +                       hardconfig + RB751_MAC_ADDRESS_OFFSET, 6);
 +
 +       if(decode_rle((char*)rb751_wmac_data.eeprom_data,
 +                       sizeof(rb751_wmac_data.eeprom_data),
 +                       hardconfig + RB751_CALDATA_OFFSET) ==
 +                       sizeof(rb751_wmac_data.eeprom_data)) {
 +               pr_info(rb7xx: calibration data found\n);
 +               pci_enable_ath9k_fixup(0, rb751_wmac_data.eeprom_data);
 +       }
 +}
 +
 +static void __init rb751_setup(void)
 +{
 +       rb750_setup();
 +       rb751_wlan_and_usb_setup();
 +}
 +
 +MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,
 +            rb751_setup);
 +
 +static void __init rb751g_setup(void)
 +{
 +       rb750gr3_setup();
 +       rb751_wlan_and_usb_setup();
 +}
 +
 +MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,
 +            rb751g_setup);
 Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
 ===
 --- target/linux/ar71xx/base-files/lib/ar71xx.sh        (revision 31152)
 +++ target/linux/ar71xx/base-files/lib/ar71xx.sh        (working copy)
 @@ -250,6 +250,12 @@
        *RouterBOARD 750GL)
                name=rb-750gl
                ;;
 +       *RouterBOARD 751)
 +               name=rb-751
 +               ;;
 +       *RouterBOARD 751G)
 +               name=rb-751g
 +               ;;
        *Rocket M)
                name=rocket-m
                ;;
 Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
 ===
 --- target/linux/ar71xx/base-files/etc/uci-defaults/network     (revision 
 31152)
 +++ target/linux/ar71xx/base-files/etc/uci-defaults/network     (working copy)
 @@ -63,6 +63,7 @@
      

Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-05 Thread Hanno Schupp
Great. Thanks.

Mental note:
Ctrl-R in Alpine is what made the difference.

On 6 April 2012 10:02, Jo-Philipp Wich x...@subsignal.org wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 this one is fine...

 Now we still have to wait fore gabor to review it :)

 ~ Jow
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk9+Fn4ACgkQdputYINPTPPd4wCfbvi6Up8VrBxC3JNZa9TG0q0p
 c30An0hdXrhMVGyIq3t6Y5jx+a9JYaQg
 =1B2j
 -END PGP SIGNATURE-
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-04 Thread Hanno Schupp
Great collaboration on these two fantastic routers on the openwrt forum: 
https://forum.openwrt.org/viewtopic.php?id=32320
Above all kudos to aryufan. Well done and thank you everyone else who 
contributed.
 
To-Do: LED for wlan is not yet activated
To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by 
the router
 
Signed-off-by: Hanno Schupp hanno.sch...@gmail.com


Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c
===
--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c  (revision 
31152)
+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c  (working 
copy)
@@ -9,17 +9,24 @@
  */
 
 #include linux/export.h
+#include linux/pci.h
+#include linux/ath9k_platform.h
 #include linux/platform_device.h
 #include linux/phy.h
 #include linux/ar8216_platform.h
 
 #include asm/mach-ath79/ar71xx_regs.h
 #include asm/mach-ath79/ath79.h
+#include asm/mach-ath79/pci.h
+#include asm/mach-ath79/irq.h
 #include asm/mach-ath79/mach-rb750.h
 
 #include common.h
+#include dev-usb.h
 #include dev-eth.h
 #include machtypes.h
+#include pci-ath9k-fixup.h
+#include pci.h
 
 static struct rb750_led_data rb750_leds[] = {
{
@@ -270,3 +277,88 @@
 
 MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 
750GL,
 rb750gr3_setup);
+
+static struct ath9k_platform_data rb751_wmac_data = {
+   .led_pin = -1,
+};
+
+static u8 rb751_wmac_mac[6];
+
+static int rb751_pci_plat_dev_init(struct pci_dev *dev)
+{
+   switch (PCI_SLOT(dev-devfn)) {
+   case 0:
+   dev-dev.platform_data = rb751_wmac_data;
+   break;
+   }
+
+   return 0;
+}
+
+static int decode_rle(char* output, int len, char* in)
+{
+   char* ptr = output;
+   char* end = output + len;
+   while(*in) {
+   if(*in  0) {
+   int i = -*in++;
+   while(i--  0) {
+   if(ptr = end)
+   return -1;
+   *ptr++ = *in++;
+   }
+   } else if(*in  0) {
+   int i = *in++;
+   while(i--  0) {
+   if(ptr = end)
+   return -1;
+   *ptr++ = *in;
+   }
+   in++;
+   }
+   }
+   return ptr - output;
+}
+
+#define RB751_HARDCONFIG 0x1f00b000
+#define RB751_MAC_ADDRESS_OFFSET 0xE80
+#define RB751_CALDATA_OFFSET 0x27C
+
+static void __init rb751_wlan_and_usb_setup(void)
+{
+   u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);
+
+   ath79_register_usb();
+
+   ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);
+   ath79_register_pci();
+
+   rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac, 
+   hardconfig + RB751_MAC_ADDRESS_OFFSET, 6);
+
+   if(decode_rle((char*)rb751_wmac_data.eeprom_data, 
+   sizeof(rb751_wmac_data.eeprom_data), 
+   hardconfig + RB751_CALDATA_OFFSET) == 
+   sizeof(rb751_wmac_data.eeprom_data)) {
+   pr_info(rb7xx: calibration data found\n);
+   pci_enable_ath9k_fixup(0, rb751_wmac_data.eeprom_data); 
+   }
+}
+
+static void __init rb751_setup(void)
+{
+   rb750_setup();
+   rb751_wlan_and_usb_setup();
+}
+
+MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,
+rb751_setup);
+
+static void __init rb751g_setup(void)
+{
+   rb750gr3_setup();
+   rb751_wlan_and_usb_setup();
+}
+
+MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,
+rb751g_setup);
Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
===
--- target/linux/ar71xx/base-files/lib/ar71xx.sh(revision 31152)
+++ target/linux/ar71xx/base-files/lib/ar71xx.sh(working copy)
@@ -250,6 +250,12 @@
*RouterBOARD 750GL)
name=rb-750gl
;;
+   *RouterBOARD 751)
+   name=rb-751
+   ;;
+   *RouterBOARD 751G)
+   name=rb-751g
+   ;;
*Rocket M)
name=rocket-m
;;
Index: target/linux/ar71xx/base-files/etc/uci-defaults/network
===
--- target/linux/ar71xx/base-files/etc/uci-defaults/network (revision 
31152)
+++ target/linux/ar71xx/base-files/etc/uci-defaults/network (working 
copy)
@@ -63,6 +63,7 @@
;;
 
 rb-750gl |\
+rb-751g |\
 wzr-hp-g450h)
ucidef_set_interfaces_lan_wan eth0.1 eth0.2
ucidef_add_switch switch0 1 1
@@ -153,6 +154,7 @@
 dir-615-e4 |\
 ja76pf |\
 rb-750 |\
+rb-751 |\
 tew-632brp |\
 tl-mr3220 |\
 tl-mr3420 |\

___
openwrt-devel 

Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Jonas Gorski
Hi,

On 3 April 2012 07:51, Hanno Schupp hanno.sch...@gmail.com wrote:
 Hi, can we get this applied please, before it goes stale?
 Thanks

The patch was totally borked by being submitted as html email and/or
by your email client; patchwork didn't even recognise it.

Also there are several code style issues regarding kernel code style
(position of braces, line length etc), please update the code to
follow http://lxr.linux.no/#linux+v3.3.1/Documentation/CodingStyle.

Regards
Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Hanno Schupp
Great collaboration on these two fantastic routers on the openwrt forum:
https://forum.openwrt.org/viewtopic.php?id=32320
https://forum.openwrt.org/viewtopic.php?id=32320

Above all kudos to aryufan. Well done and thank you everyone else who
contributed.

 

To-Do: LED for wlan is not yet activated

To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by the
router

 

Signed-off-by: Hanno Schupp  mailto:hanno.sch...@gmail.com
hanno.sch...@gmail.com

 

 

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c

===

--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c   (revision
31152)

+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c(working copy)

@@ -9,17 +9,24 @@

  */

 #include linux/export.h

+#include linux/pci.h

+#include linux/ath9k_platform.h

#include linux/platform_device.h

#include linux/phy.h

#include linux/ar8216_platform.h

 #include asm/mach-ath79/ar71xx_regs.h

#include asm/mach-ath79/ath79.h

+#include asm/mach-ath79/pci.h

+#include asm/mach-ath79/irq.h

#include asm/mach-ath79/mach-rb750.h

 #include common.h

+#include dev-usb.h

#include dev-eth.h

#include machtypes.h

+#include pci-ath9k-fixup.h

+#include pci.h

 static struct rb750_led_data rb750_leds[] = {

   {

@@ -270,3 +277,88 @@

 MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 750GL,

rb750gr3_setup);

+

+static struct ath9k_platform_data rb751_wmac_data = {

+ .led_pin = -1,

+};

+

+static u8 rb751_wmac_mac[6];

+

+static int rb751_pci_plat_dev_init(struct pci_dev *dev)

+{

+ switch (PCI_SLOT(dev-devfn)) {

+ case 0:

+ dev-dev.platform_data = rb751_wmac_data;

+ break;

+ }

+

+ return 0;

+}

+

+static int decode_rle(char* output, int len, char* in)

+{

+ char* ptr = output;

+ char* end = output + len;

+ while(*in) {

+ if(*in  0) {

+ int i = -*in++;

+ while(i--  0) {

+ if(ptr = end)

+
return -1;

+ *ptr++ =
*in++;

+ }

+ } else if(*in  0) {

+ int i = *in++;

+ while(i--  0) {

+ if(ptr = end)

+
return -1;

+ *ptr++ = *in;

+ }

+ in++;

+ }

+ }

+ return ptr - output;

+}

+

+#define RB751_HARDCONFIG 0x1f00b000

+#define RB751_MAC_ADDRESS_OFFSET 0xE80

+#define RB751_CALDATA_OFFSET 0x27C

+

+static void __init rb751_wlan_and_usb_setup(void)

+{

+ u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);

+

+ ath79_register_usb();

+

+ ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);

+ ath79_register_pci();

+

+ rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac, 

+ hardconfig +
RB751_MAC_ADDRESS_OFFSET, 6);

+

+ if(decode_rle((char*)rb751_wmac_data.eeprom_data, 

+
sizeof(rb751_wmac_data.eeprom_data), 

+ hardconfig +
RB751_CALDATA_OFFSET) == 

+
sizeof(rb751_wmac_data.eeprom_data)) {

+ pr_info(rb7xx: calibration data found\n);

+ pci_enable_ath9k_fixup(0,
rb751_wmac_data.eeprom_data);  

+ }

+}

+

+static void __init rb751_setup(void)

+{

+ rb750_setup();

+ rb751_wlan_and_usb_setup();

+}

+

+MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,

+  rb751_setup);

+

+static void __init rb751g_setup(void)

+{

+ rb750gr3_setup();

+ rb751_wlan_and_usb_setup();

+}

+

+MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,

+  rb751g_setup);

Index: target/linux/ar71xx/base-files/lib/ar71xx.sh

===

--- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 31152)

+++ target/linux/ar71xx/base-files/lib/ar71xx.sh  (working copy)

@@ -250,6 +250,12 @@

   *RouterBOARD 750GL)

   name=rb-750gl

   ;;

+ *RouterBOARD 751)

+ name=rb-751

+ ;;

+ *RouterBOARD 751G)

+ 

Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Vasilis Tsiligiannis
On Wed 04 of Apr 2012 06:42:24 Hanno Schupp wrote:
 Great collaboration on these two fantastic routers on the openwrt forum:
 https://forum.openwrt.org/viewtopic.php?id=32320
 https://forum.openwrt.org/viewtopic.php?id=32320
 
 Above all kudos to aryufan. Well done and thank you everyone else who
 contributed.
 
 
 
 To-Do: LED for wlan is not yet activated
 
 To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by the
 router
 
 
 
 Signed-off-by: Hanno Schupp  mailto:hanno.sch...@gmail.com
 hanno.sch...@gmail.com

Hi Hanno,

the patch you have submitted seems somehow mangled.

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Hanno Schupp
I sent it with google mail - mangled.
I sent it this time with outlook - mangled.

How is one supposed to send patches to this mailing list without patches 
getting mangled? Please advise

Kind Regards

Hanno 


On 4/04/2012, at 8:21 AM, Vasilis Tsiligiannis b_tsiligian...@silverton.gr 
wrote:

 On Wed 04 of Apr 2012 06:42:24 Hanno Schupp wrote:
 Great collaboration on these two fantastic routers on the openwrt forum:
 https://forum.openwrt.org/viewtopic.php?id=32320
 https://forum.openwrt.org/viewtopic.php?id=32320
 
 Above all kudos to aryufan. Well done and thank you everyone else who
 contributed.
 
 
 
 To-Do: LED for wlan is not yet activated
 
 To-Do: TxPower over 20dBm (RB751U) or 22dBm (RB751G) are not accepted by the
 router
 
 
 
 Signed-off-by: Hanno Schupp  mailto:hanno.sch...@gmail.com
 hanno.sch...@gmail.com
 
 Hi Hanno,
 
 the patch you have submitted seems somehow mangled.
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-03 Thread Vasilis Tsiligiannis
On Wed 04 of Apr 2012 08:30:17 Hanno Schupp wrote:
 How is one supposed to send patches to this mailing list without patches
 getting mangled? Please advise

Here are some instruction on how to use some email clients for sending patches 
to the list.

I hope it helps...

http://kernel.org/doc/Documentation/email-clients.txt

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-04-02 Thread Hanno Schupp
Hi, can we get this applied please, before it goes stale?
Thanks

On 31 March 2012 23:22, Hanno Schupp hanno.sch...@gmail.com wrote:
 Great collaboration on these two fantastic routers on the openwrt forum:
 https://forum.openwrt.org/viewtopic.php?id=32320

 Above all kudos to aryufan. Well done and thank you everyone else who
 contributed.



 To-Do: LED for wlan is not yet activated



 Signed-off-by: Hanno Schupp hanno.sch...@gmail.com







 Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c

 ===

 --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c   (revision
 31152)

 +++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c    (working copy)

 @@ -9,17 +9,24 @@

   */

  #include linux/export.h

 +#include linux/pci.h

 +#include linux/ath9k_platform.h

 #include linux/platform_device.h

 #include linux/phy.h

 #include linux/ar8216_platform.h

  #include asm/mach-ath79/ar71xx_regs.h

 #include asm/mach-ath79/ath79.h

 +#include asm/mach-ath79/pci.h

 +#include asm/mach-ath79/irq.h

 #include asm/mach-ath79/mach-rb750.h

  #include common.h

 +#include dev-usb.h

 #include dev-eth.h

 #include machtypes.h

 +#include pci-ath9k-fixup.h

 +#include pci.h

  static struct rb750_led_data rb750_leds[] = {

    {

 @@ -270,3 +277,91 @@

  MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 750GL,

     rb750gr3_setup);

 +

 +static struct ath9k_platform_data rb751_wmac_data = {

 + .led_pin = -1,

 +};

 +

 +static u8 rb751_wmac_mac[6];

 +

 +static int rb751_pci_plat_dev_init(struct pci_dev *dev)

 +{

 + switch (PCI_SLOT(dev-devfn)) {

 + case 0:

 + dev-dev.platform_data = rb751_wmac_data;

 + break;

 + }

 +

 + return 0;

 +}

 +

 +static int decode_rle(char* output, int len, char* in)

 +{

 + char* ptr = output;

 + char* end = output + len;

 + while(*in)

 + {

 + if(*in  0)

 + {

 + int i = -*in++;

 + while(i--  0)

 + {

 + if(ptr = end)

 +
 return -1;

 + *ptr++ =
 *in++;

 + }

 + }

 + else if(*in  0)

 + {

 + int i = *in++;

 + while(i--  0)

 + {

 + if(ptr = end)

 +
 return -1;

 + *ptr++ = *in;

 + }

 + in++;

 + }

 + }

 + return ptr - output;

 +}

 +

 +#define RB751_HARDCONFIG 0x1f00b000

 +#define RB751_MAC_ADDRESS_OFFSET 0xE80

 +#define RB751_CALDATA_OFFSET 0x27C

 +

 +static void __init rb751_wlan_and_usb_setup(void)

 +{

 + u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);

 +

 + ath79_register_usb();

 +

 + ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);

 + ath79_register_pci();

 +

 + rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac, hardconfig +
 RB751_MAC_ADDRESS_OFFSET, 6);

 +

 + if(decode_rle((char*)rb751_wmac_data.eeprom_data,
 sizeof(rb751_wmac_data.eeprom_data), hardconfig + RB751_CALDATA_OFFSET) ==
 sizeof(rb751_wmac_data.eeprom_data))

 + {

 + pr_info(rb7xx: calibration data found\n);

 + pci_enable_ath9k_fixup(0,
 rb751_wmac_data.eeprom_data);

 + }

 +}

 +

 +static void __init rb751_setup(void)

 +{

 + rb750_setup();

 + rb751_wlan_and_usb_setup();

 +}

 +

 +MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,

 +  rb751_setup);

 +

 +static void __init rb751g_setup(void)

 +{

 + rb750gr3_setup();

 + rb751_wlan_and_usb_setup();

 +}

 +

 +MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,

 +  rb751g_setup);

 Index: target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch

 ===

 ---
 target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch
 (revision 0)

 +++ target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch
 (revision 0)

 @@ -0,0 +1,11 @@

 +--- 

[OpenWrt-Devel] [PATCH] Initial support for Mikrotik RB751G-2HnD and RB751U-2HnD

2012-03-31 Thread Hanno Schupp
Great collaboration on these two fantastic routers on the openwrt forum:
https://forum.openwrt.org/viewtopic.php?id=32320

Above all kudos to aryufan. Well done and thank you everyone else who
contributed.

 

To-Do: LED for wlan is not yet activated

 

Signed-off-by: Hanno Schupp hanno.sch...@gmail.com

 

 

 

Index: target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c

===

--- target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c   (revision
31152)

+++ target/linux/ar71xx/files/arch/mips/ath79/mach-rb750.c(working copy)

@@ -9,17 +9,24 @@

  */

 #include linux/export.h

+#include linux/pci.h

+#include linux/ath9k_platform.h

#include linux/platform_device.h

#include linux/phy.h

#include linux/ar8216_platform.h

 #include asm/mach-ath79/ar71xx_regs.h

#include asm/mach-ath79/ath79.h

+#include asm/mach-ath79/pci.h

+#include asm/mach-ath79/irq.h

#include asm/mach-ath79/mach-rb750.h

 #include common.h

+#include dev-usb.h

#include dev-eth.h

#include machtypes.h

+#include pci-ath9k-fixup.h

+#include pci.h

 static struct rb750_led_data rb750_leds[] = {

   {

@@ -270,3 +277,91 @@

 MIPS_MACHINE(ATH79_MACH_RB_750G_R3, 750Gr3, MikroTik RouterBOARD 750GL,

rb750gr3_setup);

+

+static struct ath9k_platform_data rb751_wmac_data = {

+ .led_pin = -1,

+};

+

+static u8 rb751_wmac_mac[6];

+

+static int rb751_pci_plat_dev_init(struct pci_dev *dev)

+{

+ switch (PCI_SLOT(dev-devfn)) {

+ case 0:

+ dev-dev.platform_data = rb751_wmac_data;

+ break;

+ }

+

+ return 0;

+}

+

+static int decode_rle(char* output, int len, char* in)

+{

+ char* ptr = output;

+ char* end = output + len;

+ while(*in)

+ {

+ if(*in  0)

+ {

+ int i = -*in++;

+ while(i--  0)

+ {

+ if(ptr = end)

+
return -1;

+ *ptr++ =
*in++;

+ }

+ }

+ else if(*in  0)

+ {

+ int i = *in++;

+ while(i--  0)

+ {

+ if(ptr = end)

+
return -1;

+ *ptr++ = *in;

+ }

+ in++;

+ }

+ }

+ return ptr - output;

+}

+

+#define RB751_HARDCONFIG 0x1f00b000

+#define RB751_MAC_ADDRESS_OFFSET 0xE80

+#define RB751_CALDATA_OFFSET 0x27C

+

+static void __init rb751_wlan_and_usb_setup(void)

+{

+ u8 *hardconfig = (u8 *) KSEG1ADDR(RB751_HARDCONFIG);

+

+ ath79_register_usb();

+

+ ath79_pci_set_plat_dev_init(rb751_pci_plat_dev_init);

+ ath79_register_pci();

+

+ rb751_wmac_data.macaddr = memcpy(rb751_wmac_mac, hardconfig +
RB751_MAC_ADDRESS_OFFSET, 6);

+

+ if(decode_rle((char*)rb751_wmac_data.eeprom_data,
sizeof(rb751_wmac_data.eeprom_data), hardconfig + RB751_CALDATA_OFFSET) ==
sizeof(rb751_wmac_data.eeprom_data))

+ {

+ pr_info(rb7xx: calibration data found\n);

+ pci_enable_ath9k_fixup(0,
rb751_wmac_data.eeprom_data);  

+ }

+}

+

+static void __init rb751_setup(void)

+{

+ rb750_setup();

+ rb751_wlan_and_usb_setup();

+}

+

+MIPS_MACHINE(ATH79_MACH_RB_751, 751, MikroTik RouterBOARD 751,

+  rb751_setup);

+

+static void __init rb751g_setup(void)

+{

+ rb750gr3_setup();

+ rb751_wlan_and_usb_setup();

+}

+

+MIPS_MACHINE(ATH79_MACH_RB_751G, 751g, MikroTik RouterBOARD 751G,

+  rb751g_setup);

Index: target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch

===

--- target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch
(revision 0)

+++ target/linux/ar71xx/patches-3.2/614-MIPS-ath79-RB751G-support.patch
(revision 0)

@@ -0,0 +1,11 @@

+--- a/arch/mips/ath79/machtypes.h

 b/arch/mips/ath79/machtypes.h

+@@ -51,6 +51,8 @@ enum ath79_mach_type {

+ ATH79_MACH_RB_493G, /* Mikrotik
RouterBOARD 493G */

+ ATH79_MACH_RB_750,/* MikroTik