LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installling a Driver on Linux Lite from a Zip File
#1
I apologize for being new to Linux, but I'm tying to install a USB device driver for an aftermarket Arduino UNO Board.  This board requires what is called a CH340 serial driver.

I downloaded the driver in a zip file from here:
USB CH341/CH340 LINUX  URL to zip file - http://www.5v.ru/zip/ch341ser_linux.zip

I downloaded this zip file and unzipped it.  It produces three files. 

1. A very short "Readme" file. 
2. A Makefile
3. and a ch34x.c file.

Here's the content of the Readme file:

// ChangeLog
// 1.0 - 1.1  modified to solve transmition between ch341 and ch341

Instructions

Note: 1.Please run followed executable programs as root privilege
      2.Current Driver support versions of linux kernel range from 2.6.25 to 3.9.10
      3.Current Driver support 32bits and 64bits linux systems

Usage:
(load or unload linux driver of CH34x)
//compile
#make
//load ch34x chips driver
#make load
//unload ch34x chips driver
#make unload

The following is the content of the Makefile file:

ifeq ($(KERNELRELEASE), )
KERNELDIR := /lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
default:
$(MAKE) -C $(KERNELDIR)  M=$(PWD) 
clean:
rm -rf .tmp_versions Module.symvers *.mod.c *.o *.ko .*.cmd Module.markers modules.order
load:
modprobe usbserial
insmod ch34x.ko
unload:
rmmod ch34x
else
obj-m := ch34x.o
endif


The ch34x.c file contains a large source code of C programming language.  I can also open that in a text editor and read it, but it's quite large so I won't copy and paste it here.

~~~~~~~

In any case, I don't know what to do with these files?  If I click on the Makefile it just opens in the text editor.

QUESTION: How do I go about actually installing this driver?

I imagine I need to use the terminal and type in commands, but I've never installed anything like this before so I don't know how to do this.

Also if it's possible to just use the command line to do something like $ sudo apt-get install CH340 driver that would be great, but I don't know how to do that either.  This is why I downloaded the zip file in the first place.

Thanks for any help.
Reply


Messages In This Thread
Installling a Driver on Linux Lite from a Zip File - by Robo_Pi - 02-11-2018, 07:46 AM

Forum Jump:


Users browsing this thread: 6 Guest(s)