Click to See Complete Forum and Search --> : mroe than 4 serial ports


wolfman8k
04-14-2002, 01:07 PM
I have a US robotics cp5310 internal pci modem that is on com5. I succesfully used it and Mandrake 8.1 and slackware 8.
But I can't get it working in debian.

I made a fresh install of debian with very few packages. Then I installed the kernel-package and kernel-source 2.4.18 package. Then I compiled the kernel with the "enable support for more than 4 serial ports" option. But when I execute as root:

setserial /dev/ttyS4 .....

It tells me that there is no such file /dev/ttyS4

when I do:

ls /dev/ttyS*

I get

ttyS0
ttyS1
ttyS2
ttyS3

Did I do something wrong? I should have much more then that(up to 7 or 8).

Thanks

mdwatts
04-14-2002, 06:27 PM
Did Mandrake and Slackware both require ttyS4 and if so, did that device already exist or did you have to manually create it?

Have you tried using ttyS0-3? I've heard/read that sometimes Linux says com5 where in fact it is actually using com1-4.

If all else fails, you can try creating your own.

mknod -c /dev/ttyS4 4 68

I'm not sure of the syntax or 4 + 68.

crw-rw---- 1 root uucp 4, 64 Dec 13 05:34 /dev/ttyS0
crw-rw---- 1 root uucp 4, 65 Dec 13 05:34 /dev/ttyS1
crw-rw---- 1 root uucp 4, 66 Dec 13 05:34 /dev/ttyS2
crw-rw---- 1 root uucp 4, 67 Dec 13 05:34 /dev/ttyS3

wolfman8k
04-15-2002, 09:15 AM
I figured out what the problem is. I'm not running the kernel that I compiled. I know this because the login prompt says Linux 2.2, and I compile Linux 2.4.18.

I followed the instructions here (http://www.debian.org/releases/stable/i386/ch-post-install.en.html)

I didn't edit lilo.conf at all after following the instructions. Should I? I think it did it automaticly because When I press tab at the lilo prompt I see Linux and LinuxOLD. Maybe I always had that...

What do I do to use the kernel that I compiled???

thanks

mdwatts
04-15-2002, 09:25 AM
Make sure the new bzImage (or whatever you named it) is in /boot and the initrd (if you use an initial ramdisk) is also in /boot.

Next add a section to /etc/lilo.conf for the new kernel and then run /sbin/lilo to write the changes.

wolfman8k
04-15-2002, 12:19 PM
Ok, I'm pretty sure I know what's going on...
This is what I get when I boot the system:



Linux version 2.4.18 (root@jack) (gcc version 2.95.2 20000220 (Debian GNU/Linux))
#1 Sun Apr 14 18:40:37 IDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff8000 (ACPI data)
BIOS-e820: 000000001fff8000 - 0000000020000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000ffee0000 - 00000000fff00000 (reserved)
BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: BOOT_IMAGE=Linux root=304 BOOT_FILE=/vmlinuz
Initializing CPU#0
Detected 1194.932 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2385.51 BogoMIPS
Memory: 513836k/524224k available (1040k kernel code, 10000k reserved, 294k data, 220k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU: Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU: AMD Athlon(tm) Processor stepping 02
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1194.9134 MHz.
..... host bus clock speed is 265.5363 MHz.
cpu: 0, clocks: 2655363, slice: 1327681
CPU0<T0:2655360,T1:1327664,D:15,S:1327681,C:265536 3>
PCI: PCI BIOS revision 2.10 entry at 0xfdb01, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router SIS [1039/0008] at 00:02.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)
Starting kswapd
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
parport0: Legacy device
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ DETECT_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
PCI: Found IRQ 11 for device 00:0d.0
Redundant entry in serial pci_table. Please send the output of
lspci -vv, this message (12b9,1008,12b9,00ad)
and the manufacturer and name of serial board or modem board
to serial-pci-info@lists.sourceforge.net.
ttyS04 at port 0xd800 (irq = 11) is a 16550A
lp0: using parport0 (polling).
lp0: console ready
block: 128 slots per queue, batch=32
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 15
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD400BB-00CCB0, ATA DISK drive
hdd: SAMSUNG CD-ROM SC-152C, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63
hdd: ATAPI 52X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 < hda5 > hda3 hda4
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
plip: parport0 has no IRQ. Using IRQ-less mode,which is fairly inefficient!
NET3 PLIP version 2.4-parport gniibe@mri.co.jp
plip0: Parallel port at 0x378, not using IRQ.
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registered
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected SiS 735 chipset
agpgart: AGP aperture is 64M @ 0xd0000000
es1371: version v0.30 time 18:41:28 Apr 14 2002
PCI: Found IRQ 11 for device 00:0b.0
es1371: found chip, vendor id 0x1274 device id 0x1371 revision 0x06
es1371: found es1371 rev 6 at io 0xdc00 irq 11
es1371: features: joystick 0x0
ac97_codec: AC97 Audio codec, id: 0x4352:0x5913 (Cirrus Logic CS4297A rev A)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 220k freed
Adding Swap: 498004k swap-space (priority -1)
Checking root file system...
Parallelizing fsck version 1.18 (11-Nov-1999)
/dev/hda4: clean, 47140/1495552 files, 222911/2988090 blocks
Calculating module dependencies... done.
Loading modules: vfat modprobe: Can't locate module vfat
es1371 modprobe: Can't locate module es1371
nvram modprobe: Can't locate module nvram

Checking all file systems...
Parallelizing fsck version 1.18 (11-Nov-1999)
Setting kernel variables.
Loading the saved-state of the serial devices...
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A
Mounting local filesystems...
not mounted anything
Running dns-clean.
chmod: /etc/resolv.conf: No such file or directory
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: done.
Starting portmap daemon: portmap.

Setting the System Clock using the Hardware Clock as reference...
modprobe: modprobe: Can't locate module char-major-10-135
System Clock set. Local time: Mon Apr 15 19:02:41 IDT 2002

Cleaning: /tmp /var/lock /var/run.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd klogd.
Starting NFS common utilities: statd.
Please read /usr/share/doc/diald/README.Debian for help setting up
Starting mouse interface server: gpm.
Starting internet superserver: inetd.
Starting printer spooler: lpd.
Warning: /boot/System.map-2.4.18 not parseable as a System.map
Warning: /boot/System.map-2.4.18 not parseable as a System.map
Starting HTTP cache proxy server: wwwoffled.
Starting filtering proxy server: junkbuster.
Starting periodic command scheduler: cron.

Debian GNU/Linux 2.2 jack tty1

jack login:



Notice the bold parts.
First of all, it starts out loading the 2.4.18 kernel that I compiled. It even correctly detects my modem on /dev/ttyS4.

Now something strange. It tries unsuccesfully to load modules for vfat, my sound card and nvram. It shouldn't do these because they are compiled directly in the kernel(I know this because you can see that it succesfully initialized them before that). Later, it complains about the System.map-2.4.18 file being bad. This is what I think is the major problem. Maybe, because it couldn't use this, it used the previous one and therefore tried loading the modules and that's why it says Debian GNU/Linux 2.2 at the end.

If I am correct and my System.map-2.4.18 file is messed up, then how do I fix it?

thanks

mdwatts
04-15-2002, 04:48 PM
Whenever you compile the kernel, a new System.map is created in /usr/src/linux-<kernel version>.

Did you copy the new System.map to /boot and rename as i.e. System.map-2.4.18?

If the previous kernel had vfat, es1371 and nvram configured as modules and now you have built them into the kernel, you will need to edit /etc/modules.conf or whatever your distro uses and comment out the lines that are trying to load those modules.