Re: Status of wireless driver development for Raspberry Pi?

2021-06-03 Thread Ronald Klop

On 6/2/21 8:47 PM, Ronald Klop wrote:

On 5/31/21 10:43 PM, John F Carr wrote:

According to a page that hasn't been updated for a while 
(https://wiki.freebsd.org/SDIO) work is in progress on Broadcom wireless 
drivers for the Raspberry Pi 3 and 4.  I'm supposed to start by building the 
GENERIC-MMCCAM kernel.  A CAM device will then appear which I can then use 
camcontrol to talk to.  I built the kernel and booted it on my Pi 3B+, which 
has a  Broadcom 43455/6 according to Linux.   All camcontrol finds is the mini 
SD card. I see only one call to sdhci_init_slot in bcm2835_sdhost.c so maybe 
that's the problem.  It supports exactly one SDIO device, a memory card.

Any thoughts?  Is it worth thinking about the wireless chip or is it just too 
much work?

# camcontrol devlist
  at scbus0 target 0 lun 0 
(pass0,sdda0)
# camcontrol devlist -v
scbus0 on sdhci_slot0 bus 0:
  at scbus0 target 0 lun 0 
(pass0,sdda0)
scbus-1 on xpt0 bus 0:
<> at scbus-1 target -1 lun  (xpt0)






As you got no answer from somebody who knows more about this than I do I will 
try to give some pointers.

Here you can search through the history of the mailinglist. 
https://lists.freebsd.org/archives/freebsd-arm/date.html
Look for WiFi/SDIO/RPI kind of subjects.

The latest I found about this subject: 
https://lists.freebsd.org/archives/freebsd-arm/2020-October/022626.html.

I don't know anything about the current state. But a USB-WiFi dongle might be a 
reasonable shortcut.

I'll cc the Bjoern from this e-mail. @bjoern: do you have a status update?

Regards,
Ronald.




Oh, here is another update:
https://lists.freebsd.org/archives/freebsd-arm/2020-February/021340.html which 
points to 
https://lists.freebsd.org/pipermail/freebsd-wireless/2020-February/008985.html

So, somebody on the freebsd-wireless might know about it also,

IMHO It would be nice if the work-in-progress of this driver was shared in a 
known place so more people could help.

Regards,
Ronald.

___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: Can't enable SDIO wifi module on PBP

2021-06-05 Thread Ronald Klop

Hi,

People with more knowledge about this should anwer instead of me.

But as far as I know there is no driver for this WiFi module on FreeBSD.

Regards,
Ronald.


Van: KIRIYAMA Kazuhiko 
Datum: vrijdag, 4 juni 2021 13:19
Aan: freebsd-...@freebsd.org
CC: k...@truefc.org
Onderwerp: Re: Can't enable SDIO wifi module on PBP


On Fri, 04 Jun 2021 20:07:38 +0900,
KIRIYAMA Kazuhiko wrote:
>
> Hi, all
>
> I've reconfigured kernel to GENERIC-MMCCAM on Pinebook Pro (PBP) to use SDIO
> wifi module Broadcom BCM43456 (AMPAK AP6256 [1]). But nothing SDIO module

Sorry for not adding reference sites. Broadcom BCM43456 on AMPAK AP6256
sites to [1] and FreeBSD SDIO reference site is [2].

[1] https://wiki.pine64.org/wiki/Pinebook_Pro#Hardware_Overview
[2] https://wiki.freebsd.org/SDIO

> found :
>
> root@kazu:~ # camcontrol devlist -v
> scbus0 on dw_mmc_sim0 bus 0:
> scbus1 on dw_mmc_sim1 bus 0:
> scbus2 on sdhci_slot0 bus 0:
>   at scbus2 target 0 lun 0 
(pass0,sdda0)
> scbus-1 on xpt0 bus 0:
> <> at scbus-1 target -1 lun  (xpt0)
> root@kazu:~ #
>
> My environments are as follows :
>
> root@kazu:~ # uname -a
> FreeBSD kazu.tfc 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n246349-daa5350d0e0c: 
Wed Jun  2 17:01:11 JST 2021 
root@tbedfc:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-MMCCAM  arm64
> root@kazu:~ # cat /var/run/dmesg.boot
> ---<>---
> GDB: debug ports: uart
> GDB: current port: uart
> KDB: debugger backends: ddb gdb
> KDB: current backend: ddb
> WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
> Copyright (c) 1992-2021 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>   The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 14.0-CURRENT #0 n246349-daa5350d0e0c: Wed Jun  2 17:01:11 JST 2021
> root@tbedfc:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC-MMCCAM arm64
> FreeBSD clang version 11.0.1 (g...@github.com:llvm/llvm-project.git 
llvmorg-11.0.1-0-g43ff75f2c3fe)
> WARNING: WITNESS option enabled, expect reduced performance.
> VT(efifb): resolution 1920x1080
> module firmware already present!
> real memory  = 4158373888 (3965 MB)
> avail memory = 4025626624 (3839 MB)
> Starting CPU 1 (1)
> Starting CPU 2 (2)
> Starting CPU 3 (3)
> Starting CPU 4 (100)
> Starting CPU 5 (101)
> FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs
> random: unblocking device.
> random: entropy device external interface
> MAP f3f16000 mode 2 pages 4
> MAP f3f1b000 mode 2 pages 4
> MAP f6f4 mode 2 pages 16
> WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 14.0.
> kbd0 at kbdmux0
> WARNING: Device "openfirm" is Giant locked and may be deleted before FreeBSD 
14.0.
> ofwbus0: 
> clk_fixed0:  on ofwbus0
> simplebus0:  on ofwbus0
> rk_grf0:  mem 0xff32-0xff320fff on 
ofwbus0
> rk3399_pmucru0:  mem 
0xff75-0xff750fff on ofwbus0
> rk3399_cru0:  mem 0xff76-0xff760fff 
on ofwbus0
> rk_grf1:  mem 0xff77-0xff77 on 
ofwbus0
> regfix0:  on ofwbus0
> regfix1:  on ofwbus0
> regfix2:  on ofwbus0
> regfix3:  on ofwbus0
> regfix4:  on ofwbus0
> regfix5:  on ofwbus0
> regfix6:  on ofwbus0
> regfix7:  on ofwbus0
> regfix8:  on ofwbus0
> regfix9:  on ofwbus0
> regfix10:  on ofwbus0
> regfix11:  on ofwbus0
> simple_mfd0:  mem 0xff31-0xff310fff 
on ofwbus0
> psci0:  on ofwbus0
> gic0:  mem 
0xfee0-0xfee0,0xfef0-0xfefb,0xfff0-0xfff0,0xfff1-0xfff1,0xfff2-0xfff2
 irq 18 on ofwbus0
> its0:  mem 0xfee2-0xfee3 on 
gic0
> rk_iodomain0:  mem 0-0xff31,0-0xfff on rk_grf0
> rk_iodomain1:  mem 0-0xff76,0-0x on 
rk_grf1
> rk_pinctrl0:  on ofwbus0
> gpio0:  mem 0xff72-0xff7200ff irq 71 on 
rk_pinctrl0
> gpiobus0:  on gpio0
> gpio1:  mem 0xff73-0xff7300ff irq 72 on 
rk_pinctrl0
> gpiobus1:  on gpio1
> gpio2:  mem 0xff78-0xff7800ff irq 73 on 
rk_pinctrl0
> gpiobus2:  on gpio2
> gpio3:  mem 0xff788000-0xff7880ff irq 74 on 
rk_pinctrl0
> gpiobus3:  on gpio3
> gpio4:  mem 0xff79-0xff7900ff irq 75 on 
rk_pinctrl0
> gpiobus4:  on gpio4
> rk_i2c0:  mem 0xff11-0xff110fff irq 20 on ofwbus0
> iicbus0:  on rk_i2c0
> rk_i2c1:  mem 0xff13-0xff130fff irq 22 on ofwbus0
> iicbus1:  on rk_i2c1
> rk_i2c2:  mem 0xff3c-0xff3c0fff irq 38 on ofwbus0
> iicbus2:  on rk_i2c2
> syr8270:  at addr 0x80 on iicbus2
> rk_i2c3:  mem 0xff3d-0xff3d0fff irq 39 on ofwbus0
> iicbus3:  on rk_i2c3
> rk805_pmu0:  at addr 0x36 irq 76 on iicbus2
> generic_timer0:  irq 2,3,4,5 on ofwbus0
> Timecounter "ARM MPCore Timecounter" frequency 2400 Hz quality 1000
> Event timer "ARM MPCore Eventtimer" frequency 2400 Hz quality 1000
> rk_tsadc0:  mem 0xff26-0xff2600ff irq 35 on 
ofwbus0
> rk_usb2phy0:  mem 0-0xff76,0-0x on rk_grf1
> rk_usb2phy1:  mem 0-0xff76,0-0x on rk_grf1
> rk_emmcphy0:  mem 0-0xff76,0-0x on rk_grf1
> rk_pcie_phy0:  mem 0-0xff76ff