Kirjoittaja Aihe: Nokia D211 PCMCIA Wlan/GPRS toimimaan  (Luettu 15087 kertaa)

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Nokia D211 PCMCIA Wlan/GPRS toimimaan
« : 21.12.06 - klo:22.59 »
Terve
Voiskohan joku vähän valaista laite asennusta ubuntussa?

Asensin kaverin Toshiba kannettavaan Dapperin, asennus sujui ongelmitta ja kaikki toimi hienosti. Nyt tarttis saada Wlan ja mahdollisesti GPRS toimimaan, eli Nokian D211 PCMCIA kortti ollut Wintoosa puolella käytössä.

Laitteelle on Linux ajuri ja asennusohje, mutta en ole ennen asentanut ulkopuolisia ohjelmia, eikä toi yleiskansallinen kieli ole hyvin hallinnassa. Voisko joku kertoa mitä asennetaan, mihin ja missä järjestyksessä, niin pääsis kokeilemaan asennusta.

Koitin ohjekirjaa suomentamalla saada hommasta jonkinlaisen käsityksen, mutta luultavasti homma ei tällä tietämyksellä onnistu.

Käyttöohje:http://koti.phnet.fi/karistom/d211_linuxguide.pdf
Ajuriohjelmisto:http://koti.phnet.fi/karistom/nokia_d211-linux-1.06.tar.gz

Kuvakaappaukset puretusta paketista:
http://koti.phnet.fi/karistom/Kuvakaappaus-1.png
http://koti.phnet.fi/karistom/Kuvakaappaus-2.png
http://koti.phnet.fi/karistom/Kuvakaappaus-3.png

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #1 : 02.01.07 - klo:21.37 »
No nyt olis kone paikalla ja yrittänyt laitteen ohjekirjan kanssa touhuta ja yrittänyt etsiä muita ohjeita, mutta ei meinaa onnistua. Paketin purkaminen kyllä onnistuu onnistuu, mutta siitä eteenpäin ei meinaa päästä. Onko joitain ominaisuuksia asentamatta, vai onko ymmärryksessä vikaa, kun homma ei tällä ohjeella toimi.

http://www.raja-antura.org/index.php?option=com_content&task=view&id=6976&Itemid=10

Tähän pysähtyy:
 
# Valmistellaan paketti configure-skriptillä
tuxu@linux$: ./configure

Löytyiskö jostain toimivampaa ohjetta?
Ubuntu tunnistaa kortin laitehallinnassa.

Perusteet vielä pahasti hukassa, mutta jospa tätä pikkuhiljaa oppis

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #2 : 02.01.07 - klo:22.26 »
Lainaus
Tähän pysähtyy:
 
# Valmistellaan paketti configure-skriptillä
tuxu@linux$: ./configure

Niin oletkos asentanut build-essential paketin ennen kääntämistä?

Koodia: [Valitse]
sudo apt-get install build-essential

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #3 : 03.01.07 - klo:19.59 »
Enpä ollut totakaan tiennyt asentaa, mutta nyt on asennettu paketinhallinnan kautta, ei auta

Olen Nokian ohjeen mukaan kopioinut ja purkanut paketin /usr/src hakemistoon, kopioinut ja nimennyt uudelleen config.mk.orig tiedoston.

tt@tt-laptop:~$ cd /usr/src/d211
tt@tt-laptop:/usr/src/d211$ ./configure
bash: ./configure: Tiedostoa tai hakemistoa ei ole
tt@tt-laptop:/usr/src/d211$

Ei ymmärrä

tt@tt-laptop:/usr/src/d211$ ls
bin          config.mk.orig  INSTALL          LICENSE-NOKOS  README   ui
CHANGES.txt  control         LEGAL            Makefile       scripts
config.mk    docs            LICENSE-MOZILLA  NAAP           src
tt@tt-laptop:/usr/src/d211$

Onko homma täysin hukassa, vai kertoisko joku miten pitää edetä

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #4 : 03.01.07 - klo:22.07 »
Meneppäs kyseiseen hakemistoon
Koodia: [Valitse]
cd /usr/src/d211/
Ja katso mitä asennusohjeet sanovat:
Koodia: [Valitse]
cat INSTALL

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #5 : 03.01.07 - klo:22.22 »
Toi kiekitaito hiukka heikkoa, tällästä tarjoilee

tt@tt-laptop:/usr/src/d211$ cat INSTALL
This is the short INSTALL help file for the Linux driver of Nokia D211
multimode radio card.

Read the LICENSES before installing.

For troubleshooting, see docs/d211_linux_guide.pdf.

Required items:
-The binary part of the driver untarred on top of the source part
-Kernel sources
-System V IPC support in the kernel
-PCMCIA must be compiled and installed properly, check the documentation that
came with the PCMCIA sources
-PPP support, check the documentation in your Linux distribution

To compile and create the module:

- Rename the config.mk.orig file to config.mk

- Edit the config.mk file to match your system configuration

- type: make all; make install

- To copy the default nokia_cs script and settings,
  type: make config_install. This will overwrite your previous settings,
  and therefore it is recommended to be run only when installing for
  the first time.

The module is now loadable. Next, the configuration
files must be edited.

/etc/pcmcia/nokia_cs.opts: This file determines the behaviour of the card
as it is initialized.

For GSM/GPRS data connection you need to setup the PPP parameters.

- Edit /etc/pcmcia/nokia_cs not to start WLAN i.e. MODE=GSM
- Enable GSM by giving your PIN code ('nokia_ctl enable_gsm') after
  you have inserted the card. You have to do this every time you insert
  the card or reset the phone. Enable GSM radio by giving command
  'nokia_ctl gsm enableGSMradio'.
- Edit the PPP parameters according to your needs. We have included
  a sample options file in the scripts directory. Change the username to
  your real username in the network.
  Also a sample wvdial.conf is included if you plan to use the wvdial program.
  These files are not installed by default.
- Start the connection. If you use wvdial you may need to reset the phone if
  some error occurs because it does not always properly stop the PPP
  connection.
- Always check the corrert parameters from your network provider

For simple adhoc WLAN network, edit the nokia_cs.opts as following:

MODE=WLAN

# WLAN settings

PROFILE=WLAN_profile
NETWORK_START=yes

# WLAN profiles

[WLAN_profile]
mode=adhoc
restrictchannel=
ssid=Nokia WLAN
shared_key1=
active_key=

Then restart the pcmcia

/etc/rc.d/init.d/pcmcia restart

and it should work.

After the card has been inserted you can check the status of the card from
/proc/net/nokia_cs and from kernel log messages.

Note: If you are updating from an older version, the
make config_install command will overwrite the scripts in the
/etc/pcmcia directory and name the old ones as XXXX.old.
If you wish to to return to these, simply replace them accordingly.
tt@tt-laptop:/usr/src/d211$

T.M

  • Käyttäjä
  • Viestejä: 172
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #6 : 04.01.07 - klo:11.10 »
Ohjeessa lukea tojottaa seuraavaa:

#cp config.mk.orig config.mk

Editoi ensin confik.mk sopivaksi

Sen jälkeen :

make all
make install

config.mk:n editointi voikin olla hieman kimurantimpaa.

# User Settings EDIT THESE TO MATCH YOUR CONFIGURATION!
# LINUX = /usr/src/linux               # Linux is here
# OS_RELEASE=2.6.17-10                    # Kernel version for module inst.
# INSTDIR=/sbin                        # Install tools here
# ROOTDIR=/                            # Root for kernel module installation
# SMAC2=d211fw.bin                     # Firmware for the card

Elikkäs vaatinee asennettavaksi käytetyn kernelin headerit

Omassa tapauksessani
#apt-get install linux-headers-2.6.17-10

Tarkista mikä kerneli sinulla on käytössä esim.
#uname -r

linkitä sitten
#ln -s /usr/src/linux-headers-2.6.17-10   /usr/src/linux



« Viimeksi muokattu: 04.01.07 - klo:11.21 kirjoittanut T.M »

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #7 : 04.01.07 - klo:18.46 »
1Laitoin conf tiedostoon käytettävän kernel version:

# User Settings EDIT THESE TO MATCH YOUR CONFIGURATION!
# LINUX = /usr/src/linux               # Linux is here
# OS_RELEASE=2.4.12                    # Kernel version for module inst.
# INSTDIR=/sbin                        # Install tools here
# ROOTDIR=/                            # Root for kernel module installation
# SMAC2=d211fw.bin             # Firmware for the card

LINUX = /usr/src/linux
OS_RELEASE=2.6.15-27
ROOTDIR=/
SMAC2=d211fw.bin

# Compiler Settings

CROSS_COMPILE=

LD   = $(CROSS_COMPILE)ld
CC   = $(CROSS_COMPILE)gcc
CPP   = $(CROSS_COMPILE)g++
AR   = $(CROSS_COMPILE)ar
RANLIB   = $(CROSS_COMPILE)ranlib

2jonka jälkeen tein linkityksen:

tt@tt-laptop:~$ cd /usr/src/d211
tt@tt-laptop:/usr/src/d211$ ln -s /usr/src/linux-headers-2.6.15-27 /usr/src/linux

/usr/src alle muodostui linux niminen linkki, kohteena /usr/src/linux-headers-2.6.15-27.
Kun katson hakemiston sisältöä tiedostoselaimella, niin näyttää tyypiksi linkki(rikki)

tt@tt-laptop:/usr/src$ ls
d211  linux  nokia_d211-linux-1.06.tar.gz

3make all tulostaa:

tt@tt-laptop:/usr/src/d211$ make all
set -e; for d in src ui control; do make -C $d ; done
make[1]: Siirrytään hakemistoon "/usr/src/d211/src"
gcc -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -D__KERNEL__ -DMODULE -I../include -I/usr/src/linux/include     -c  dllc.c
In file included from /usr/include/linux/sched.h:16,
                 from /usr/include/linux/module.h:9,
                 from nokia_info.h:41,
                 from dllc.c:29:
/usr/include/linux/signal.h:2:2: warning: #warning "You should include <signal.h>. This time I will do it for you."
In file included from /usr/include/linux/resource.h:4,
                 from /usr/include/linux/sched.h:79,
                 from /usr/include/linux/module.h:9,
                 from nokia_info.h:41,
                 from dllc.c:29:
/usr/include/linux/time.h:9: error: redefinition of ‘struct timespec’
/usr/include/linux/time.h:15: error: redefinition of ‘struct timeval’
/usr/include/linux/time.h:20: error: redefinition of ‘struct timezone’
/usr/include/linux/time.h:47: error: redefinition of ‘struct itimerval’
In file included from nokia_info.h:41,
                 from dllc.c:29:
/usr/include/linux/module.h:41: error: field ‘attr’ has incomplete type
/usr/include/linux/module.h:49: error: field ‘kobj’ has incomplete type
In file included from dllc.c:29:
nokia_info.h:48:25: error: linux/delay.h: Tiedostoa tai hakemistoa ei ole
In file included from /usr/include/asm-i386/hardirq.h:5,
                 from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/linux/irq.h:17:27: error: linux/cpumask.h: Tiedostoa tai hakemistoa ei ole
In file included from /usr/include/asm/irq.h:11,
                 from /usr/include/linux/irq.h:19,
                 from /usr/include/asm-i386/hardirq.h:5,
                 from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/asm-i386/irq.h:15:25: error: irq_vectors.h: Tiedostoa tai hakemistoa ei ole
/usr/include/asm-i386/irq.h:16:29: error: asm/thread_info.h: Tiedostoa tai hakemistoa ei ole
In file included from /usr/include/asm-i386/hardirq.h:5,
                 from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/linux/irq.h:47: error: syntax error before ‘cpumask_t’
/usr/include/linux/irq.h:67: error: syntax error before ‘spinlock_t’
/usr/include/linux/irq.h:68: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
/usr/include/linux/irq.h:68: error: requested alignment is not a constant
/usr/include/linux/irq.h:70: error: syntax error before ‘irq_desc’
/usr/include/linux/irq.h:70: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from /usr/include/asm/hw_irq.h:11,
                 from /usr/include/linux/irq.h:72,
                 from /usr/include/asm-i386/hardirq.h:5,
                 from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/asm-i386/hw_irq.h:15:27: error: linux/profile.h: Tiedostoa tai hakemistoa ei ole
/usr/include/asm-i386/hw_irq.h:18:26: error: asm/sections.h: Tiedostoa tai hakemistoa ei ole
In file included from /usr/include/asm/hw_irq.h:11,
                 from /usr/include/linux/irq.h:72,
                 from /usr/include/asm-i386/hardirq.h:5,
                 from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/asm-i386/hw_irq.h:27: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
In file included from /usr/include/asm/hardirq.h:11,
                 from /usr/include/linux/interrupt.h:9,
                 from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/asm-i386/hardirq.h:12: error: requested alignment is not a constantIn file included from nokia_info.h:51,
                 from dllc.c:29:
