Kompajliranje driver-a za modem 536EP

Onda je SUSE valjda nesto zglajz’o… :slight_smile:
Zbog toga valja mi skidat’ gcc 3.3.6 :slight_smile: :slight_smile:

Skinuo sam gcc-3.3.6 i instalirao sa ovim opcijama:

$ /opt/gcc3/bin/gcc -v Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.6/specs Configured with: ./configure --enable-threads=posix --prefix=/opt/gcc3 --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux --with-languages=c : (reconfigured) ./configure --enable-threads=posix --prefix=/opt/gcc3 --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux --with-languages=c Thread model: posix gcc version 3.3.6
Onda sam kompajlirao novi kernel, ali make 536 mi sada prijavljuje ovu gresku:

$ make 536 Module precompile check Current running kernel is: 2.6.13-gcc334-15-smp /lib/modules... autoconf.h exists diff: /boot/vmlinuz.autoconf.h: No such file or directory autoconf.h matches running kernel diff: /boot/vmlinuz.version.h: No such file or directory version.h matches running kernel uname -r|grep "2.6" && \ cd coredrv && make 536core_26 && \ cp Intel536.ko .. && cd .. && \ strip --strip-debug Intel536.ko && \ exit; \ ls Intel536.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \ if [ ]; then \ cd coredrv; make TARGET=TARGET_SELAH KERNEL_SOURCE_PATH= "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \ else \ cd coredrv; make TARGET=TARGET_SELAH KERNEL_INCLUDES=/lib/modules/`uname -r`/build/include \ "PSTN_DEF=-DTARGET_SELAH -DTARGET_LINUX -DLINUX" 536core; \ fi ; \ cp Intel536.o .. ; \ if [ -a /boot/vmlinuz.version.h ]; then \ cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\ fi 2.6.13-gcc334-15-smp make[1]: Entering directory `/home/kuca/Intel-536/coredrv' make -C /lib/modules/2.6.13-gcc334-15-smp/build SUBDIRS=/home/kuca/Intel-536/coredrv modules make[2]: Entering directory `/usr/local/src/kernel/linux-2.6.13-15-gcc334' CC [M] /home/kuca/Intel-536/coredrv/locks.o /home/kuca/Intel-536/coredrv/locks.c:85: error: conflicting types for ‘linux_MT_AcquireLock_clm_bg’ /home/kuca/Intel-536/coredrv/lock_lin.h:120: error: previous declaration of ‘linux_MT_AcquireLock_clm_bg’ was here /home/kuca/Intel-536/coredrv/locks.c:86: error: conflicting types for ‘linux_MT_ReleaseLock_clm_bg’ /home/kuca/Intel-536/coredrv/lock_lin.h:121: error: previous declaration of ‘linux_MT_ReleaseLock_clm_bg’ was here /home/kuca/Intel-536/coredrv/locks.c:87: error: conflicting types for ‘linux_MT_AcquireLock_timer_task’ /home/kuca/Intel-536/coredrv/lock_lin.h:122: error: previous declaration of ‘linux_MT_AcquireLock_timer_task’ was here /home/kuca/Intel-536/coredrv/locks.c:88: error: conflicting types for ‘linux_MT_ReleaseLock_timer_task’ /home/kuca/Intel-536/coredrv/lock_lin.h:123: error: previous declaration of ‘linux_MT_ReleaseLock_timer_task’ was here /home/kuca/Intel-536/coredrv/locks.c:89: error: conflicting types for ‘linux_MT_AcquireLock_PortQIn’ /home/kuca/Intel-536/coredrv/lock_lin.h:98: error: previous declaration of ‘linux_MT_AcquireLock_PortQIn’ was here /home/kuca/Intel-536/coredrv/locks.c:90: error: conflicting types for ‘linux_MT_ReleaseLock_PortQIn’ /home/kuca/Intel-536/coredrv/lock_lin.h:99: error: previous declaration of ‘linux_MT_ReleaseLock_PortQIn’ was here /home/kuca/Intel-536/coredrv/locks.c:91: error: conflicting types for ‘linux_MT_AcquireLock_PortQOut’ /home/kuca/Intel-536/coredrv/lock_lin.h:100: error: previous declaration of ‘linux_MT_AcquireLock_PortQOut’ was here /home/kuca/Intel-536/coredrv/locks.c:92: error: conflicting types for ‘linux_MT_ReleaseLock_PortQOut’ /home/kuca/Intel-536/coredrv/lock_lin.h:101: error: previous declaration of ‘linux_MT_ReleaseLock_PortQOut’ was here /home/kuca/Intel-536/coredrv/locks.c:95: error: conflicting types for ‘linux_MT_AcquireLock_LAPMrx_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:92: error: previous declaration of ‘linux_MT_AcquireLock_LAPMrx_que’ was here /home/kuca/Intel-536/coredrv/locks.c:96: error: conflicting types for ‘linux_MT_ReleaseLock_LAPMrx_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:93: error: previous declaration of ‘linux_MT_ReleaseLock_LAPMrx_que’ was here /home/kuca/Intel-536/coredrv/locks.c:97: error: conflicting types for ‘linux_MT_AcquireLock_LAPMtx_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:94: error: previous declaration of ‘linux_MT_AcquireLock_LAPMtx_que’ was here /home/kuca/Intel-536/coredrv/locks.c:98: error: conflicting types for ‘linux_MT_ReleaseLock_LAPMtx_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:95: error: previous declaration of ‘linux_MT_ReleaseLock_LAPMtx_que’ was here /home/kuca/Intel-536/coredrv/locks.c:99: error: conflicting types for ‘linux_MT_AcquireLock_LAPMemptied_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:96: error: previous declaration of ‘linux_MT_AcquireLock_LAPMemptied_que’ was here /home/kuca/Intel-536/coredrv/locks.c:100: error: conflicting types for ‘linux_MT_ReleaseLock_LAPMemptied_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:97: error: previous declaration of ‘linux_MT_ReleaseLock_LAPMemptied_que’ was here /home/kuca/Intel-536/coredrv/locks.c:101: error: conflicting types for ‘linux_MT_AcquireLock_dce_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:110: error: previous declaration of ‘linux_MT_AcquireLock_dce_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:102: error: conflicting types for ‘linux_MT_ReleaseLock_dce_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:111: error: previous declaration of ‘linux_MT_ReleaseLock_dce_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:103: error: conflicting types for ‘linux_MT_ReleaseLock_dce_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:113: error: previous declaration of ‘linux_MT_ReleaseLock_dce_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:104: error: conflicting types for ‘linux_MT_AcquireLock_dce_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:112: error: previous declaration of ‘linux_MT_AcquireLock_dce_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:107: error: conflicting types for ‘linux_MT_AcquireLock_mt_dsp’ /home/kuca/Intel-536/coredrv/lock_lin.h:124: error: previous declaration of ‘linux_MT_AcquireLock_mt_dsp’ was here /home/kuca/Intel-536/coredrv/locks.c:108: error: conflicting types for ‘linux_MT_ReleaseLock_mt_dsp’ /home/kuca/Intel-536/coredrv/lock_lin.h:125: error: previous declaration of ‘linux_MT_ReleaseLock_mt_dsp’ was here /home/kuca/Intel-536/coredrv/locks.c:109: error: conflicting types for ‘linux_AcquireLock_rts1’ /home/kuca/Intel-536/coredrv/lock_lin.h:128: error: previous declaration of ‘linux_AcquireLock_rts1’ was here /home/kuca/Intel-536/coredrv/locks.c:110: error: conflicting types for ‘linux_ReleaseLock_rts1’ /home/kuca/Intel-536/coredrv/lock_lin.h:129: error: previous declaration of ‘linux_ReleaseLock_rts1’ was here /home/kuca/Intel-536/coredrv/locks.c:111: error: conflicting types for ‘linux_AcquireLock_data_to_user’ /home/kuca/Intel-536/coredrv/lock_lin.h:126: error: previous declaration of ‘linux_AcquireLock_data_to_user’ was here /home/kuca/Intel-536/coredrv/locks.c:112: error: conflicting types for ‘linux_ReleaseLock_data_to_user’ /home/kuca/Intel-536/coredrv/lock_lin.h:127: error: previous declaration of ‘linux_ReleaseLock_data_to_user’ was here /home/kuca/Intel-536/coredrv/locks.c:115: error: conflicting types for ‘linux_MT_AcquireLock_dte_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:102: error: previous declaration of ‘linux_MT_AcquireLock_dte_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:116: error: conflicting types for ‘linux_MT_ReleaseLock_dte_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:103: error: previous declaration of ‘linux_MT_ReleaseLock_dte_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:117: error: conflicting types for ‘linux_MT_AcquireLock_dte_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:104: error: previous declaration of ‘linux_MT_AcquireLock_dte_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:118: error: conflicting types for ‘linux_MT_ReleaseLock_dte_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:105: error: previous declaration of ‘linux_MT_ReleaseLock_dte_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:119: error: conflicting types for ‘linux_MT_AcquireLock_acu_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:106: error: previous declaration of ‘linux_MT_AcquireLock_acu_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:120: error: conflicting types for ‘linux_MT_ReleaseLock_acu_rx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:107: error: previous declaration of ‘linux_MT_ReleaseLock_acu_rx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:121: error: conflicting types for ‘linux_MT_AcquireLock_acu_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:108: error: previous declaration of ‘linux_MT_AcquireLock_acu_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:122: error: conflicting types for ‘linux_MT_ReleaseLock_acu_tx_buffer’ /home/kuca/Intel-536/coredrv/lock_lin.h:109: error: previous declaration of ‘linux_MT_ReleaseLock_acu_tx_buffer’ was here /home/kuca/Intel-536/coredrv/locks.c:123: error: conflicting types for ‘linux_MT_AcquireLock_received_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:114: error: previous declaration of ‘linux_MT_AcquireLock_received_que’ was here /home/kuca/Intel-536/coredrv/locks.c:124: error: conflicting types for ‘linux_MT_ReleaseLock_received_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:115: error: previous declaration of ‘linux_MT_ReleaseLock_received_que’ was here /home/kuca/Intel-536/coredrv/locks.c:125: error: conflicting types for ‘linux_MT_AcquireLock_emptied_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:116: error: previous declaration of ‘linux_MT_AcquireLock_emptied_que’ was here /home/kuca/Intel-536/coredrv/locks.c:126: error: conflicting types for ‘linux_MT_ReleaseLock_emptied_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:117: error: previous declaration of ‘linux_MT_ReleaseLock_emptied_que’ was here /home/kuca/Intel-536/coredrv/locks.c:129: error: conflicting types for ‘linux_MT_AcquireLock_transmit_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:118: error: previous declaration of ‘linux_MT_AcquireLock_transmit_que’ was here /home/kuca/Intel-536/coredrv/locks.c:136: error: conflicting types for ‘linux_MT_ReleaseLock_transmit_que’ /home/kuca/Intel-536/coredrv/lock_lin.h:119: error: previous declaration of ‘linux_MT_ReleaseLock_transmit_que’ was here make[3]: *** [/home/kuca/Intel-536/coredrv/locks.o] Error 1 make[2]: *** [_module_/home/kuca/Intel-536/coredrv] Error 2 make[2]: Leaving directory `/usr/local/src/kernel/linux-2.6.13-15-gcc334' make[1]: *** [536core_26] Error 2 make[1]: Leaving directory `/home/kuca/Intel-536/coredrv' 2.6.13-gcc334-15-smp Failed to build driver
Je li to moja greska (prilikom instaliranja kernela&gcc-a) ili nesto drugo? Za kernel sam koristio iste opcije kao i trenutnog kernela.

