Updates to freebsd-wifi-build

Adrian Chadd adrian at freebsd.org
Mon May 18 08:00:57 UTC 2015


We should support all the hardware on there. Someone just has to
figure out how to get it to work and glue whatever magic NAND stuff is
required.

I think someone wrote the hacky NAND hardware driver needed for that board.

I just haven't played with it myself at all :(


-a


On 18 May 2015 at 00:47, Piotr Kubaj <pkubaj at riseup.net> wrote:
> Hi, thanks for the effort, it's nice to see FreeBSD progress also on
> MIPS. Are you going somewhen in the future make something like
> release-arm-redux for MIPS?
>
> Also, two years ago I asked about getting Mikrotik RB751G-2HnD to work
> with FreeBSD (
> https://lists.freebsd.org/pipermail/freebsd-mips/2013-May/002783.html ).
> I now happily run OpenWRT on it, but would switch to FreeBSD, if
> possible. Is there any hope about that? Below is my dmesg:
> [    0.000000] Linux version 3.10.49 (bb at builder1) (gcc version 4.8.3
> (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #5 Wed Oct 1 14:15:03 CEST 2014
> [    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 ranges:
> [    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
> [    0.000000] On node 0 totalpages: 16384
> [    0.000000] free_area_init_node: node 0, pgdat 80326b60, node_mem_map
> 81000000
> [    0.000000]   Normal zone: 128 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 16384 pages, LIFO batch:3
> [    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] 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 parts=1
> boot_part_size=4194304 gpio=3911 HZ=200000000 mem=64M
> kmac=00:0C:42:F9:A7:C8 board=751g ver=3.22 hw_opt=00000105 boot=1 mlc=8
> 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] Writing ErrCtl register=00000000
> [    0.000000] Readback ErrCtl register=00000000
> [    0.000000] Memory: 61148k/65536k available (2328k kernel code, 4388k
> reserved, 634k data, 236k init, 0k highmem)
> [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] NR_IRQS:51
> [    0.080000] 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.340000] registering PCI controller with io_map_base unset
> [    0.350000] bio: create slab <bio-0> at 0
> [    0.360000] PCI host bridge to bus 0000:00
> [    0.360000] pci_bus 0000:00: root bus resource [mem
> 0x10000000-0x13ffffff]
> [    0.370000] pci_bus 0000:00: root bus resource [io  0x0000]
> [    0.370000] pci_bus 0000:00: No busn resource found for root bus,
> will use [bus 00-ff]
> [    0.380000] pci 0000:00:00.0: [168c:ff1c] type 00 class 0x020000
> [    0.380000] pci 0000:00:00.0: fixup device configuration
> [    0.380000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
> [    0.380000] pci 0000:00:00.0: supports D1
> [    0.380000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
> [    0.380000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
> [    0.380000] pci 0000:00:00.0: BAR 0: assigned [mem
> 0x10000000-0x1000ffff 64bit]
> [    0.390000] pci 0000:00:00.0: using irq 40 for pin 1
> [    0.390000] Switching to clocksource MIPS
> [    0.400000] NET: Registered protocol family 2
> [    0.400000] TCP established hash table entries: 512 (order: 0, 4096
> bytes)
> [    0.410000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
> [    0.420000] TCP: Hash tables configured (established 512 bind 512)
> [    0.420000] TCP: reno registered
> [    0.430000] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    0.430000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    0.440000] NET: Registered protocol family 1
> [    0.440000] PCI: CLS 0 bytes, default 32
> [    0.470000] yaffs: yaffs built Sep 20 2014 23:09:53 Installing.
> [    0.470000] msgmni has been set to 119
> [    0.470000] io scheduler noop registered
> [    0.470000] io scheduler deadline registered (default)
> [    0.480000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
> [    0.510000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
> [    0.520000] console [ttyS0] enabled, bootconsole disabled
> [    0.650000] NAND flash driver for the RouterBOARD 750 version 0.1.0
> [    0.730000] NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST
> Micro NAND 64MiB 3,3V 8-bit), 64MiB, page size: 512, OOB size: 16
> [    0.870000] Scanning device for bad blocks
> [    1.010000] Bad eraseblock 3831 at 0x000003bdc000
> [    1.070000] Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
> [    1.140000] 0x000000000000-0x000000040000 : "booter"
> [    1.200000] 0x000000040000-0x000000400000 : "kernel"
> [    1.270000] 0x000000400000-0x000004000000 : "rootfs"
> [    1.330000] mtd: device 2 (rootfs) set to be root filesystem
> [    1.400000] mtdsplit: no squashfs found in "rootfs"
> [    1.450000] mtdsplit: no squashfs found in "NAND 64MiB 3,3V 8-bit"
> [    1.560000] switch0: Atheros AR8327 rev. 2 switch registered on
> ag71xx-mdio.0
> [    2.830000] libphy: ag71xx_mdio: probed
> [    3.430000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00
> [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
> [    3.560000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
> [    3.630000] TCP: cubic registered
> [    3.670000] NET: Registered protocol family 17
> [    3.730000] Bridge firewalling registered
> [    3.780000] 8021q: 802.1Q VLAN Support v1.8
> [    3.830000] yaffs: dev is 32505858 name is "mtdblock2" ro
> [    3.890000] yaffs: passed flags ""
> [    3.930000] yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2"
> [    4.020000] yaffs: block 3576 is bad
> [    5.160000] yaffs: yaffs_read_super: is_checkpointed 0
> [    5.160000] VFS: Mounted root (yaffs filesystem) readonly on device 31:2.
> [    5.240000] Freeing unused kernel memory: 236K (80345000 - 80380000)
> [    8.430000] eth0: link up (1000Mbps/Full duplex)
> [    9.680000] eth0: link down
> [   11.120000] NET: Registered protocol family 10
> [   11.180000] sit: IPv6 over IPv4 tunneling driver
> [   11.270000] nf_conntrack version 0.5.0 (959 buckets, 3836 max)
> [   11.410000] ip6_tables: (C) 2000-2006 Netfilter Core Team
> [   11.490000] Loading modules backported from Linux version
> master-2014-05-22-0-gf2032ea
> [   11.580000] Backport generated by backports.git
> backports-20140320-37-g5c33da0
> [   11.670000] ip_tables: (C) 2000-2006 Netfilter Core Team
> [   11.780000] xt_time: kernel timezone is -0000
> [   11.870000] cfg80211: Calling CRDA to update world regulatory domain
> [   11.970000] cfg80211: World regulatory domain updated:
> [   12.030000] cfg80211:  DFS Master region: unset
> [   12.090000] cfg80211:   (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp), (dfs_cac_time)
> [   12.200000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   12.300000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   12.390000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   12.490000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   12.590000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   12.680000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   12.780000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   12.880000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz),
> (N/A, 0 mBm), (N/A)
> [   13.090000] PPP generic driver version 2.4.2
> [   13.140000] NET: Registered protocol family 24
> [   13.290000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
> [   13.360000] ath: EEPROM regdomain: 0x0
> [   13.360000] ath: EEPROM indicates default country code should be used
> [   13.360000] ath: doing EEPROM country->regdmn map search
> [   13.360000] ath: country maps to regdmn code: 0x3a
> [   13.360000] ath: Country alpha2 being used: US
> [   13.360000] ath: Regpair used: 0x3a
> [   13.380000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [   13.390000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=40
> [   13.570000] cfg80211: Calling CRDA for country: US
> [   13.630000] cfg80211: Regulatory domain changed to country: US
> [   13.700000] cfg80211:  DFS Master region: FCC
> [   13.750000] cfg80211:   (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp), (dfs_cac_time)
> [   13.860000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (N/A, 3000 mBm), (N/A)
> [   13.960000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz),
> (N/A, 1700 mBm), (N/A)
> [   14.050000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz),
> (N/A, 2300 mBm), (0 s)
> [   14.150000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
> (N/A, 3000 mBm), (N/A)
> [   14.250000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz),
> (N/A, 4000 mBm), (N/A)
> [   22.330000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   22.610000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
> [   22.690000] eth0: link up (1000Mbps/Full duplex)
> [   22.910000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [   23.000000] device eth0.1 entered promiscuous mode
> [   23.060000] device eth0 entered promiscuous mode
> [   23.230000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
> [   23.300000] br-lan: port 1(eth0.1) entered forwarding state
> [   23.370000] br-lan: port 1(eth0.1) entered forwarding state
> [   24.780000] cfg80211: Calling CRDA to update world regulatory domain
> [   24.970000] cfg80211: Invalid regulatory domain detected:
> [   25.030000] cfg80211: Regulatory domain: 00
> [   25.080000] cfg80211:   (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp), (dfs_cac_time)
> [   25.200000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   25.290000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   25.390000] br-lan: port 1(eth0.1) entered forwarding state
> [   25.450000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   25.550000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   25.650000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   25.740000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   25.840000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   25.940000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz),
> (N/A, 0 mBm), (N/A)
> [   26.160000] cfg80211: Calling CRDA to update world regulatory domain
> [   26.450000] cfg80211: World regulatory domain updated:
> [   26.510000] cfg80211:  DFS Master region: unset
> [   26.560000] cfg80211:   (start_freq - end_freq @ bandwidth),
> (max_antenna_gain, max_eirp), (dfs_cac_time)
> [   26.680000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   26.770000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   26.870000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   26.960000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   27.060000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   27.160000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz),
> (N/A, 2000 mBm), (0 s)
> [   27.260000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz),
> (N/A, 2000 mBm), (N/A)
> [   27.350000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz),
> (N/A, 0 mBm), (N/A)
> [   28.440000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
> [   28.570000] device wlan0 entered promiscuous mode
> [   30.340000] br-lan: port 2(wlan0) entered forwarding state
> [   30.400000] br-lan: port 2(wlan0) entered forwarding state
> [   30.470000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
> [   32.400000] br-lan: port 2(wlan0) entered forwarding state
>


More information about the freebsd-mips mailing list