Installing OpenWrt on Mikrotik wAP R (RBwAPR-2nD)


#41

I already added those into images.

Are they on master? I can't seem to find them.


#42

It looks good, it boots and leds/reset are working. PCIe is not accessible tho, how would you approach it?

[    0.000000] Linux version 4.9.109 (openwrt@ip-10-168-75-30) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7309-333e609703) ) #0 Sat Jun 23 14:06:31 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    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] 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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    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 804a80c4, node_mem_map 81000020
[    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] 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 no-buzzer no-nand parts=1 boot_part_size=16777216 gpio=0 HZ=325000000 mem=64M kmac=64:D1:54:7D:E4:B0 board=wap-lte board=wap-lte ver=3.41 hw_opt=00684001 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs 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: 59704K/65536K available (3422K kernel code, 149K rwdata, 816K rodata, 212K init, 212K bss, 5832K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:650.000MHz, DDR:600.000MHz, AHB:300.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[    0.000009] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[    0.008867] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.071955] pid_max: default: 32768 minimum: 301
[    0.077302] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084820] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095508] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106704] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114202] NET: Registered protocol family 16
[    0.122894] MIPS: machine is MikroTik RouterBOARD wAP R-2nD
[    0.384171] clocksource: Switched to clocksource MIPS
[    0.391041] NET: Registered protocol family 2
[    0.396798] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.404763] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.411981] TCP: Hash tables configured (established 1024 bind 1024)
[    0.419306] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.425975] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.433339] NET: Registered protocol family 1
[    0.438343] PCI: CLS 0 bytes, default 32
[    0.442307] Crashlog allocated RAM at address 0x3f00000
[    0.449194] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.463090] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.469748] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.488580] io scheduler noop registered
[    0.493031] io scheduler deadline registered (default)
[    0.499250] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.506917] console [ttyS0] disabled
[    0.531102] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.540903] console [ttyS0] enabled
[    0.548458] bootconsole [early0] disabled
[    0.559973] m25p80 spi0.0: found w25q128jv, expected m25p80
[    0.574959] m25p80 spi0.0: w25q128jv (16384 Kbytes)
[    0.580379] Creating 6 MTD partitions on "spi0.0":
[    0.585382] 0x000000000000-0x00000000e000 : "routerboot"
[    0.592275] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.599453] 0x00000000f000-0x000000010000 : "bios"
[    0.605948] 0x000000010000-0x00000001f000 : "routerboot2"
[    0.613009] 0x00000001f000-0x000000020000 : "soft_config"
[    0.620155] 0x000000020000-0x000001000000 : "firmware"
[    0.627394] 2 minor-fw partitions found on MTD device firmware
[    0.633438] 0x000000020000-0x0000001a0000 : "kernel"
[    0.640122] 0x0000001a0000-0x000001000000 : "rootfs"
[    0.646819] mtd: device 7 (rootfs) set to be root filesystem
[    0.652702] 1 squashfs-split partitions found on MTD device rootfs
[    0.659148] 0x000000700000-0x000001000000 : "rootfs_data"
[    0.667179] libphy: Fixed MDIO Bus: probed
[    0.688951] libphy: ag71xx_mdio: probed
[    1.316476] ag71xx-mdio.1: Found an AR934X built-in switch
[    1.370022] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    1.377781] NET: Registered protocol family 10
[    1.385328] NET: Registered protocol family 17
[    1.389984] 8021q: 802.1Q VLAN Support v1.8
[    1.402925] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.411448] Freeing unused kernel memory: 212K
[    1.416065] This architecture does not have kernel memory protection.
[    2.022784] init: Console is alive
[    2.026617] init: - watchdog -
[    2.434182] random: fast init done
[    3.103444] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.250452] usbcore: registered new interface driver usbfs
[    3.256267] usbcore: registered new interface driver hub
[    3.261850] usbcore: registered new device driver usb
[    3.272026] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.280334] ehci-platform: EHCI generic platform driver
[    3.288394] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.296094] ohci-platform: OHCI generic platform driver
[    3.303740] uhci_hcd: USB Universal Host Controller Interface driver
[    3.311099] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.321053] init: - preinit -
[    4.042840] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.675596] eth0: link up (1000Mbps/Full duplex)
[    5.680402] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.232910] jffs2: notice: (365) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (1 unchecked, 1 orphan) and 2 of xref (0 dead, 1 orphan) found.
[    7.250434] mount_root: switching to jffs2 overlay
[    7.293111] urandom-seed: Seeding with /etc/urandom.seed
[    7.455728] eth0: link down
[    7.470213] procd: - early -
[    7.473293] procd: - watchdog -
[    8.096586] procd: - watchdog -
[    8.100107] procd: - ubus -
[    8.192791] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.344769] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.351751] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.359155] procd: - init -
[    8.743003] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.755061] tun: Universal TUN/TAP device driver, 1.6
[    8.760289] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    8.769185] Netfilter messages via NETLINK v0.30.
[    8.776686] ip_set: protocol 6
[    8.818068] usbcore: registered new interface driver cdc_wdm
[    8.826263] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    8.834607] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    8.843692] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.858005] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.918465] usbcore: registered new interface driver usbserial
[    8.924666] usbcore: registered new interface driver usbserial_generic
[    8.931489] usbserial: USB Serial support registered for generic
[    8.954869] xt_time: kernel timezone is -0000
[    8.961585] usbcore: registered new interface driver cdc_ether
[    8.970946] usbcore: registered new interface driver cdc_ncm
[    8.998411] usbcore: registered new interface driver huawei_cdc_ncm
[    9.043355] usbcore: registered new interface driver qmi_wwan
[    9.052042] usbcore: registered new interface driver rndis_host
[    9.087816] usbcore: registered new interface driver option
[    9.093676] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.118966] ath: EEPROM regdomain: 0x0
[    9.118976] ath: EEPROM indicates default country code should be used
[    9.118979] ath: doing EEPROM country->regdmn map search
[    9.118994] ath: country maps to regdmn code: 0x3a
[    9.118999] ath: Country alpha2 being used: US
[    9.119002] ath: Regpair used: 0x3a
[    9.129813] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.133979] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[    9.277887] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.528142] urandom_read: 5 callbacks suppressed
[   10.528150] random: jshn: uninitialized urandom read (4 bytes read)
[   10.590038] random: ubusd: uninitialized urandom read (4 bytes read)
[   17.764076] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
[   17.843632] br-wan: port 1(eth0) entered blocking state
[   17.843648] br-wan: port 1(eth0) entered disabled state
[   17.843988] device eth0 entered promiscuous mode
[   17.905726] IPv6: ADDRCONF(NETDEV_UP): br-lan_001: link is not ready
[   17.927849] IPv6: ADDRCONF(NETDEV_UP): br-lan_002: link is not ready
[   19.592586] ath: EEPROM regdomain: 0x833a
[   19.592596] ath: EEPROM indicates we should expect a country code
[   19.592603] ath: doing EEPROM country->regdmn map search
[   19.592609] ath: country maps to regdmn code: 0x37
[   19.592614] ath: Country alpha2 being used: GB
[   19.592618] ath: Regpair used: 0x37
[   19.592624] ath: regdomain 0x833a dynamically updated by user
[   19.635801] eth0: link up (1000Mbps/Full duplex)
[   19.635851] br-wan: port 1(eth0) entered blocking state
[   19.635861] br-wan: port 1(eth0) entered forwarding state
[   19.637689] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[   21.344362] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.348189] br-lan_001: port 1(wlan0) entered blocking state
[   21.348202] br-lan_001: port 1(wlan0) entered disabled state
[   21.348581] device wlan0 entered promiscuous mode
[   23.507170] device br-lan_001 entered promiscuous mode
[   29.003233] device br-lan_001 left promiscuous mode
[   29.565834] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   29.566019] br-lan_001: port 1(wlan0) entered blocking state
[   29.566030] br-lan_001: port 1(wlan0) entered forwarding state
[   29.566209] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan_001: link becomes ready
[   29.646899] br-lan_002: port 1(wlan0-1) entered blocking state
[   29.646913] br-lan_002: port 1(wlan0-1) entered disabled state
[   29.647285] device wlan0-1 entered promiscuous mode
[   29.651399] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[   29.651425] br-lan_002: port 1(wlan0-1) entered blocking state
[   29.651435] br-lan_002: port 1(wlan0-1) entered forwarding state
[   29.651954] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan_002: link becomes ready
[   29.747771] export_store: invalid GPIO 45
[   30.238668] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[   77.315709] random: crng init done
[   94.055367] device br-lan_001 entered promiscuous mode

