Hi all, I’ve recently switched over to Linux Mint from Windows 10 and I’m having trouble installing a CH340 driver from Sparkfun. I’ve managed to unzip the contents and have it in this location: /home/user/Downloads/CH341SER_LINUX. I’ve tried running the files using the ./ command for both the ch34x.c and Makefile but ran into a bash issue which I’m stuck trying to figure out. Could someone please tell me how to make it work? I’ve already looked up a couple of different videos on Youtube but they kind of skip the explanation of how to install this driver on Linux in favor of Windows and MacOS.

Please see the attached image for the response I get in the terminal.

UPDATE: It turns out I had a bad micro USB cable. Most of the ones I was using to connect to an ESP32 board were charge only. Mint apparently had the driver for this all along. Thanks for the help everyone.

  • boredsquirrel@slrpnk.net
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    6 months ago

    Please dont follow windows workflows.

    If you run a random script with or without sudo, you can easily get malware or break your system.

    A .c file is also not ran, it is a C source file and needs to be compiled

    i.e. you are doing something completely wrong and followed some strange advice.

    Instead,

    1. Try if the USB cable is the only issue
    2. Drivers are in the kernel, so you cannot just install them
    3. Ask Linux Mint people how to do this, or Ubuntu or Debian people (the distros are related)
    • trevor@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      I agree with your sentiment. Just one small thing: .c files are usually C source code, and are meant to be compiled into binaries.

      It doesn’t change OP’s situation at all though.