31
submitted 4 months ago* (last edited 4 months ago) by Someonelol@lemmy.dbzer0.com to c/linux@lemmy.ml

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.

you are viewing a single comment's thread
view the rest of the comments
[-] Jallu@sopuli.xyz 2 points 4 months ago* (last edited 4 months ago)

Doesn't look like the executable you are trying to run is with executable rights.

chmod +x ch34x.c

And retry.

(I don't have any knowledge of this driver or installing it. Just wanted to give some directions.)

[-] sping@lemmy.sdf.org 7 points 4 months ago

You don't execute C source files. They have to be compiled.

First point as someone else commented, that driver is already present in any mainstream kernel. It's very unlikely you have any need to build it.

But if you really want to build it the command will be make that will get instructions from Makefile on how to build the driver. But there will be other tools and libraries needed.

[-] boredsquirrel@slrpnk.net 6 points 4 months ago

No, the user is doing something very wrong here and this is way worse. Please dont give wrong advice.

[-] Jallu@sopuli.xyz 3 points 4 months ago

Yeah, I know. It is a source code file...

this post was submitted on 07 Jul 2024
31 points (100.0% liked)

Linux

48224 readers
561 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS