LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2021, 01:54 PM   #1
Firasalrawi
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Rep: Reputation: Disabled
How to Install Driver in Linux


I had fixed a new serial port to my workstation and following the instructions to install the driver for that card, the instructions says:
<1>-copy pci60806a.o to /usr/sbin
<2>-Add /usr/sbin/pci60806a at the end of the /etc/rc.d/rc.local.
<3>-reboot

I had copied the file to /usr/sbin directory but I don't understand step 2
please can anyone explain to me what is the meaning of that?
I opened rc.local file, should I add /usr/sbin/pci60806a to the script? if yes what should be the file name because it gives me save as only
 
Old 04-27-2021, 02:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,708

Rep: Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167
Quote:
Originally Posted by Firasalrawi View Post
I had fixed a new serial port to my workstation and following the instructions to install the driver for that card, the instructions says:
<1>-copy pci60806a.o to /usr/sbin
<2>-Add /usr/sbin/pci60806a at the end of the /etc/rc.d/rc.local.
<3>-reboot

I had copied the file to /usr/sbin directory but I don't understand step 2 please can anyone explain to me what is the meaning of that? I opened rc.local file, should I add /usr/sbin/pci60806a to the script? if yes what should be the file name because it gives me save as only
You don't tell us (still) what version/distro of Linux you're using or what hardware it's on. You also now don't tell us what the 'new serial port' is, where you got it, or what instructions you're reading. That file may not exist on your distro, and if you want that program to run automatically at boot time, there may be another way. You have not followed up in either of your other threads, and there is probably VERY little reason a standard USB to serial device won't work.

https://www.linuxquestions.org/quest...ue-4175693925/
https://www.linuxquestions.org/quest...ue-4175693927/
 
Old 04-27-2021, 02:14 PM   #3
Firasalrawi
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
I don't know how to find out my Linux version
the instruction and the file from drivers CD that came with the RS232 PCI card
USB-Serial port is not working for me
 
Old 04-27-2021, 02:18 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
There are good and crappy USB to serial adapters. Get a good one and it will work.
But since you already have a PCI card, how do you know it is not working and needs some extra driver?
 
Old 04-27-2021, 02:20 PM   #5
Firasalrawi
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
There are good and crappy USB to serial adapters. Get a good one and it will work.
But since you already have a PCI card, how do you know it is not working and needs some extra driver?
when I go to device manager I can see a question mark on that card
 
Old 04-27-2021, 02:22 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,361

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
I use a terminal command.
sudo nano /etc/rc.d/rc.local

Then type at end of file

/usr/sbin/pci60806a

Ctrl x then Ctrl c (It says at bottom.)

I have to say it seems odd though.
 
Old 04-27-2021, 02:25 PM   #7
Firasalrawi
LQ Newbie
 
Registered: Apr 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
I use a terminal command.
sudo nano /etc/rc.d/rc.local

Then type at end of file

/usr/sbin/pci60806a

Ctrl x then Ctrl c (It says at bottom.)

I have to say it seems odd though.
what should I name the new file? because I cannot save the file, I have to use Save As
 
Old 04-27-2021, 02:31 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,708

Rep: Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167Reputation: 8167
Quote:
Originally Posted by Firasalrawi View Post
I don't know how to find out my Linux version
Then how did you install it? Typically you'd go to a website like Ubuntu, Mint, Debian, etc....THAT is what kind of Linux you're running.
Quote:
the instruction and the file from drivers CD that came with the RS232 PCI card
...and you *STILL* don't say what the brand/model of that is, where you got it, etc.
Quote:
USB-Serial port is not working for me
..which takes us back to your first thread where you were told that "not working" doesn't tell us ANYTHING. You were given several suggestions in that thread that you didn't acknowledge or tell us the results of. We aren't going to guess, and we shouldn't have to keep asking you for information. If you want help, provide details, it's as simple as that.
Quote:
Originally Posted by Firasalrawi
when I go to device manager I can see a question mark on that card
"Device Manager"?? Question mark?? Sounds very much like Windows....where did you click on this device manager program?? How did you access it??
Quote:
Originally Posted by Firasalrawi
what should I name the new file? because I cannot save the file, I have to use Save As
You save it as the filename that YOU POSTED..you are the one who posted those instructions that not only contained the file name, but the path. If you can't save it, then you're not root or have sudo rights, since you're trying to save into /etc. And given that you're putting a program file into /usr/sbin, you can probably just execute that file from the command-line without rebooting.

Given what (very little) you've told us, the instructions seem outdated, and the hardware you're installing probably is as well. Again, there is no need for it, as USB to serial will most likely work. And even *IF* you get this hardware to work, you are going to be right back where you started with the USB to serial device...because if you don't CONFIGURE the serial port, it WILL NOT WORK. You don't just plug in a serial line and sit there...you need to configure it. And you still haven't answered those questions from your other thread, despite being told about minicom, stty, and other methods of testing/configuring. Your serial line speeds/bits/parity/etc., all need to match the device you're hooking to...which you ALSO haven't told us about.


Quote:
Originally Posted by jefro
I use a terminal command.
sudo nano /etc/rc.d/rc.local

Then type at end of file

/usr/sbin/pci60806a

Ctrl x then Ctrl c (It says at bottom.) I have to say it seems odd though.
Very; especially since that has been deprecated for a while now. Don't even have an /etc/rc.d directory on my system, nor an rc.local. While it MAY exist on some systems still, we don't know unless the OP actually provides details.

As noted, installing this mystery card is probably pointless, since the USB to serial device will more than likely function just fine...I have never had an issue with one.

Last edited by TB0ne; 04-27-2021 at 05:13 PM.
 
Old 04-29-2021, 01:06 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ Firasalrawi, please answer ALL these questions.

Quote:
Originally Posted by Firasalrawi View Post
I cannot save the file, I have to use Save As
Probably because you don't have permission.
You need to edit & save the file with elevated privileges (e.g. sudo...).
BTW, depending on your distro, these instructions might be outdated anyhow.
 
1 members found this post helpful.
Old 04-29-2021, 10:41 AM   #10
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Quote:
Originally Posted by Firasalrawi View Post
when I go to device manager I can see a question mark on that card
AFAIK there is no LINUX device manager that will display a device that way. This comment appears to be based on the windows display of devices and does not in any way affect what is seen in Linux.

You cannot ever use what is seen in windows as indicative of how Linux manages and configures devices.

Please consider answering the questions asked and provide useful information if you wish assistance here.
 
1 members found this post helpful.
  


Reply

Tags
drivers, serial port


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver core binding device to driver and Udev loading driver module-difference? ayyasprings Linux - Embedded & Single-board computer 0 01-23-2016 01:44 PM
[Network Driver] Would be interested to know about Filter driver or Hookup driver Siddalingesh Nallur Linux - Kernel 0 05-14-2015 01:44 PM
How to install Wifi driver on Kali linux (I have the driver installation files) Skrillex Linux - Newbie 1 03-29-2015 05:46 PM
ATI Driver prob: Black screen after driver install linuxboynz Linux - Laptop and Netbook 2 10-19-2004 02:52 AM
Nvidia Driver Install - rivafb driver conflicts rjcmi Debian 5 10-10-2004 11:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration