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.

Thanks for that. Got it to load with a combination dhcpserver and tftp64 (your new one).
Needed dhcpserv, as your adjusted ttftp programme did not respond to the immediate dhcp request anymore, it only dished out IP addressses some time after the bootp requests creating a timing issue. It responded fine to the bootp requests though, which is great.
What did you do to change the tftfp program?

To change the program I downloaded the sources, fixed them and recompiled smile

Was the original TFTPD32 version 4.0 working fine with DHCP requests for you? Cause I can't imagine anything I touched to cause such change in behaviour smile

Yes it was, I could see in the log DHCP request coming through and being responded positively to prior to the bootp requests. So tftp32's dhcp server did work fine.

The changed program did not log any dhcp request anymore, just bootp requests.

Now this could have different reasons than your changes, granted, as I was not using 4.0 of tftpd for starters but quite an old version 3.3

Out of interest: The same behavior of dhcpsrv and tftpd32 on a rb750gl as on the rb750

@ayufan

Compiled your patches into my source tree and loaded successfully onto the 751G. Everything seems to work with exception of the WLAN LED and WLAN RX. That's right, I see some TX data but no RX data, although I read you had the opposite effect. Below some data.

What sticks out is that

[    0.380000] pci 0000:00:00.0: no irq found for pin 1

in dmesg. Your previous 30025 version had

[    0.770000] PCI: mapping irq 72 to pin1@0000:00:00.0

So something something is not happening in the hardware recognition.

You may know how to fix this (I do not), but if you do not I suggest we submit your patches as preliminary support, highlighting the WLAN issues, which will invite other members of the community to review the code and contribute/fix.

Your thoughts?





