xmm7360_usb icon indicating copy to clipboard operation
xmm7360_usb copied to clipboard

Improvements to the installation procedure

Open DDvO opened this issue 5 years ago • 6 comments

Thanks a lot for providing this module!

I just found that something was missing to make the use of the module permanent - here is an extended list of commands:

make
sudo make install
sudo depmod -A
sudo modprobe xmm7360_usb
echo xmm7360_usb | sudo tee -a /etc/modules

DDvO avatar Nov 03 '19 13:11 DDvO

I've used an alias to make udev load it for me, but I used the alias specific to my computer just in case it causes problems for anyone, I guess I could make it more generic.

Just out of curiosity, what does lspci -nnvd 8086:7360 say on your computer?

juhovh avatar Nov 03 '19 21:11 juhovh

lspci -nnvd 8086:7360 yields here:

3b:00.0 Wireless controller [0d40]: Intel Corporation Device [8086:7360] (rev ff) (prog-if ff)
	!!! Unknown header type 7f
	Kernel driver in use: xmm7360_usb

DDvO avatar Nov 06 '19 19:11 DDvO

P53 hardware is different I think - Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: runtime PM trying to activate child device 0000:53:00.0 but parent (0000:00:1c.6) is not active [Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: PME# supported from D0 D3hot D3cold [Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: Adding to iommu group 10 [Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: DMAR: Device uses a private identity domain. [Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: BAR 0: assigned [mem 0xee200000-0xee200fff 64bit] [Sat Nov 9 18:26:45 2019] pci 0000:53:00.0: BAR 2: assigned [mem 0xee201000-0xee2013ff 64bit] [Sat Nov 9 18:26:45 2019] xmm7360_usb: Found a PCI device 8086:7360

Note, the Modem complains parent not active, since of course, we broke the link.

Not sure why I'm still not getting a USB device...

neurotensin avatar Nov 09 '19 23:11 neurotensin

Actually I was thinking about lspci -nnvd 8086:7360 after unloading the module first, otherwise it doesn't give much info. But I guess I could make the module alias itself to everything 8086:7360 to avoid the need to update /etc/modules

juhovh avatar Nov 10 '19 06:11 juhovh

DKMS - need to build properly for "UEFI/LockDown"

  1. Make sure the source is in /usr/src/$MODULE_NAME-$MODULE_VERSION
  2. cd /var/lib/dkms
  3. dkms add $MODULE_NAME/$MODULE_VERSION
  4. dkms build $MODULE_NAME/$MODULE_VERSION
  5. dkms intall $MODULE_NAME/$MODULE_VERSION

Example: cat /usr/src/xmm7360_usb-1.0/dkms.conf

Here's the dkms.conf for "xmm7360_usb" - it's really generic.

MAKE="make -C./ KERNELDIR=/lib/modules/${kernelver}/build" CLEAN="make -C./ clean" BUILT_MODULE_NAME=xmm7360_usb BUILT_MODULE_LOCATION=./ PACKAGE_NAME=xmm7360_usb PACKAGE_VERSION=1.0 REMAKE_INITRD=no DEST_MODULE_LOCATION="/kernel/drivers/misc" ATUOINSTALL="yes"

neurotensin avatar Nov 10 '19 11:11 neurotensin

Actually I was thinking about lspci -nnvd 8086:7360 after unloading the module first, otherwise it doesn't give much info.

@juhovh, makes sense. Here it is:

3b:00.0 Wireless controller [0d40]: Intel Corporation Device [8086:7360] (rev 01)
	Subsystem: Intel Corporation Device [8086:0020]
	Flags: fast devsel, IRQ 255
	Memory at c9600000 (64-bit, non-prefetchable) [disabled] [size=4K]
	Memory at c9601000 (64-bit, non-prefetchable) [disabled] [size=1K]
	Capabilities: [40] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
	Capabilities: [70] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [148] Latency Tolerance Reporting
	Capabilities: [150] L1 PM Substates

DDvO avatar Nov 11 '19 06:11 DDvO