spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

Compiling nozomi for Fedora Core 6 and upwards

 
Post new topic   Reply to topic    PHARscape Forum Index -> GlobeTrotter GPRS
View previous topic :: View next topic  
Author Message
grfxguy



Joined: 21 Nov 2007
Posts: 4

uk.gif
PostPosted: Wed Nov 21, 2007 8:38 pm    Post subject: Compiling nozomi for Fedora Core 6 and upwards Reply with quote

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
View user's profile Send private message
wojtekc0



Joined: 17 Nov 2006
Posts: 9

poland.gif
PostPosted: Thu Nov 22, 2007 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
grfxguy



Joined: 21 Nov 2007
Posts: 4

uk.gif
PostPosted: Fri Nov 23, 2007 1:57 am    Post subject: Reply with quote

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
View user's profile Send private message
grfxguy



Joined: 21 Nov 2007
Posts: 4

uk.gif
PostPosted: Mon Nov 26, 2007 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PHARscape Forum Index -> GlobeTrotter GPRS All times are GMT
Page 1 of 1

 
Jump to:  
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


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer