76 (edited by ayufan 2012-04-10 09:54:38)

Re: Rb751

@hape

Show us "lsusb -v", "dmesg" and "opkg list-installed"

@chillifire

Right now I'm working on providing openwrt.npk in order to install by netinstall from MikroTik.

BTW: not aryufan but ayufan!!

77 (edited by vdias 2012-04-11 09:14:15)

Re: Rb751

Still having loads of problems with this one...

Apr 10 17:43:59 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 17:43:59 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 17:44:45 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 17:44:45 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 17:45:30 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 17:45:30 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 17:46:15 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 17:46:15 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 17:46:45 MikroTik daemon.warn pppd[11145]: Connected to 00:30:88:17:15:29 via interface eth0.2
Apr 10 18:23:17 MikroTik daemon.warn pppd[11145]: Connected to 00:30:88:17:15:29 via interface eth0.2
Apr 10 18:45:13 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:45:13 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:45:58 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:45:58 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:46:43 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:46:43 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:47:28 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:47:28 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:48:13 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:48:13 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:48:58 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:48:58 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:49:43 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:49:43 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:50:28 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:50:28 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:51:13 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:51:13 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:51:59 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:51:59 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:52:44 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:52:44 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:53:29 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:53:29 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:54:14 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:54:14 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:54:59 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:54:59 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:55:44 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:55:44 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:56:29 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:56:29 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:57:14 MikroTik daemon.warn pppd[11145]: Timeout waiting for PADO packets
Apr 10 18:57:14 MikroTik daemon.err pppd[11145]: Unable to complete PPPoE Discovery
Apr 10 18:57:44 MikroTik daemon.warn pppd[11145]: Connected to 00:30:88:17:15:29 via interface eth0.2

Seems openWRT have problems with pppoe connections... guess i need to return to the crappy RouterOS, it had poor performance, but it worked...

Re: Rb751

@ayufan

Sorry for mangling your name.

Thanks for the update.

Not sure if it is useful, but rather than the lengthy instructions referenced in the first post of this topic I use the wget2nand utility that is included in OpenWrt. Works like a charm for all Mikrotik 4xx and 75x routers I tested. Maybe there is something in there for you about writing an image to nand that is useful for your package development?

Cheers

chillifire

Re: Rb751

Nice, now i can't even return to routerOS... What a great device did i bought...

Netinstall... install without errors, but never change to reboot..

Re: Rb751

@chillifire

I've found some further info on the wireless tx issue.

From http://wiki.openwrt.org/doc/howto/wireless.utilities

Note: The ath9k driver sets its own regulatory restrictions based on its EEPROM. Setting the domain from userland can only further restrict the regulatory settings. So if EEPROM says Japan, you can use all 14 channels, if you then set it to US, you can use merely the 12. It does not work the other way around, i.e. if EEPROM says US, you only can use the allowed 12 channels, no matter what you set in userspace! The value 98 represents a synthesized regulatory domain, based on the intersection of the available source of regulatory information (which can include the EEPROM, the userland setting, and a country IE from your AP).

81 (edited by ayufan 2012-04-23 10:11:50)

Re: Rb751

Great. I finally had time to finish netinstall integration:
http://ayufan.eu/local/rb751/README.txt
http://ayufan.eu/local/rb751/r31387/

Install OpenWrt as easy as a few clicks with MikroTik's Netinstall without use of tftpd32 or linux box.
However, it's required to use version included with OpenWrt's release.

More information about Netinstall can be found here:
http://wiki.mikrotik.com/wiki/Manual:Netinstall


ayufan

Re: Rb751

Right now i 'm using:
Router: ModelMikroTik RouterBOARD 751G
Firmware Version: OpenWrt Firmware Attitude Adjustment (r30919) / LuCI Trunk (trunk+svn8349)
Kernel Version3.2.12

Should i upgrade to the last version you just published? how can i update to the last trunk?

83 (edited by ayufan 2012-04-23 20:40:02)

Re: Rb751

Just use netinstall as you would use to reinstall RouterOS. You should know that it will wipe all your installed apps and configuration.

Re: Rb751

there is no safe update available?

Re: Rb751

So far no.

Re: Rb751

I'm interested in adding platform support for RB2011L.

I took ayufan's patchset, and modified it for 2011L. However there are things I can't figure out as I don't have Mikrotik's sources for the kernel.

I'm asking, if anyone of you have got Mikrotik's kernel sources new enough to contain 2011L specific code?

I already asked Mikrotik, but got no answer so far.

Re: Rb751

Any news about LEDs ?

Re: Rb751

Tried the new trunk image... and still get pppoe disconnections...

Really don't understand why does this mikrotik have thsi type of errors... with cheap routers from isp it works...

Re: Rb751

@vdias

Do you get pppoe disconnects on RouterOS or on OpenWrt?

Re: Rb751

On both, but RouterOS on this is a bit more stable... OpenWRT is disconnecting every 15/20 minutes...

I'm using a ZyXEL P660R-D1, given by my ISP... Already tried it with ISP Firmware, and using ZyXEL Original Firmware... Same result...

Could you guys recommend me a good adsl2+ modem? Any model already tested that works...

Re: Rb751

Cross posting for those of you working on the RB751.

https://forum.openwrt.org/viewtopic.php?pid=165800#p165800

92 (edited by hape 2012-04-30 14:56:48)

Re: Rb751

Hi' It's possible to use leds in rb751u. Sys led and switch port leds are connected via the GPIO form 12 to 17. The wireless led I dont' know howto use.

Here are scripts: they run all leds.
1.Active GPIO:

#!/bin/sh

for i in `seq 12 17`
do
    echo $i > /sys/class/gpio/export
done

2.Change state for output for GPIO's

