Add support for Netgear MVBR1210C

To start, this is my first ever post. I have enjoyed playing with OpenWRT for a number of years, but just recently tried my hand at getting it to work on a piece of hardware that wasn't on the list(yet :slight_smile: )

Here is the Hardware Info:
https://wikidevi.com/wiki/Netgear_MVBR1210C
https://wireless.wiki.kernel.org/en/users/Drivers/b43/soc

I discovered you do NOT want to use kmod-b43 on this model.

It appeared as though something from the /brcm47xx/mips74k/ branch should work. At this point I though about using the image builder, but in the end went with the generic image.

Here is the quick list to get things working:

Download
http://archive.openwrt.org/snapshots/trunk/brcm47xx/mips74k/openwrt-brcm47xx-mips74k-standard-squashfs.trx

Convert to CHK file


(need to compile this first)

You will need to set the board id as one of the parameters used by mkchkimg. I used a hex editor to glean my ID from the netgear stock firmware image.
Board ID
U12H195T00_NETGEAR

Notes/Questions:
For the Sirerra MC8704 PCIe card that came in my bell version I used
kmod-usb-serial-sierrawireless - Note I didn't actually try to connect to a 3g network, I just turned it on an said 'wow it works' This card uses the usb bus and is not a full PCIe card(hence the next question)

Does anyone know how to compile the image so that the PCIe core is enabled? I really would like to put a second broadcom wireless card here.....

Here is the Kernel log:

