Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any chance you could make this Debian compatible? #383

Closed
professorUnknown opened this issue Feb 14, 2020 · 16 comments
Closed

Any chance you could make this Debian compatible? #383

professorUnknown opened this issue Feb 14, 2020 · 16 comments

Comments

@professorUnknown
Copy link

No description provided.

@anomeome
Copy link

#365 (comment)

@professorUnknown
Copy link
Author

I am asking you to make compatible or help me

@professorUnknown
Copy link
Author

The make file is not working

@ValCher1961
Copy link

Take a look here - https://github.com/cilix-lab/ubuntu-wrt

@professorUnknown
Copy link
Author

Thank you for trying but what I want you is a downloadable driver that I can run make command

@ValCher1961
Copy link

ValCher1961 commented Feb 16, 2020

I make the driver mwlwifi in the kernel linux. I take the current driver and embed it in the core.
Example.

  1. Download the driver.
git clone https://github.com/kaloz/mwlwifi.git
mkdir drivers/net/wireless/marvell
cp -r mwlwifi ./drivers/net/wireless/marvell/mwlwifi
  1. Download the desired version of the kernel.
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.20.tar.xz && tar xvf linux-5.4.20.tar.xz
  1. Copy the driver to the kernel.
cp -r drivers linux-5.4.20
  1. I build the driver into the core with a patch - https://github.com/ValCher1961/McDebian_WRT3200ACM/blob/master/kernel-4.19.X/mvdrv.patch
cp -rf mvdrv.patch linux-5.4.20
cd linux-5.4.20 && patch -p1 < mvdrv.patch
  1. Next configuration of the for kernel and inclusion driver (for module)
make menuconfig
make ARCH=arm CROSS_COMPILE=arm-none-eabi- modules

@professorUnknown
Copy link
Author

professorUnknown commented Feb 16, 2020

I see but is this assuming that I have a wrt device or unversival Linux

@bmork
Copy link
Contributor

bmork commented Mar 11, 2020

I just tried building the current master on Debian buster, and cannot see any issue.

bjorn@miraculix:/usr/local/src/git/mwlwifi$ make KDIR=/lib/modules/`uname -r`/build
make -C /lib/modules/4.19.0-8-amd64/build M=/usr/local/src/git/mwlwifi
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-8-amd64'
  CC [M]  /usr/local/src/git/mwlwifi/core.o
  CC [M]  /usr/local/src/git/mwlwifi/mac80211.o
  CC [M]  /usr/local/src/git/mwlwifi/utils.o
[..]
  CC [M]  /usr/local/src/git/mwlwifi/mu_mimo.o
  CC [M]  /usr/local/src/git/mwlwifi/vendor_cmd.o
  LD [M]  /usr/local/src/git/mwlwifi/mwlwifi.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/src/git/mwlwifi/mwlwifi.mod.o
  LD [M]  /usr/local/src/git/mwlwifi/mwlwifi.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-8-amd64'

I believe this has been working for ages. I've certainly test-built the driver on Debian many times in the past without doing anything extra-ordinary.

You'll probably get better feedback if you show us why you believe that "The make file is not working"....

@professorUnknown
Copy link
Author

Can you put it in to monitor mode?

@bmork
Copy link
Contributor

bmork commented Mar 11, 2020

I'm finished here unless you decide to share what you are trying to do. As it is now, it looks mostly like trolling. Which I guess must be fun.

@professorUnknown
Copy link
Author

I just want to use my surface pro to hack my WiFi network

@kaloz kaloz closed this as completed Apr 16, 2020
@midozalouk
Copy link

midozalouk commented Dec 15, 2021

Hello bmork
thanks for the great work
can you please help us to provide driver for chipset 88W8897 that support monitor mode to be used in linux
Thanks

@midozalouk
Copy link

I have the following error when i tried your command
No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/asm/syscalls_32.h'. Stop.

how can i proceed from there ?

@bmork
Copy link
Contributor

bmork commented Dec 16, 2021

No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/asm/syscalls_32.h'.

And you successfully can build other kernel modules on your system? If not, then I don't think the problem is related to this project/driver at all.

@tapper82
Copy link

The driver is ded anyway!

@midozalouk
Copy link

midozalouk commented Jun 26, 2022

I have managed to compile it after removing part of the code that checks the firmware signature in hif/pcie/fwdl.c file

if (curr_iteration == 0) { wiphy_err(hw->wiphy, "Exhausted curr_iteration for fw signature\n"); goto err_download; }

the problem now that it loads with no mac address

and i can't activate it with either ifconfig or ip set

localhost / # sudo ip link set dev wlan0 up
RTNETLINK answers: Input/output error 
localhost / # sudo ifconfig wlan0 up
SIOCSIFFLAGS: Input/output error

this is dmesg


[ 2020.455368] ieee80211 phy1: cmd 0x9169=LedCtrl timed out
[ 2020.455379] ieee80211 phy1: return code: 0x1169
[ 2020.455384] ieee80211 phy1: timeout: 0x1169
[ 2020.456911] ieee80211 phy1: 2G enabled, 5G enabled
[ 2020.456916] ieee80211 phy1: 2 TX antennas, 2 RX antennas
[ 2020.512965] udevd[15384]: Process '/usr/sbin/iw dev wlan0 set power_save on' failed with exit code 161.
[ 2020.710225] arc_wlan0: port 1(vmtap3) entered blocking state
[ 2020.710241] arc_wlan0: port 1(vmtap3) entered disabled state
[ 2020.710475] device vmtap3 entered promiscuous mode
[ 2020.710523] arc_wlan0: port 1(vmtap3) entered blocking state
[ 2020.710525] arc_wlan0: port 1(vmtap3) entered forwarding state
[ 2020.810230] IPv6: ADDRCONF(NETDEV_UP): veth3: link is not ready
[ 2020.812619] IPv6: ADDRCONF(NETDEV_CHANGE): veth3: link becomes ready
[ 2021.146385] IPv6: ADDRCONF(NETDEV_UP): lo: link is not ready

@bmork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants