LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-25-2004, 09:03 AM   #46
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64

the uname -r is just a way to print the kernel version. the script inserts the kernel version into the cp and mkdir commands. just go in your kernel modules directory, and make a directory other, then put the modules there, then depmod -a. that way you won't have to be as perfect in your typing and quotes and stuff.
 
Old 06-25-2004, 01:42 PM   #47
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Thanks again, Whansard.

This is another try to install the modem, which is the same I did two or three days ago:

[root@localhost ltmodem-2.6-alk-2]# make
make -C /usr/src/linux/ SUBDIRS=/home/marco/drivers/ltmodem-2.6-alk-2 modules
make[1]: Entering directory `/usr/src/linux-2.6.3-7mdk'
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
make[2]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/asm-i386/asm_offsets.h
Building modules, stage 2.
MODPOST
make[1]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
[root@localhost ltmodem-2.6-alk-2]# mkdir /lib/modules/`uname -r`/other
[root@localhost ltmodem-2.6-alk-2]# cp -v *.ko /lib/modules/`uname -r`/other
`ltmodem.ko' -> `/lib/modules/2.6.3-7mdk/other/ltmodem.ko'
`ltserial.ko' -> `/lib/modules/2.6.3-7mdk/other/ltserial.ko'
[root@localhost ltmodem-2.6-alk-2]# mknod --mode=0640 /dev/ttyLT0 b 62 64
[root@localhost ltmodem-2.6-alk-2]# depmod -a
[root@localhost ltmodem-2.6-alk-2]# modprobe ltserial
FATAL: Error inserting ltserial (/lib/modules/2.6.3-7mdk/other/ltserial.ko): Kernel does not have module support
[root@localhost ltmodem-2.6-alk-2]#


Just done, in /var/log/messages:

Jun 25 20:28:13 localhost kernel: ltmodem: no version for "struct_module" found: kernel tainted.
Jun 25 20:28:13 localhost kernel: ltmodem: module license 'Proprietary' taints kernel.
Jun 25 20:28:13 localhost kernel: Loading Lucent Modem Controller driver version 8.26
Jun 25 20:28:13 localhost kernel: Detected Parameters Irq=17 BaseAddress=0xc400 ComAddress=0xc000
Jun 25 20:28:13 localhost kernel: ttyLT0 at I/O 0xc400 (irq = 17) is a Lucent Modem

Have you any idea?
 
Old 06-26-2004, 01:15 AM   #48
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
it sort of looks like it loaded anyway.
lsmod
lists the loaded kernel modules. or it's supposed to anyway. i've seen the 2.6.x kernel series do weirdo stuff.
see if ltserial and ltmodem are loaded.
 
Old 06-26-2004, 07:38 AM   #49
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Is it possible?

In my system there isn't lsmod!

[marco@localhost modules]$ lsmod
bash: lsmod: command not found

But if I type "man lsmod", the manual page appears...

Is lsmod command in any RPM package? Which one?

Thank you
 
Old 06-26-2004, 10:47 AM   #50
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
modutils.
run it as root. not as a regular user. i'm sure it's on your system.
 
Old 06-26-2004, 02:51 PM   #51
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Yes! You're right! I haven't thought it... The fact is it shows me "Command not found", not "Permission denied" or similar.... so I though that the command wasn't in my system... not that I had to become root...

Well, the result of lsmod is that ltserial and ltmodem aren't loaded; they aren't in the list.
I haven't reported it because it is so long, but if it is necessary, I'll post it.


Thanks
 
Old 06-27-2004, 01:55 AM   #52
_invader
LQ Newbie
 
Registered: May 2004
Posts: 25

Rep: Reputation: 15
marstell: there's nothing wrong with what you typed in by the looks, and as long you're doing it as root like what whansard said. The bit with uname -r -- its the reverse quote key that youre meant to type in (the key with the tilde ~ sign)... i.e. `uname -r` actually says to linux to replace that bit with the output of the command uname, so it prints out the kernel version into the string... try it on the command line and see for yourself.

If that module still fails to load, you might want to downgrade your kernel version to 2.6.3-4mdk -- it might be included in the Official version distro, I'm not sure. The drivers were meant for that version so don't stress too much if it doesn't work perfectly.
 
Old 06-27-2004, 03:13 AM   #53
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Wrong! in lsmod list, there is ltmodem!!! In the previous post I said it wasn't!
Ltmodem is loaded
Ltserial isn't loaded.