/usr/include/linux/interrupt.h:36: error: syntax error before ‘cpumask_t’
/usr/include/linux/interrupt.h:42: error: syntax error before ‘}’ token
/usr/include/linux/interrupt.h:61: error: syntax error before ‘cli’
/usr/include/linux/interrupt.h:65: error: syntax error before ‘sti’
/usr/include/linux/interrupt.h:69: error: syntax error before ‘save_flags’
/usr/include/linux/interrupt.h: In function ‘save_flags’:
/usr/include/linux/interrupt.h:71: error: syntax error before ‘unsigned’
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:74: error: syntax error before ‘restore_flags’
/usr/include/linux/interrupt.h: In function ‘restore_flags’:
/usr/include/linux/interrupt.h:76: error: syntax error before ‘unsigned’
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:79: error: syntax error before ‘save_and_cli’
In file included from dllc.c:29:
nokia_info.h:55:24: error: linux/slab.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:56:26: error: linux/string.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:57:25: error: linux/timer.h: Tiedostoa tai hakemistoa ei ole
In file included from /usr/include/asm/io.h:11,
                 from nokia_info.h:62,
                 from dllc.c:29:
/usr/include/asm-i386/io.h:1:2: warning: #warning "You should include <sys/io.h>. This time I will do it for you."
In file included from dllc.c:29:
nokia_info.h:69:31: error: linux/etherdevice.h: Tiedostoa tai hakemistoa ei ole
In file included from nokia_info.h:70,
                 from dllc.c:29:
/usr/include/linux/skbuff.h:24:26: error: net/checksum.h: Tiedostoa tai hakemistoa ei ole
In file included from nokia_info.h:70,
                 from dllc.c:29:
/usr/include/linux/skbuff.h:115: error: syntax error before ‘spinlock_t’
/usr/include/linux/skbuff.h:140: error: variable-size type declared outside of any function
In file included from dllc.c:29:
nokia_info.h:76:28: error: pcmcia/version.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:77:29: error: pcmcia/cs_types.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:78:27: error: pcmcia/cistpl.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:79:23: error: pcmcia/cs.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:80:27: error: pcmcia/cisreg.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:81:23: error: pcmcia/ds.h: Tiedostoa tai hakemistoa ei ole
nokia_info.h:82:28: error: pcmcia/ciscode.h: Tiedostoa tai hakemistoa ei ole
In file included from nokia_info.h:89,
                 from dllc.c:29:
dllc.h:47: error: field ‘timer’ has incomplete type
In file included from nokia_info.h:90,
                 from dllc.c:29:
dserial.h:53: error: syntax error before ‘spinlock_t’
dserial.h:53: warning: no semicolon at end of struct or union
dserial.h:54: warning: type defaults to ‘int’ in declaration of ‘dser_t’
dserial.h:54: warning: data definition has no type or storage class
In file included from dllc.c:29:
nokia_info.h:107: error: syntax error before ‘dev_link_t’
nokia_info.h:107: warning: no semicolon at end of struct or union
nokia_info.h:108: warning: type defaults to ‘int’ in declaration of ‘node’
nokia_info.h:108: warning: data definition has no type or storage class
nokia_info.h:113: error: syntax error before ‘wld_wait’
nokia_info.h:113: warning: type defaults to ‘int’ in declaration of ‘wld_wait’
nokia_info.h:113: warning: data definition has no type or storage class
nokia_info.h:117: error: syntax error before ‘}’ token
nokia_info.h:117: warning: type defaults to ‘int’ in declaration of ‘nokia_cs_t’nokia_info.h:117: warning: data definition has no type or storage class
dllc.c:50: error: syntax error before ‘tx_lock’
dllc.c:50: warning: type defaults to ‘int’ in declaration of ‘tx_lock’
dllc.c:50: error: ‘SPIN_LOCK_UNLOCKED’ undeclared here (not in a function)
dllc.c:50: warning: data definition has no type or storage class
dllc.c: In function ‘dllc_new’:
dllc.c:58: warning: implicit declaration of function ‘kmalloc’
dllc.c:58: error: ‘GFP_KERNEL’ undeclared (first use in this function)
dllc.c:58: error: (Each undeclared identifier is reported only once
dllc.c:58: error: for each function it appears in.)
dllc.c:58: warning: assignment makes pointer from integer without a cast
dllc.c:60: warning: implicit declaration of function ‘memset’
dllc.c:60: warning: incompatible implicit declaration of built-in function ‘memset’
dllc.c:68: warning: implicit declaration of function ‘init_timer’
dllc.c:76: error: invalid application of ‘sizeof’ to incomplete type ‘device_t’
dllc.c:76: warning: assignment makes pointer from integer without a cast
dllc.c:78: error: invalid application of ‘sizeof’ to incomplete type ‘device_t’
dllc.c:82: error: dereferencing pointer to incomplete type
dllc.c:85: error: dereferencing pointer to incomplete type
dllc.c:86: error: dereferencing pointer to incomplete type
dllc.c:87: error: dereferencing pointer to incomplete type
dllc.c:88: error: dereferencing pointer to incomplete type
dllc.c:89: error: dereferencing pointer to incomplete type
dllc.c:90: error: dereferencing pointer to incomplete type
dllc.c:91: error: dereferencing pointer to incomplete type
dllc.c: In function ‘dllc_register’:
dllc.c:107: warning: implicit declaration of function ‘ether_setup’
dllc.c:109: warning: implicit declaration of function ‘register_netdev’
dllc.c: In function ‘dllc_delete’:
dllc.c:125: warning: implicit declaration of function ‘del_timer_sync’
dllc.c:128: error: invalid application of ‘sizeof’ to incomplete type ‘device_t’
dllc.c: In function ‘dllc_unregister’:
dllc.c:138: warning: implicit declaration of function ‘unregister_netdev’
dllc.c: In function ‘dllc_devopen’:
dllc.c:155: warning: implicit declaration of function ‘netif_start_queue’
dllc.c: At top level:
dllc.c:162: error: syntax error before ‘stop_queue’
dllc.c:162: warning: type defaults to ‘int’ in declaration of ‘stop_queue’
dllc.c:162: warning: data definition has no type or storage class
dllc.c: In function ‘dllc_devstop’:
dllc.c:169: warning: implicit declaration of function ‘netif_stop_queue’
dllc.c:173: warning: implicit declaration of function ‘wake_up_interruptible’
dllc.c: In function ‘dllc_devhard_start_xmit’:
dllc.c:189: error: dereferencing pointer to incomplete type
dllc.c:196: warning: implicit declaration of function ‘netif_running’
dllc.c:199: warning: implicit declaration of function ‘spin_lock_bh’
dllc.c:201: error: dereferencing pointer to incomplete type
dllc.c:214: warning: implicit declaration of function ‘dev_kfree_skb’
dllc.c:230: warning: implicit declaration of function ‘mod_timer’
dllc.c:234: warning: implicit declaration of function ‘spin_unlock_bh’
dllc.c: In function ‘dllc_timer’:
dllc.c:268: warning: implicit declaration of function ‘netif_wake_queue’
dllc.c: In function ‘dllc_devgetstats’:
dllc.c:344: error: dereferencing pointer to incomplete type
dllc.c: In function ‘dllc_devset_multicast_list’:
dllc.c:368: error: dereferencing pointer to incomplete type
dllc.c:369: error: dereferencing pointer to incomplete type
dllc.c:375: error: dereferencing pointer to incomplete type
dllc.c:379: error: dereferencing pointer to incomplete type
dllc.c:379: error: dereferencing pointer to incomplete type
dllc.c:385: error: dereferencing pointer to incomplete type
dllc.c:388: error: dereferencing pointer to incomplete type
dllc.c:390: warning: implicit declaration of function ‘memcpy’
dllc.c:390: warning: incompatible implicit declaration of built-in function ‘memcpy’
dllc.c:390: error: dereferencing pointer to incomplete type
dllc.c:391: error: dereferencing pointer to incomplete type
dllc.c:394: error: dereferencing pointer to incomplete type
dllc.c:395: error: dereferencing pointer to incomplete type
dllc.c:398: error: dereferencing pointer to incomplete type
dllc.c: In function ‘dllc_rxframe’:
dllc.c:431: warning: implicit declaration of function ‘dev_alloc_skb’
dllc.c:431: warning: assignment makes pointer from integer without a cast
dllc.c:435: warning: implicit declaration of function ‘skb_reserve’
dllc.c:437: error: dereferencing pointer to incomplete type
dllc.c:443: warning: implicit declaration of function ‘skb_put’
dllc.c:445: warning: incompatible implicit declaration of built-in function ‘memcpy’
dllc.c:450: warning: implicit declaration of function ‘eth_type_trans’
dllc.c:455: warning: implicit declaration of function ‘netif_rx’
dllc.c: In function ‘dllc_get_my_mac_addr’:
dllc.c:464: warning: incompatible implicit declaration of built-in function ‘memcpy’
dllc.c:464: error: dereferencing pointer to incomplete type
dllc.c: In function ‘dllc_set_my_mac_addr’:
dllc.c:473: error: dereferencing pointer to incomplete type
dllc.c: In function ‘dllc_init_queue’:
dllc.c:530: error: ‘GFP_KERNEL’ undeclared (first use in this function)
dllc.c:530: warning: assignment makes pointer from integer without a cast
dllc.c: In function ‘dllc_close_queue’:
dllc.c:550: warning: implicit declaration of function ‘kfree’
make[1]: *** [dllc.o] Virhe 1
make[1]: Poistutaan hakemistosta "/usr/src/d211/src"
make: *** [all] Virhe 2
tt@tt-laptop:/usr/src/d211$

