OpenWrt Forum Archive

Topic: Rb751

The content of this topic has been archived between 29 Mar 2018 and 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

@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!!

(Last edited by ayufan on 10 Apr 2012, 11:54)

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...

(Last edited by vdias on 11 Apr 2012, 11:14)

@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?

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..

@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).

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?

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

(Last edited by ayufan on 23 Apr 2012, 22:40)

there is no safe update available?

So far no.

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.

Any news about LEDs ?

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...

@vdias

Do you get pppoe disconnects on RouterOS or on OpenWrt?

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...

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

(Last edited by hape on 30 Apr 2012, 16:56)

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 :-)

(Last edited by idahorazor on 1 May 2012, 23:28)

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

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

Howto create this directory?

make package/mac80211/{clean,prepare}

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-r3 … n-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

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

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'