#43

There is a GPIO for PCI.
You can try toggling it


#44

I've never done this before, can you give me a hint where to start?


#45

Simply change the value in /sys/class/gpio


#46

I didn't get very far with this i am afraid


#47

PCI power GPIO is registered and exposed in /sys/class/gpio
Toggle it there


#48

Yes I got that, didnt have any luck getting the board detected

root@OpenWrt:/# ls -al /sys/class/gpio
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   20 root     root             0 Jan  1  1970 ..
--w-------    1 root     root          4096 Jun 24 18:14 export
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip0 -> ../../devices/platform/ath79-gpio/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jun 24 18:17 gpiochip494 -> ../../devices/platform/qca953x_wmac/gpio/gpiochip494
--w-------    1 root     root          4096 Jan  1  1970 unexport

#49

Hm,weirdly GPIO is not exposed there.
Gotta check it out


#50

Yeah, I'm reading for a while. Note no /dev/ttyUSB0* are being created.

root@OpenWrt:/# ls /dev/tty*
/dev/tty    /dev/ttyS0
root@OpenWrt:/# dmesg | grep -i usb
[    3.370988] usbcore: registered new interface driver usbfs
[    3.376807] usbcore: registered new interface driver hub
[    3.382393] usbcore: registered new device driver usb
[    3.394669] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.410975] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.426406] uhci_hcd: USB Universal Host Controller Interface driver
[    9.267352] usbcore: registered new interface driver cdc_wdm
[    9.378770] usbcore: registered new interface driver usbserial
[    9.384963] usbcore: registered new interface driver usbserial_generic
[    9.391797] usbserial: USB Serial support registered for generic
[    9.421251] usbcore: registered new interface driver cdc_ether
[    9.430599] usbcore: registered new interface driver cdc_ncm
[    9.461251] usbcore: registered new interface driver huawei_cdc_ncm
[    9.514669] usbcore: registered new interface driver qmi_wwan
[    9.524596] usbcore: registered new interface driver rndis_host
[    9.564262] usbcore: registered new interface driver option
[    9.570129] usbserial: USB Serial support registered for GSM modem (1-port)

