Xin lo^~i anh Larry, do em copy do`ng ddo' tu+` file readme ne^n mo+'i nhu+ the^' .
Em dda~ complie ddu+o+.c driver , tuy nhie^n modem va^~n kho^ng la`m vie^.c . Anh xem nhu+ sau :
*** Complie driver modem
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# make clean                                   
cd coredrv; make clean
make[1]: Entering directory `/home/kdlc/intel-536EP-2.56.76.0/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/home/kdlc/intel-536EP-2.56.76.0/coredrv'
rm -f *.o *.ko
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# make 536    
   Module precompile check
   Current running kernel is: 2.6.10-1mdk
   /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.10-1mdk
make[1]: Entering directory `/home/kdlc/intel-536EP-2.56.76.0/coredrv'
make -C /lib/modules/2.6.10-1mdk/build SUBDIRS=/home/kdlc/intel-536EP-2.56.76.0/coredrv modules
make[2]: Entering directory `/usr/src/linux-2.6.10-1mdk'
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.o
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function `hamproc_write':
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c:662: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c: At top level:
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c:756: warning: initialization from incompatible pointer type
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c:757: warning: initialization from incompatible pointer type
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c: In function `dspdrv_CommRamISR':
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c:879: warning: function declaration isn't a prototype
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c: At top level:
/home/kdlc/intel-536EP-2.56.76.0/coredrv/coredrv.c:286: warning: 'power_callback' defined but not used
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/clmmain.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/rts.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/task.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/uart.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/wwh_dflt.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/locks.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial_io.o
/home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial_io.c: In function `softserial_write':
/home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial_io.c:94: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial_ioctl.o
  CC [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial.o
/home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial.c: In function `softserial_register_tty':
/home/kdlc/intel-536EP-2.56.76.0/coredrv/softserial.c:125: warning: assignment from incompatible pointer type
  LD [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/Intel536.o
  Building modules, stage 2.
  MODPOST
  CC      /home/kdlc/intel-536EP-2.56.76.0/coredrv/Intel536.mod.o
  LD [M]  /home/kdlc/intel-536EP-2.56.76.0/coredrv/Intel536.ko
make[2]: Leaving directory `/usr/src/linux-2.6.10-1mdk'
make[1]: Leaving directory `/home/kdlc/intel-536EP-2.56.76.0/coredrv'
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# make install
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.6.10-1mdk
installing hamregistry, used for persistant storage
installing Intel 536 driver
mandrake Intel536_boot script
starting module and utilities
done
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# gnome-ppp
GNOME PPP: Đang kết nối...
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.54.0
GNOME PPP: STDERR: --> Cannot open /dev/modem: Bad address
GNOME PPP: Unable to KILL wvdial process!

Em xem la.i trong file readme thi` tha^'y nhu+ sau :
The installation script has been designed for the following distributions
release versions

   mandrake-release
   SuSE-release
   redhat-release
   debian_version (including Corel)
   slackware-version
   conectiva-version
   bluepoint-release
   redflag-release
   Unknown distributions install modules and utilities but
   will not install boot scripts!.

Please examine the Intel536_inst and Intel536_boot scripts if you have a differe
nt distribution.


ATTENTION:  if the driver compiles but the script just wont work for you.
   Here are the bare minimum steps to get your modem to work.

   0.  log in as root.
   1.  insmod -f Intel536.o (Intel536.ko for kernel 2.6)
   2. you can start "hamregistry &" at this point if you wish.
   3.  rm /dev/536ep
   4.  mknod /dev/536ep c 240 1   (note "240" is the default, if it does not
       work see what /proc/devices says 536ep's major number is)
   5.  ln -s /dev/536ep /dev/modem
   6.  start a comm application like minicom and use the modem.
   7.  see section 3 (International Users) for info on setting the correct
       country settings.
Thu+? la`m theo , ke^'t qua? nhu+ sau :

[EMAIL PROTECTED] intel-536EP-2.56.76.0]# insmod -f Intel536.ko
insmod: error inserting 'Intel536.ko': -1 File exists
[EMAIL PROTECTED] intel-536EP-2.56.76.0]#   rm /dev/536ep
rm: remove character special file `/dev/536ep'? y
[EMAIL PROTECTED] intel-536EP-2.56.76.0]#  mknod /dev/536ep c 240 1
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# ln -s /dev/536ep /dev/modem
ln: `/dev/modem': File exists
[EMAIL PROTECTED] intel-536EP-2.56.76.0]# gnome-ppp
GNOME PPP: Đang kết nối...
GNOME PPP: STDERR: --> WvDial: Internet dialer version 1.54.0
GNOME PPP: STDERR: --> Cannot open /dev/modem: Bad address
GNOME PPP: STDERR: --> Cannot open /dev/modem: Bad address
GNOME PPP: STDERR: --> Cannot open /dev/modem: Bad address
GNOME PPP: Unable to KILL wvdial process!
[EMAIL PROTECTED] intel-536EP-2.56.76.0]#

Nhu+ va^.y la`m the^' na`o va^.y anh ?
Em ti'nh thu+? complie driver trong Sarge , nhu+ng la`m the^' na`o dde^? install kernel source trong Sarge a. ?


------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ VietLUG-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vietlug-users

Trả lời cho