Ovako, nadam se da si pratio ona gore uputstva za kompajliranje kernela sa starim GCC-om:

Nije zgoreg pogledati ni:
http://start.linux.org.ba/Kernel (pogotovo Raspakivanje_kernel_arhive)

Čini mi se da nisi uradio export CC=/opt/gcc3/bin/gcc prilikom kompajliranja drajvera (drajver i kernel moraš kompajlirati sa istim GCC-om)
Sam Intel536ep drajver ne bi trebao imati nikakvih problema sa nalaženjem source koda novog kernela jer koristi standardni pristup, nešto slično ovome:

Gdje očigledno već moraš imati sistem pokrenut pod novim kernelom.

Uradio sam export CC=/opt/gcc3/bin/gcc prije kompajliranja i drivera i kernela. Ne radi :slight_smile:

P.S. Postoji li ekvivalent Intelovim driverima? Bilo kakav?

postoji mandriva FREE 2006 kao ekvivalent suse-u

Pa valja mi nabavit’ Mandrivu… Iako sam sa Mandrake 10.1 imao pravo “finih” iskustava :slight_smile:

Ja sam uspeo da sredim 536ep i veoma lepo radi na SuSE 10.0

Digo sam driver na rapidshare
Link: http://rapidshare.de/files/8916571/intel-536ep-4.69.tgz.html
Procedura je sledeca (morate biti ulogovani kao root):
make clean
make 536
make install prijavljuje gresku (nepoznata distribucija, modul nije uchitan i sl) Install skritpu treba korigovati al ja sam to odradio drugacije.