ifconfig
mon.wlan0 Link encap:UNSPEC  HWaddr 00-0C-42-FB-E2-76-00-48-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:0C:42:FB:E2:76
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:2107 (2.0 KiB)
[    0.000000] Linux version 3.2.12 (hanno@CCS1-Linux) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #2 Mon Mar 26 00:05:03 NZDT 2012
[    0.000000] MyLoader: sysp=144b8601, boardp=151b1040, parts=1d4834f6
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7242 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802c46c0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  no-uart gpio=3911 HZ=200000000 mem=64M kmac=00:0C:42:FB:E2:76 board=751g boot=1 mlc=2 rootfstype=yaffs noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61804k/65536k available (2041k kernel code, 3732k reserved, 409k data, 192k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is MikroTik RouterBOARD 751G
[    0.100000] ar71xx: pll_reg 0xb805002c: 0x62000000
[    0.330000] registering PCI controller with io_map_base unset
[    0.340000] rb7xx: calibration data found
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] pci 0000:00:00.0: [168c:ff1c] type 0 class 0x000200
[    0.360000] pci 0000:00:00.0: fixup device configuration
[    0.360000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
[    0.360000] pci 0000:00:00.0: supports D1
[    0.360000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.360000] pci 0000:00:00.0: PME# disabled
[    0.360000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.370000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff])
[    0.380000] pci 0000:00:00.0: no irq found for pin 1
[    0.380000] Switching to clocksource MIPS
[    0.390000] NET: Registered protocol family 2
[    0.390000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.390000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.400000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.400000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.410000] TCP reno registered
[    0.410000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.420000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.430000] NET: Registered protocol family 1
[    0.430000] PCI: CLS 0 bytes, default 32
[    0.450000] yaffs built Mar 26 2012 00:03:14 Installing.
[    0.450000]
[    0.450000]
[    0.450000]
[    0.450000]
[    0.450000] YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.
[    0.450000]
[    0.450000]
[    0.450000]
[    0.450000] msgmni has been set to 120
[    0.460000] io scheduler noop registered
[    0.460000] io scheduler deadline registered (default)
[    0.470000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.490000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.500000] console [ttyS0] enabled, bootconsole disabled
[    0.630000] NAND flash driver for the RouterBOARD 750 version 0.1.0
[    0.710000] NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
[    0.810000] Scanning device for bad blocks
[    0.960000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
[    1.030000] 0x000000000000-0x000000040000 : "booter"
[    1.090000] 0x000000040000-0x000000400000 : "kernel"
[    1.150000] 0x000000400000-0x000004000000 : "rootfs"
[    1.210000] mtd: partition "rootfs" set to be root filesystem
[    1.280000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
[    1.480000] ag71xx_mdio: probed
[    1.520000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    2.160000] eth0: AR8327 switch driver attached.
[    2.340000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    2.480000] TCP westwood registered
[    2.520000] NET: Registered protocol family 17
[    2.570000] 8021q: 802.1Q VLAN Support v1.8
[    2.620000] yaffs: dev is 32505858 name is "mtdblock2" ro
[    2.690000] yaffs: passed flags ""
[    2.730000] yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[    4.160000] yaffs_read_super: is_checkpointed 0
[    4.160000] VFS: Mounted root (yaffs filesystem) readonly on device 31:2.
[    4.250000] Freeing unused kernel memory: 192k freed
[    6.340000] eth0: link up (100Mbps/Full duplex)
[    8.530000] eth0: link down
[    9.170000] Compat-wireless backport release: compat-wireless-2012-02-27-1-r31059
[    9.260000] Backport based on wireless-testing.git master-2012-02-27
[    9.430000] cfg80211: Calling CRDA to update world regulatory domain
[    9.770000] cfg80211: World regulatory domain updated:
[    9.830000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.920000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.020000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.110000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   10.200000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.300000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   10.400000] usbcore: registered new interface driver usbfs
[   10.470000] usbcore: registered new interface driver hub
[   10.530000] usbcore: registered new device driver usb
[   11.010000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.080000] PCI: Setting latency timer of device 0000:00:00.0 to 64
[   11.090000] ath: EEPROM regdomain: 0x0
[   11.090000] ath: EEPROM indicates default country code should be used
[   11.090000] ath: doing EEPROM country->regdmn map search
[   11.090000] ath: country maps to regdmn code: 0x3a
[   11.090000] ath: Country alpha2 being used: US
[   11.090000] ath: Regpair used: 0x3a
[   11.090000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.090000] Registered led device: ath9k-phy0
[   11.090000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=0
[   11.170000] cfg80211: Calling CRDA for country: US
[   11.250000] Button Hotplug driver version 0.4.1
[   11.360000] PPP generic driver version 2.4.2
[   11.460000] cfg80211: Regulatory domain changed to country: US
[   11.530000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   11.630000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   11.730000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   11.820000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.910000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   12.000000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   12.100000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   12.220000] tun: Universal TUN/TAP device driver, 1.6
[   12.280000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   12.440000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.680000] NET: Registered protocol family 24
[   12.780000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.860000] ath79-ehci ar724x-ehci: Atheros built-in EHCI controller
[   12.940000] ath79-ehci ar724x-ehci: new USB bus registered, assigned bus number 1
[   13.060000] ath79-ehci ar724x-ehci: irq 3, io mem 0x1b000000
[   13.140000] ath79-ehci ar724x-ehci: USB 2.0 started, EHCI 1.00
[   13.210000] hub 1-0:1.0: USB hub found
[   13.250000] hub 1-0:1.0: 1 port detected
[   13.340000] nf_conntrack version 0.5.0 (968 buckets, 3872 max)
[   13.890000] xt_time: kernel timezone is -0000
[   14.150000] xt_ipp2p: Unknown symbol HX_memmem (err 0)
[   14.260000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.390000] usbcore: registered new interface driver cdc_acm
[   14.460000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   14.600000] usbcore: registered new interface driver usbserial
[   14.670000] USB Serial support registered for generic
[   14.730000] usbcore: registered new interface driver usbserial_generic
[   14.810000] usbserial: USB Serial Driver core
[   14.900000] Error: Driver 'gpio-keys-polled' is already registered, aborting...
[   15.020000] USB Serial support registered for GSM modem (1-port)
[   15.090000] usbcore: registered new interface driver option
[   15.160000] option: v0.7.2:USB Driver for GSM modems
[   17.460000] device wlan0 entered promiscuous mode
[   19.340000] eth0: link up (100Mbps/Full duplex)
[   20.230000] device wlan0 left promiscuous mode
[   20.280000] br-lan: port 1(wlan0) entering disabled state
[   20.650000] device wlan0 entered promiscuous mode
[   21.420000] br-lan: port 1(wlan0) entering forwarding state
[   21.490000] br-lan: port 1(wlan0) entering forwarding state
[   23.980000] device eth0.1 entered promiscuous mode
[   24.040000] device eth0 entered promiscuous mode
[   24.090000] br-lan: port 2(eth0.1) entering forwarding state
[   24.160000] br-lan: port 2(eth0.1) entering forwarding state
[   36.520000] br-lan: port 1(wlan0) entering forwarding state
[   39.200000] br-lan: port 2(eth0.1) entering forwarding state
lspci -v
00:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
        Subsystem: Atheros Communications Inc. Device a093
        Flags: bus master, fast devsel, latency 0
        Memory at 10000000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 2
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [60] Express Legacy Endpoint, MSI 00
        Capabilities: [90] MSI-X: Enable- Count=1 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: ath9k
lsusb -v

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            3.02
  iManufacturer           3 Linux 3.2.12 ehci_hcd
  iProduct                2 Atheros built-in EHCI controller
  iSerial                 1 ar724x-ehci
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
Device Status:     0x0001
  Self Powered
config wifi-device 'radio0'
        option type 'mac80211'
        option macaddr '00:0c:42:fb:e2:76'
        option hwmode '11ng'
        option htmode 'HT20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'TX-STBC'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'
        option disabled '0'
        option channel '3'
        option country 'US'
        option txpower '20'

config wifi-iface
        option device 'radio0'
        option ssid 'Private Network'
        option mode 'ap'
        option isolate '1'
        option network 'lan'
        option encryption 'none'
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.1'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.12.1'
        option dns '8.8.8.8 8.8.4.4'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'
        option dns '8.8.8.8 8.8.4.4'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

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

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 1'

@ayufan

Just saw your readme:

1. 2012-03-22
New patches for trunk's rev. 31053 with full support switch chip present in RB751G.
Bugs in r31053:
- not working wireless on RB751 and RB751G, instead package/mac80211 from r30025 is used!

How do you do that?  package/mac80211 from r30025 is based on linux 2.6.39, whereas 31053 is based on 3.2.12. opkg refuses to load even 3.2.9 packages onto the 3.2.12 firmware.

@chillifire
thats probably why ayufan was not announcing new version here smile

That maybe so, but it is perfectly normal to announce 'partial support', publish patches etc, to ensure they do not go 'stale', that is to say they become outdated (like the previous 2.6 patches ayufan did) or clash with subsequent patches of trunk.
In short, it is better to publish patches often and use the community to help.

Ok. Will post update tomorrow. Today I need more sleep, sorry wink

Here you can find the latest compilation:
http://ayufan.eu/local/rb751/r31151/
and patch:
http://ayufan.eu/local/rb751/trunk-r31151.diff

I couldn't make to work WLAN module on RB751G. There is some problem with WLAN not transmitting data. So for only ethernet ports work and no WLAN sad

dmesg:

[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] MIPS: machine is MikroTik RouterBOARD 751G
[    0.100000] ar71xx: pll_reg 0xb805002c: 0x62000000
[    0.330000] registering PCI controller with io_map_base unset
[    0.330000] rb7xx: calibration data found
[    0.340000] bio: create slab <bio-0> at 0
[    0.350000] pci 0000:00:00.0: [168c:ff1c] type 0 class 0x000200
[    0.350000] pci 0000:00:00.0: fixup device configuration
[    0.350000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
[    0.350000] pci 0000:00:00.0: supports D1
[    0.350000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.360000] pci 0000:00:00.0: PME# disabled
[    0.360000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    0.360000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff])
[    0.370000] pci 0000:00:00.0: no irq found for pin 1
[    0.370000] Switching to clocksource MIPS
[    0.380000] NET: Registered protocol family 2
[    0.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.380000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.390000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.390000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.400000] TCP reno registered
[    0.400000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.410000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.420000] NET: Registered protocol family 1
[    0.420000] PCI: CLS 0 bytes, default 32
[    0.440000] yaffs built Mar 30 2012 13:08:18 Installing.
[    0.440000]
[    0.440000]
[    0.440000]
[    0.440000]
[    0.440000] YAFFS-WARNING CONFIG_YAFFS_ALWAYS_CHECK_CHUNK_ERASED selected.
[    0.440000]
[    0.440000]
[    0.440000]
[    0.440000] msgmni has been set to 120
[    0.450000] io scheduler noop registered
[    0.450000] io scheduler deadline registered (default)
[    0.460000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.480000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.490000] console [ttyS0] enabled, bootconsole disabled
[    0.620000] NAND flash driver for the RouterBOARD 750 version 0.1.0
[    0.700000] NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bit)
[    0.800000] Scanning device for bad blocks
[    0.950000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
[    1.020000] 0x000000000000-0x000000040000 : "booter"
[    1.080000] 0x000000040000-0x000000400000 : "kernel"
[    1.140000] 0x000000400000-0x000004000000 : "rootfs"
[    1.200000] mtd: partition "rootfs" set to be root filesystem
[    1.270000] split_squashfs: no squashfs found in "NAND 64MiB 3,3V 8-bit"
[    1.470000] ag71xx_mdio: probed
[    1.510000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    2.150000] eth0: AR8327 switch driver attached.
[    2.330000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    2.470000] TCP westwood registered
[    2.510000] NET: Registered protocol family 17
[    2.560000] Bridge firewalling registered
[    2.610000] 8021q: 802.1Q VLAN Support v1.8
[    2.660000] yaffs: dev is 32505858 name is "mtdblock2" ro
[    2.730000] yaffs: passed flags ""
[    2.770000] yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[    6.820000] yaffs_read_super: is_checkpointed 0
[    6.820000] VFS: Mounted root (yaffs filesystem) readonly on device 31:2.
[    6.910000] Freeing unused kernel memory: 196k freed
[    9.330000] eth0: link up (100Mbps/Full duplex)
[   11.290000] eth0: link down
[   12.190000] Compat-wireless backport release: compat-wireless-2012-02-27-1-r31151
[   12.280000] Backport based on wireless-testing.git master-2012-02-27
[   12.490000] cfg80211: Calling CRDA to update world regulatory domain
[   12.650000] SCSI subsystem initialized
[   12.810000] cfg80211: World regulatory domain updated:
[   12.870000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   12.970000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.060000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   13.150000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   13.240000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.340000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   13.500000] usbcore: registered new interface driver usbfs
[   13.570000] usbcore: registered new interface driver hub
[   13.630000] usbcore: registered new device driver usb
[   14.140000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   14.210000] PCI: Setting latency timer of device 0000:00:00.0 to 64
[   14.220000] ath: EEPROM regdomain: 0x0
[   14.220000] ath: EEPROM indicates default country code should be used
[   14.220000] ath: doing EEPROM country->regdmn map search
[   14.220000] ath: country maps to regdmn code: 0x3a
[   14.220000] ath: Country alpha2 being used: US
[   14.220000] ath: Regpair used: 0x3a
[   14.220000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   14.230000] Registered led device: ath9k-phy0
[   14.230000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=0
[   14.310000] cfg80211: Calling CRDA for country: US
[   14.580000] cfg80211: Regulatory domain changed to country: US
[   14.650000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   14.750000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   14.840000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   14.940000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   15.030000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   15.120000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   15.210000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   15.350000] PPP generic driver version 2.4.2
[   15.500000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.750000] NET: Registered protocol family 24
[   15.900000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.980000] ath79-ehci ar724x-ehci: Atheros built-in EHCI controller
[   16.060000] ath79-ehci ar724x-ehci: new USB bus registered, assigned bus number 1
[   16.180000] ath79-ehci ar724x-ehci: irq 3, io mem 0x1b000000
[   16.260000] ath79-ehci ar724x-ehci: USB 2.0 started, EHCI 1.00
[   16.330000] hub 1-0:1.0: USB hub found
[   16.370000] hub 1-0:1.0: 1 port detected
[   16.460000] nf_conntrack version 0.5.0 (967 buckets, 3868 max)
[   16.750000] usb 1-1: new high-speed USB device number 2 using ath79-ehci
[   17.020000] usbcore: registered new interface driver usblp
[   17.130000] Initializing USB Mass Storage driver...
[   17.190000] usbcore: registered new interface driver usb-storage
[   17.260000] USB Mass Storage support registered.
[   17.320000] hub 1-1:1.0: USB hub found
[   17.370000] hub 1-1:1.0: 7 ports detected
[   17.700000] usb 1-1.5: new high-speed USB device number 3 using ath79-ehci
[   18.030000] scsi0 : usb-storage 1-1.5:1.0
[   19.080000] scsi 0:0:0:0: Direct-Access     WD       Ext HDD 1021     2002 PQ: 0 ANSI: 4
[   19.180000] sd 0:0:0:0: [sda] 1953519616 512-byte logical blocks: (1.00 TB/931 GiB)
[   19.480000] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[   19.680000] sd 0:0:0:0: [sda] Asking for cache data failed
[   19.740000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.110000] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[   20.270000] sd 0:0:0:0: [sda] Asking for cache data failed
[   20.330000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.460000]  sda: sda1 sda2 sda3 sda4
[   20.570000] eth0: link up (100Mbps/Full duplex)
[   20.650000] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[   20.830000] sd 0:0:0:0: [sda] Asking for cache data failed
[   20.890000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.960000] sd 0:0:0:0: [sda] Attached SCSI disk
[   21.880000] cfg80211: Calling CRDA for country: PL
[   25.100000] cfg80211: Calling CRDA to update world regulatory domain
[   25.420000] wlan0: authenticate with 00:18:39:1e:cc:83
[   25.500000] wlan0: send auth to 00:18:39:1e:cc:83 (try 1/3)
[   25.770000] wlan0: send auth to 00:18:39:1e:cc:83 (try 2/3)
[   26.040000] wlan0: send auth to 00:18:39:1e:cc:83 (try 3/3)
[   26.380000] wlan0: authentication with 00:18:39:1e:cc:83 timed out
[   27.990000] cfg80211: World regulatory domain updated:
[   28.050000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   28.150000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   28.240000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   28.330000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   28.430000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   28.520000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   28.630000] cfg80211: Calling CRDA for country: PL
[   28.850000] cfg80211: Regulatory domain changed to country: PL
[   28.920000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   29.020000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   29.110000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   29.200000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   29.290000] cfg80211:   (5490000 KHz - 5710000 KHz @ 40000 KHz), (N/A, 2700 mBm)
[   30.850000] wlan0: deauthenticating from 00:18:39:1e:cc:83 by local choice (reason=3)
[   31.990000] wlan0: authenticate with 00:18:39:1e:cc:83
[   32.060000] wlan0: send auth to 00:18:39:1e:cc:83 (try 1/3)
[   32.340000] wlan0: send auth to 00:18:39:1e:cc:83 (try 2/3)
[   32.610000] wlan0: send auth to 00:18:39:1e:cc:83 (try 3/3)
[   32.900000] wlan0: authentication with 00:18:39:1e:cc:83 timed out

iw list

Wiphy phy0
        Band 1:
                Capabilities: 0x11ce
                        HT20/HT40
                        SM Power Save disabled
                        RX HT40 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 8 usec (0x06)
                HT TX/RX MCS rate indexes supported: 0-15
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0x3 RX 0x3
        Configured Antennas: TX 0x3 RX 0x3
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * WDS
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        interface combinations are not supported
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * new_beacon
                 * new_station
                 * new_mpath
                 * set_mesh_params
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * action
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * Unknown command (82)
                 * Unknown command (81)
                 * Unknown command (84)
                 * Unknown command (87)
                 * Unknown command (85)
                 * connect
                 * disconnect
        Supported TX frame types:
                 * IBSS: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * managed: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * AP: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * AP/VLAN: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * mesh point: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * P2P-client: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
                 * P2P-GO: 0x0000 0x0010 0x0020 0x0030 0x0040 0x0050 0x0060 0x0070 0x0080 0x0090 0x00a0 0x00b0 0x00c0 0x00d0 0x00e0 0x00f0
        Supported RX frame types:
                 * IBSS: 0x00d0
                 * managed: 0x0040 0x00d0
                 * AP: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
                 * AP/VLAN: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
                 * mesh point: 0x00b0 0x00c0 0x00d0
                 * P2P-client: 0x0040 0x00d0
                 * P2P-GO: 0x0000 0x0020 0x0040 0x00a0 0x00b0 0x00c0 0x00d0
        Device supports RSN-IBSS.

root@atom:/debugfs/ieee80211/phy0/statistics# head *
==> dot11ACKFailureCount <==
20

==> dot11FCSErrorCount <==
3409

==> dot11RTSFailureCount <==
0

==> dot11RTSSuccessCount <==
0

==> failed_count <==
43

==> frame_duplicate_count <==
0

==> multicast_received_frame_count <==
1483

==> multicast_transmitted_frame_count <==
0

==> multiple_retry_count <==
0

==> received_fragment_count <==
829

==> retry_count <==
0

==> transmitted_fragment_count <==
0

==> transmitted_frame_count <==
0

(Last edited by ayufan on 30 Mar 2012, 12:36)

@aryufan

Thanks for that, great work nevertheless.
Sorry to be pushy, but why don't we publish the diff for commitment as 'prelimianry support' and thus make sure your good work does not go 'stale'. There is a lot of work going on in the pci, athk and ar71xx area and your chnage set may soon be outdated again. Your thoughts?


Also, you have the same dmesg message as I had:

[    0.370000] pci 0000:00:00.0: no irq found for pin 1

which did not occur on the earlier version, when ironically only the wireless worked but not the switch. Do you agree that this is likely related? If so, then the maintainers of the athk and pci code in Openwrt should be able to help us. They should know best what changed from 2.6.39 to 3.2.12.

(Last edited by chillifire on 30 Mar 2012, 12:39)

It may be that. Wait till monday. Will try to check something wink

(Last edited by ayufan on 30 Mar 2012, 23:00)

What a nasty bug. Will post patches tomorrow with WLAN working...

ayufan wrote:

What a nasty bug.

static struct ath79_pci_irq rb751_pci_irqs[] __initdata = {
        {
        .slot    = 0,
        .pin    = 1,
        .irq    = ATH79_PCI_IRQ(0),
        }
};

? smile

Wifi really works fine with this change, at least in ramfs mode (wouldn't expect normal to be any different).

[    0.370000] pci 0000:00:00.0: no irq found for pin 1

Nice spotted, chillifire smile

it seems .slots 17,18,19 appeared here by pure error (not sure if they'll interfere with anything) and present only at ar71xx series.
actually default initialization for ar724x contains the same irq_map as we are using for rb751, so possibly we don't need custom irq map at all.
whatever, it works, and this is cool smile

Brilliant stuff everyone.

@aryufan @aleksisj
I will get this submitted as patches to trunk, but will certainly mention the main creator and wlan issue resolver. I am just keen to get things merged ASAP.

brainsucker wrote:

it seems .slots 17,18,19 appeared here by pure error (not sure if they'll interfere with anything) and present only at ar71xx series.
actually default initialization for ar724x contains the same irq_map as we are using for rb751, so possibly we don't need custom irq map at all.
whatever, it works, and this is cool smile

I thougth exactly the same but wasn't sure either - last patch from ayufan clears everything up.

I have logged the patches with OpenWrt devel for inclusion in trunk. Thanks everyone, but kudos above all to aryufan.

One small fly in the ointment is the LED for the wireless. That is not yet working, even though the wlan performs great. Suggestions anyone?

Will make it work later.

Sorry, and two more things.

1) I cannot seem to get the box to accept more than 22dBm wireless output, when it should be able to deliver 30dBm. I could accept 27dBm as the regulatory limit for US is 27dBm, and OpenWrt enforces that. But 22dBm? Or is there a 5dBm power offset maybe? Thoughts anyone?

2) could someone run the command

 iwinfo wlan0 info

on their RB751U-2HnD box and post their output here? Thanks

(Last edited by chillifire on 31 Mar 2012, 23:14)

I've been watching this development with interest. I have been searching for another router to run OpenWrt on that has a decent spec and doesn't cost a fortune. The RB751 series routers appear to be ideal! So I'd like to say a big thank you to those of you involved in getting these routers working on OpenWrt, especially ayufan!

@chillifire

From my RB751U-2HnD

iwinfo wlan0 info

wlan0     ESSID: "OpenWrt"
          Access Point: 00:0C:42:xx:xx:xx
          Mode: Master  Channel: 11 (2.462 GHz)
          Tx-Power: 20 dBm  Link Quality: 0/70
          Signal: unknown  Noise: -85 dBm
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11bgn
          Hardware: 168C:002A 168C:A093 [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes

On quick experimentation (it's getting late here), mine seems to max out at 20 dBm. I cannot force it any higher even though the tx power list would suggest it should be possible.

iwinfo wlan0 txpowerlist
...
  19 dBm (  79 mW)
* 20 dBm ( 100 mW)
  21 dBm ( 125 mW)
  22 dBm ( 158 mW)
  23 dBm ( 199 mW)
  24 dBm ( 251 mW)
  25 dBm ( 316 mW)
  26 dBm ( 398 mW)
  27 dBm ( 501 mW)
iwinfo wlan0 countrylist
...
    UM  UM
*   US  US
    UY  UY
...

Interestingly when I set the correct country code (GB) txpowerlist only allows upto 20 dBm

iwinfo wlan0 txpowerlist
...
  17 dBm (  50 mW)
  18 dBm (  63 mW)
  19 dBm (  79 mW)
* 20 dBm ( 100 mW)

Seems to be a bit of a coincidence that it is limiting the output to the correct countries tx power output.

What is the actual state? Is it working?

Can we return to routeros after using openwrt on it?

vdias wrote:

What is the actual state? Is it working?

almost perfectly for me (I'm not considering missing wlan led as a problem smile.

vdias wrote:

Can we return to routeros after using openwrt on it?

Yep, I just did it a few days ago, when mikrotik released a new RouterOS 5.15rc1 with support for my LTE usb stick.
You just need to run any netinstall program (available from mikrotik site), set it up (much easier than tftpd32), enter net boot mode in bootloader, and feed any firmware to it. License was in place and everything worked straightaway.

Still returned to OpenWRT, to have some more fun with it (playing with ideas on limiting skype bandwidth usage).