PINE64
bes2600 driver - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTab (https://forum.pine64.org/forumdisplay.php?fid=140)
+--- Forum: PineTab Hardware (https://forum.pine64.org/forumdisplay.php?fid=143)
+--- Thread: bes2600 driver (/showthread.php?tid=18513)

Pages: 1 2 3 4 5 6


RE: bes2600 driver - Kevin Kofler - 11-23-2023

Check your NetworkManager MAC address randomization settings:
https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization

If randomization is disabled, but you still get everchanging MAC addresses, most likely the hardware does not store a fixed MAC address, or U-Boot fails to read it, so the kernel (or the hardware itself) ends up generating a random one at every boot. (The PinePhone had the same issue in early U-Boot versions, until they fixed U-Boot.) As a workaround, try configuring the NetworkManager MAC address randomization mode (see the link above) to "stable" instead of entirely disabled. Then NetworkManager will ignore the broken hardware MAC address and generate one per connection as a hash of the connection name and/or metadata instead.

Alternatively, you can also hardcode a specific MAC address to use in the NetworkManager configuration.


RE: bes2600 driver - explit - 11-24-2023

(11-23-2023, 11:21 PM)Kevin Kofler Wrote: Check your NetworkManager MAC address randomization settings:
https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization

If randomization is disabled, but you still get everchanging MAC addresses, most likely the hardware does not store a fixed MAC address, or U-Boot fails to read it, so the kernel (or the hardware itself) ends up generating a random one at every boot. (The PinePhone had the same issue in early U-Boot versions, until they fixed U-Boot.) As a workaround, try configuring the NetworkManager MAC address randomization mode (see the link above) to "stable" instead of entirely disabled. Then NetworkManager will ignore the broken hardware MAC address and generate one per connection as a hash of the connection name and/or metadata instead.

Alternatively, you can also hardcode a specific MAC address to use in the NetworkManager configuration.

Thanks for the clarification Kevin!
Maybe one more question: how you make that the 2 commands:

Code:
sudo modprobe mac80211
sudo insmod bes2600.ko

are started automatic on start?

I made a file bes2600_autostart.service,
enabled it with
Code:
sudo systemctl enable bes2600_autostart.service

but i got everytime an error on boot, when the service is tried to start automatic.

I always need to manual start it with
Code:
sudo systemctl start bes2600_autostart_service
How you made it?

Thanks


RE: bes2600 driver - Kevin Kofler - 11-24-2023

If you run this in a systemd service, it is already root, so you should not use sudo there.

I do not own a PineTab 2, so I do not have a setup to share.


RE: bes2600 driver - explit - 11-26-2023

(11-23-2023, 11:21 PM)Kevin Kofler Wrote: Check your NetworkManager MAC address randomization settings:
https://wiki.archlinux.org/title/NetworkManager#Configuring_MAC_address_randomization

If randomization is disabled, but you still get everchanging MAC addresses, most likely the hardware does not store a fixed MAC address, or U-Boot fails to read it, so the kernel (or the hardware itself) ends up generating a random one at every boot. (The PinePhone had the same issue in early U-Boot versions, until they fixed U-Boot.) As a workaround, try configuring the NetworkManager MAC address randomization mode (see the link above) to "stable" instead of entirely disabled. Then NetworkManager will ignore the broken hardware MAC address and generate one per connection as a hash of the connection name and/or metadata instead.

Alternatively, you can also hardcode a specific MAC address to use in the NetworkManager configuration.

Hi again Kevin.
Unfortunately mac address randomization settings didnt helped at all.
i tried setting this into /etc/NetworkManager/conf.d/wifi_rand_mac.conf:

Code:
[device-mac-randomization]
# "yes" is already the default for scanning
wifi.scan-rand-mac-address=no

[connection-mac-randomization]
# Randomize MAC for every ethernet connection
ethernet.cloned-mac-address=permanent

# Generate a random MAC for each WiFi and associate the two permanently.
wifi.cloned-mac-address=permanent
Also tried with
Code:
wifi.cloned-mac-address=stable
It keeps genereting random mac addresses...
What a mess...


RE: bes2600 driver - Kevin Kofler - 11-26-2023

wifi.cloned-mac-address=permanent actually uses the hardware MAC address, so if the hardware MAC address keeps changing, that is exactly what you do not want. (The assumption behind the naming is that the hardware is not broken and the MAC address it reports is actually permanent, which does not seem to be satisfied in your case.)

As for your attempt with stable (which should work): You should check whether there is some setting dropped by the distro into /etc/NetworkManager/NetworkManager.conf or /etc/NetworkManager/conf.d/ that sets wifi.cloned-mac-address and overrides your setting. If so, change or comment out the conflicting setting coming from the distro.

You can also try setting a MAC address explicitly, such as: wifi.cloned-mac-address=00:00:00:00:00:00. (You will probably want to use a less obviously spoofed address than that though.)


RE: bes2600 driver - explit - 11-28-2023

(11-26-2023, 10:27 PM)Kevin Kofler Wrote: wifi.cloned-mac-address=permanent actually uses the hardware MAC address, so if the hardware MAC address keeps changing, that is exactly what you do not want. (The assumption behind the naming is that the hardware is not broken and the MAC address it reports is actually permanent, which does not seem to be satisfied in your case.)

As for your attempt with stable (which should work): You should check whether there is some setting dropped by the distro into /etc/NetworkManager/NetworkManager.conf or /etc/NetworkManager/conf.d/ that sets wifi.cloned-mac-address and overrides your setting. If so, change or comment out the conflicting setting coming from the distro.

You can also try setting a MAC address explicitly, such as: wifi.cloned-mac-address=00:00:00:00:00:00. (You will probably want to use a less obviously spoofed address than that though.)

Thanks for the clarification, @Kevin Kofler 
in the /etc/NetworkManager/NetworkManager.conf is nothing, and in [i]/etc/NetworkManager/conf.d/ there are no othe configuration files, other than my no-randomization.conf.[/i]

Tried also to set
wifi.cloned-mac-address=XX:XX:XX:XX:XX:XX
It doesnt help. The Mac randomization is coming from the bes2600 driver every boot and that is very weird

Maybe some of the other Pinetab2 Users here can tell, if they have the same Problem ?

PS: By the way, i tested SailfishOS Port from @piggz
The port itself is very stable, but the same problem with the random MAC-Addresses...


It was not the best decision to choose BES2600 Chip for the PineTab2. In 2023, a chip which have only 802.11a/b/g/n and has not been tested on modern kernels is really very weird.
PineTabV has normal Realtek Chip with 802.11a/b/g/n/ac/ax
Why the hell?

The Gitlab page with source code for the bes2600 is maintained by 1 Person. Last commit was 4 month ago. I am very doubt, we will ever see a stable bes2600 for the Pinetab2

Because the Problem is complex, because the chip is mess and because its maintained only by one person (which done a very good job, but stil...)

Maybe Pine64 will see the Problem and will bring out replacement mainboards for PineTab2 with a normal wifi chip.


RE: bes2600 driver - 459below - 11-28-2023

(11-22-2023, 01:48 PM)genobraker Wrote:
(11-05-2023, 08:38 PM)459below Wrote: I just redid the procedure accordingly on mobian and it worked flawlessly.

Code:
root@mobian:~# uname -a
Linux mobian 6.6-rockchip #1 SMP PREEMPT_DYNAMIC Mon Oct 30 09:10:41 UTC 2023 aarch64 GNU/Linux
root@mobian:~# lsmod | grep bes
bes2600               253952  0
mac80211              888832  1 bes2600
cfg80211              835584  2 bes2600,mac80211

Wifi speed is the same as on arch. And on mobian it did not even hang on shutdown, i.e. clean shutdown. I am keeping my fingers crossed this is persistent and if so, I will surely include the module in the proper kernel module locations to be loaded normally during boot.

I wrote down a few notes on the differences to arch. I will prepare a MR on https://gitlab.com/arjanvlek/bes2600/-/blob/test/README.md with the Debian infrastructure approach to this. Like deb-src packages.

Hi, I'm interested for mobian. At the part clone "1.3 Setup kernel...-" which repository you cloned and what kernel did you use? Outside of these, the steps are same, i guess

Hello genobraker,

you may find my adaptation for Debian / Mobian here: https://gitlab.com/459below-pine64/bes2600/-/tree/test

You will find that I used the Debian source package of Mobian kernel, i.e. the exact same files and patches the Mobian kernel has been built with.
Additionally I have described how I integrated the bes2600 Wi-Fi driver into DKMS, which provides autoload on boot and also automatic rebuilding on kernel upgrades. So my PineTab2 boots up to full Wi-Fi and when powering off it cleanly shuts down completely. That is nice. However, it cannot suspend or disable the Wi-Fi on the GUI, i.e. soft disabling.

I am open to annotations on the documentation.


RE: bes2600 driver - explit - 11-28-2023

Hi @459below

Could you please test, if you MAC-Address stays the same after reboot?
Thanks


RE: bes2600 driver - explit - 11-29-2023

I really dont understand, why the bes2600 driver is going mad and produces more and more devices with new MAC-Addresses.
Here is what happaning:


Code:
[explit@PineTab2 ~]$ sudo dmesg | grep bes
[sudo] password for explit:
[  10.557073] bes2600: loading out-of-tree module taints kernel.
[  10.557104] bes2600: module verification failed: signature and/or required key missing - tainting kernel
[  10.560721] ------Driver: bes2600.ko version :bes2600_0.3.10_2022.1125
[  10.566388] bes2600_chrdev_init done
[  10.566407] bes2600_sdio_on enter
[  10.632486] reading /lib/firmware/bes2600/bes2600_factory.txt
[  10.672512] bes2600_load_firmware_sdio fw_type:0.
[  10.672537] bes2600 download cali and wifi signal firmware.
[  10.674852] ------Firmware: bes2600/best2002_fw_boot_sdio.bin version :Nov 25 2022 11:22:44 5203b7659:best2002_fw_boot
[  11.328373] bes2600 read dpd cali data.
[  14.585153] bes2600 dpd cali pass.
[  14.587953] ------Firmware: bes2600/best2002_fw_sdio.bin version :Dec  1 2022 11:32:06 9df4c0e12-dirty:best2002_fw
[  15.589536] bes2600_start
[  15.752611] bes2600_gpio_wakeup_ap_config config:0
[  15.754720] bes2600_start 02:80:e1:d7:af:29.
[  16.260645]  !!! bes2600_add_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  16.261273] bes2600_add_interface: if_id 0 mac 02:80:e1:d7:af:29
[  16.261346] bes2600_vif_setup: enabling priv
[  17.184487]  !!! bes2600_remove_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  17.184585] bes2600_stop
[  17.257143] bes2600_start
[  17.432420] bes2600_gpio_wakeup_ap_config config:0
[  17.434410] bes2600_start 02:80:e1:d7:af:29.
[  17.940579]  !!! bes2600_add_interface: type 2 p2p 0 addr d6:d5:47:59:0a:e1
[  17.941203] bes2600_add_interface: if_id 0 mac d6:d5:47:59:0a:e1
[  17.941275] bes2600_vif_setup: enabling priv
[  18.916625] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  20.320533] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  20.344774] bes2600_scan_work 279 0.
[  20.388555] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  23.020899] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  23.040954] bes2600_scan_work 279 0.
[  23.456756] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  24.880725] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  24.901016] bes2600_scan_work 279 0.
[  24.940750] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  27.568733] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  27.588896] bes2600_scan_work 279 0.
[  27.732544]  !!! bes2600_remove_interface: type 2 p2p 0 addr d6:d5:47:59:0a:e1
[  27.732664] bes2600_stop
[  27.768277] bes2600_start
[  27.932701] bes2600_gpio_wakeup_ap_config config:0
[  27.934845] bes2600_start 02:80:e1:d7:af:29.
[  28.440523]  !!! bes2600_add_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  28.441517] bes2600_add_interface: if_id 0 mac 02:80:e1:d7:af:29
[  28.441589] bes2600_vif_setup: enabling priv
[  29.388484]  !!! bes2600_remove_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  29.388645] bes2600_stop
[  29.407428] bes2600_start
[  29.568413] bes2600_gpio_wakeup_ap_config config:0
[  29.570425] bes2600_start 02:80:e1:d7:af:29.
[  30.077540]  !!! bes2600_add_interface: type 2 p2p 0 addr 22:4a:9a:9a:e0:55
[  30.078995] bes2600_add_interface: if_id 0 mac 22:4a:9a:9a:e0:55
[  30.079492] bes2600_vif_setup: enabling priv
[  31.120909] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  32.586965] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  32.604653] bes2600_scan_work 279 0.
[  32.644649] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  35.276541] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  35.296635] bes2600_scan_work 279 0.
[  35.612637] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  37.028576] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  37.048685] bes2600_scan_work 279 0.
[  37.092588] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  39.720627] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  39.740693] bes2600_scan_work 279 0.
[  40.120626] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  41.512807] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  41.532672] bes2600_scan_work 279 0.
[  41.572601] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  44.204606] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  44.224674] bes2600_scan_work 279 0.
[  44.356912]  !!! bes2600_remove_interface: type 2 p2p 0 addr 22:4a:9a:9a:e0:55
[  44.357036] bes2600_stop
[  44.391527] bes2600_start
[  44.560440] bes2600_gpio_wakeup_ap_config config:0
[  44.562717] bes2600_start 02:80:e1:d7:af:29.
[  45.068684]  !!! bes2600_add_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  45.069471] bes2600_add_interface: if_id 0 mac 02:80:e1:d7:af:29
[  45.069556] bes2600_vif_setup: enabling priv
[  47.105121] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  47.424602] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  47.446936] bes2600_scan_work 279 0.
[  47.484705] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  47.608585] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  47.608676] bes2600_scan_work 279 0.
[  48.428712] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  48.728731] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  48.748662] bes2600_scan_work 279 0.
[  50.200704] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  50.464603] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  50.484687] bes2600_scan_work 279 0.
[  55.888780] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  57.260625] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  57.280770] bes2600_scan_work 279 0.
[  57.320822] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  59.936621] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  59.956681] bes2600_scan_work 279 0.
[  71.028582]  !!! bes2600_remove_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  71.028706] bes2600_stop
[  71.078445] bes2600_start
[  71.244621] bes2600_gpio_wakeup_ap_config config:0
[  71.246912] bes2600_start 02:80:e1:d7:af:29.
[  71.752636]  !!! bes2600_add_interface: type 2 p2p 0 addr 92:b8:e7:ad:8e:78
[  71.753454] bes2600_add_interface: if_id 0 mac 92:b8:e7:ad:8e:78
[  71.753602] bes2600_vif_setup: enabling priv
[  72.664621] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  74.052806] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  74.072827] bes2600_scan_work 279 0.
[  74.112548] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  76.740582] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  76.760636] bes2600_scan_work 279 0.
[  77.084470]  !!! bes2600_remove_interface: type 2 p2p 0 addr 92:b8:e7:ad:8e:78
[  77.084586] bes2600_stop
[  77.118081] bes2600_start
[  77.280400] bes2600_gpio_wakeup_ap_config config:0
[  77.282712] bes2600_start 02:80:e1:d7:af:29.
[  77.789285]  !!! bes2600_add_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  77.789962] bes2600_add_interface: if_id 0 mac 02:80:e1:d7:af:29
[  77.790147] bes2600_vif_setup: enabling priv
[  78.756842] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  78.888752] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  78.888846] bes2600_scan_work 279 0.
[  90.236609] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  90.376560] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  90.396816] bes2600_scan_work 279 0.
[  90.436652] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  90.560580] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  90.560676] bes2600_scan_work 279 0.
[  100.908657] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  102.280556] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  102.300615] bes2600_scan_work 279 0.
[  102.343114] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  104.059797] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  104.077151] bes2600_scan_work 279 0.
[  104.077391]  !!! bes2600_remove_interface: type 2 p2p 0 addr 02:80:e1:d7:af:29
[  104.104433] bes2600_stop
[  104.130735] bes2600_start
[  104.302243] bes2600_gpio_wakeup_ap_config config:0
[  104.304891] bes2600_start 02:80:e1:d7:af:29.
[  104.804617]  !!! bes2600_add_interface: type 2 p2p 0 addr f6:46:e2:b9:f8:06
[  104.805242] bes2600_add_interface: if_id 0 mac f6:46:e2:b9:f8:06
[  104.805317] bes2600_vif_setup: enabling priv
[  105.748647] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  107.146375] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  107.165072] bes2600_scan_work 279 0.
[  107.204650] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  109.839534] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  109.860693] bes2600_scan_work 279 0.
[  111.420535]  !!! bes2600_remove_interface: type 2 p2p 0 addr f6:46:e2:b9:f8:06
[  111.420718] bes2600_stop
[  111.454992] bes2600_start
[  111.620413] bes2600_gpio_wakeup_ap_config config:0
[  111.626625] bes2600_start 02:80:e1:d7:af:29.
[  112.124710]  !!! bes2600_add_interface: type 2 p2p 0 addr 02:80:e1:38:3a:4b
[  112.125421] bes2600_add_interface: if_id 0 mac 02:80:e1:38:3a:4b
[  112.125506] bes2600_vif_setup: enabling priv
[  113.288877] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  113.427423] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  113.427619] bes2600_scan_work 279 0.
[  124.340680] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  124.480562] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  124.500665] bes2600_scan_work 279 0.
[  124.540736] bes2600_hw_scan 169 if_id:0,num_channel:1.
[  124.664679] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  124.664755] bes2600_scan_work 279 0.
[  135.182131] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  136.080798] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  136.101168] bes2600_scan_work 279 0.
[  136.102097]  !!! bes2600_remove_interface: type 2 p2p 0 addr 02:80:e1:38:3a:4b
[  136.125658] bes2600_stop
[  136.160132] bes2600_start
[  136.324199] bes2600_gpio_wakeup_ap_config config:0
[  136.326438] bes2600_start 02:80:e1:d7:af:29.
[  136.835515]  !!! bes2600_add_interface: type 2 p2p 0 addr c6:3c:de:78:d0:97
[  136.836148] bes2600_add_interface: if_id 0 mac c6:3c:de:78:d0:97
[  136.836234] bes2600_vif_setup: enabling priv
[  137.787877] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  139.183383] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  139.203604] bes2600_scan_work 279 0.
[  139.244046] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  141.870328] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  141.890387] bes2600_scan_work 279 0.
[  142.329665] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  143.721960] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  143.746196] bes2600_scan_work 279 0.
[  143.786538] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  146.414642] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  146.439128] bes2600_scan_work 279 0.
[  146.908363] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  148.361054] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  148.381232] bes2600_scan_work 279 0.
[  148.421417] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  151.047993] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  151.072216] bes2600_scan_work 279 0.
[  151.561022] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  152.975567] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  152.995780] bes2600_scan_work 279 0.
[  153.035684] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  155.663218] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  155.683515] bes2600_scan_work 279 0.
[  158.253663] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  159.646658] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  159.670897] bes2600_scan_work 279 0.
[  159.715345] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  162.352238] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  162.372517] bes2600_scan_work 279 0.
[  168.252098] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  169.642694] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  169.663009] bes2600_scan_work 279 0.
[  169.702958] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  172.330205] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  172.350255] bes2600_scan_work 279 0.
[  182.244348] bes2600_hw_scan 169 if_id:0,num_channel:14.
[  183.656062] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  183.676392] bes2600_scan_work 279 0.
[  183.716224] bes2600_hw_scan 169 if_id:0,num_channel:27.
[  186.343848] ieee80211 phy1: bes2600_scan_complete_cb status: 0
[  186.363968] bes2600_scan_work 279 0.
[explit@PineTab2 ~]$



RE: bes2600 driver - genobraker - 11-29-2023

(11-28-2023, 03:28 PM)459below Wrote:
(11-22-2023, 01:48 PM)genobraker Wrote:
(11-05-2023, 08:38 PM)459below Wrote: I just redid the procedure accordingly on mobian and it worked flawlessly.

Code:
root@mobian:~# uname -a
Linux mobian 6.6-rockchip #1 SMP PREEMPT_DYNAMIC Mon Oct 30 09:10:41 UTC 2023 aarch64 GNU/Linux
root@mobian:~# lsmod | grep bes
bes2600               253952  0
mac80211              888832  1 bes2600
cfg80211              835584  2 bes2600,mac80211

Wifi speed is the same as on arch. And on mobian it did not even hang on shutdown, i.e. clean shutdown. I am keeping my fingers crossed this is persistent and if so, I will surely include the module in the proper kernel module locations to be loaded normally during boot.

I wrote down a few notes on the differences to arch. I will prepare a MR on https://gitlab.com/arjanvlek/bes2600/-/blob/test/README.md with the Debian infrastructure approach to this. Like deb-src packages.

Hi, I'm interested for mobian. At the part clone "1.3 Setup kernel...-" which repository you cloned and what kernel did you use? Outside of these, the steps are same, i guess

Hello genobraker,

you may find my adaptation for Debian / Mobian here: https://gitlab.com/459below-pine64/bes2600/-/tree/test

You will find that I used the Debian source package of Mobian kernel, i.e. the exact same files and patches the Mobian kernel has been built with.
Additionally I have described how I integrated the bes2600 Wi-Fi driver into DKMS, which provides autoload on boot and also automatic rebuilding on kernel upgrades. So my PineTab2 boots up to full Wi-Fi and when powering off it cleanly shuts down completely. That is nice. However, it cannot suspend or disable the Wi-Fi on the GUI, i.e. soft disabling.

I am open to annotations on the documentation.

Hi 459below, I confirmed it, Wireless works now. I upgraded the kernel without DKMS part, as long as remains the 6.6.x version the builder driver works okay. It's a really plus that you added rebuild by DKMS and auto load Wi-Fi driver. Thank you.