Skip to contentSkip to conversation

Serious problem with MAKEDEV and setserial command

DISCUSSION Samuel Jobin 2 participants 2 messages May 5, 2003 – May 6, 2003 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi!

I have a serious problem with the MAKEDEV and setserial command. I'm trying to put a lots of multimodem card into a standard linux pc (Slakware 8.1). I have to associate the modem by myself with the setserial command. For this, I do:

setserial /dev/ttyS20 irq 10 port 0xd000 ^auto_irq ^fourport skip_test autoconfig

Everything works fine. The problem is that there's no enough ttyS. On my linux box, I have ttyS1 to ttyS31, but I want more of them.

I triyed the /dev/MAKEDEV command (and I changed the group for uucp). The new dev was created (ttyS32). I tried to make a setserial it and I got:

Cannot set serial info: Invalid argument

Tried a lot of time, from different method; nothing to do. I always have the same error message. I think it's my /dev/ttyS32 that doesn't work (because the same instruction with a ttyS that wasn't created by me works great).

Does somebody could help me please? I just don't what to do. (and yes, I RTFM! :) In fact, 2 books and the serial howto...

Thx,

Sam

Signature · 15 lines
Samuel Jobin
   [email protected]
   Software Development
_____________________
  --== GNI inc.==--
5075 Wilfrid-Hamel O.
Suite 220
Québec (QC), G2E 5G3
Phone: (418) 864-7721
Fax:   (418) 263-3150

-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

Hi Sam.

Quoted 10 lines

I have a serious problem with the MAKEDEV and setserial command. I'm trying to put a lots of multi-modem card into a standard Linux PC (Slackware 8.1). I have to associate the modem by myself with the setserial command. For this, I do:

setserial /dev/ttyS20 irq 10 port 0xd000 ^auto_irq ^fourport \
skip_test autoconfig

Everything works fine. The problem is that there's no enough ttyS. On my Linux box, I have ttyS1 to ttyS31, but I want more of them.

It's possible that your MAKEDEV hasn't been taught how to create more than 32 serial ports. The following commands should in theory create all the valid ttyS ports, according to the devices.txt in the current kernels...

cd /dev
rm -f ttyS*
for N in seq 0 191 ; do mknod ttyS${N} c 4 $[${N}+64] ; done chown uucp. ttyS*

...and watch the type of brackets on the third line as they do matter.

Quoted 3 lines

I tried the /dev/MAKEDEV command (and I changed the group for uucp). The new dev was created (ttyS32). I tried to make a setserial it and I got:

As stated above, it's quite possible that your MAKEDEV doesn't know how to do this as few systems have that many serial ports.

Best wishes from Riley.
---
* Nothing as pretty as a smile, nothing as ugly as a frown.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.476 / Virus Database: 273 - Release Date: 24-Apr-2003