View previous topic :: View next topic |
Author |
Message |
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Sun Oct 03, 2004 5:53 am Post subject: The serial port problem |
|
|
Hi,
I have a problem with my SERIAL PORT /dev/ttys0
I recently joined the gentoo world (World of choices)
I really loved it
I did the following (see my PC specifications in my signature):
Installed Gentoo AMD 64 version using the Gentoo AMD64 Universal LiveCD.
Emerged gentoo-dev-sources (as instructed in the installation handbook).
Did all the steps according to installation handbook.
System is running like a rock. And everything is fine. However:
When I try to access my /dev/ttys0 so I can setup me external serial modem it gives me input / output error.
I tried the following:
# echo test > /dev/ttys0
It gives me the same error.
Is there a module that I should load in order to use the serial port.
I also added ttys0 and tts/0 to /etc/securetty. But that didnt solve the problem either.
KPPP cant connect to /dev/ttys0 either
SLAX, KNOPPIX, GNOPPIX, FEDORA CORE all running so smooth with the serial port and the external modem.
I would appreciate it if you can help me with this. _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
xo n00b
Joined: 16 Oct 2003 Posts: 52
|
Posted: Sun Oct 03, 2004 6:03 am Post subject: |
|
|
perhaps one of these
8250.ko 8250_pci.ko 8250_pnp.ko serial_core.ko
if you have built the serial drivers as modules
for example
modprobe serial_core
perhaps put them in your autoload file
newbie here so take advice with a pintch of salt _________________ TyanTigerMP | GeForce2MX200 | AudigyPlatinum | PromiseUltra100TX2 | Realtek8139 |
|
Back to top |
|
|
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Sun Oct 03, 2004 7:00 am Post subject: |
|
|
I appreciate ur reply,
I'll try today and let u know the result.
Thanks alot. _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Sun Oct 03, 2004 2:44 pm Post subject: |
|
|
All of those modules are not found when i try to modprobe.
I don't know but there must be a problem with the kernel included on AMD64 Universal Live cd it's name si gentoo-dev-sources and i built it using genkernel.
I even serched for them under /lib/modules/2.6.7-gentoo-r11/ and they are not there
I don't know what to do. _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
golloza Guru
Joined: 14 Mar 2004 Posts: 427
|
Posted: Sun Oct 03, 2004 4:14 pm Post subject: |
|
|
1) The device is called /dev/ttyS0, not /dev/ttys0
2) Check Device drivers -> Char devices -> Serial drivers in your kernel config |
|
Back to top |
|
|
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Mon Oct 04, 2004 5:08 am Post subject: |
|
|
That is what i thought at the biggining after i finished installing gentoo(I used to do this with Fedora). but echoing /dev/ttyS0 gave me ttyS0 not found error.
When i loked inside /dev it turned out that there is no ttyS0 there but there is ttys0. So i concluded that this is the COM1.
Give the /dev folder a look and you'll see.
I checked the kernel and they are enabled. I used gentoo-dev-sources kernel coming from the AMD64 Universal Live CD. It's a 2.6.7-gentoo-r11 _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Mon Oct 04, 2004 2:23 pm Post subject: |
|
|
Something strange:
when trying echo "test" > /dev/ttyS0 (with the capital S) gives me Permission denied although ttyS0 is not there under /dev i tried adding ttys0 and ttyS0 to /etc/securetty And that didn't help either. _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
golloza Guru
Joined: 14 Mar 2004 Posts: 427
|
Posted: Mon Oct 04, 2004 3:02 pm Post subject: |
|
|
Are you really sure it isn't there?
ls /dev/ttyS*
Are you root when 'permission denied' appears? |
|
Back to top |
|
|
raeed n00b
Joined: 03 Oct 2004 Posts: 6
|
Posted: Tue Oct 05, 2004 5:19 am Post subject: |
|
|
Thanks a lot, the problem has been solved.
When I checked the kernel configuration the serial was not enabling. Strange, I clearly remember that in the installation I used the genkernel and did a modification to it to include the serial. Now, when I checked, I saw it disabled. I enabled it and recompiled it and now its working fine.
But I am still wondering what is /dev/ttys0 (small s) for? Its still there.
Again, thanks a lot Gents. I really appreciate your replies. _________________ AMD Athelon 64bit 3200+
ASUS K8V SE Deluxe VIA K8T800
512 MB RAM
nVidia GeForce MX 4000 128 MB
U.S.Robotics External serial modem
120 GB W.D. HD |
|
Back to top |
|
|
|