Editujte /etc/init.d/boot.local :
Quote:

#! /bin/sh

Copyright © 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.

Author: Werner Fink werner@suse.de, 1996

Burchard Steinbild, 1996

/etc/init.d/boot.local

script with local commands to be executed from init on system startup

Here you should add things, that should happen directly after booting

before we’re going to the first run level.

insmod -f /lib/modules/$(uname -r)/kernel/drivers/char/Intel536.ko
Intel536 module should be loaded
modprobe -f Intel536
mknod /dev/536ep c 240 1
chmod g+w /dev/536ep
chgrp dialout /dev/536ep
rm -f /dev/modem
ln -sv /dev/536ep /dev/modem

Restartujte.
Kod podesavanja konekcije za modem obavezno odaberite /dev/modem .
Mala napomena vezana za kinternet. Yast vam nece dozvoliti da podesite isti dok ne instalirate onaj shugavi driver koji ne radi. Posto i ovako i onako ne radi mozete slobodno da ga instalirate.

P.S. Ne zamerite, ne ispavan sam a i nisam neki expert za linux. Mozda ce neko struchniji naci bolji nachin da podesi boot i install skriptu. U svakom slucaju meni ovako radi.

Konacno na internetu sa LINUX sistemom! Hvala svima! :wink:

P.S. Pitanje za negovana: ovi driveri: jesu li oni patchani, ili neka spec verzija (pokusao sam i 4.69 na SUSE 10, i patchane i non-patchane, ali nisu radili…)?

Imam SuSE 10.0 EVAL i Intel536ep modem
skidao sam razne drajvere sa neta ali mi uvek javlja gresku prilikom make 536:
gcc: …/inc: No such file or directory
instlirao sam sve kernel development pakete sa DVD-a

Jel moze neko da okaci drajvere koje je negovan postavio na rapidshare pa da probam sa njima?

http://wiki.linux.org.ba/I536ep

Probao sam drajvere sa intelovog sajta i sa Phelipe-ovog ali isti je problem kao i pre,
a drajver koji je na distribuciji nikako da nateram da radi,
uspeo sam da ucitam drajver ali kada kliknem na ModemQuery sva polja budu prazna,
a ako kliknem na konekt u kppp-u blokira se racunar,tako da sam obrisao taj drajver koji je na DVD-u.

Definitivno je neki paket u pitanju za gcc,
samo pitanje je koji.