76 (edited by Lutz_R 2012-09-20 11:15:37)

Re: WBMR-HP-G300H ... willing to help

I don't get it to work. I tried self a compiled uImage, the one from 12.09 beta, and the original firmware from buffalo. I see in wireshark that something is transmitted and I can see if it is a lot of data. But after that finished the ip 192.168.11.1 vanishes and my computer keeps asking via arp if someone has seen this ip. No matter how long I wait, nothing happens anymore.

Can you send me the image with which you got it working again? I pm you my email address, or you can upload it somehwere else.

//Edit: How important is it to set the gateway of my computer interface to 192.168.11.1 ? I see in wireshark that the router asks who has 0.0.0.0

Re: WBMR-HP-G300H ... willing to help

I finally made it. You have to explicitly tell in make menuconfig, that you want a ramdisk. The resulting uImage will be bigger than you get with normal image compilation.

Re: WBMR-HP-G300H ... willing to help

Lutz_R wrote:

I finally made it. You have to explicitly tell in make menuconfig, that you want a ramdisk. The resulting uImage will be bigger than you get with normal image compilation.

And did you successfully debricked your device?

Buffalo WBMR-HP-G300H Custom Build; Netgear WNDR3800 Custom Build;

Re: WBMR-HP-G300H ... willing to help

rossini wrote:

And did you successfully debricked your device?

Yes, it is working again on its right spot.

This all happened while I tried to configure sixxs with 6in4 heartbeat instead of using aiccu. In current openwrt builds aiccu support was nearly completely removed. Maybe I will try it again on the weekend, but not now.

Re: WBMR-HP-G300H ... willing to help

Lutz_R wrote:
rossini wrote:

And did you successfully debricked your device?

Yes, it is working again on its right spot.

This all happened while I tried to configure sixxs with 6in4 heartbeat instead of using aiccu. In current openwrt builds aiccu support was nearly completely removed. Maybe I will try it again on the weekend, but not now.

Please, can you send me the uImage please ???

Thanks !!!

Re: WBMR-HP-G300H ... willing to help

Sure if you give me via PM your email address or another spot where I can upload the image. But not that this will not be the image I used. I build my adsl and wifi settings into the images, so you will get one without these.

I am also working on the wiki article about the router to add information about debricking.

Re: WBMR-HP-G300H ... willing to help

I added some information to the wiki, have a look at it and correct:
http://wiki.openwrt.org/toh/buffalo/wbmr-hp-g300h#wired.stations.cannot.ping.each.other

Re: WBMR-HP-G300H ... willing to help

On other models there exist openwrt images, which can be flashed using tftp:
http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h#oem.installation.using.the.tftp.method

maybe it is just a matter of time until openwrt can do this with the WMR-HP-G300H, too, as 12.09 is the first release to support this model.

Re: WBMR-HP-G300H ... willing to help

Hi all!
I am trying to configure annex A (POTS) on my buffalo modem without any success sad
Here is the list of installed dsl packages:
kmod-ltq-dsl-ar9      3.3.8+3.24.4.4-4
kmod-ltq-dsl-firmware-a-ar9 0.1-1
ltq-dsl-app  3.24.4.4-2

Log messages:
Nov 14 01:46:08 buffalo daemon.warn pppd[1371]: Timeout waiting for PADO packets
Nov 14 01:46:08 buffalo daemon.err pppd[1371]: Unable to complete PPPoE Discovery

ADSL configuration:
config adsl-device 'adsl'
        option fwannex 'a'
        option annex 'a2p'

And working parameters from other adsl modem
Line Mode    ADSL2+     
Line Power State    L0    
Line Coding    Trellis On    

What I am doing wrong?
Can somebody show me a list of options for ADSL?

Thanks in advance!

Re: WBMR-HP-G300H ... willing to help

There's an open bug in annex selection. See: https://dev.openwrt.org/ticket/12468.

