----------------------------
Federico Pelizza

homepage:
http://cclinf30.polito.it/~s76927

Work:
NEC Europe ltd. - Adenauerplatz 6 -
69115 Heidelberg - Germany
tel. +49-(0)6221-9051133
fax  +49-(0)6221-9051155

Home:
Rohrbacherstrasse 126 -
69126 Heidelberg - Germany

Mobile phone: +49-(0)177-4714687
--------------------------------
-----Urspr�ngliche Nachricht-----
Von: Paul Mackerras <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Datum: Dienstag, 4. Mai 1999 12:34
Betreff: Re: can't locate module ppp-compress-XX


>Federico Pelizza <[EMAIL PROTECTED]> wrote:
>
>> The first time that I compiled PPP, I got log messages like
>>
>> Apr 27 18:10:14 gandalf kernel: CSLIP: code copyright 1989 Regents of the
>> University of California
>> Apr 27 18:10:14 gandalf kernel: PPP: version 2.3.3 (demand dialling)
>> Apr 27 18:10:14 gandalf kernel: PPP line discipline registered.
>>
>> So I could notice that ppp_init() and ppp_first_time() in ppp.c in kernel
>> where invoked when launching pppd for the first time in a linux session
and
>> then no more. Which is what I expected.
>
>I assume you have ppp as a module, not compiled into the kernel.
>ppp_init() and ppp_first_time() get called when the module is loaded.

No. I choosed to install ppp support in kernel and not as module when making
xconfig.

I compiled then ppp 2.3.7 in user space without updating the ppp.c in kernel
to the last one.

Then everytime I wrote a new printk() in /usr/src/linux/drivers/net/ppp.c, I
compiled the kernel again by giving
make dep
make bzImage, etc...
but never did make xconfig again.

Later I even updated the ppp.c in kernel by giving make kernel command after
./configure, when recompiling.

Anyway I didn't get the 3 logs above anymore.

>> Now, that I compiled ppp several times with various new printk() that I
>> added to trace the program better for my goal, but with none further
>> modification, I get none of the three logs above, but just
>>
>> Apr 30 09:39:17 towel modprobe: can't locate module ppp0
>
>You need to `rmmod ppp' to unload the ppp module, then do `insmod
>ppp.o' to load your new version of the module.  `lsmod' will show you
>which modules are loaded.  If the module gets loaded automatically, it
>will get unloaded after a period of inactivity.

The lsmod command says that


no module is loaded till when the pppd of the two pc build up the
communication.
After that the ppp_deflate and bsd_comp modules are loaded.
They remain loaded after pppd are terminated. I don't know if they get
unloaded.
I'm checking it now.


Moreover I can tell you that when issuing "shutdown -r now", I get the
following logs:

Apr 29 17:12:42 towel -- MARK --
Apr 29 17:14:46 towel init: Switching to runlevel: 6
Apr 29 17:14:53 towel lpd[140]: Terminated, exiting
Apr 29 17:14:54 towel kernel: Kernel logging (proc) stopped.
Apr 29 17:14:54 towel kernel: Kernel log daemon terminating.
Apr 29 17:14:59 towel exiting on signal 15
Apr 29 17:16:08 towel syslogd 1.3-3: restart.
Apr 29 17:16:09 towel kernel: klogd 1.3-3, log source = /proc/kmsg started.
Apr 29 17:16:09 towel kernel: Inspecting /boot/System.map
Apr 29 17:16:09 towel kernel: Loaded 6794 symbols from /boot/System.map.
Apr 29 17:16:09 towel kernel: Symbols match kernel version 2.2.5.
Apr 29 17:16:09 towel kernel: No module symbols loaded.
Apr 29 17:16:13 towel /usr/sbin/cron[162]: (CRON) STARTUP (fork ok)
Apr 29 17:16:24 towel login[154]: ROOT LOGIN on `tty1'

>The "can't locate module ppp0" message happens when pppd tries to do
>an ioctl on ppp0 to see if the kernel has ppp support.  You can have
>the ppp module loaded but no ppp network interface units existing.

I see. OK. This is interesting.


Thank you.

Ciao da FEDE


-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to