Keksiikö tästä mitä teen väärin, tai puuttuuko joitain kilkkeitä.
Jos viitsitte neuvoa, niin mielummin silleen, että ymmärtää tämmöinen vasta alkaja. Päätteen käyttökin melko outoa touhua vielä.

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #8 : 04.01.07 - klo:19.30 »
No ensimmäinen mikä tuossa nyt pistää silmään on tuo:
Koodia: [Valitse]
tt@tt-laptop:/usr/src/d211$ ln -s /usr/src/linux-headers-2.6.15-27 /usr/src/linux
Eli tuo tarvitsee mitä luultavimminkin sudon toimiakseen, eli siis:
Koodia: [Valitse]
sudo ln -s /usr/src/linux-headers-2.6.15-27 /usr/src/linux
Toisaalta, tuohon conffi filuunkin varmaan voisi laittaa suoraan kohtaan "LINUX = /usr/src/linux" tilalle: (??)
Koodia: [Valitse]
LINUX = /usr/src/linux-headers-2.6.15-27
Toinen mikä tuossa konffi filussa pikkusen mietityttää on tuo kohta:
Koodia: [Valitse]
# ROOTDIR=/                            # Root for kernel module installation
Eli mitähän tuossa nyt tarkalleen haetaan.. ? Kuuluisikohan siihen laittaa "ROOTDIR=/lib/modules" vai mitä hemmettiä tuo haluaa.. (??!)

Lainaus
Jos viitsitte neuvoa, niin mielummin silleen, että ymmärtää tämmöinen vasta alkaja. Päätteen käyttökin melko outoa touhua vielä.
Täytyy myöntää että melko mielenkiintoisen projektin olet valinnut itsellesi..  :) Varsinkin jos olet vasta-alkaja..

Noh, kokeile eri vaihtoehtoja, kokeile mitä google tarjoaa.. en oikein tähän hätään osaa parempiakaan neuvoja antaa..  :-\

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #9 : 04.01.07 - klo:20.59 »
Samallaisen linkin tekee sudona ja ilman, kokeilin muutkin noista vaihtoehdoista, ei skulaa.

Mitäköhän meinaa, kun tässä Slackware ohjeessa paketti puretaan /usr/local/src hakemistoon?
http://tuxmobil.org/nokia_d211.html

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #10 : 04.01.07 - klo:21.34 »
Lainaus
1.06
- Changed kernel module location to /lib/modules/<KERNEL_VERSION>/kernel/drivers/net/pcmcia if the directory exists

Eli kokeiles vaihtaa siihen konffi filuun:
Koodia: [Valitse]
ROOTDIR=/lib/modules/2.6.15-27/kernel/drivers/net/pcmcia
(Ja tarkista vielä että tuo hakemisto varmasti löytyy koneeltasi!)


Kokeiles ennen kääntämistä antaa seuraava komento:
Koodia: [Valitse]
make config_install

Lainaus
Mitäköhän meinaa, kun tässä Slackware ohjeessa paketti puretaan /usr/local/src hakemistoon?
Eipä tuolla nyt mitään merkitystä pitäisi olla..
« Viimeksi muokattu: 04.01.07 - klo:21.41 kirjoittanut lunatiC »

T.M

  • Käyttäjä
  • Viestejä: 172
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #11 : 05.01.07 - klo:09.35 »
Google-jelppaa

