comail@comonto-sys:~/Desktop$ sudo alien sm56-85.1-10.i386.rpm
Warning: Skipping conversion of scripts in package sm56: postinst
Warning: Use the --scripts parameter to include the scripts.
sm56_85.1-11_i386.deb generated
comail@comonto-sys:~/Desktop$ sudo alien --scripts sm56-85.1-10.i386.rpm
sm56_85.1-11_i386.deb generated
comail@comonto-sys:~/Desktop$
بسته رو با gdebi نصب کردم اگه منظورت از خروجی چیزهاییه که تو قسمت جزییات نشون میده باید بگم چیز خاصی برای نوشتن نبود اما به دستورات متن زیر عمل کردم ونتیجه ای نگرفتم.
.\" Copyright (C) 2001 Motorola
.\" sm56.4 1.7 2001/03/23 15:00:00
.\"
.TH SM56 4 "2001/03/23 15:00:00" "SM56 Soft Modem"
.SH NAME
sm56 \- Motorola SM56 Soft Modem device driver
.SH SYNOPSIS
.B insmod sm56
.RB [ country=\c
.IR n ]
.SH DESCRIPTION
.B sm56
is the low-level driver for the Motorola V.90 soft modem.
.SH PARAMETERS
.TP
.BI country= n
Selects the default country. The driver will load the correct homologation parameters for this country at load time.
If no country is specified, country = 1 (USA) will be used. The list of valid countries is:
1 = USA
2 = Canada
27 = South Africa
30 = Greece
31 = Netherlands
32 = Belgium
33 = France
34 = Spain
39 = Italy
41 = Switzerland
42 = Czech Republic
43 = Austria
44 = United Kingdom
45 = Denmark
46 = Sweden
47 = Norway
49 = Germany
52 = Mexico
54 = Argentina
55 = Brazil
57 = Columbia
58 = Venezuela
60 = Malaysia
61 = Australia
64 = New Zealand
65 = Singapore
66 = Thailand
81 = Japan
82 = Korea
84 = Vietnam
86 = China
90 = Turkey
351 = Portugal
352 = Luxembourg
353 = Ireland
354 = Iceland
358 = Finland
852 = Hong Kong
886 = Taiwan
962 = Jordan
972 = Israel
.SH INSTALLATION
Installing the SM56 Modem is a two step process. While logged as root:
1. Install the RPM file. Replace sm56.rpm with the real name of the file you obtained. This step is probably already done since this man page is distributed inside the RPM.
rpm -Uvh sm56.rpm
--------------------------------------------------------------------------------------------------------------------
comail@comonto-sys:~$ cd ~/Desktop
comail@comonto-sys:~/Desktop$ sudo alien package_sm56-85.1-10.i386.rpm
[sudo] password for comail:
File "package_sm56-85.1-10.i386.rpm" not found.
comail@comonto-sys:~/Desktop$ sudo alien sm56-85.1-10.i386.rpm
Warning: Skipping conversion of scripts in package sm56: postinst
Warning: Use the --scripts parameter to include the scripts.
sm56_85.1-11_i386.deb generated
comail@comonto-sys:~/Desktop$ sudo alien --scripts sm56-85.1-10.i386.rpm
sm56_85.1-11_i386.deb generated
comail@comonto-sys:~/Desktop$
--------------------------------------------------------------------------------------------------------------------
2. Run the setup program to relink the module to the current kernel version, set the local country code, and create the necessary devices in /dev. The script creates the device /dev/sm56 and the link /dev/modem pointing to it. If a country code is not entered, a default country code of 1 (USA) will be used.
sm56setup [country-code]
--------------------------------------------------------------------------------------------------------------------
comonto@comonto-sys:~$ sudo sm56setup [iran-98]
Motorola SM56 SoftModem Setup for Linux
Building driver...
`/usr/local/sm56/sm56.o' -> `/lib/modules/2.6.22-14-386/kernel/drivers/char/sm56'
Creating device /dev/sm56...
Pointing /dev/modem to /dev/sm56...
Adding SM56 to /etc/conf.modules...
SM56 setup complete.
comonto@comonto-sys:~$
--------------------------------------------------------------------------------------------------------------------
The Motorola SM56 modem is now ready to use. To verify that it is loaded and working properly, use minicom to connect to /dev/modem and issue AT commands to the modem.
سید مهدی داداش معذرت می خوام این چند روزه تو گیر و دار امتحان های سختم بودم نتونستم جواب تو بدم اما نمی دونم اخیرا به ایمیل هات سرزدی یا نه, دوتا فایل گذاشتم خودت یه تستی بکنی و فایل تبدیل شده با بسته alien رو ببینی چون این بسته هایی که alien تبدیل میکنه صرفا برای اینه که بشه نصبش کرد اما هیچ تضمینی برای کارامد بودن اونها نیست چون این بسته مسیر قرارگیری فایل ها رو با توجه به توزیع ای که بسته برای اون طراحی شده قرار میده و اگه اشتباه نکنم معماری مسیر قرارگیری فایل, در توزیع های مختلف خیلی با هم فرق داره و اگه در مسیر درست خودش با توجه به توزیع قرار نگیره نا کارامده.
کلا درایور هایی که برای لینوکس نوشته شده به شرح زیره:
Redhat 7.3 (kernel version 2.4.18-3,sm56-06.05.00-1.rh7.i386.rpm)
Redhat 8.0 (kernel version 2.4.18-14,sm56-06.05.00-1.rh8.i386.rpm)
Redhat 9.0 (kernel version 2.4.20-8,sm56-06.05.00-1.rh9.i386.rpm)
Mandrake Linux 9.2 (kernel version 2.4.22-10mdk, sm56-06.05.02-1.mdk.i586.rpm)
Mandrake Linux 10.0 (kernel version 2.6.3-7mdk, sm56-06.05.02-2.mdk10_263-7.i586.rpm.i586)
Suse 9.0 (kernel version 2.4.21, sm56-06.05.02-1.suse90-020421-99.athlon.rpm)
Suse 9.0 (kernel version 2.4.21, sm56-06.05.02-1.suse90-020421-99.i586.rpm)
من تازه گی ها درایور mandrake رو نصب کردم چون واسه کرنل های 2.6 نوشته شده و خروجی های اونو واست میذارم.
comail@comail-desktop:~/Desktop$ sudo alien --scripts sm56-06.05.02-2.mdk10_263-7.i586.rpm
sm56_06.05.02-3_i386.deb generated
comail@comail-desktop:~/Desktop$ dir
sm56-06.05.00-1.rh9.i386.rpm sm56_06.05.02-3_i386.deb
sm56-06.05.02-2.mdk10_263-7.i586.rpm
comail@comail-desktop:~/Desktop$ sudo dpkg -i sm56_06.05.02-3_i386.deb
Selecting previously deselected package sm56.
(Reading database ... 94855 files and directories currently installed.)
Unpacking sm56 (from sm56_06.05.02-3_i386.deb) ...
Setting up sm56 (06.05.02-3) ...
Generating sm56 with current settings.
`sm56.ko' -> `/lib/modules/2.6.22-14-generic/kernel/drivers/char/sm56.ko'
Installing sm56.
Adding SM56 to /etc/conf.modules...
grep: /etc/conf.modules: No such file or directory
mv: cannot stat `/etc/conf.modules': No such file or directory
Installation successful.
Remember to read the sm56 MAN page for documentation:
man sm56
Please restart the system.
-----------------------------------------------
comail@comail-desktop:~$ sudo wvdialconf
[sudo] password for comail:
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<Info>: Device or resource busy
Modem Port Scan<*1>: S0
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?