LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1179|回复: 10

特急:ES56T PI(2898)在linux下如何在安装?

[复制链接]
发表于 2003-1-10 01:18:44 | 显示全部楼层 |阅读模式
我的ES56T PI(2898)modem在windows下好用,但在linux下却怎么也安装不上。我用光盘和网上down下的安装程序共计四个,安装个遍,也不能装上。敬请高手指点。
程序包中的readme基本上都是这样的:
1. Type " mkdir " to create a directory " Essmodem"
2. Go into that directory and Type " mcopy a:."
3. Key in " sh mdminstall "
而安装程序则有些不同:
有的是:
rmmod esscom >NULL
insmod esscom
rm /dev/essmodem >NULL
mknod /dev/essmodem c 127 1
rm /dev/modem >NULL
ln -s /dev/essmodem /dev/modem
有这样的:
#!/bin/sh

#This function is modified from the Script implemented by Linmodem.org
fixScript()
{
MI=/tmp/modinfo
DI=/tmp/depinfo

#new kernel version modinfo section
echo -ne "kernel_version="`uname -r`"\0" > $MI

#build the objcopy command
CMD="objcopy"
#for i in `depmod -e $1 | grep -vE "^$1:"` ; do
depmod -e $1 2>$DI
AWKSTR=\$2
for i in `awk "{print $AWKSTR}" $DI | grep _R` ; do
echo doing $i
i1=`echo $i | awk '{
gsub(/_R[0-9a-fA-F]+/,"");
printf("%s", $1);
}'`
echo "i1=" $i1
echo " trunc=\"$i1\""
searchstr=$i1"_R"
echo "searchstr=" $searchstr
new=`cat /proc/ksyms | grep $searchstr | awk "{print $AWKSTR}"`
echo " new=$new"
CMD="$CMD --redefine-sym=$i=$new"
done

#replace the modinfo section with the new one
CMD="$CMD --remove-section=.modinfo --add-section=.modinfo=$MI"
CMD="$CMD $*"

#run the command
echo "CMD:" $CMD
$CMD

#remove the section file
rm -f $MI
rm -f $DI

}

cat <<SHOW
ESS MODEM INSTALLATION PROGRAM
written by Joe <joe_hawk@163.net>

NOTE:
This program need the root privilege.
Check to be sure that you have it.
SHOW

echo "Now will install driver for ES56-PI, ES56V-PI, or ES56T-PI."
echo "Continue?(y/n)"
read choice1
case $choice1 in
y|Y)
echo "Test for system enviroment..."
echo "This driver only supports kernel version 2.2.12-20(or higher)"
echo "And your kernel version is:"
uname -r
echo "Continue?(y/n)"
read choice2
if test $choice2 = "n" ; then
echo "Exiting script..."
exit 1;
elif test $choice2 = "N" ; then
echo "Exiting script..."
exit 1;
elif test $choice2 != "y" -a $choice2 != "Y" ; then
echo "Unrecognizeable input!"
exit 1;
else
echo "Checking module dependence..."
fi
rmmod esscom >NULL
insmod esscom.o
if ! test $? -eq 0 ; then
echo "Adding patch..."
fixScript esscom.o patched_esscom.o
echo "atch added."
cp patched_esscom.o /lib/modules/`uname -r`/misc/esscom.o
insmod esscom
else
echo "Test passed..."
cp esscom.o /lib/modules/`uname -r`/misc/esscom.o
fi
cat <<JOE >loadmod
rmmod esscom >NULL
insmod esscom
JOE

cat <<JOE >freemod
rmmod esscom >NULL
JOE

cat <<JOE >Essuninst
rmmod esscom
rm /dev/essmodem
y
rm /dev/modem
y
rm /lib/modules/`uname -r`/misc/esscom.o
y
JOE

cat <<JOE >readme.txt
Installation over.
Check the command 'lsmod' to see whether esscom has been successfully loaded.
If so,Congratulatoins!
And you can now use minicom and ppp to configure your network!

Later:
Run './loadmod' to load esscom as a module.
And run './freemod' to unload the module esscom.
You can also run './Essuninst' to uninstall the driver.

Please mail to <joe_hawk@163.net> if you encount any problem.
Enjoy it!

Joe Hawk
JOE

chmod 755 loadmod
chmod 755 freemod
chmod 755 Essuninst
rm /dev/essmodem >NULL
mknod /dev/essmodem c 127 1
rm /dev/modem >NULL
ln -s /dev/essmodem /dev/modem
lsmod
echo
echo "Installation over."
echo "lease read the readme.txt in detail."
exit 1
;;
n|N)
echo "Exiting script..."
exit 1
;;
*)
echo "Unrecognizeable input!"
;;
esac
不知这两个程序有什么不一样。
另外:readme中要求建立的目录Essmodem应该建在哪个目录下。我是建在/dev/下的,不知有没有关系?
发表于 2003-1-10 19:47:57 | 显示全部楼层
1. Type " mkdir " to create a directory " Essmodem"
2. Go into that directory and Type " mcopy a:."
3. Key in " sh mdminstall "

这个是把任意建一个目录就行,建在root下也行,把驱动cp到这个目录里,然后执行
#sh mdminstall
 楼主| 发表于 2003-1-11 18:53:59 | 显示全部楼层

我又失败了

南北兄:
我照着你说的去做,还是安装不上啊。显示的信息是:
x行,rmmod command not found
xx行,insmod command not found
就没有了。
我man rmmod和insmod都有说明,为什么会not found呢?
请你帮帮我!
发表于 2003-1-13 10:09:36 | 显示全部楼层
#sh ./mdminstall
这样试一下
 楼主| 发表于 2003-1-13 21:45:31 | 显示全部楼层

非常感谢!

回去我再试试。
但请问南北兄:./是什么意思(我很菜的哟)
发表于 2003-1-23 20:27:19 | 显示全部楼层
版主你好,这种方法我已经试过了但还是一点反映也没有~~!并在我在X下也没有一点响应,请问怎么回事
 楼主| 发表于 2003-1-24 07:49:51 | 显示全部楼层

我还没有装上

试了许多办法都没法装上,看来还是要彻底了解了linux后再来。
发表于 2003-1-24 12:00:17 | 显示全部楼层
把驱动的地址,帖一下,我来试一下。
多谢。
 楼主| 发表于 2003-1-25 07:09:26 | 显示全部楼层

非常感谢

大概有两个地址:
http://andrew.cait.org/ess/      大概在中间位置
http://www.modem-drivers.com/companies/382.htm  (登录:dirvers,all)在这一页第二块兰色表格下,是这样的ESS56T (linux before 2.4) driver esslinux.tar.Z [more] Unix or Linux
 楼主| 发表于 2003-1-25 07:12:28 | 显示全部楼层

不知2898和2839有什么不一样

论坛内有2839的安装例子,但不知道不知2898和2839有什么不一样?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表