Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam, muszę zbudować moduł kernela ppp_generic jednak nie wiem jak można zbudować pojedyńczy moduł
Offline
[b]cd /usr/src/linux[/b] (zakładam że tam masz źródełka)
[b]make drivers/net/ppp_generic.ko[/b]
twój moduł jest w drivers/net/ppp_generic.o
Offline
zbudowałem ale
ag:/usr/src# modprobe ppp_generic
WARNING: Error inserting slhc (/lib/modules/2.6.18-adamos/kernel/drivers/net/slhc.ko): Invalid module format
FATAL: Error inserting ppp_generic (/lib/modules/2.6.18-adamos/kernel/drivers/net/ppp_generic.ko): Invalid module format
ag:/usr/src# insmod /lib/modules/2.6.18-adamos/kernel/drivers/net/ppp_generic.ko
insmod: error inserting '/lib/modules/2.6.18-adamos/kernel/drivers/net/ppp_generic.ko': -1 Invalid module format
Offline
wykonaj depmod -a, a potem modprobe <moduł>
Offline
a teraz inny problem nie może znaleźć usbcore
Offline
make modules_install
modprobe -r usbcore
modprobe usbcore
Offline
Mar 4 21:33:44 localhost pppd[6266]: pppd 2.4.4 started by root, uid 0
Mar 4 21:33:44 localhost pppd[6266]: Using interface ppp0
Mar 4 21:33:44 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:33:44 localhost pppd[6266]: Modem hangup
Mar 4 21:33:44 localhost pppd[6266]: Connection terminated.
Mar 4 21:33:48 localhost pppd[6266]: Using interface ppp0
Mar 4 21:33:48 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:33:48 localhost pppd[6266]: Modem hangup
Mar 4 21:33:48 localhost pppd[6266]: Connection terminated.
Mar 4 21:33:52 localhost pppd[6266]: Using interface ppp0
Mar 4 21:33:52 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:33:52 localhost pppd[6266]: Modem hangup
Mar 4 21:33:52 localhost pppd[6266]: Connection terminated.
Mar 4 21:33:56 localhost pppd[6266]: Using interface ppp0
Mar 4 21:33:56 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:33:56 localhost pppd[6266]: Modem hangup
Mar 4 21:33:56 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:00 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:00 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:00 localhost pppd[6266]: Modem hangup
Mar 4 21:34:00 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:04 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:04 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:04 localhost pppd[6266]: Modem hangup
Mar 4 21:34:04 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:08 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:08 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:08 localhost pppd[6266]: Modem hangup
Mar 4 21:34:08 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:12 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:12 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:12 localhost pppd[6266]: Modem hangup
Mar 4 21:34:12 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:16 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:16 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:16 localhost pppd[6266]: Modem hangup
Mar 4 21:34:16 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:21 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:21 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:21 localhost pppd[6266]: Modem hangup
Mar 4 21:34:21 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:25 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:25 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:25 localhost pppd[6266]: Modem hangup
Mar 4 21:34:25 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:29 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:29 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:29 localhost pppd[6266]: Modem hangup
Mar 4 21:34:29 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:33 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:33 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:33 localhost pppd[6266]: Modem hangup
Mar 4 21:34:33 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:37 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:37 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:37 localhost pppd[6266]: Modem hangup
Mar 4 21:34:37 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:41 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:41 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:41 localhost pppd[6266]: Modem hangup
Mar 4 21:34:41 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:45 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:45 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:45 localhost pppd[6266]: Modem hangup
Mar 4 21:34:45 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:49 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:49 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:49 localhost pppd[6266]: Modem hangup
Mar 4 21:34:49 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:53 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:53 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:53 localhost pppd[6266]: Modem hangup
Mar 4 21:34:53 localhost pppd[6266]: Connection terminated.
Mar 4 21:34:57 localhost pppd[6266]: Using interface ppp0
Mar 4 21:34:57 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:34:57 localhost pppd[6266]: Modem hangup
Mar 4 21:34:57 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:01 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:01 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:01 localhost pppd[6266]: Modem hangup
Mar 4 21:35:01 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:05 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:05 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:05 localhost pppd[6266]: Modem hangup
Mar 4 21:35:05 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:09 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:09 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:09 localhost pppd[6266]: Modem hangup
Mar 4 21:35:09 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:13 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:13 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:13 localhost pppd[6266]: Modem hangup
Mar 4 21:35:13 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:17 localhost kernel: usbcore: registered new driver speedtch
Mar 4 21:35:18 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:18 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:18 localhost pppd[6266]: Modem hangup
Mar 4 21:35:18 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:18 localhost kernel: ATM dev 0: ADSL line is blocked?
Mar 4 21:35:22 localhost pppd[6266]: Using interface ppp0
Mar 4 21:35:22 localhost pppd[6266]: Connect: ppp0 <--> /dev/pts/0
Mar 4 21:35:22 localhost pppd[6266]: Modem hangup
Mar 4 21:35:22 localhost pppd[6266]: Connection terminated.
Mar 4 21:35:22 localhost pppd[6266]: Exit.
Mar 4 21:35:23 localhost kernel: usbcore: deregistering driver speedtch
Mar 4 21:35:23 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bfcc0 failed (-2)!
Mar 4 21:35:23 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bfc40 failed (-2)!
Mar 4 21:35:23 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bfbc0 failed (-2)!
Mar 4 21:35:23 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bfb40 failed (-2)!
Mar 4 21:35:28 localhost kernel: usbcore: registered new driver speedtch
Mar 4 21:35:29 localhost kernel: ATM dev 0: ADSL line is blocked?
Mar 4 21:35:47 localhost kernel: usbcore: deregistering driver speedtch
Mar 4 21:35:47 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bf9c0 failed (-2)!
Mar 4 21:35:47 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bfa40 failed (-2)!
Mar 4 21:35:47 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bf940 failed (-2)!
Mar 4 21:35:47 localhost kernel: ATM dev 0: usbatm_complete: urb 0xd29bf8c0 failed (-2)!
Offline
a jak włączysz debug i kdebug to co gada?
Offline
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
/usr/sbin/pppoe: option requires an argument -- I
Offline
ech coś mi sie zdaje że tu jest pomalu w kernelu całe bubu
ja bym zrobił wszystko odnowa na spokojnie bo widze ze kernel jaki masz jest jakiś okrojony pomysl sam coś tam odznaczył
Offline
[url=http://rychu.dug.net.pl/adamos_config.txt]LINK[/url]
[color=red][i]adamos, chcesz żebym zawału dostał? nie rób takich rzeczy, chłopie :p
podlinkowałem configa (rychu)[/i][/color]
Offline
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
eth0: unknown interface: No such device
pppoe: ioctl(SIOCGIFHWADDR): Session 0: No such device
/usr/sbin/pppoe: option requires an argument — I[/quote]
do net24 potrzebujesz modułów:Kod:
insmod slhc insmod ppp_generic insmod ppp_synctty insmod ppp_async insmod atm insmod n_hdlci takiego konfiga (dla speedtouch)
Kod:
user "net24" plugin pppoatm.so 0.35 noipdefault usepeerdns defaultroute persist noauth nopcomp noccp novj
"There are only 10 kinds of people in the world --
.....Those who understand binary, and those who don't."
Offline
do net24 potrzebujesz modułów:
insmod slhc insmod ppp_generic insmod ppp_synctty insmod ppp_async insmod atm insmod n_hdlc
gdzie w menuconfigu jest slhc i n_hdlc?
ag:/usr/src/linux-source-2.6.18# make modules drivers/char/n_hdlc.ko CHK include/linux/version.h CHK include/linux/utsrelease.h CHK include/linux/compile.h Building modules, stage 2. MODPOST CC drivers/char/n_hdlc.o MODPOST ag:/usr/src/linux-source-2.6.18# ins insmod install install-keymap install-sgmlcatalog insmod_ksymoops_clean install-info install-mbr instmodsh insmod.modutils installkernel install-menu ag:/usr/src/linux-source-2.6.18# insmod drivers/char/n_hdlc.o insmod: error inserting 'drivers/char/n_hdlc.o': -1 Invalid module format ag:/usr/src/linux-source-2.6.18#
Offline
gdzie w menuconfigu jest slhc i n_hdlc?[/quote]
hdlc - Character devices->non standard serial port support -> hdlc line discipline support
slhc - Network device support --> SLIP (serial line) support --> CSLIP compressed headers
"There are only 10 kinds of people in the world --
.....Those who understand binary, and those who don't."
Offline
to już znajduje modem ale ;/
ag:/home/ag# pppd call adsl updetach using channel 4 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] LCP: timeout sending Config-Requests Connection terminated. ioctl(TIOCSETD, N_TTY): Interrupted system call (line 571) Terminating on signal 2 Child process /usr/local/sbin/pppoa3 -e 1 -m -1 -c -vpi 8 -vci 35 (pid 4290) terminated with signal 2 Modem hangup ag:/home/ag#
Offline
to już znajduje modem ale ;/
Kod:
ag:/home/ag# pppd call adsl updetach using channel 4 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2064c9e7>] LCP: timeout sending Config-Requests Connection terminated. ioctl(TIOCSETD, N_TTY): Interrupted system call (line 571) Terminating on signal 2 Child process /usr/local/sbin/pppoa3 -e 1 -m -1 -c -vpi 8 -vci 35 (pid 4290) terminated with signal 2 Modem hangup ag:/home/ag#[/quote]
to znaczy że linia adsl już jest zsynchronizowana ale jeszcze nie możesz się
logować. U mnie też tak było jakieś trzy dni, później zadziałało. BTW jeżeli masz
net24 na lini tp to vpi 0 vci 35.
"There are only 10 kinds of people in the world --
.....Those who understand binary, and those who don't."
Offline
ale na windowsie neta juz mam ;)
pozatym w dev jest tylko ppp ;/
ag:/home/ag# ifconfig irda0 Link encap:IrLAP HWaddr 60:67:b3:19 UP RUNNING NOARP MTU:2048 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame TX packets:325 errors:0 dropped:0 overruns:0 car collisions:0 txqueuelen:8 RX bytes:0 (0.0 b) TX bytes:4734 (4.6 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:44 errors:0 dropped:0 overruns:0 fram TX packets:44 errors:0 dropped:0 overruns:0 carr collisions:0 txqueuelen:0 RX bytes:2800 (2.7 KiB) TX bytes:2800 (2.7 KiB) ag:/home/ag# route Kernel IP routing table Destination Gateway Genmask Flags Metr ag:/home/ag# ag:/home/ag# pppd call adsl updetach (ctrl +c) Couldn't get channel number: Input/output error Terminating on signal 2 Waiting for 1 child processes... script /usr/local/sbin/pppoa3 -e 1 -m -1 -c -vpi 8 -vci 35, pid 3750 Child process /usr/local/sbin/pppoa3 -e 1 -m -1 -c -vpi 8 -vci 35 (pid 3750) terminated with signal 2 ag:/home/ag# pppd call adsl updetach using channel 2 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe0838d2c>] LCP: timeout sending Config-Requests Connection terminated. ioctl(TIOCSETD, N_TTY): Interrupted system call (line 571) Terminating on signal 2 Child process /usr/local/sbin/pppoa3 -e 1 -m -1 -c -vpi 8 -vci 35 (pid 3818) terminated with signal 2 Modem hangup ag:/home/ag#
Offline
Problem chyba w tym że net24 korzysta z pppoe i nie wiem jak dla niego trzeba skonfigurować /etc/network/interfaces
Offline
Problem chyba w tym że net24 korzysta z pppoe i nie wiem jak dla niego trzeba skonfigurować /etc/network/interfaces[/quote]
z pppoe nie pomogę bo nie używałem, możesz zobaczyć
http://forum.suse.pl/index.php?PHPSESSID=r8p2411h2560hdjntdp5ducki5&topic=5093.msg42780#msg42780
http://forum.ubuntu.pl/viewtopic.php?t=6417
"There are only 10 kinds of people in the world --
.....Those who understand binary, and those who don't."
Offline
Rozwiązanie było tu http://forum.ubuntu.pl/viewtopic.php?t=6417 :)
dziekuje wszystkim za pomoc :)
Offline
Jeszcze jedno która opcja w kernelu odpowiada za ładowanie firmware??
Offline
Device Drivers
Generic Driver Options
Gdzies tam nie jestem pewny ale chyba tam
Offline
[*] Select only drivers that don't need compile-time external firmware
[*] Prevent firmware from being built
<M> Userspace firmware loading support
mam to zaznaczone przy starcie systemu łądują się moduły firmware_calss i cdc_acm mimo to firmware modemu nie ładuje się
Offline
a masz firmware w /usr/local/lib/firmware ?
Offline
mam w /lib/firmware i z dystrybucyjnego spokojnie ładuje firmware :)
Offline
Time (s) | Query |
---|---|
0.00009 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00078 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.191.165.192' WHERE u.id=1 |
0.00070 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.191.165.192', 1732846210) |
0.00040 | SELECT * FROM punbb_online WHERE logged<1732845910 |
0.00045 | SELECT topic_id FROM punbb_posts WHERE id=55042 |
0.00248 | SELECT id FROM punbb_posts WHERE topic_id=7078 ORDER BY posted |
0.00060 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=7078 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00102 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=7078 ORDER BY p.id LIMIT 0,25 |
0.00087 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=7078 |
Total query time: 0.00748 s |