Hi,
The recent work on bwfm on sdio puts the on-board wifi (AP6212) on the NanoPi
Neo Plus2 tantalizingly within reach. (Thank you.)
I've tried various dtb and u-boot configurations, as well as various brcmfmac
firmware, and they all result in timeouts or error 60's when loading the
firmware. I suspect the problem is:
"wifi_pwrseq" at mainbus0 not configured
Here's what the dts I'm using says (it's also what FriendlyElec uses in the
stock firmware):
| wifi_pwrseq: wifi_pwrseq { |
|
| compatible = "mmc-pwrseq-simple"; |
|
| reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ |
|
| post-power-on-delay-ms = <200>; |
|
};
I don't see anything obviously wrong here. Am I missing something? Is the
power sequence the wrong issue to be looking at? Any help is much appreciated.
Thanks,s
OpenBSD 6.7 (GENERIC.MP) #1: Sat May 16 15:59:24 MDT 2020
[email protected]:/usr/src/sys/arch/arm64/compile/GENERIC.MPreal
mem = 975470592 (930MB)avail mem = 915382272 (872MB)mainbus0 at root:
FriendlyElec NanoPi-NEO-Plus2cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4cpu0:
32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cachecpu0: 512KB
64b/line 16-way L2 cacheefi0 at mainbus0: UEFI 2.0.5efi0: Das U-boot rev
0x0apm0 at mainbus0sxiccmu0 at mainbus0psci0 at mainbus0: PSCI
0.2"display-engine" at mainbus0 not configuredsimplebus0 at mainbus0:
"soc"syscon0 at simplebus0: "syscon"sxisid0 at simplebus0sxiccmu1 at
simplebus0sxipio0 at simplebus0: 94 pinsampintc0 at simplebus0 nirq 224, ncpu 4
ipi: 0, 1: "interrupt-controller"sxirtc0 at simplebus0sxiccmu2 at
simplebus0sxipio1 at simplebus0: 12 pins"clock" at simplebus0 not
configured"hdmi" at simplebus0 not configured"i2s" at simplebus0 not
configured"mixer" at simplebus0 not configured"sound" at simplebus0 not
configured"lcd-controller" at simplebus0 not configured"dma-controller" at
simplebus0 not configuredsximmc0 at simplebus0sdmmc0 at sximmc0: 4-bit, sd
high-speed, mmc high-speed, dmasximmc1 at simplebus0sdmmc1 at sximmc1: 4-bit,
sd high-speed, mmc high-speed, dmasximmc2 at simplebus0sdmmc2 at sximmc2:
8-bit, sd high-speed, mmc high-speed, dma"usb" at simplebus0 not
configured"phy" at simplebus0 not configuredehci0 at simplebus0usb0 at ehci0:
USB revision 2.0uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root
hub" rev 2.00/1.00 addr 1ohci0 at simplebus0: version 1.0ehci1 at
simplebus0usb1 at ehci1: USB revision 2.0uhub1 at usb1 configuration 1
interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1ohci1 at simplebus0:
version 1.0ehci2 at simplebus0usb2 at ehci2: USB revision 2.0uhub2 at usb2
configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1ohci2
at simplebus0: version 1.0ehci3 at simplebus0usb3 at ehci3: USB revision
2.0uhub3 at usb3 configuration 1 interface 0 "Generic EHCI root hub" rev
2.00/1.00 addr 1ohci3 at simplebus0: version 1.0sxitemp0 at simplebus0"timer"
at simplebus0 not configureddwxe0 at simplebus0: address
02:01:2d:5b:02:abrgephy0 at dwxe0 phy 0: RTL8169S/8110S/8211 PHY, rev. 5"spi"
at simplebus0 not configured"spi" at simplebus0 not configuredsxidog0 at
simplebus0"codec" at simplebus0 not configuredcom0 at simplebus0: ns16550, no
working fifocom0: consolecom1 at simplebus0: ns16550, no working fifocom2 at
simplebus0: ns16550, no working fifocom3 at simplebus0: ns16550, no working
fifosxitwi0 at simplebus0iic0 at sxitwi0maxrtc0 at iic0 addr 0x68maxrtc0:
maxrtc_read failedmaxrtc0: maxrtc_enable_osc failedsxitwi1 at simplebus0iic1 at
sxitwi1sxitwi2 at simplebus0iic2 at sxitwi2"codec-analog" at simplebus0 not
configuredgpio0 at sxipio0: 32 pinsgpio1 at sxipio0: 32 pinsgpio2 at sxipio0:
32 pinsgpio3 at sxipio0: 32 pinsgpio4 at sxipio0: 32 pinsgpio5 at sxipio0: 32
pinsgpio6 at sxipio0: 32 pinsgpio7 at sxipio1: 32 pinsusb4 at ohci0: USB
revision 1.0uhub4 at usb4 configuration 1 interface 0 "Generic OHCI root hub"
rev 1.00/1.00 addr 1usb5 at ohci1: USB revision 1.0uhub5 at usb5 configuration
1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1usb6 at ohci2: USB
revision 1.0uhub6 at usb6 configuration 1 interface 0 "Generic OHCI root hub"
rev 1.00/1.00 addr 1usb7 at ohci3: USB revision 1.0uhub7 at usb7 configuration
1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1agtimer0 at mainbus0:
tick rate 24000 KHz"connector" at mainbus0 not configured"leds" at mainbus0 not
configured"r-gpio-keys" at mainbus0 not configured"gmac-3v3" at mainbus0 not
configured"vcc3v3" at mainbus0 not configured"usb0-vbus" at mainbus0 not
configured"sound_i2s" at mainbus0 not configured"gpio-regulator" at mainbus0
not configured"wifi_pwrseq" at mainbus0 not configured"rfkill_bt" at mainbus0
not configuredcpu1 at mainbus0 mpidr 1: ARM Cortex-A53 r0p4cpu1: 32KB 64b/line
2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cachecpu1: 512KB 64b/line
16-way L2 cachecpu2 at mainbus0 mpidr 2: ARM Cortex-A53 r0p4cpu2: 32KB 64b/line
2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cachecpu2: 512KB 64b/line
16-way L2 cachecpu3 at mainbus0 mpidr 3: ARM Cortex-A53 r0p4cpu3: 32KB 64b/line
2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cachecpu3: 512KB 64b/line
16-way L2 cachescsibus0 at sdmmc2: 2 targets, initiator 0sd0 at scsibus0 targ 1
lun 0: <Samsung, 8WPD3R, 0000> removablesd0: 7456MB, 512 bytes/sector, 15269888
sectorsscsibus1 at sdmmc0: 2 targets, initiator 0sd1 at scsibus1 targ 1 lun 0:
<Sandisk, SE04G, 0038> removablesd1: 3724MB, 512 bytes/sector, 7626752
sectorsbwfm0 at sdmmc1 function 1manufacturer 0x02d0, product 0xa9a6 at sdmmc1
function 2 not configuredvscsi0 at rootscsibus2 at vscsi0: 256 targetssoftraid0
at rootscsibus3 at softraid0: 256 targetsbootfile: sd0a:/bsdboot device:
sd0root on sd1a (00d11a6f76d7f65c.a) swap on sd1b dump on sd1bbwfm0: failed
loadfirmware of file brcmfmac43430-sdio.binAutomatic boot in progress: starting
file system checks./dev/sd1a (00d11a6f76d7f65c.a): file system is clean; not
checking/dev/sd1e (00d11a6f76d7f65c.e): file system is clean; not
checking/dev/sd1d (00d11a6f76d7f65c.d): file system is clean; not checkingpf
enablednet.inet.ip.forwarding: 0 -> 1starting networkifconfig: SIOCDIFGROUP: No
such file or directoryreordering libraries: done.starting early daemons:
syslogd pflogd ntpd.starting RPC daemons:.checking quotas: done.clearing
/tmpkern.securelevel: 0 -> 1creating runtime link editor directory
cache.preserving editor files.starting network daemons: sshd dhcpd
smtpd.starting local daemons: apmd cron.Sun May 24 09:34:15 PDT 2020