Nuo nokian puolivillaiset ajurit kelpaavat vain 2.4 sarjan kernelille. Joku taitava sielu on kuitenkin saanu tehtyä uudet ajurit.

http://sourceforge.net/projects/d211

Mitään hajua ei ole ylläolevan projektin toimivuudesta. Asennus näyttäisi menevän kutakuinkin samalla lailla kuin noilla nokian alkuperäisillä ajureilla.

Tietolähde:
http://www.tablix.org/~avian/blog/archives/cat_3/index-page2.html
Google hakusana:
nokia d211 2.6 kernel

« Viimeksi muokattu: 05.01.07 - klo:09.38 kirjoittanut T.M »

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #12 : 05.01.07 - klo:15.51 »
Juu taidatpa muuten olla oikeassa:
http://discussion.forum.nokia.com/forum/archive/index.php/t-81833.html

Jännä että en löytänyt tuosta itse ajuripaketin mukana tulleista ohjeista mitään mainintaa asiasta.. (Tai sitten olen vain sokea?) Noh, tässä sen taas näkee miten hienosti Nokia tukee Linuxia.. :(

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #13 : 05.01.07 - klo:22.31 »
Nyt pitäis olla toi älykkäämpi ajuri harjoittelu välineenä

1.config. mk:
# User Settings EDIT THESE TO MATCH YOUR CONFIGURATION!
# LINUX = /usr/src/linux               # Linux is here
# OS_RELEASE=2.4.12                    # Kernel version for module inst.
# INSTDIR=/sbin                        # Install tools here
# ROOTDIR=/                            # Root for kernel module installation
# SMAC2=d211fw.bin             # Firmware for the card

LINUX = /usr/src/linux-headers-2.6.15-27-386
OS_RELEASE=2.6.15-27-386
ROOTDIR=/lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia
SMAC2=d211fw.bin

# Compiler Settings

CROSS_COMPILE=

LD   = $(CROSS_COMPILE)ld
CC   = $(CROSS_COMPILE)gcc
CPP   = $(CROSS_COMPILE)g++
AR   = $(CROSS_COMPILE)ar
RANLIB   = $(CROSS_COMPILE)ranlib


2.config.mk:
LINUX = /usr/src/linux
OS_RELEASE=2.6.15-27-386
ROOTDIR=/lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia
SMAC2=d211fw.bin

+
tt@tt-laptop:/usr/src/d211_2_6$ sudo ln -s /usr/src/linux-headers-2.6.15-27-386 /usr/src/linux

linkki(rikki) muodostui samallainen, kun ennenkin

molemmilla vaihtoehdoilla kokeillut

tt@tt-laptop:/usr/src/d211_2_6$ make config_install
set -e; for d in scripts; do make -C $d install ; done
make[1]: Siirrytään hakemistoon "/usr/src/d211_2_6/scripts"
if [ -r /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.conf ] ; then cp -f /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.conf /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.conf.old ; fi ;
if [ -r /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.opts ] ; then cp -f /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.opts  /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/nokia_cs.opts.old ; fi ;
cp -f nokia_cs.conf /lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/
cp: target "/lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/" is not a directory: Tiedostoa tai hakemistoa ei ole
make[1]: *** [install] Virhe 1
make[1]: Poistutaan hakemistosta "/usr/src/d211_2_6/scripts"
make: *** [config_install] Virhe 2

Jokohan pitää heittää Nokialaiset seinään, vai vieläkö tähän löytyy lääkettä?


lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #14 : 08.01.07 - klo:06.16 »
Lainaus
cp: target "/lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia/etc/pcmcia/" is not a directory: Tiedostoa tai hakemistoa ei ole
Yrittääpi kopioida hakemistoon jota ei ole olemassakaan. Hmmhmm.. kuuluisikohan tuon scriptin sitten tehdä tuollainen hakemisto mutta siihen ei ole oikeuksia? Koklaapa vaikka sudolla josko lähtis..

Koodia: [Valitse]
sudo make config_install

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #15 : 08.01.07 - klo:17.57 »
Toi anto saman tulosteen

Hakemiston oikeudet laitoin jo alussa kaikille vapaiksi, varmistaakseni ettei niistä tule ongelmia.
Alkaa vaikutta siltä, että tää homma vaatii taitoja ja tietoa huomattavasti enemmän, kun mitä multa löytyy. Ehkä tässä vielä jotain oppii aikaa myöten, mutta tämä projekti tuntuu nyt melko epätoivoiselle.

Kiitoksia avusta.
Jos vielä vinkkejä löytyy, niin olen valmis jatkamaan niin kauan kunnes kaveri hakee koneensa pois.

Toisena vaihtoehtona Wlan käyttöön olis Belkin usb-palikka, johon kyselin neuvoa toisessa aiheessa, ei luultavasti yhtä hankala homma, mutta eipä onnistu sekään.
Olis yksi tyytyväinen Linuxiin siirtyjä, kun sais toisen näistä Wlan-kilkkeistä toimimaan, tai sitten täytyy ehdotella uusien varusteitten hankintaa.
http://forum.ubuntu-fi.org/index.php?topic=7741.0

lunatiC

  • Käyttäjä
  • Viestejä: 459
    • Profiili
    • http://www.hurjatmopoilija.com/
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #16 : 08.01.07 - klo:18.30 »
On nää wlanit hauskoja.. noh, jatekaan sitten tuolla toisessa ketjussa..

T.M

  • Käyttäjä
  • Viestejä: 172
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #17 : 09.01.07 - klo:08.27 »
Noudatithan noita INSTALL ohjeita eli meniko make käsky config-tiedoston editoinnin jälkeen OK ???

Kääntäminenhän sujuisi INSTALL-ohjeen mukaan:

#make
jos menee ilman isompia erroreita niin sen jälkeen
#make install

Jos nämä onnistuivat niin tarvittavat modulit on tehty eli homma on jo aika hyvässä mallissa. Sen jälkeen pitäisi kopioida tarvittavat konffikset.

make config_install kopioi vaan tarvittavat etc-tiedostot ja näemmä skripti on vähän hölmö kun kopioi etc-tuhkat tuonne moduleiden alle. Ne voi kuitenkin yhtä hyvin kopioida käsin asennushakemistosta.

Piti oikein itte kokeilla kääntää noita 2.6 paketteja.
Komensin ensin
#make clean

Sitten joutui hieman kikkailemaan kun mandraken kerneli-viittaus on kovakoodattu käännösskriptiin
src-hakemiston Makefile:ssä on kohta
KERNEL_SRC  joka piti vaihtaa osoittamaan
KERNEL_SRC = /usr/src/linux

Tämän jälkeen
#make
Modulit kääntyivät OK mutta sattuneesta syystä en pääse niitä kokeilemaan enkä viitsi tälle masiinalle heittää make install:ia.
« Viimeksi muokattu: 09.01.07 - klo:08.58 kirjoittanut T.M »

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #18 : 09.01.07 - klo:09.56 »
Koitan illalla päästä kokeilemaan kokonaan uudelleen asennusta puhtaalle käyttikselle.

koomikko

  • Käyttäjä
  • Viestejä: 103
    • Profiili
Re: Nokia D211 PCMCIA Wlan/GPRS toimimaan
« Vastaus #19 : 09.01.07 - klo:23.25 »
tt@tt-laptop:/usr/src/d211_2_6$ sudo make
set -e; for d in src ui control; do make -C $d ; done
make[1]: Siirrytään hakemistoon "/usr/src/d211_2_6/src"
make -C /usr/src/linux-2.6.3-15mdk SUBDIRS=/usr/src/d211_2_6 modules
make: Siirrytään tuntemattomaan hakemistoon
make: *** /usr/src/linux-2.6.3-15mdk: Tiedostoa tai hakemistoa ei ole. Seis.
make: Poistutaan tuntemattomasta hakemistosta
make[1]: *** [modules] Virhe 2
make[1]: Poistutaan hakemistosta "/usr/src/d211_2_6/src"
make: *** [all] Virhe 2
tt@tt-laptop:/usr/src/d211_2_6$

mitä toi mdk meinaa?

tt@tt-laptop:/usr/src$ ls
d211_2_6      linux                    linux-headers-2.6.15-27-386
d211_2_6.zip  linux-headers-2.6.15-27

LINUX = /usr/src/linux
OS_RELEASE=2.6.15-27-386
ROOTDIR=/lib/modules/2.6.15-27-386/kernel/drivers/net/pcmcia
SMAC2=d211fw.bin

Onkohan toi d211fw.bin niin kun pitäis, vai pitäiskö se olla d211_2_6fw.bin? Noi hakemistojen nimet on ainakin erilaiset tässä ja siinä Nokian alkuperäisessä paketissa.