How to install Porteus 5.0 and Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#46 by kushagratandon » 02 Jul 2020, 17:38

Hi beny,
lspci
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake Integrated Graphics (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
02:00.0 Network controller: Broadcom Corporation BCM43142 802.11b/g/n (rev 01)
next I tried this!
iw dev
root@porteus:/sbin# iw list
root@porteus:/sbin# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

usb0 no wireless extensions.
I am now tired of this! I am ready to give my laptop to remote connection if someone can help!! :sos:

beny
Full of knowledge
Full of knowledge
Posts: 866
Joined: 02 Jan 2011, 11:33
Location: italy

Help with installation of Porteus from one usb(Live) to another usb

Post#47 by beny » 02 Jul 2020, 18:36

hi you have installed the broadcom driver,now console or terminal :insmod '/lib/modules/5.7.7-zen/kernel/extra/wl.ko' btw this is mine you have the blaze module so you have to go in extra directory on your current kernel version lsmod show you the load of driver after this you can start with your software to connect iw or wicd or network manager
bash-5.0# lsmod
Module Size Used by
wl 6397952 0
cfg80211 712704 1 wl
8021q 28672 0
garp 16384 1 8021q
stp 16384 1 garp
psnap 16384 0
llc 16384 3 psnap,stp,garp
this show you the module of wl is loaded,please try in this way, the wifi card is on the driver list so you have to connect to wifi

kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#48 by kushagratandon » 02 Jul 2020, 19:07

Hi benny
I am a little bit confused..

Code: Select all

insmod '/lib/modules/5.7.6-
5.7.6-porteus/ 5.7.6-zen/ 
I have both but right now I think I am running porteus one!

Next is I can'tseem to find 'wl.ko' in porteus folder
beny wrote:
02 Jul 2020, 18:36
hi you have installed the broadcom driver,now console or terminal :insmod '/lib/modules/5.7.7-zen/kernel/extra/wl.ko' btw this is mine you have the blaze module so you have to go in extra directory on your current kernel version lsmod show you the load of driver after this you can start with your software to connect iw or wicd or network manager
bash-5.0# lsmod
Module Size Used by
wl 6397952 0
cfg80211 712704 1 wl
8021q 28672 0
garp 16384 1 8021q
stp 16384 1 garp
psnap 16384 0
llc 16384 3 psnap,stp,garp
this show you the module of wl is loaded,please try in this way, the wifi card is on the driver list so you have to connect to wifi

beny
Full of knowledge
Full of knowledge
Posts: 866
Joined: 02 Jan 2011, 11:33
Location: italy

Help with installation of Porteus from one usb(Live) to another usb

Post#49 by beny » 02 Jul 2020, 19:18

hi have you installed the blaze kernel that match the brodcom-sta driver if yes, after you have installed the broadcom driver you have to load the module located in the /lib/modules/5.7.7-zen/kernel/extra/ ok this is mine,after this passage you have to load the .ko module in console with insmod check if is loaded with lsmod ad try iw if the wifi card is up.
the kernel version and the brodcom-sta must be the same version, try the blaze kernel version

kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#50 by kushagratandon » 02 Jul 2020, 19:24

Hi benny,
I am totally confused right now! Can you come on mchat and help me out a little bit??
beny wrote:
02 Jul 2020, 19:18
hi have you installed the blaze kernel that match the brodcom-sta driver if yes, after you have installed the broadcom driver you have to load the module located in the /lib/modules/5.7.7-zen/kernel/extra/ ok this is mine,after this passage you have to load the .ko module in console with insmod check if is loaded with lsmod ad try iw if the wifi card is up.
the kernel version and the brodcom-sta must be the same version, try the blaze kernel version

beny
Full of knowledge
Full of knowledge
Posts: 866
Joined: 02 Jan 2011, 11:33
Location: italy

Help with installation of Porteus from one usb(Live) to another usb

Post#51 by beny » 02 Jul 2020, 19:28

Hi kushagratandon,
you can try beny suggestion with this kernel 5.7.6,
but 1st try kernel 4.19.130 LTS with broadcom-sta-6.30.223.271-k4.19.130-x86_64-1bl.xzm download and install the both in this line the 4.19.130 and the other ,sorry but which kernel you have working....

kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#52 by kushagratandon » 02 Jul 2020, 19:29

I have 5.7.6-porteus kernel working!!

User avatar
Blaze
DEV Team
DEV Team
Posts: 2949
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Help with installation of Porteus from one usb(Live) to another usb

Post#53 by Blaze » 03 Jul 2020, 06:23

kushagratandon, I ported this driver https://www.archlinux.org/packages/comm ... m-wl-dkms/ for Slackware.

Download broadcom-wl-dkms.tar.gz | mirror

Code: Select all

#!/bin/bash
# Broadcom 802.11 Linux STA wireless driver
# Slackware build script for broadcom-wl-dkms
# base on https://www.archlinux.org/packages/community/x86_64/broadcom-wl-dkms/
# ported for Slackware by Blaze
# depends=(dkms)

PRGNAM=broadcom-wl-dkms
VERSION=${VERSION:-6.30.223.271}
SOURCE=https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
DEST=/usr/src/$PRGNAM-$VERSION
KERNEL=${KERNEL:-`uname -r`}
BUILD=${BUILD:-1}
TAG=${TAG:-bl}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG $TMP/$PRGNAM-$VERSION $DEST
mkdir -p $TMP $PKG $OUTPUT $TMP/$PRGNAM-$VERSION

cd /tmp/$PRGNAM
wget -q $SOURCE
cp -a *.patch *.conf *.conf.in *.install hybrid-*-nodebug-pcoem-*.tar.gz $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
tar -xf hybrid-*-nodebug-pcoem-*.tar.gz && rm -f *.tar.gz
sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
sed -i -e "/EXTRA_LDFLAGS/s|\$(src)/lib|/usr/lib${LIBDIRSUFFIX}/$PRGNAM|" Makefile
sed -e "s/@PACKAGE_VERSION@/$VERSION/" dkms.conf.in > dkms.conf
sed -n -e '/Copyright/,/SOFTWARE\./{s/^ \* //;p}' src/wl/sys/wl_linux.c
sed -i 's/get_ds()/KERNEL_DS/g' src/wl/sys/wl_iw.c
sed -i 's/get_ds()/KERNEL_DS/g' src/wl/sys/wl_cfg80211_hybrid.c
sed -i '/GE_49 :=/s|:= .*|:= 1|' Makefile

mkdir -p $DEST

  install -Dm644 Makefile "$DEST/Makefile"
  install -Dm644 dkms.conf "$DEST/dkms.conf"
  install -Dm644 -t "$DEST/patches" *.patch
  cp -a src "$DEST"
  mv -f lib "$DEST/lib${LIBDIRSUFFIX}"

  install -Dm644 $DEST/lib${LIBDIRSUFFIX}/wlc_hybrid.o_shipped \
    "$PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped"
  install -Dm644 $DEST/lib${LIBDIRSUFFIX}/wlc_hybrid.o_shipped \
    "/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped"
  install -Dm644 broadcom-wl-dkms.conf \
    "$PKG/etc/modprobe.d/broadcom-wl-dkms.conf"

dkms install --no-depmod -m broadcom-wl-dkms -v $VERSION -k `uname -r`
depmod `uname -r`

mkdir -p $PKG/lib/modules/`uname -r`/kernel/drivers/net/wireless $PKG/etc/modprobe.d $PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms
cp -a broadcom-wl-dkms.conf $PKG/etc/modprobe.d
cp -a /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl.ko $PKG/lib/modules/`uname -r`/kernel/drivers/net/wireless
cp -a /usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped $PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$KERNEL-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
1. Replace kernel to 5.4.50 from this post
2. Copy to modules folder dkms-2.8.1-x86_64-1cf.xzm and broadcom-wl-dkms-6.30.223.271-5.4.50-porteus-x86_64-1bl.xzm
3. Reboot and test.

I see the latest patch 010-linux56.patch for kernel 5.6.x only.
https://git.archlinux.org/svntogit/comm ... om-wl-dkms

BTW, if you need 05-devel.xzm - you can download it from here
Linux 5.4.57-porteus #1 SMP Sun Aug 9 09:03:28 UTC 2020 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

beny
Full of knowledge
Full of knowledge
Posts: 866
Joined: 02 Jan 2011, 11:33
Location: italy

Help with installation of Porteus from one usb(Live) to another usb

Post#54 by beny » 03 Jul 2020, 06:44

ok this is the link: http://www.mediafire.com/file/yo3l0hx4h ... o.xzm/file i hope that work for you

kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#55 by kushagratandon » 03 Jul 2020, 16:24

beny wrote:
03 Jul 2020, 06:44
ok this is the link: http://www.mediafire.com/file/yo3l0hx4h ... o.xzm/file i hope that work for you
Downloaded and double clicked it. It was activated. But nothing happened!

Code: Select all

root@porteus:/home/guest# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

usb0      no wireless extensions.



kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

Help with installation of Porteus from one usb(Live) to another usb

Post#56 by kushagratandon » 03 Jul 2020, 18:13

Blaze wrote:
03 Jul 2020, 06:23
kushagratandon, I ported this driver https://www.archlinux.org/packages/comm ... m-wl-dkms/ for Slackware.

Download broadcom-wl-dkms.tar.gz | mirror

Code: Select all

#!/bin/bash
# Broadcom 802.11 Linux STA wireless driver
# Slackware build script for broadcom-wl-dkms
# base on https://www.archlinux.org/packages/community/x86_64/broadcom-wl-dkms/
# ported for Slackware by Blaze
# depends=(dkms)

PRGNAM=broadcom-wl-dkms
VERSION=${VERSION:-6.30.223.271}
SOURCE=https://docs.broadcom.com/docs-and-downloads/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz
DEST=/usr/src/$PRGNAM-$VERSION
KERNEL=${KERNEL:-`uname -r`}
BUILD=${BUILD:-1}
TAG=${TAG:-bl}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG $TMP/$PRGNAM-$VERSION $DEST
mkdir -p $TMP $PKG $OUTPUT $TMP/$PRGNAM-$VERSION

cd /tmp/$PRGNAM
wget -q $SOURCE
cp -a *.patch *.conf *.conf.in *.install hybrid-*-nodebug-pcoem-*.tar.gz $TMP/$PRGNAM-$VERSION
cd $TMP/$PRGNAM-$VERSION
tar -xf hybrid-*-nodebug-pcoem-*.tar.gz && rm -f *.tar.gz
sed -i -e '/BRCM_WLAN_IFNAME/s/eth/wlan/' src/wl/sys/wl_linux.c
sed -i -e "/EXTRA_LDFLAGS/s|\$(src)/lib|/usr/lib${LIBDIRSUFFIX}/$PRGNAM|" Makefile
sed -e "s/@PACKAGE_VERSION@/$VERSION/" dkms.conf.in > dkms.conf
sed -n -e '/Copyright/,/SOFTWARE\./{s/^ \* //;p}' src/wl/sys/wl_linux.c
sed -i 's/get_ds()/KERNEL_DS/g' src/wl/sys/wl_iw.c
sed -i 's/get_ds()/KERNEL_DS/g' src/wl/sys/wl_cfg80211_hybrid.c
sed -i '/GE_49 :=/s|:= .*|:= 1|' Makefile

mkdir -p $DEST

  install -Dm644 Makefile "$DEST/Makefile"
  install -Dm644 dkms.conf "$DEST/dkms.conf"
  install -Dm644 -t "$DEST/patches" *.patch
  cp -a src "$DEST"
  mv -f lib "$DEST/lib${LIBDIRSUFFIX}"

  install -Dm644 $DEST/lib${LIBDIRSUFFIX}/wlc_hybrid.o_shipped \
    "$PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped"
  install -Dm644 $DEST/lib${LIBDIRSUFFIX}/wlc_hybrid.o_shipped \
    "/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped"
  install -Dm644 broadcom-wl-dkms.conf \
    "$PKG/etc/modprobe.d/broadcom-wl-dkms.conf"

dkms install --no-depmod -m broadcom-wl-dkms -v $VERSION -k `uname -r`
depmod `uname -r`

mkdir -p $PKG/lib/modules/`uname -r`/kernel/drivers/net/wireless $PKG/etc/modprobe.d $PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms
cp -a broadcom-wl-dkms.conf $PKG/etc/modprobe.d
cp -a /lib/modules/`uname -r`/kernel/drivers/net/wireless/wl.ko $PKG/lib/modules/`uname -r`/kernel/drivers/net/wireless
cp -a /usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms/wlc_hybrid.o_shipped $PKG/usr/lib${LIBDIRSUFFIX}/broadcom-wl-dkms

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$KERNEL-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}
1. Replace kernel to 5.4.50 from this post
2. Copy to modules folder dkms-2.8.1-x86_64-1cf.xzm and broadcom-wl-dkms-6.30.223.271-5.4.50-porteus-x86_64-1bl.xzm
3. Reboot and test.

I see the latest patch 010-linux56.patch for kernel 5.6.x only.
https://git.archlinux.org/svntogit/comm ... om-wl-dkms

BTW, if you need 05-devel.xzm - you can download it from here
THIS WORKS!! THIS WORKS WONDERS!! YOU ARE A :magic: BLAZE :worthy: :worship:

User avatar
Blaze
DEV Team
DEV Team
Posts: 2949
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

How to install Porteus and Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver

Post#57 by Blaze » 04 Jul 2020, 05:55

Hi kushagratandon,
now you can build the driver yourself using my script on different kernels.

BTW, I renamed topic title for quick search solutions with Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver.
Linux 5.4.57-porteus #1 SMP Sun Aug 9 09:03:28 UTC 2020 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

User avatar
Ed_P
Contributor
Contributor
Posts: 5545
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

How to install Porteus and Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver

Post#58 by Ed_P » 04 Jul 2020, 06:26

Ed

kushagratandon
Black ninja
Black ninja
Posts: 32
Joined: 10 Jun 2020, 02:07
Distribution: Porteus-KDE-v5.0rc1-x86_64.iso

How to install Porteus 5.0 and Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver

Post#59 by kushagratandon » 04 Jul 2020, 06:58

Blaze wrote:
04 Jul 2020, 05:55
Hi kushagratandon,
now you can build the driver yourself using my script on different kernels.

BTW, I renamed topic title for quick search solutions with Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver.
Nice of you to rename topic title so that any novice like me can be benefit from this!!

Also thanks to every one(Blaze, Ed_P, beny, evergreen) who contributed to the post and help me solve this problem!!

User avatar
babam
Black ninja
Black ninja
Posts: 91
Joined: 16 Nov 2016, 10:30
Distribution: Porteus Xfce 3.2.2
Location: Rainy city

How to install Porteus 5.0 and Broadcom BCM43142 802.11b/g/n (rev 01) Linux wifi driver

Post#60 by babam » 06 Jul 2020, 10:50

Blaze wrote:
03 Jul 2020, 06:23

BTW, if you need 05-devel.xzm - you can download it from here
What's different with this http://dl.porteus.org/x86_64/Porteus-v5 ... -devel.xzm
Sorry, my English is bad.

Post Reply