BionicDog (updated: 2018-06-04)

A home for all kinds of Puppy related projects
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#286 Post by rcrsn51 »

wiak wrote:EDIT: Just took a look. Calling up a separate function file every time function is called is certainly a slow.......... technique when disc I/O accesses are always required
That's true, if you don't want to rely on disk/file caching.
unless that is you are storing the functions file in RAM based tmp, which is the method I advocated
Good idea. That was easy to implement. Thanks for the tip.

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#287 Post by wiak »

oh wow, you are so cool today rcrsn51, you almost make me laugh! ;-)

stemsee

#288 Post by stemsee »

Irishrm
rcrsn51 wrote: Puppy has a clever work-around for this situation - you can do a kernel-switch and use a pre-existing driver package. That's not always so easy in the Dogs.
I compiled a 4.16.13 kernel on fatdog64.... I coppied the kernel-modules.sfs to /casper/modules/kernel-modules.squashfs and the kernel to ../casper or boot drive partition and i's working fine. For the wl.ko module fatdog kernel 4.12.x has the wl.ko kernel for your broadcom card, i have the same card. It should work fine. I have tried several times to compile the wl.ko module for the latest kernels, without success.

stemsee

User avatar
irishrm
Posts: 271
Joined: Sat 14 Mar 2009, 14:09

#289 Post by irishrm »

rcrsn51 no pressure. If you find the time that would be great,
The kernel is 4.15.0-15-generic.

stemsee: I'm afraid compiling is a bit beyond me. If I had access to the kernel you compiled I might be able to stick it in the correct place.

Again no pressure.
thanks.
irishrm

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#290 Post by rcrsn51 »

stemsee wrote:For the wl.ko module fatdog kernel 4.12.x has the wl.ko kernel for your broadcom card,
I set up BionicDog64 and swapped in the Fatdog kernel k4.12.10. This works.

Are you saying that the wl.ko module should be included? I don't see it. Or is it somewhere in the repo?

stemsee

#291 Post by stemsee »

It's in the main sfs /usr/share/broadcom/wl.ko and is loaded with insmod becasue it is out of tree, but i place it in lib/modules/kernel/network/wireless/wl.ko and then run depmod, and it loads normally with system.

EDIT: The latest iso has kernel 4.14.12 with wl.ko, it's too big to upload here.

stemsee

#292 Post by stemsee »

Typically one should use dkms to compile the wl module on Debian/Ubuntu systems. This way automatically updates the module when newer kernels are added .... not tried myself!

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#293 Post by fredx181 »

I think it's the bcmwl-kernel-source package that needs installed, can't test right now.

Code: Select all

apt-get install linux-headers-generic bcmwl-kernel-source
(or load the devx and install bcmwl-kernel-source)

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#294 Post by rcrsn51 »

@stemsee: I found it, thanks.

@fred: This gets a bit tricky because linux-headers-generic points to k4.15.0-22-generic and irishrm is still using the older BionicDog with k4.15.0-15-generic.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#295 Post by rcrsn51 »

@fred: Very nice! It even sets up the blacklisting of b43, etc.

Code: Select all

apt-get update #if needed
apt-get install linux-headers-generic
apt-get install bcmwl-kernel-source
reboot
@irishrm: You can do this yourself, but you would first need an upgrade to the latest BionicDog 2018-06-04.

Make sure that your save folder has lots of space.
Last edited by rcrsn51 on Fri 08 Jun 2018, 05:41, edited 1 time in total.

B.K. Johnson
Posts: 807
Joined: Mon 12 Oct 2009, 17:11

#296 Post by B.K. Johnson »

@ITSMERSH

I don't wish to hijack this thread, but your mention of the Samsung N150 netbook makes me ask whether you are able to control the screen brightness of the netbook when working from battery only. If yes, I'll open a new thread where you can elaborate.
TIA
[color=blue]B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM[/color]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#297 Post by fredx181 »

rcrsn51 wrote:@fred: Very nice! It even sets up the blacklisting of b43, etc.

Code: Select all

