|
|
Home Linux and 3G Forum
|
|
PHARscape 3G Datacards and Linux
|
| View previous topic :: View next topic |
| Author |
Message |
grfxguy
Joined: 21 Nov 2007 Posts: 4

|
Posted: Wed Nov 21, 2007 8:38 pm Post subject: Compiling nozomi for Fedora Core 6 and upwards |
|
|
Hello,
I am trying to compile the nozomi drivers for Fedora Core 6, and am getting many compiler errors with a '2.6.22.9-61.fc6' kernel:
Warning: Compiling for 2.6:
make -C /lib/modules/2.6.22.9-61.fc6/build
nozomi.c: In function ‘nozomi_setup_interrupt’:
nozomi.c:1516: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
nozomi.c:1517: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
nozomi.c: In function ‘nozomi_card_init’:
nozomi.c:1683: warning: cast to pointer from integer of different size
nozomi.c:1736:64: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
nozomi.c:1736: error: ‘INIT_WORK’ undeclared (first use in this function)
nozomi.c:1736: error: (Each undeclared identifier is reported only once
nozomi.c:1736: error: for each function it appears in.)
nozomi.c:1742: warning: overflow in implicit constant conversion
nozomi.c: At top level:
nozomi.c:2326: warning: initialization from incompatible pointer type
nozomi.c: In function ‘ntty_tty_init’:
nozomi.c:2361: warning: assignment from incompatible pointer type
nozomi.c:2362: warning: assignment from incompatible pointer type
nozomi.c: In function ‘nozomi_init’:
nozomi.c:2396: warning: implicit declaration of function ‘pci_module_init’
Any suggestions on what I can do to fix these?
Cheers,
grfxguy |
|
| Back to top |
|
 |
wojtekc0
Joined: 17 Nov 2006 Posts: 9

|
Posted: Thu Nov 22, 2007 11:31 am Post subject: |
|
|
take corrected version from
Drivers->nozomi 2.1d as a module (work with latest Fedora 8 kernel)
or search for my post about 2 fix to work with kernel 2.6.22 |
|
| Back to top |
|
 |
grfxguy
Joined: 21 Nov 2007 Posts: 4

|
Posted: Fri Nov 23, 2007 1:57 am Post subject: |
|
|
Many thanks for your advice - I made the modification in the code, compiled and installed the module, and I can communicate with the modem.
Now to get the modem registered with the network (need to activate that SIM without using a phone). |
|
| Back to top |
|
 |
grfxguy
Joined: 21 Nov 2007 Posts: 4

|
Posted: Mon Nov 26, 2007 2:15 am Post subject: |
|
|
I also had to replace pci_register_driver (deprecated) with pci_module_init. The changes I had to make against "nozomi_2.21alpha_060917" are as follows:
1736c1736
< INIT_WORK(&dc->tty_flip_wq_struct, tty_flip_queue_function);
---
> INIT_WORK(&dc->tty_flip_wq_struct, tty_flip_queue_function, dc);
2396c2396
< rval = pci_register_driver(&nozomi_driver);
---
> rval = pci_module_init(&nozomi_driver); |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|