Page 4 of 5

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

Posted: 02 Jul 2020, 17:38
by kushagratandon
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:

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

Posted: 02 Jul 2020, 18:36
by beny
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

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

Posted: 02 Jul 2020, 19:07
by kushagratandon
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

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

Posted: 02 Jul 2020, 19:18
by beny
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

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

Posted: 02 Jul 2020, 19:24
by kushagratandon
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

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

Posted: 02 Jul 2020, 19:28
by beny
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....

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

Posted: 02 Jul 2020, 19:29
by kushagratandon
I have 5.7.6-porteus kernel working!!

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

Posted: 03 Jul 2020, 06:23
by Blaze
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

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

Posted: 03 Jul 2020, 06:44
by beny
ok this is the link: http://www.mediafire.com/file/yo3l0hx4h ... o.xzm/file i hope that work for you

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

Posted: 03 Jul 2020, 16:24
by kushagratandon
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.



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

Posted: 03 Jul 2020, 18:13
by kushagratandon
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:

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

Posted: 04 Jul 2020, 05:55
by Blaze
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.

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

Posted: 04 Jul 2020, 06:26
by Ed_P

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

Posted: 04 Jul 2020, 06:58
by kushagratandon
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!!

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

Posted: 06 Jul 2020, 10:50
by babam
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