apt-get update #if needed
apt-get install linux-headers-generic
apt-get install bcmwl-kernel-source
reboot
Yes, tested now, that works nicely but indeed takes a lot of space.
@irishrm: You can do this yourself, but you would first need an upgrade to the latest BionicDog 2018-06-04.
Not if you load the devx for the older Bionicdog version: 61-DEVX-BionicDog64_2018-04-21_amd64.squashfs, download here:
https://github.com/fredx181/bionicdog/releases/tag/v1.1
Then after loading, install bcmwl-kernel-source (I tested and it works)

EDIT: I'll try making some .deb packages for it, back later.

Fred

User avatar
irishrm
Posts: 271
Joined: Sat 14 Mar 2009, 14:09

#298 Post by irishrm »

rcrsn51, fredx181 thanks for your work on this.
I already have two installs of the older kernel up and running with a wifi dongle.
I am going to have a go at both your suggestions. I may learn something.
However with my limited experience if a .deb package was available it would be great.
Will report on progress in time.
irishrm.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#299 Post by fredx181 »

Here are (unoffical) .deb packages for the wl module for testng.
(I could only test if wl is loaded at reboot after install, and it does,, but not if it actually works for wireless).

For older BionicDog 2018-04-21 (@irishrm, I think I read that you're on 64-bit, so then you'll need the amd64 .deb) :
https://fredx181.github.io/bionicdog/No ... _amd64.deb
https://fredx181.github.io/bionicdog/No ... 5_i386.deb

For Bionicdog 2018-06-04:
https://fredx181.github.io/bionicdog/No ... _amd64.deb
https://fredx181.github.io/bionicdog/No ... 2_i386.deb

EDIT: After installing, reboot (safest) with changes saved or try:

Code: Select all

modprobe -r b43 bcma
modprobe wl
Fred
Last edited by fredx181 on Fri 08 Jun 2018, 11:28, edited 1 time in total.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#300 Post by rcrsn51 »

fredx181 wrote:EDIT: After installing, reboot with changes saved or do:

Code: Select all

modprobe wl
Rebooting is safest, because it activates the blacklisting. Otherwise, you need to do something like

Code: Select all

modprobe -r b43 bcma
modprobe wl
@Fred: Where is the DEBIAN folder hiding in these debs? It looks like "depmod -a" is being run, but I don't see how.

User avatar
irishrm
Posts: 271
Joined: Sat 14 Mar 2009, 14:09

#301 Post by irishrm »

fredx181:
I installed your .deb, powered off, removed the dongle then rebooted and wifi
connected automatically as before.
Brilliant work, thanks a lot, really appreciated.
I will now go ahead and do an install of 2018-06-04.
irishrm.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#302 Post by rcrsn51 »

irishrm wrote:I will now go ahead and do an install of 2018-06-04.
Here's a hint: download the 2018-06-04 version of the wl WiFi driver now and save it on a flash drive.

So when the new BionicDog boots up, you will be ready to install the matching driver.

User avatar
irishrm
Posts: 271
Joined: Sat 14 Mar 2009, 14:09

#303 Post by irishrm »

rcrsn51:
Will do, thanks for the hint.
irishrm.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#304 Post by fredx181 »

rcrsn51 wrote:Rebooting is safest, because it activates the blacklisting. Otherwise, you need to do something like
Code:
modprobe -r b43 bcma
modprobe wl
Ah, thanks, edited my above post.
@Fred: Where is the DEBIAN folder hiding in these debs? It looks like "depmod -a" is being run, but I don't see how.

Strange, there is a DEBIAN folder with inside control and postinst script.
I made these debs on Bionicdog, maybe that makes some difference in how it's built. How do you extract ?
I use always redeb <package>.deb
irishrm wrote:fredx181:
I installed your .deb, powered off, removed the dongle then rebooted and wifi
connected automatically as before.
Brilliant work, thanks a lot, really appreciated.
Good to know and you're welcome irishrm !

Fred

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#305 Post by rcrsn51 »

I used "dpkg-deb -x" and "dpkg -x", but I can't remember now what platform that was on.

Not a problem. I had faith that you built them correctly. :wink:

[Edit] That was stupid, I should have used "dpkg-deb -R".

Post Reply