linux – How to assign a driver to a specific interface?

working on : ubuntu 20.4 (hosted by esxi)
I would like to assign a driver to a specific interface :

ifconfig show two interface name

ens160:

ens192:

160 is classic ETH and 192 is an HBA connector 25 Gb.

I show you more informations with the fcoe command :

#fcoeadm -i ens192

Description:      VMXNET3 Ethernet Controller
Revision:         01
Manufacturer:     VMware
Serial Number:    005056AAA998

Driver:           vmxnet3 1.5.0.0-k
Number of Ports:  1

    Symbolic Name:     fcoe v0.1 over ens192
    OS Device Name:    host33
    Node Name:         0x1000005056aaa998
    Port Name:         0x2000005056aaa998
    Fabric Name:        0x0
    Speed:             10 Gbit
    Supported Speed:   1 Gbit, 10 Gbit
    MaxFrameSize:      1452 bytes
    FC-ID (Port ID):   0xffffffff
    State:             Offline

The hba connector is :
Mellanox Technologies MT27800 Family (ConnectX-5)

Let’s see :

#lshw -C network |grep conf

   configuration : autonegotiation=off broadcast=yes driver=vmxnet3 driverversion=1.5.0.0-k-NAPI duplex=full ip=10.18.100.7 latency=0 link=yes multicast=yes port=twisted pair speed=10Gbit/s


   configuration : autonegotiation=off broadcast=yes driver=vmxnet3 driverversion=1.5.0.0-k-NAPI duplex=full ip=172.16.44.7 latency=0 link=yes multicast=yes port=twisted pair speed=10Gbit/s

I already loaded the module mlx5_core and also restarted the network interface.

#:/lib/modules/5.8.0-55-generic# lsmod |grep -e ‘mlx|vmx’
mlx5_core 1044480 0
tls 90112 1 mlx5_core
mlxfw 32768 1 mlx5_core
pci_hyperv_intf 16384 1 mlx5_core
vmxnet3 61440 0

But that i want to do is to specifically assign the mlx5 module to the ens192 network interface.

Can someone gime the tips pls?
🙂

printing – Install foo2zjs Driver on MacOS X?

[Reposted from https://macosx.com/threads/foo2zjs-driver-for-hp-laserjet-1018.327123/ and https://askubuntu.com/questions/1345298/install-foo2zjs-driver-on-macos-x.]

I have a friend who uses MacOS X 11.2 Big Sur and she would like to print to an HP LaserJet 1018.

I use Ubuntu, and I just plugged in the printer to my spiffy System76 laptop’s USB port, waited a few seconds, got a pop-up message the printer was installed, and printed my stuff.

My System76 laptop uses the foo2zjs driver in CUPS for the printer, evidently, but I can’t figure out how to download/compile/install that driver on her OS X laptop. The website http://foo2zjs.rkkda.com/ appears to be permanently down, so I can’t even download it from there. I installed HomeBrew and CakeBrew on her machine; a solution using CakeBrew would be just stellar.

Any help is appreciated. Thanks in advance.

networking – Hi there, I’m a newbie to ubuntu and just installed ubuntu 20.04 and after the install I noticed that my wifi driver was unrecognized

I was using windows 7 before the update and before the update the driver was working good it was detecting all the WiFi networks but after the update there is a notification which is ‘NO WIFI – ADAPTER FOUND’. My WIFI driver model is -07:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)

Please help me, I have to attend my classes, so please help me as soon.

Thank you!

Ubuntu 18.04 Nvidia 2080 Issues with Driver, Display Freezing

I am having multiple problems getting my Nvidia driver to run on ubuntu 18.04. I tried to factory reset and re-install everything from scratch but had no luck either. I realized during my bootup that I see the following errors;

(    4.802529) nvidia-gpu 0000:01:00.3: i2c timeout error e0000000
(    4.802587) ucsi_ccg 0-0008: i2c_transfer failed -110
(    4.802632) ucsi_ccg 0-0008: ucsi_ccg_init failed - -110

