Jump to content

winmodem module loading at boot [solved]


Guest xtemp0rized
 Share

Recommended Posts

Guest xtemp0rized

Mandrake 10.1 on a Gateway PII laptop with lucent winmodem

 

I successfully installed the ltmodem drivers as described in other posts but am unable to make the symlink /dev/modem point to /dev/ttLTM0 automatically at boot time.

 

After reboot the symlink to /dev/modem points to ttySO

However if I call:

#modprobe -r lt_serial

#modprobe lt_serial

 

the /dev/modem symlink now correctly points to ttLTM0 and the winmodem works perfectly. After reboot, the symlink points back to ttySO

 

A look at the output of dmesg shows one serial driver creates the ttySO, and lt_serial later creates ttLTMO.

 

I don't really have any idea what I'm doing, so I'm going to post everything related i can think of. Sorry for the long post.

 

Any help would be greatly appreciated.

 

_______________________________________________

 

#cat /etc/udev/rules.d/modem.rules

KERNEL="ttLTM0", SYMLINK="modem"

 

#cat /etc/modprobe.conf

# This file is autogenerated from /etc/modules.conf using generate-modprobe.conf command

alias eth0 3c59x
alias sound-slot-0 snd-cs46xx
remove snd-cs46xx /sbin/modprobe -r snd-pcm-oss; /sbin/modprobe --first-time -r --ignore-remove snd-cs46xx
install snd-cs46xx /sbin/modprobe --first-time --ignore-install snd-cs46xx && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe uhci-hcd; /bin/true

### lt_drivers: autoloading and insertion parameter usage
install winmodem /sbin/modprobe lt_serial
alias /dev/modem lt_serial
alias char-major-62 lt_serial
alias /dev/ttLTM0 lt_serial

# below lt_drivers line supports Systems using the device file system (Mandrake and some Debians)
alias /dev/tts/LT0 lt_serial

## Syntax example, lt_driver insertion, ISA card only, may not be needed. See Documentation
# options lt_modem Forced=3,0x130,0x2f8,0
##Syntax example, lt_driver insertion, PCI card only, Very RARELY needed. See Documentation
# options lt_modem vendor_id=0x115d device=0x0420
### section lt_drivers ends

 

#cat /etc/modprobe.preload

# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a '#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules

intel-agp
winmodem

 

#cat dmesg

Linux version 2.6.8.1-24mdk-winmodem (root@localhost) (gcc version 3.4.1 (Mandrakelinux 10.1 
3.4.1-4mdk)) #1 Sun Feb 6 14:42:47 EST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f1218 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fffbc00 (usable)
BIOS-e820: 000000000fffbc00 - 000000000ffffc00 (ACPI data)
BIOS-e820: 000000000ffffc00 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000ffff1218 - 0000000100000000 (reserved)
0MB HIGHMEM available.
255MB LOWMEM available.
On node 0 totalpages: 65531
 DMA zone: 4096 pages, LIFO batch:1
 Normal zone: 61435 pages, LIFO batch:14
 HighMem zone: 0 pages, LIFO batch:1
DMI 2.1 present.
ACPI disabled because your bios is from 00 and too old
You can enable it with acpi=force
Built 1 zonelists
No local APIC present or hardware disabled
Initializing CPU#0
Kernel command line: BOOT_IMAGE=Mandrake_Linux_10.1 ro root=306 acpi=ht resume=/dev/hda5
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 333.445 MHz processor.
Using tsc for high-res timesource
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255500k/262124k available (2137k kernel code, 5888k reserved, 621k data, 192k init, 0k 
highmem, 0k BadRAM)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 657.40 BogoMIPS
Security Scaffold v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0183f9ff 00000000 00000000 00000000
CPU: After vendor identify, caps:  0183f9ff 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps:        0183f9ff 00000000 00000000 00000040
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: Intel Mobile Pentium II stepping 0a
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
init init/main.c:689
init init/main.c:702
init init/main.c:707
do_pre_smp_initcalls init/main.c:653
do_pre_smp_initcalls init/main.c:659
init init/main.c:711
init init/main.c:714
init init/main.c:716
init init/main.c:718
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 55k freed
init init/main.c:724
do_basic_setup init/main.c:634
do_basic_setup init/main.c:636
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xf4b1d, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Disabled
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
vesafb: framebuffer at 0xfd000000, mapped to 0xd0800000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=4
vesafb: protected mode interface info at c000:4d80
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
audit(1108220116.623:0): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Initializing Cryptographic API
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
bootsplash 3.1.6-2004/03/31: looking for picture... no good signature found.
Console: switching to colour frame buffer device 128x48
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
   ide0: BM-DMA at 0xfcd0-0xfcd7, BIOS settings: hda:pio, hdb:pio
   ide1: BM-DMA at 0xfcd8-0xfcdf, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: HITACHI_DK239A-65, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: TOSHIBA CD-ROM XM-1902B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 12685680 sectors (6495 MB) w/512KiB Cache, CHS=13424/15/63, UDMA(33)
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: PS2T++ Logitech TouchPad 3 on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
init init/main.c:726
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
ReiserFS: hda6: found reiserfs format "3.6" with standard journal
ReiserFS: hda6: using ordered data mode
ReiserFS: hda6: journal params: device hda6, size 8192, journal first block 18, max trans len 
1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: hda6: checking transaction log (hda6)
ReiserFS: hda6: Using r5 hash to sort names
Freeing unused kernel memory: 192k freed
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: irq 9, io base 0000fce0
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Adding 522072k swap on /dev/hda5.  Priority:-1 extents:1
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 440BX Chipset.
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: AGP aperture is 64M @ 0xf0000000
lt_modem: module license 'Proprietary' taints kernel.
Loading Agere/Lucent WinModem Controller driver version 8.31
Detected Parameters Irq=9 BaseAddress=0xf400 ComAddress=0xfcc8
ttLTM0 at I/O 0xf400 (irq = 9) is a AgereModem
Loading module Agere/Lucent WinModem Interface driver version 8.31 (2004-03-31)
Supermount version 2.0.4 for kernel 2.6
loop: loaded (max 8 devices)
hdc: ATAPI 24X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20

Edited by xtemp0rized
Link to comment
Share on other sites

I have a similar problem in my laptop. The symlink /dev/modem keep going into my pcmcia lan/modem combo instead of the built in winmodem. So to solve it quick and dirty way to have /dev/modem symlinked correctly and automatically at boot is to add the commands to do it at the /etc/rc.local file.

 

So edit your /etc/rc.local file and add these lines

modprobe -r lt_serial

modprobe lt_serial

 

Then after bootup, your symlink should be done properly.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...