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.

  • helpimnotdrowning@lemmy.sdf.org
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    4 months ago

    *.c files are C source files, you can’t run these directly. Run the makefile with sudo make or sudo make install (assuming you have make installed) to build (or build and install) the driver.

    edit: Oops didn’t read far enough into your post, you’ve already tried make. What error does it give you?

    • Someonelol@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 months ago

      I get this as a result:

      user@user-System-Product-Name:~/Downloads/CH341SER_LINUX$ sudo make Makefile

      make: Nothing to be done for ‘Makefile’.

      • umami_wasabi@lemmy.ml
        link
        fedilink
        arrow-up
        9
        ·
        edit-2
        4 months ago

        You don’t pass in Makefile to make as it will read that file automatically. Nor you need sudo with make as compiling doesn’t need any special privileges.

        Step:

        1. make: compile the code to binary
        2. sudo make install: install the binary to your system
      • boredsquirrel@slrpnk.net
        link
        fedilink
        arrow-up
        4
        ·
        4 months ago

        Please dont just run whatever command with sudo.

        Please read a bit of stuff before trying out crazy stuff.

        Do you even need that driver?