How to patch and make a wifi driver?

Using applications, configuring, problems
Post Reply
Message
Author
boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

How to patch and make a wifi driver?

#1 Post by boof »

Xenialpup64-7.0.8.5 k 4.9.15
HP 250 G4 laptop with Celeron 64bit processor --n3050

have driver Broadcom-sta-6.30-223 & patches directories together under Downloads. Broadcom directory contains oem non patched files. Patches are up to #17 [k48 - V5] from Ubunu

Pls advise how to patch driver [which one-amd64 or i386?] include directory tree for patches pls. NB this might not be completely standard, so pls be very detailed, as I'm quite thick.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

I assume the end result is that you'll be able to use a wireless adapter. Why don't you tell us which one and what you know about it?

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#3 Post by boof »

sorry bcm43132
have patches to -version 5 to cover my kernel.
I've tried in terminal
cd Downloads/broadcom/amd64/lib

patch wlc_hybrid.o_shipped /root/Downloads/patches/01*.patch

can't open the patch file-does not exist.
but that's where it is file is named 01-shipped-module.patch

I'm doing something wrong--pls advise.

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#4 Post by OscarTalks »

To apply a patch try patch < patchfile.patch if the patch file is in the same directory as the original source file(s) you are modifying.
Oscar in England
Image

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#5 Post by boof »

Oscar Talks:
tks. when doing as advised the following lines appear:

--- a/src/wl/sys/wl_cfg80211_hybrid.c 2016-06-13 11:57:36.159340297 -0500
+++ b/src/wl/sys/wl_cfg80211_hybrid.c 2016-06-13 11:58:18.442323435 -0500

how should they be handled? I just typed in the full path of the file
(s) mentioned in ~b/~ and it seemed to process ok, but it would not make. a target ~/amd64/wl/sys/wl_cfg80211_hybrid.o does not exist

seems a very complicated way of patching files, using one at a time in order and having to insert the full path of the source file. IE I don't know how to make console walk back 2 levels and then continue from there whilst in patch. I note that the original files' name was never updated to advise user what patches were installed.

Post Reply