#!/bin/sh

for i in `seq 12 17`
do
    echo out > /sys/class/gpio/gpio$i/direction
done

Now, script for turn on all leds:

#!/bin/sh

for i in `seq 12 17`
do
    echo 0 >  /sys/class/gpio/gpio$i/value
done

Script for turn off all leds:

#!/bin/sh

for i in `seq 12 17`
do
    echo 1 >  /sys/class/gpio/gpio$i/value
done

93 (edited by idahorazor 2012-05-01 21:28:39)

Re: Rb751

To control the Wireless LED:

NOTE: the LED is on GPIO 9, on the AR9283

echo 0x404c > /sys/kernel/debug/ieee80211/phy0/ath9k/regidx
echo 0xc0000 > /sys/kernel/debug/ieee80211/phy0/ath9k/regval
echo 0x4048 > /sys/kernel/debug/ieee80211/phy0/ath9k/regidx

On:
echo 0x7f200 > /sys/kernel/debug/ieee80211/phy0/ath9k/regval

Off:
echo 0x7f000 > /sys/kernel/debug/ieee80211/phy0/ath9k/regval

To tell ath9k to control the WLAN, and open up /sys/class/leds/ath9k-phy0

build_dir/linux-ar71xx_nand/compat-wireless-2011-12-01/drivers/net/wireless/ath/ath9k/gpio.c

NOTE: A proper patch needs to created [ I assume, you use the mach-rb750 architecture to set led_pin? ], this will force all AR9280 / AR9283 radios to use the LED_PIN 9, which isn't accurate. They obviously set the default to 1 for a reason. This is just overloading to make it work for the RouterBoard 751, hopefully someone else can come up with a proper patch.

--- gpio.c    2012-04-30 19:55:31.000000000 +0000
@@ -57,8 +57,6 @@
            sc->sc_ah->led_pin = ATH_LED_PIN_9300;
        else if (AR_SREV_9462(sc->sc_ah))
            sc->sc_ah->led_pin = ATH_LED_PIN_9462;
+        else if (AR_SREV_9280(sc->sc_ah))
+            sc->sc_ah->led_pin = 9;
        else
            sc->sc_ah->led_pin = ATH_LED_PIN_DEF;
    }

Hope this helps :-)

-- Davey @ BlueMesh Networks

Re: Rb751

Funny, after kernel build there isn;t directory:
build_dir/linux-ar71xx_nand/compat-wireless-2011-12-01/drivers/net/wireless/ath/ath9k/gpio.c

95

Re: Rb751

Yeah because this directory belongs to compat-wireless...

Re: Rb751

Howto create this directory?

97

Re: Rb751

make package/mac80211/{clean,prepare}

Re: Rb751

Ethernet leds on RB75U-2HnD works ok. The same goes to RB751G-2HnD. You just have to:

opkg install kmod-leds-rb750

RB751U-2HnD:

for i in port1 port2 port3 port4 port5 act
do
echo 1 > /sys/devices/platform/leds-rb750.0/leds/rb750:green:$i/brightness
sleep 1s
echo 0 > /sys/devices/platform/leds-rb750.0/leds/rb750:green:$i/brightness
done

RB751G-2HnD:

echo 1 > /sys/devices/platform/leds-rb750.0/leds/rb750:green:act/brightness
sleep 1s
echo 0 > /sys/devices/platform/leds-rb750.0/leds/rb750:green:act/brightness

Further I made patch for ath9k wlan led issue:
http://openwrt.ayufan.eu/rb751/trunk-r31676-wlan-led.diff

Latest compilation can be found here:
http://openwrt.ayufan.eu/rb751/r31676/

echo 1 > /sys/devices/pci0000:00/0000:00:00.0/leds/ath9k-phy0/brightness
sleep 1s
echo 0 > /sys/devices/pci0000:00/0000:00:00.0/leds/ath9k-phy0/brightness

Will later look into tx-power issue, but for sure it's something with regulatory domain.

ayufan

Re: Rb751

vdias wrote:

On both, but RouterOS on this is a bit more stable... OpenWRT is disconnecting every 15/20 minutes...

I'm using a ZyXEL P660R-D1, given by my ISP... Already tried it with ISP Firmware, and using ZyXEL Original Firmware... Same result...

Could you guys recommend me a good adsl2+ modem? Any model already tested that works...

i had the same issues with my tl-wr1043nd.
turns out that the problem was with the ethernet cable - try a new one smile

Re: Rb751

Great: leds is ok. The system config for RB7515U-2nD ethernet.leds

config 'led' 'p1'
        option 'name' 'p1'
        option 'sysfs' 'rb750:green:port1'
        option dev eth1
        option 'trigger' 'netdev'
        option 'mode' 'link tx rx'

config 'led' 'p2'
        option 'name' 'p2'
        option 'sysfs' 'rb750:green:port2'
        option dev eth0
        option 'trigger' 'switch0'
        option 'port_mask' '0x10'
        option 'mode' 'link tx rx'

config 'led' 'p3'
        option 'name' 'p3'
        option 'sysfs' 'rb750:green:port3'
        option dev eth0
        option 'trigger' 'switch0'
        option 'port_mask' '0x8'
        option 'mode' 'link tx rx'

config 'led' 'p4'
        option 'name' 'p4'
        option 'sysfs' 'rb750:green:port4'
        option dev eth0
        option 'trigger' 'switch0'
        option 'port_mask' '0x4'
        option 'mode' 'link tx rx'

config 'led' 'p5'
        option 'name' 'p5'
        option 'sysfs' 'rb750:green:port5'
        option dev eth0
        option 'trigger' 'switch0'
        option 'port_mask' '0x2'
        option 'mode' 'link tx rx'