#51

Can it actually have something todo with USB driver?


#52

Why would /dev/tty/USB be created when the device does not have a USB port?
Added the missing PCI GPIO and building now


#53

Is it this one? I'm using my own build.


#54

Yes,that is the one


#55

Pushed the W25Q128JV patch to Linux-MTD so it can be backported into OpenWrt.


#56

It is a correct GPIO for PCI power but modem is still undetected unfortunately -

[    0.000000] Linux version 4.9.109 (openwrt@ip-10-168-75-30) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7309-333e609703) ) #0 Sat Jun 23 14:06:31 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    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] 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] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    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 804a80c4, node_mem_map 81000020
[    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] 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 no-buzzer no-nand parts=1 boot_part_size=16777216 gpio=0 HZ=325000000 mem=64M kmac=64:D1:54:7D:E4:B0 board=wap-lte board=wap-lte ver=3.41 hw_opt=00684001 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs 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: 59704K/65536K available (3422K kernel code, 149K rwdata, 816K rodata, 212K init, 212K bss, 5832K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:650.000MHz, DDR:600.000MHz, AHB:300.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns
[    0.000008] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns
[    0.008867] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688)
[    0.071955] pid_max: default: 32768 minimum: 301
[    0.077302] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084811] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.095491] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.106687] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114184] NET: Registered protocol family 16
[    0.122885] MIPS: machine is MikroTik RouterBOARD wAP R-2nD
[    0.384165] clocksource: Switched to clocksource MIPS
[    0.391030] NET: Registered protocol family 2
[    0.396780] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.404745] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.411963] TCP: Hash tables configured (established 1024 bind 1024)
[    0.419288] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.425958] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.433322] NET: Registered protocol family 1
[    0.438326] PCI: CLS 0 bytes, default 32
[    0.442290] Crashlog allocated RAM at address 0x3f00000
[    0.449176] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.463073] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.469730] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.488564] io scheduler noop registered
[    0.493013] io scheduler deadline registered (default)
[    0.499234] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.506900] console [ttyS0] disabled
[    0.531085] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.540885] console [ttyS0] enabled
[    0.548440] bootconsole [early0] disabled
[    0.559954] m25p80 spi0.0: found w25q128jv, expected m25p80
[    0.574923] m25p80 spi0.0: w25q128jv (16384 Kbytes)
[    0.580345] Creating 6 MTD partitions on "spi0.0":
[    0.585346] 0x000000000000-0x00000000e000 : "routerboot"
[    0.592239] 0x00000000e000-0x00000000f000 : "hard_config"
[    0.599417] 0x00000000f000-0x000000010000 : "bios"
[    0.605913] 0x000000010000-0x00000001f000 : "routerboot2"
[    0.612984] 0x00000001f000-0x000000020000 : "soft_config"
[    0.620139] 0x000000020000-0x000001000000 : "firmware"
[    0.627376] 2 minor-fw partitions found on MTD device firmware
[    0.633421] 0x000000020000-0x0000001a0000 : "kernel"
[    0.640106] 0x0000001a0000-0x000001000000 : "rootfs"
[    0.646800] mtd: device 7 (rootfs) set to be root filesystem
[    0.652685] 1 squashfs-split partitions found on MTD device rootfs
[    0.659130] 0x000000710000-0x000001000000 : "rootfs_data"
[    0.667162] libphy: Fixed MDIO Bus: probed
[    0.688934] libphy: ag71xx_mdio: probed
[    1.316470] ag71xx-mdio.1: Found an AR934X built-in switch
[    1.370017] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    1.377779] NET: Registered protocol family 10
[    1.385326] NET: Registered protocol family 17
[    1.389985] 8021q: 802.1Q VLAN Support v1.8
[    1.402991] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[    1.411516] Freeing unused kernel memory: 212K
[    1.416137] This architecture does not have kernel memory protection.
[    2.047477] init: Console is alive
[    2.051230] init: - watchdog -
[    2.434173] random: fast init done
[    3.223088] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.371020] usbcore: registered new interface driver usbfs
[    3.376833] usbcore: registered new interface driver hub
[    3.382418] usbcore: registered new device driver usb
[    3.394655] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.402930] ehci-platform: EHCI generic platform driver
[    3.410933] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.418640] ohci-platform: OHCI generic platform driver
[    3.426316] uhci_hcd: USB Universal Host Controller Interface driver
[    3.440698] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.458667] init: - preinit -
[    4.162836] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.795596] eth0: link up (1000Mbps/Full duplex)
[    5.800404] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.488573] jffs2: notice: (370) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (0 unchecked, 1 orphan) and 2 of xref (0 dead, 1 orphan) found.
[    7.506103] mount_root: switching to jffs2 overlay
[    7.556700] urandom-seed: Seed file not found (/etc/urandom.seed)
[    7.713452] eth0: link down
[    7.728087] procd: - early -
[    7.731170] procd: - watchdog -
[    8.341209] procd: - watchdog -
[    8.344769] procd: - ubus -
[    8.432549] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.585020] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.592009] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.599443] procd: - init -
[    8.976942] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.988363] tun: Universal TUN/TAP device driver, 1.6
[    8.993589] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    9.002544] Netfilter messages via NETLINK v0.30.
[    9.009971] ip_set: protocol 6
[    9.050973] usbcore: registered new interface driver cdc_wdm
[    9.059174] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    9.067506] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    9.076531] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.091790] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    9.152855] usbcore: registered new interface driver usbserial
[    9.159043] usbcore: registered new interface driver usbserial_generic
[    9.165913] usbserial: USB Serial support registered for generic
[    9.188673] xt_time: kernel timezone is -0000
[    9.195471] usbcore: registered new interface driver cdc_ether
[    9.204818] usbcore: registered new interface driver cdc_ncm
[    9.232889] usbcore: registered new interface driver huawei_cdc_ncm
[    9.278317] usbcore: registered new interface driver qmi_wwan
[    9.287019] usbcore: registered new interface driver rndis_host
[    9.323235] usbcore: registered new interface driver option
[    9.329185] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.354559] ath: EEPROM regdomain: 0x0
[    9.354569] ath: EEPROM indicates default country code should be used
[    9.354572] ath: doing EEPROM country->regdmn map search
[    9.354587] ath: country maps to regdmn code: 0x3a
[    9.354592] ath: Country alpha2 being used: US
[    9.354595] ath: Regpair used: 0x3a
[    9.365412] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.369578] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[    9.471528] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.702115] urandom_read: 5 callbacks suppressed
[   10.702123] random: jshn: uninitialized urandom read (4 bytes read)
[   10.765025] random: ubusd: uninitialized urandom read (4 bytes read)
[   17.973469] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
[   18.053643] br-wan: port 1(eth0) entered blocking state
[   18.053657] br-wan: port 1(eth0) entered disabled state
[   18.054002] device eth0 entered promiscuous mode
[   18.115739] IPv6: ADDRCONF(NETDEV_UP): br-lan_001: link is not ready
[   18.137994] IPv6: ADDRCONF(NETDEV_UP): br-lan_002: link is not ready
[   19.800307] ath: EEPROM regdomain: 0x833a
[   19.800317] ath: EEPROM indicates we should expect a country code
[   19.800324] ath: doing EEPROM country->regdmn map search
[   19.800330] ath: country maps to regdmn code: 0x37
[   19.800335] ath: Country alpha2 being used: GB
[   19.800339] ath: Regpair used: 0x37
[   19.800345] ath: regdomain 0x833a dynamically updated by user
[   19.815680] eth0: link up (1000Mbps/Full duplex)
[   19.815729] br-wan: port 1(eth0) entered blocking state
[   19.815739] br-wan: port 1(eth0) entered forwarding state
[   19.817564] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[   21.547224] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   21.551114] br-lan_001: port 1(wlan0) entered blocking state
[   21.551128] br-lan_001: port 1(wlan0) entered disabled state
[   21.551503] device wlan0 entered promiscuous mode
[   23.719104] device br-lan_001 entered promiscuous mode
[   29.249117] device br-lan_001 left promiscuous mode
[   29.896125] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   29.896310] br-lan_001: port 1(wlan0) entered blocking state
[   29.896321] br-lan_001: port 1(wlan0) entered forwarding state
[   29.896506] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan_001: link becomes ready
[   29.908172] export_store: invalid GPIO 45
[   29.924772] br-lan_002: port 1(wlan0-1) entered blocking state
[   29.924786] br-lan_002: port 1(wlan0-1) entered disabled state
[   29.925158] device wlan0-1 entered promiscuous mode
[   29.926796] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[   29.926822] br-lan_002: port 1(wlan0-1) entered blocking state
[   29.926831] br-lan_002: port 1(wlan0-1) entered forwarding state
[   29.927325] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan_002: link becomes ready
[   30.473520] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[   75.964534] random: crng init done
[   97.640818] device br-lan_001 entered promiscuous mode

Note

[   29.908172] export_store: invalid GPIO 45

FYI

There is a kit R11e-LTE installed in the unit.


#57

Well,where did the GPIO45 even come from as the device does not have SSR for which range usually starts at 40 in Routerboards.

Can you try toggling the PCI power GPIO and then rebooting?


#58

How would I toggle PCI power GPIO (sorry for lame question)


#59

It should be registered in /sys/class/gpio/gpio15
And there you can just echo opposite value than current one into value(Or active,I dont really remember on top of my head)

Or simply change it in mach file from GPIOF_OUT_INIT_LOW to GPIOF_OUT_INIT_HIGH


#60
# ls -al /sys/class/gpio
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   20 root     root             0 Jan  1  1970 ..
--w-------    1 root     root          4096 Jun 24 20:50 export
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip0 -> ../../devices/platform/ath79-gpio/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jun 24 21:12 gpiochip494 -> ../../devices/platform/qca953x_wmac/gpio/gpiochip494
--w-------    1 root     root          4096 Jan  1  1970 unexport