[    0.000000] Linux version 4.1.35 (thepeople@trabant) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 50140) ) #1 Fri Dec 8 09:09:00 UTC 2017
[    0.000000] CPU0 revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: Using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x09
[    0.000000] Determined 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 0x0000000000000000-0x0000000003ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 80392050, 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 32kB, 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:  noinitrd console=ttyS0,115200
[    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: 60688K/65536K available (2942K kernel code, 123K rwdata, 672K rodata, 152K init, 290K bss, 4848K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] NR_IRQS:128
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.000000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0)
[    0.000000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.000000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.000000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.000000] bcma: bus0: Found rev 5 PMU (capabilities 0x11242C05)
[    0.000000] bcma: bus0: Found serial flash
[    0.000000] bcma: bus0: Found M25P64 serial flash (size: 8192KiB, blocksize: 0x10000, blocks: 128)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Unknown Board
[    0.000000] bcm47xx: Setting up vectored interrupts
[    0.000000] clocksource MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11479041721 ns
[    0.000023] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12897800188ns
[    0.000439] Calibrating delay loop... 166.29 BogoMIPS (lpj=831488)
[    0.070081] pid_max: default: 32768 minimum: 301
[    0.070628] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070668] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.077329] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.079533] NET: Registered protocol family 16
[    0.111263] Switched to clocksource MIPS
[    0.114995] NET: Registered protocol family 2
[    0.117519] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.117602] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.117658] TCP: Hash tables configured (established 1024 bind 1024)
[    0.118039] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.118110] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.118878] NET: Registered protocol family 1
[    0.119132] PCI: CLS 0 bytes, default 32
[    0.572159] bcma: bus0: Using SPROM revision 8 provided by platform.
[    0.572216] bcma: bus0: PMU resource config unknown or not needed for device 0x4716
[    0.574242] bcma: bus0: Workarounds unknown or not needed for device 0x4716
[    0.574270] bcma: bus0: Initializing MIPS core...
[    0.574299] bcma: bus0: Moved i2s interrupt to oob line 7 instead of 8
[    0.574337] bcma: bus0: set_irq: core 0x0812, irq 3 => 3
[    0.574368] bcma: bus0: set_irq: core 0x082d, irq 4 => 4
[    0.574400] bcma: bus0: set_irq: core 0x0819, irq 5 => 5
[    0.574431] bcma: bus0: set_irq: core 0x0820, irq 6 => 6
[    0.574460] bcma: bus0: set_irq: core 0x0800, irq 2 => 2
[    0.574491] bcma: bus0: set_irq: core 0x0834, irq 0 => 2
[    0.574512] bcma: bus0: IRQ reconfiguration done
[    0.574535] bcma: core 0x0800, irq : 2(S)* 3  4  5  6  D  I 
[    0.574603] bcma: core 0x0812, irq : 2(S)  3* 4  5  6  D  I 
[    0.574664] bcma: core 0x082d, irq : 2(S)  3  4* 5  6  D  I 
[    0.574723] bcma: core 0x082c, irq : 2(S)  3  4  5  6  D  I*
[    0.574783] bcma: core 0x0819, irq : 2(S)  3  4  5* 6  D  I 
[    0.574843] bcma: core 0x0820, irq : 2(S)  3  4  5  6* D  I 
[    0.574903] bcma: core 0x082e, irq : 2(S)  3  4  5  6  D* I 
[    0.574962] bcma: core 0x080e, irq : 2(S)  3  4  5  6  D  I*
[    0.575021] bcma: core 0x0834, irq : 2(S)* 3  4  5  6  D  I 
[    0.575082] bcma: bus0: PCIEcore in host mode found
[    0.575105] bcma: bus0: This PCIE core is disabled and not working
[    0.577202] bcma: bus0: Bus registered
[    0.579194] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.587100] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.587174] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.590099] io scheduler noop registered
[    0.590165] io scheduler deadline registered (default)
[    0.590809] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.597537] console [ttyS0] disabled
[    0.617918] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 0, base_baud = 1250000) is a U6_16550A
[    1.044295] console [ttyS0] enabled
[    1.201190] 7 bcm47xxpart partitions found on MTD device bcm47xxsflash
[    1.207933] Creating 7 MTD partitions on "bcm47xxsflash":
[    1.213528] 0x000000000000-0x000000040000 : "boot"
[    1.220442] 0x000000040000-0x0000007d0000 : "firmware"
[    1.227773] 0x00000004001c-0x000000040918 : "loader"
[    1.234995] 0x000000040918-0x00000017ac00 : "linux"
[    1.242184] 0x00000017ac00-0x0000007d0000 : "rootfs"
[    1.249226] mtd: device 4 (rootfs) set to be root filesystem
[    1.255232] 1 squashfs-split partitions found on MTD device rootfs
[    1.261656] 0x000000350000-0x0000007d0000 : "rootfs_data"
[    1.269279] 0x0000007d0000-0x0000007f0000 : "POT"
[    1.276289] 0x0000007f0000-0x000000800000 : "nvram"
[    1.285010] bgmac bcma0:2: Found PHY addr: 30 (NOREGS)
[    1.291839] bgmac bcma0:2: Support for Roboswitch not implemented
[    1.317017] libphy: bgmac mii bus: probed
[    1.481469] b53_common: found switch: BCM5325, rev 0
[    1.488349] bgmac: Broadcom 47xx GBit MAC driver loaded
[    1.494603] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.504010] NET: Registered protocol family 10
[    1.514641] NET: Registered protocol family 17
[    1.519393] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.532513] Bridge firewalling registered
[    1.536647] 8021q: 802.1Q VLAN Support v1.8
[    1.557900] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.566721] Freeing unused kernel memory: 152K (803aa000 - 803d0000)
[    3.875003] init: Console is alive
[    3.879093] init: - watchdog -
[    5.549038] init: - preinit -
[   10.013631] jffs2: notice: (239) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   10.033793] mount_root: switching to jffs2 overlay
[   10.123398] procd: - early -
[   10.126666] procd: - watchdog -
[   11.154227] procd: - ubus -
[   11.424067] random: ubusd urandom read with 19 bits of entropy available
[   11.445656] procd: - init -
[   14.962089] usbcore: registered new interface driver usbfs
[   14.967973] usbcore: registered new interface driver hub
[   14.973936] usbcore: registered new device driver usb
[   15.025958] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   15.036655] ehci-platform: EHCI generic platform driver
[   15.042355] ehci-platform ehci-platform.0: EHCI Host Controller
[   15.048465] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[   15.057066] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[   15.081577] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[   15.092485] hub 1-0:1.0: USB hub found
[   15.097825] hub 1-0:1.0: 2 ports detected
[   15.113765] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.165463] uhci_hcd: USB Universal Host Controller Interface driver
[   15.313692] hidraw: raw HID events driver (C) Jiri Kosina
[   15.423548] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   15.598148] hub 1-1:1.0: USB hub found
[   15.613200] hub 1-1:1.0: 4 ports detected
[   15.717120] Bluetooth: Core ver 2.20
[   15.721035] NET: Registered protocol family 31
[   15.725719] Bluetooth: HCI device and connection manager initialized
[   15.732333] Bluetooth: HCI socket layer initialized
[   15.737335] Bluetooth: L2CAP socket layer initialized
[   15.742668] Bluetooth: SCO socket layer initialized
[   15.758852] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   15.764450] Bluetooth: BNEP filters: protocol multicast
[   15.769852] Bluetooth: BNEP socket layer initialized
[   15.812669] usbcore: registered new interface driver btusb
[   15.825928] Loading modules backported from Linux version wt-2016-05-12-0-g7a54796
[   15.833796] Backport generated by backports.git backports-20160216-0-ge3c56e4
[   15.857787] Bluetooth: HCI UART driver ver 2.3
[   15.862483] Bluetooth: HCI UART protocol H4 registered
[   15.867730] Bluetooth: HCI UART protocol BCSP registered
[   15.873219] Bluetooth: HCI UART protocol ATH3K registered
[   15.891913] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[   15.898006] Bluetooth: HIDP socket layer initialized
[   15.908897] ip_tables: (C) 2000-2006 Netfilter Core Team
[   15.942280] nf_conntrack version 0.5.0 (950 buckets, 3800 max)
[   16.026034] Bluetooth: RFCOMM TTY layer initialized
[   16.031087] Bluetooth: RFCOMM socket layer initialized
[   16.036522] Bluetooth: RFCOMM ver 1.11
[   16.088613] xt_time: kernel timezone is -0000
[   16.230835] PPP generic driver version 2.4.2
[   16.242336] NET: Registered protocol family 24
[   16.273870] b43-phy0: Broadcom 4716 WLAN found (core revision 17)
[   16.281926] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 5
[   16.288179] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[   16.296650] Broadcom 43xx driver loaded [ Features: NL ]
[   16.308409] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   32.025043] device eth0.1 entered promiscuous mode
[   32.029963] device eth0 entered promiscuous mode
[   32.051255] br-lan: port 1(eth0.1) entered forwarding state
[   32.057162] br-lan: port 1(eth0.1) entered forwarding state
[   34.051387] br-lan: port 1(eth0.1) entered forwarding state
[   36.381390] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[   36.762061] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   39.704319] wlan0: authenticate with 30:46:9a:fe:7c:96
[   39.772879] wlan0: send auth to 30:46:9a:fe:7c:96 (try 1/3)
[   39.781403] wlan0: authenticated
[   39.811470] wlan0: associate with 30:46:9a:fe:7c:96 (try 1/3)
[   39.825460] wlan0: RX AssocResp from 30:46:9a:fe:7c:96 (capab=0x411 status=0 aid=2)
[   39.833827] wlan0: associated
[   39.837400] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   67.821356] random: nonblocking pool is initialized