to Invader:
Thanks. Can you tell me how I can insert in a console or in a text document any ASCII symbols? Like tilde, quote, reverse quote etc.
In Windows I can do it by pressing ALT + the key number of the symbol, for example { is ALT +123. But in Linux?

I will control but I think 2.6.3-4mdk kernel is in 4th cd and I've only the first three. But can I download the 2.6.3-7 patch and come back to 2.6.3-4mdk kernel with the command 'patch -R' ???

Thanks
 
Old 06-27-2004, 06:02 AM   #54
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
try modprobe ltserial
modprobe ltmodem

then try to dial
hopefully your /dev/modem is symlinked to the right place.
 
Old 06-27-2004, 09:36 AM   #55
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Hi Whansard!

Well, ltmodem is loaded after typing modprobe lterial. Before typing it, neither ltmodem nor ltserial are loaded. Afterwards, only ltmodem is loaded. If then I write modprobe ltmodem it doesn't happen anything newer (the module is already loaded).

I tried go on and, at the end, the system of course doesn't recognize the modem.

Anyway I have one question about Tormented's instructions:

ln -vs /dev/ttySLT0 /dev/modem

Why is /dev/ttySLT0 and not /dev/ttyLT0 ? I thought it was a mistake, but I saw in Invader's instructions the same expression. Why we create a symlink to a nonexisting file?

I tried in the two ways and if I write /dev/ttyLT0, kppp tell me "Modem not found" or something similar, while if I write /dev/ttySLT0 it opens an error dialog box "Impossible to access the modem" or similar (translated by Italian)

Another question. Why ltserial give problems while ltmodem is loaded without matter?
And why neither Tormented nor others have had any problems like mine? I've the same kernel version, the same driver files... why?

Thank you again
 
Old 06-27-2004, 10:13 AM   #56
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
i don't know. but ltserial is the serial interface to ltmodem, so ltmodem can't work without it.
you can make the device file whatever name you wish, as long as it has the correct properties. you can make a device /dev/butterhead with the correct settings, and it's all the same. just stay with the same name for allthe commands.
 
Old 06-27-2004, 02:57 PM   #57
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Yes, but the binary file created by mknod has name ttyLT0. Then, we create a symlink to ttySLT0, which doesn't exist.

mknod --mode=0640 /dev/ttyLT0 b 62 64

ln -vs /dev/ttySLT0 /dev/modem

I know that we can assign whatever name, but what I don't understand is why we have to create a symlink to a file which there isn't...

Anyway.. the bigger matter is: how to install the modem?? I could also change kernel version (i have never done it) and downgrade to 2.6.3-4mdk, which has its own drivers, but seen that furfurdemon666, Tormented and who other have configured their modems without matters on 2.6.3-7mdk kernel, I could have to can install my modem, too... Or wrong?

What does "kernel does not have module support" mean ? .. There are many modules currently loaded in the system! Why haven't it module support? What's module support?

Have you any idea?

Greetings
 
Old 06-27-2004, 04:46 PM   #58
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
i haven't seen any of those instructions, but that node should be character, i'm sure.
mknod --mode=0640 /dev/ttyLT0 c 62 64
instead of b. and the symlink should be to /dev/ttyLT0
 
Old 06-28-2004, 04:40 AM   #59
marstell
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Thanks, Whansard.

However, the instructions I refer to, are in the first page of this thread. There are two posts which teach how to install the modem. Tormented and Invader have written them


But what can I do with 'modprobe ltserial'?
 
Old 06-28-2004, 07:32 AM   #60
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,284

Rep: Reputation: 64
a modem is a character device. a block device is like a hard drive or cdrom.
/dev# ls -l ttyLT0
0 crw-rw---- 1 root uucp 62, 64 Jun 27 11:29 ttyLT0

mine works, and is a character device. and i have no /dev/ttySLT0. if /dev/modem is linked to a device that doesn't exist, it cannot work.
 
  


Reply


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
cant installltmodem(lucent) drivers(no kernel headers found) nikoz Linux - General 5 08-17-2006 03:52 PM
mandrake 10 nvidia drivers and winmodem drivers mikeymouse Mandriva 6 08-28-2004 07:57 AM
Need help with installing drivers for a Lucent Winmodem on Mandrake 9.1 .nyteshyft Linux - Newbie 2 01-21-2004 11:56 PM
lucent winmodem pslinuxnoob Linux - Hardware 8 08-29-2003 08:13 PM
Lucent PCI Winmodem Drivers for Linux Mandrake 8.1 natsmith9 Linux - Hardware 2 08-07-2002 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration