Kod: Zaznacz cały
dorian:/tmp/modem# make
Warning: Compiling for 2.6:
make -C /lib/modules/2.6.18-4-686/build SUBDIRS=/tmp/modem modules
make[1]: Wejście do katalogu `/usr/src/linux-headers-2.6.18-4-686'
CC [M] /tmp/modem/nozomi.o
/tmp/modem/nozomi.c: In function ‘receive_data’:
/tmp/modem/nozomi.c:968: error: ‘TTY_DONT_FLIP’ undeclared (first use in this function)
/tmp/modem/nozomi.c:968: error: (Each undeclared identifier is reported only once
/tmp/modem/nozomi.c:968: error: for each function it appears in.)
/tmp/modem/nozomi.c:1009: error: ‘struct tty_struct’ has no member named ‘flip’
/tmp/modem/nozomi.c: In function ‘ntty_tty_init’:
/tmp/modem/nozomi.c:2179: error: ‘TTY_DRIVER_NO_DEVFS’ undeclared (first use in this function)
/tmp/modem/nozomi.c:2180: warning: left-hand operand of comma expression has no effect
/tmp/modem/nozomi.c:2180: warning: value computed is not used
make[2]: *** [/tmp/modem/nozomi.o] Błąd 1
make[1]: *** [_module_/tmp/modem] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-headers-2.6.18-4-686'
make: *** [default] Błąd 2
dorian:/tmp/modem#
zainstalowalem
linux-source-2.6.18
kernel-package
linux-headers-2.6.18-4-686
build-essential
chcialem nadmienic ze modem jest widoczny w systemie po wydaniu polecenia:
Kod: Zaznacz cały
dorian:/tmp/modem#cardctl status
socked:0
3.3V 32-bit PC Card
dorian:/tmp/modem#lspci
0000:04:00.0 Network controller: Option N.V.: Unknown device 000c
dorian:/tmp/modem#
NO TO PROBLEM SIE ROZWIAZA£
w pliku nozomi.c
LEGENDA

- usunieto
+ wstawiono
Kod: Zaznacz cały
--- nozomi.c 2006-07-03 15:41:20.000000000 +0200
+++ nozomi.c_new 2006-12-18 12:03:48.000000000 +0100
@@ -969,23 +969,6 @@
return 1;
}
- if (test_bit(TTY_DONT_FLIP, &tty->flags)) {
- D6("TTY_DONT_FLIP set!! %d", index);
- /* Here we disable interrupt for that port and schedule */
-/* task. Task wakes up a little bit later and enables interrupt.. */
- port->tty_dont_flip = 1;
- disable_transmit_dl(index, dc);
-#ifdef KERNEL_2_4
- schedule_task(&dc->tty_flip_queue);
-#endif
-#ifdef KERNEL_2_6
- if (!queue_work(dc->tty_flip_wq, &dc->tty_flip_wq_struct)) {
- ERR("Call to queue_work() failed.");
- }
-#endif
- return 0;
- }
-
GET_MEM( &size, addr, 4 );
/* D1( "%d bytes port: %d", size, index); */
@@ -2180,7 +2163,7 @@
td->major = NTTY_TTY_MAJOR,
td->type = TTY_DRIVER_TYPE_SERIAL,
td->subtype = SERIAL_TYPE_NORMAL,
- td->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_NO_DEVFS,
+ td->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV,
td->init_termios = tty_std_termios;
td->init_termios.c_cflag = B115200 | CS8 | CREAD | HUPCL | CLOCAL;
I po problemie :P
// Poprawiłem Twój post - dodałem tagi code.
Kaka'