Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [DE] Problem mit "broadcom-sta-dkms"  (Read 2021 times)

Offline zash1958

  • User
  • Posts: 83
[DE] Problem mit "broadcom-sta-dkms"
« on: 2019/05/25, 23:49:19 »
Lässt sich nicht mehr installieren:

Hat da jemand eine Idee?

Code: [Select]
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 5.1.5-towo.1-siduction-amd64 (x86_64)
Sa 25. Mai 23:43:52 CEST 2019
/bin/sh: 1: [: Illegal number:
/bin/sh: 1: [: Illegal number:
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/5.1.5-towo.1-siduction-amd64/build M=`pwd`
make[1]: Warnung: Kein Jobserver verfügbar: -j1 wird gesetzt. Fügen Sie der Ursprungsregel
„+“ hinzu.
make[1]: Verzeichnis „/usr/src/linux-headers-5.1.5-towo.1-siduction-amd64“ wird betreten
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:780:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  if ((val & 0x0000ff00) != 0)
  ^~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:782:3: note: ...this statement, but the latter is misleadingly indented as if it were gu$
   bar1_size = pci_resource_len(pdev, 2);
   ^~~~~~~~~
In file included from ./include/linux/bitmap.h:9,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:78,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:40,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:27:
In function ‘strncpy’,
    inlined from ‘_wl_add_monitor_if’ at /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c:2977:2:
./include/linux/string.h:256:9: warning: ‘__builtin_strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
  return __builtin_strncpy(p, q, size);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.c: In function ‘_wl_add_monitor_if’:
./include/linux/string.h:277:10: note: length computed here
   return __builtin_strlen(p);
          ^~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.o
CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_dev_ioctl’:
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:460:9: error: implicit declaration of function ‘get_ds’; did you mean ‘get_fs’$
  set_fs(get_ds());
         ^~~~~~
         get_fs
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:460:9: error: incompatible type for argument 1 of ‘set_fs’
  set_fs(get_ds());
         ^~~~~~~~
In file included from ./include/linux/uaccess.h:11,
                 from ./include/linux/crypto.h:26,
                 from ./include/crypto/hash.h:16,
                 from ./include/linux/uio.h:14,
                 from ./include/linux/socket.h:8,
                 from ./include/linux/compat.h:15,
                 from ./include/linux/ethtool.h:17,
                 from ./include/linux/netdevice.h:41,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/include/linuxver.h:69,
                 from /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.c:26:
./arch/x86/include/asm/uaccess.h:29:40: note: expected ‘mm_segment_t’ {aka ‘struct <anonymous>’} but argument is of type ‘int’
 static inline void set_fs(mm_segment_t fs)
                           ~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o] Fehler 1
make[1]: *** [Makefile:1586: _module_/var/lib/dkms/broadcom-sta/6.30.223.271/build] Fehler 2
make[1]: Verzeichnis „/usr/src/linux-headers-5.1.5-towo.1-siduction-amd64“ wird verlassen
make: *** [Makefile:177: all] Fehler 2

Offline zash1958

  • User
  • Posts: 83
Re: Problem mit "broadcom-sta-dkms"
« Reply #1 on: 2019/05/26, 21:51:48 »
Zwischenbericht:

Funktionierendes DKMS + funktionierendes WLAN gab es erst, nachdem ich ALLE Kernel + Headers der Version 5.1 wieder deinstalliert habe.

DKMS baut den Broadcom Treiber dann korrekt und alles funzt wieder wie es soll.

Irgendeine Inkompatibilität zwischen Kernel 5.1.x / DKMS / broadcom-sta-dkms  ???

https://www.reddit.com/r/linux/comments/b3nu83/kernel_51rc1_breaks_bcwml_dkms_build_at_least_on/

Fix:
https://nest.parrotsec.org/h0tw4t3r/broadcom-fork-5.1.0-kernel/commit/9661e61c6e42e33fb591976ec15461ad45b71104

« Last Edit: 2019/05/26, 22:51:02 by zash1958 »

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Problem mit "broadcom-sta-dkms"
« Reply #2 on: 2019/05/27, 09:50:37 »
Ich würde einen Bugreport gegen broadcom-sta-dkms absetzen und die Links dazupacken.

Offline zash1958

  • User
  • Posts: 83
Re: Problem mit "broadcom-sta-dkms"
« Reply #3 on: 2019/05/27, 09:59:44 »
Hat jemand anscheinend schon gemacht. broadcom-sta-XXXXX ist aber schon steinalt und anscheinend kümmert sich da niemand mehr wirklich drum.
Ich werde die Wlan-Karte im Lappi vermutlich gegen eine von Intel tauschen - in der Hoffnung, dass damit dann Ruhe ist.
Viele MacBooks haben aber so eine Broadcom BC4352 Karte drin.... und tauschen geht da oft nicht.....

Offline axt

  • User
  • Posts: 494
    • axebase.net
Re: Problem mit "broadcom-sta-dkms"
« Reply #4 on: 2019/05/27, 20:32:50 »
Quote from: zash1958
die Wlan-Karte im Lappi vermutlich gegen eine von Intel tauschen

Du solltest Dich vorher informieren, ob das jeweilige Modell in der Whitelist des Notebooks bzw. dessen Mainboards steht - die beinhaltet i.d.R. nur eine Handvoll (die, die der NB-Hersteller in der Serie verbaut hat oder geplant hat, vielleicht zu verbauen - und mehr nicht), sofern man das überhaupt 'rausbekommt, wenn, auch nur schwammig.

Steht es nicht drin, kommst Du noch nicht mal in den POST. Es wird sofort mit entsprechender Ausschrift angehalten und man hat null Chance (also auch nicht im UEFI disablen oder so). Hilft nur wieder ausbauen (und so robust, daß man das ewig ausprobieren könnte, ist der Kram nicht).

Für manche NBs gibt es gemoddete UEFI-Versionen von irgendwem. Die liegen zum Einen nicht einfach so herum, sondern man muß  in dunklen Foren solchen Leuten wo 'reinkriechen, zum Anderen kann da sonstwas 'reingemoddet worden sein. Ob man damit das Mainboard und so das Notebook brickt, weiß man auch nicht. Also das sollte man sich sehr überlegen. Davon abgesehen ginge es bei der nächsten UEFI-Version wieder los.

Theoretisch könnte man auch vendor:device in der Firmware des NICs modden, sofern man die auslesen, ändern und wieder flashen kann. Aber hernach dürfte es die nächsten Probleme mit dem logischerweise dann falschen Treiber geben.

Ich habe schon alle möglichen BIOS/UEFI/FW geflasht, auch bspw. schon die FW einer Graka gemoddet (untertaktet), aber die Sache mit den Whitelists für WLAN-NICs ist ein Trauerspiel.

« Last Edit: 2019/05/27, 21:00:19 by axt »