Re: WBMR-HP-G300H ... willing to help

Hi guys,

I'm waiting this device in few days. Still trying to understand which is the best approach to get openwrt on it.

Looks like DDWRT install is possible through the webgui from stock Buffalo firmware.

Then you can build an image from trunk and install it with with mtd, is this last step risky?

Any way to pass directly from bufallo stock to openwrt?

And What about this beta image?

http://downloads.openwrt.org/attitude_a … shfs.image

Anyone using it? Is Annex A or B? Any feedback?

Thanks
Andrea

87 (edited by agarbato 2012-12-02 13:30:50)

Re: WBMR-HP-G300H ... willing to help

Update.. smile

I got it and finally I've a full working configuration with the last 12.09 beta image from repo, so I'm happy to share my experience.

That's the image I'm talking about :

http://downloads.openwrt.org/attitude_a … shfs.image

First I tried to build an image myself but It was not really stable and everytime I had to add a mod kernel package my router suddendly crashed.  Got it bricked few times but I was able to debrick with failsafe and tftp.

Just few info about the 12.09 image :

No luci, nothing that will help you, it's a very basic image.
Do not expect to be connected very shortly, you will need another internet connection to get infos and packages.

Same old bug as described on the wiki :

Wired stations cannot ping each other

Do not change  conf in /etc/config/network with switch configuration.
If you do that you won't be able to reach the router anymore.
I did it and I had to enter in failsafe mode.

Fix it with :

swconfig dev eth0 vlan 1 set ports "0 1 2 3 4 5"
swconfig dev eth0 set apply

Add a line on /etc/rc.local to make it permanent.

DSL :

It's compiled with Annex B modulation so if your dsl is A you'll have to remove annexb mod package and install A.

Remove  kmod-ltq-dsl-firmware-b-ar9 and install kmod-ltq-dsl-firmware-a-ar9

After that , there's a bug in annex selection on the init script, first change according on /etc/config/network

Mine as an example :

config adsl-device 'adsl'
    option fwannex 'a'
    option annex 'a2p'

Then you'll have to adjust /etc/init.d/dsl_control on line 301
Force it to load your firmware with  -f /lib/firmware/dsl-fw-a.bin

Restart the service and make sure your firmware is loaded correctly :

andrea@router-wrt:~$ ps | grep dsl
1788 root      7408 S    /sbin/dsl_cpe_control -i00_00_00_00_00_01_00_00 -n /sbin/dsl_notify.sh -f /lib/firmware/dsl-fw-a.bin
4543 andrea    1492 S    grep dsl

Make sure /etc/init.d/br2684ctl is enabled, it's disabled by default (why!?!?)

Apart from that once you're connected you can install all the pkgs you need and tail the installation for you.

Few tips :

Crontab a backup, I'll give u mine as another example :

===============================================
#!/bin/bash

backupfile="/nas/WBMR-HP-G300H/backup/WBMR-HP-G300H-backup.tgz"

## generate package installed
opkg list-installed > /etc/package.installed

# mount nas
mount /nas

if test -e $file; then echo "file exist, removing";sleep 2;yes | rm $file;fi

/usr/bin/tar czvf $file --exclude "/lib/modules" /etc /lib /home /root

umount /nas
===============================================

Led configuration :

/etc/config/system

===============================================
config led
    option name 'power'
    option sysfs 'soc:red:power'
    option default '1'
    option trigger 'default-on'

config led
    option sysfs 'soc:green:internet'
    option trigger 'netdev'
    option dev 'pppoe-wan'
    option default '1'
    option name 'wan-connected'
    option mode 'link'

config led
    option default '0'
    option sysfs 'soc:green:adsl'
    option trigger 'netdev'
    option dev 'pppoe-wan'
    option mode 'link'
    option name 'adsl'

## THIS IS MY OPENVPN LINK ##
config led
    option default '1'
    option sysfs 'soc:red:security'
    option name 'vpn'
    option trigger 'netdev'
    option dev 'tap0'
    option mode 'link tx rx'

config led
    option default '1'
    option sysfs 'soc:green:wlan'
    option name 'wlan'
    option trigger 'netdev'
    option dev 'wlan0'
    option mode 'link tx rx'
===============================================

Do you want to save the environment?
Do you really need all those fancy leds when you're not home?! smile
I have another crontab script that check if an ip is connected and switch off the lights if it's not reachable.

*/5 * * * * /root/bin/checkled >/dev/null 2>&1

######################
#!/bin/bash

client = 192.168.1.10
ping -c1 $client >/dev/null
rc=$?

if [ $rc -eq 0 ]
then
  ledstatus=`cat /sys/class/leds/soc\:red\:power/brightness`
# echo "status $ledstatus"
  if [ ! $ledstatus -eq 255 ]
  then
    /etc/init.d/led start >/dev/null
  fi
else
   for i in /sys/class/leds/* ; do echo 0 > "$i"/brightness ; done
fi
#####################


That's all folks smile

I hope this will be useful to someone else.

Andrea

Re: WBMR-HP-G300H ... willing to help

@Agarbato: thanks for the informations ;

but how did you flash the router ? :
  -  through the path: original firmware -> dd-wrt -> OpenWRT   
-  or with an OpenWRT image loaded in ram via tftp ?

I would like to test the second way, but no one posted detailed instruction on how to do this.

Thanks

Re: WBMR-HP-G300H ... willing to help

@mgll

I did flash router with dd-wrt>openwrt.
It's the easiest way as you can flash with webgui from original firmare.

Flash via tftp is also possible.
Refer to the wiki page and follow debrick procedure.

http://wiki.openwrt.org/toh/buffalo/wbmr-hp-g300h

Once you've installed tftp on your client, give it 192.168.11.2 ip, then copy 12.09 image to /tftpboot (according to your tfp server rootdir) and rename it as firmware.ram.   

With this procedure you can install any image, just be sure to rename it as firmware.ram.
It's possible that when router reboot with new image IP will change from 192.168.11.1 to 192.168.1.1.
Wireshark might be a good friend smile

Thanks
Andrea

Re: WBMR-HP-G300H ... willing to help

agarbato wrote:

Once you've installed tftp on your client, give it 192.168.11.2 ip, then copy 12.09 image to /tftpboot (according to your tfp server rootdir) and rename it as firmware.ram.

Are you sure you can flash via this way? I build a ram image and flashed through this a new firmare.

Re: WBMR-HP-G300H ... willing to help

I'm not 100% sure you can use any image.

I was able to debrick my device this way but I used the ram image in the wiki (See How to recover from bricking, you have a ready image to download ). 

After that I was able to telnet to my router again and I flashed 12.09 with mtd.

Re: WBMR-HP-G300H ... willing to help

Today I flashed the trunk r34927! The switch bug is fixed (now there is also VLAN!) and no need to edit the dsl_control file wink

With the new kernel it boot faster too wink

93 (edited by teyn 2013-01-12 21:43:03)

Re: WBMR-HP-G300H ... willing to help

Hi, as current bleeding edge version seems not to do much for ADSL side of things I built image which incorporates small patch from https://lists.openwrt.org/pipermail/openwrt-devel/2012-January/013602.html to show some basic ADSL stats in status.

At least ADSL2+ side seems to work though I have rarish (once a week or so) ADSL issues where line either freezes or goes 'bad' with >50% packetloss and modem seems not to notice that line is failed and it should retrain. Also wifi seems to be a bit broken as only HT mode 20MHz works, better than bricking whole router when enabling wifi in later versions though.

I tried to fiddle with ifcg (InteropFeatureConfigGet) but all automodes were equal in performance, I'm not even sure if automode_api is linked as lsmod shows 0 references. There also seems to be interesting stats like bit allocations per channel which would make nice graphs but sadly some adsl commands like 'g997sansg 0' seem to be broken.

Image is at http://openwrt.lehtivihrea.org/WBMR-HP-300h-squashfs-r35062.rar and it includes irssi, tinyfugue (for which I made package) and some utils but is otherwise quite barebone featurewise. Both programs should work with scandinavian letters (öäå etc.) as long you stay clear of utf-8. As usual no guarantees of working. smile

Tinyfugue package is at: http://openwrt.lehtivihrea.org/tf40s1-17-openwrt-v1.tar.bz

Note:

Stat gathering from dsl_control uses lots of cpu and culprit in my system is 'dsl_cmd g997lsg 0 1' which takes long to execute for whatever reason. You can 'fix' it by editing /etc/init.d/dsl_control like this:

#       lsg=$(dsl_cmd g997lsg 0 1)
#       latnu=$(dsl_val "$lsg" LATN)
#       snru=$(dsl_val "$lsg" SNR)
        latnu=0
        snru=0

(edit: image is Annex A)

Re: WBMR-HP-G300H ... willing to help

Had some time extra time so did small luci 'patch' which shows ADSL data bin allocations as graph, prolly works only with ADSL2+ though. It uses canvas so some old browsers wont work. Patch itself aint very pretty, someone more skilled could prolly do nice ADSL status page to show all available data if all of those dsl commands would work. hmm

How to 'patch' (in router and please remember to backup original files in case I did break something):

copy index.htm to /usr/lib/lua/luci/view/admin_status
copy dsl_control to /etc/init.d

Files are here: http://openwrt.lehtivihrea.org/WBMR-HP-300h_databins.rar

And here is example how it should look: http://openwrt.lehtivihrea.org/example_bin.png

95 (edited by redraoh 2013-01-18 09:01:31)

Re: WBMR-HP-G300H ... willing to help

Hi, I'm new to OpenWRT and just installed 12.09-rc1 but it doesn't seem to detect wifi. Is that common or something wrong? Could someone please paste their wireless config?

Edit: Nevermind, I realised I needed to install driver and now have it working. smile

Re: WBMR-HP-G300H ... willing to help

I have from Version R33530 PPPOE problems, Connect on Demand
Once selected connect on demand, no connection is established., there remains the dsl sync.

root@OpenWrt:~# /etc/init.d/dsl_control status
Chipset:                Ifx-AR9 1.2
Line State:             UP [0x801: showtime_tc_sync]
Data Rate:              17.693 Mb/s / 1.183 Mb/s
Line Attenuation:       1.2dB / 13.9dB
Noise Margin:           15.7dB / 13.9dB
Line Uptime:            7h 21m 50s
root@OpenWrt:~#
in the very old version r31047 (kmod-pppoe3.1.10-1) connect on demand goes without problems, with all newer versions only goes the permanent connection.

Re: WBMR-HP-G300H ... willing to help

I can't get the dsl modem or the webinterface with 12.09-rc1 working. I am now compiling again an image, because this is the way it works for me, but using the opkg online repos would be much nicer.

After flashing 12.09-rc1 I don't see a nas0 device with ifconfig as in my own builds. Do I miss a package, which I have to install? In dmesg it seems to load a dsl firmware.

98 (edited by Lutz_R 2013-04-29 23:17:18)

Re: WBMR-HP-G300H ... willing to help

Still the same problem with the final 12.09 release. Is anyone here having the same issues or know how to fix/diagnose it?

I tried this image: http://downloads.openwrt.org/attitude_a … shfs.image

Re: WBMR-HP-G300H ... willing to help

@Lutz_R

If by "still the same problem" you mean there is no nas0 interface, then you have to enable br2684ctl.

/etc/init.d/br2684ctl enable

and then start it, or reboot.

Re: WBMR-HP-G300H ... willing to help

thx, that did it. I updated the wiki