After I install the nvidia graphic drivers, my system no longer boots when the display port is connected. It simply freezes after I see the i2c messages posted above. I am only able to boot it up by connection HDMI. If I then plug my display port after my system booted it sometimes freezes my computer or simply does not work.

I have dual boot with windows and secure boot disabled. Booting up in windows works perfectly with no problems.

I have tried multiple options from online and have gotten none to work. Have reinstalled Ubuntu multiple times.

Here are some outputs which may be useful

pc@pcUbuntu:~$ whereis nvidia
nvidia: /usr/lib/x86_64-linux-gnu/nvidia /usr/lib/nvidia /usr/share/nvidia /usr/src/nvidia-460.84/nvidia

pc@pcUbuntu:~$ sudo lspci -v | grep -A 10 VGA
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1e84 (rev a1) (prog-if 00 (VGA controller))
    Subsystem: ASUSTeK Computer Inc. Device 8708
    Flags: bus master, fast devsel, latency 0, IRQ 141
    Memory at a3000000 (32-bit, non-prefetchable) (size=16M)
    Memory at 90000000 (64-bit, prefetchable) (size=256M)
    Memory at a0000000 (64-bit, prefetchable) (size=32M)
    I/O ports at 3000 (size=128)
    (virtual) Expansion ROM at 000c0000 (disabled) (size=128K)
    Capabilities: (60) Power Management version 3
    Capabilities: (68) MSI: Enable+ Count=1/1 Maskable- 64bit+
    Capabilities: (78) Express Legacy Endpoint, MSI 00

pc@pcUbuntu:~$ dkms status
nvidia, 460.84, 5.4.0-74-generic, x86_64: installed

pc@pcUbuntu:~$ uname -a
Linux sachaUbuntu 5.4.0-74-generic #83~18.04.1-Ubuntu SMP Tue May 11 16:01:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

pc@pcUbuntu::~$ nvidia-smi
Failed to initialize NVML: Driver/library version mismatch


2012 Mac pro on High Sierra 10.13.6 doesn’t play DVDs anymore. Can this be remedied by updating driver?

So my macbook is getting on but still functioning well for everyday purposes. However the other day I took out a stack of arty DVDs from the local library and not one of them is recognized by mac, which honestly has probably not tried playing a DVD for years. I read somewhere this might be down to iDVD not working on High Sierra. Either way, has anyone else experienced this and knows of something I could do to view DVDs again without splashing out on a new machine? Software or driver etc, ideas welcome

windows 10 – Unable to Install Nvidia graphic driver

Recently water drops fell on my keyboard and they damaged some part of my motherboard. I called dell technician (my laptop is dell inspiron 3593), he repaired it. But after this my nvidia MX 230 driver isn’t getting installed. while installing it using geforce application, after 25% of installation im getting this blue screen error and it is restarting without installing the driver. I also tried to install it from nvidia.com website but the same issue is happening.
blue screen error image

design – Designing a driver app for a webcam

This might seem a bit vague but I’ll center in on a specific question at the end. I’m trying to replicate a webcam driver app, similar to ones found bundled along with webcams. My intended functionality is for a driver to allow the USB for the camera plugged in to be recognized as a camera in devmgr and Devices and Printers, along with apps like the Windows Camera app or other recording tools to recognize it as a driver. I couldn’t seem to find any guidance on this but I’m trying to figure it out as follows:

1. Which language should I develop this in? I’m assuming since it’s a Windows module that it should be done in C++ (and not Visual C++ since this isn’t necessarily a Windows app), but I’m not sure what libraries would support this.

2. How is data transferred? Should I be using a library to read serial data and another to convert the serial data into image data, or are there other modules to do this?

3. Do devices need to be initialized specially to be recognized? Simply put, it seems that all devices and printers in the Devices and Printers window have an assigned name, optionally a photo and device information, if those are available. If I am using a library for this, would these allow for initializing these settings?

Help is greatly appreciated. Thanks in advance!