martedì 8 gennaio 2013

Buffalo WBMR - OpenWrt trunk build R35047 - Annex A

What's inside:
IPv4 support only
DDNS
UPNP+NAT-PMP
OpenVPN 2.2.2
Samba

NTFS-3G 2012.1.15 *new* *remember to edit the /etc/hotplug.d/button/10-generic.sh*
USB mounts support (USB 2.0 with NTFS support only)


NTFS umount how to:
Login in SSH(or use WinSCP) to the router and edit this file:

/etc/hotplug.d/button/10-generic.sh

Find and replace everything with:

rfkill)
        umount /mnt/sda1
              ;;

By default the rfkill button enable/disable wifi!

Now save and configure you mount points like this:




WHEN YOU WANT TO DISCONNECT THE USB DEVICE FROM THE ROUTER YOU MUST PUSH THE BUTTON TO UMOUNT THE FOLDER. IF YOU HAVE ACCESSED THE USB RECENTLY AND YOU WANT TO SAFELY DISCONNECT IT, WAIT FROM 30 TO 60 SECONDS THEN PRESS THE BUTTON. I SUGGEST YOU TO CHECK YOUR SYSTEM LOG IN LUCI WHERE YOU CAN SEE THIS MESSAGE:

Jan  8 10:51:40 OpenWrt daemon.notice ntfs-3g[29922]: Unmounting /dev/sda1 ()
Jan  8 10:52:02 OpenWrt kern.info kernel: [42813.400000] usb 1-1: USB disconnect, device number 19 ****NOW THE USB IS DISCONNECTED


In case the router mounts the usb as /dev/sdb1 you can:

  • reboot the router with the usb attached so next time it will be mounted as /dev/sda1 like it should.
  • see this post and do one of these things -> NTFS File system

Download:
r35047 

SHA1: BF28B37E478FCE9785D629C5969FCF0227182CA7

8 commenti:

  1. I downloaded and installed this build, and it works OK on the LAN side, but even after a few days of trying and retrying, I am still not able to connect to DSL. I get several errors. Here is an excerpt from my syslog.


    Jan 19 13:38:39 OpenWrt-main kern.err kernel: [67544.176000] [IFX_MEI_Ioctls 2529]: IFX_MEI_RunAdslModem() error...
    Jan 19 13:38:39 OpenWrt-main kern.err kernel: [79154.508000] [meiPollForDbgDone 429]: PollforDbg fail!
    Jan 19 13:55:40 OpenWrt-main kern.err kernel: [80175.108000] [IFX_MEI_RunAdslModem 1369]: Modem failed to be ready!

    RispondiElimina
  2. Strange..

    How did you configure your wan interface?
    Maybe you have to file a report to openwrt.

    RispondiElimina
  3. Telcom Italia ADSL here uses PPPoE, so I picked that protocol. I did intensive web searching and used every piece of advice I could find.
    The ATM bridge is set with the right VPI/VCI (8/35), which do work with my old router. I am using the old one to connect right now,
    while the new Buffalo has wifi going on, using the old router as a WAN gateway.

    RispondiElimina
    Risposte
    1. Post here your /etc/config/network ( be careful with the password in plaintext :P)

      Elimina
  4. config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'

    config interface 'lan'
    option ifname 'eth0'
    option type 'bridge'
    option proto 'static'
    option netmask '255.255.255.0'
    option ipaddr '192.168.1.251'

    config switch
    option name 'eth0'
    option reset '1'

    config switch_vlan
    option device 'eth0'
    option vlan '1'
    option ports '0 1 2 3 4 5'
    option vid '1'

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

    config atm-bridge 'atm'
    option encaps 'llc'
    option vpi '8'
    option vci '35'
    option atmdev '0'
    option unit '0'
    option payload 'routed'

    config interface 'wan'
    option ifname 'nas0'
    option proto 'pppoe'
    option username 'user'
    option password 'passwd'

    I can't publish more excerpts from my syslog because Blogspot gives me an error message (in Italian) "Non è possibile accettare il codice Tag non consentito: P specificato.", and I have tried to edit the post slightly, but still have no clue which is the offending bit.

    RispondiElimina
  5. config switch
    option name 'eth0'
    option reset '1'
    option enable_vlan '0'

    config switch_vlan
    option device 'eth0'
    option vlan '1'
    option ports '0 1 2 3 4 5'

    config atm-bridge 'atm'
    option encaps 'llc'
    option payload 'bridged'
    option vci '35'
    option vpi '8'

    config interface 'wan'
    option ifname 'nas0'
    option proto 'pppoe'
    option username 'user'
    option password 'pass'
    option peerdns '0'
    option dns '8.8.4.4 8.8.8.8' (if you want)

    Configure it like this.
    Why the switch config is like that? That is not the default switch config(Did you restore an old backup config?).

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

    Save the file, do a "sync & reboot"

    Wait for a max 2 mins and the adsl should works fine.

    RispondiElimina
  6. Oh, yeah! It works!! :)
    Out of the box it didn't, for some reason, so I had to struggle quite a bit.

    Payload - bridged! AHA!

    I don't remember touching the switch configuration, but I must have, if it's not the default configuration.

    A huge thank you, Giuseppe :)

    RispondiElimina
    Risposte
    1. Told you :3
      Pretty much everything was wrong in that config.

      Elimina