[ltp] T40p and internal Agere System AC'97 modem
David Oesch
linux-thinkpad@linux-thinkpad.org
Thu, 25 Aug 2005 14:41:43 +0200
Michael Stilkerich wrote:
>* David Oesch <doesch@gmx.ch> [2005-08-24 15:39]:
>
>
>>Now should I install the SmartLink driver? (slmodem) I read some people
>>had "lost" their sound card after installation......
>>
>>
>Well, I got it running here (T40p, too). You may choose between the sl-modem
>driver and the intel-8x0m driver that comes with ALSA, it's up to you.
>I use the sl-modem driver since the ALSA driver does not work after suspending
>any more.
>
>In either case, you will require sl-modem-daemon to setup the device and the
>/dev/modem symlink.
>
>For your convenience,
>/etc/default/sl-modem-daemon
>is attached to this email. If you choose the ALSA driver you will need to change
>the SLMODEMD_DEVICE=slamr0 option to SLMODEMD_DEVICE=hw:1.
>
>You probably need to adjust the country, too.
>
>-Mike
>
>
>
>------------------------------------------------------------------------
>
># NOTE: settings in /etc/defautls/slmodemd are used too
>
># set this to 1 to never run the daemon from the init script
>DONTSTART=0
>
># This is the default configuration for the slmodem driver daemon
># running on Debian systems.
>#
># Edit device node and country code here ...
>#
># possible country codes are:
>#
># USA
># GERMANY
># BELGIUM
># etc.
>#
># use 'slmodemd --countrylist' to check out other countries
>#
>#
>#SLMODEMD_DEVICE=slamr0
>#SLMODEMD_COUNTRY=GERMANY
>
>#SLMODEMD_DEVICE=hw:1
>SLMODEMD_DEVICE=slamr0
>SLMODEMD_COUNTRY=GERMANY
>
>#
># Additional options for slmodemd, see "slmodemd -h" output for details.
># Do NOT set country or device if you have selected them via the
># variables above
>
>OPTS=""
>
># force the start of the daemon even if old type modules seem to be
># installed (set it to 1)
>
>FORCESTART=0
>
># set this to not see any hints of the init script on startup
>
># BEQUIET=1
>
># set this to not create the /dev/modem symlink
>
># NOSYMLINK=1
>
>
Michael, Thanks for the hints, but I get the modem not running. I tried
with both kernel sources locations:
KERNEL_DIR:=/lib/modules/2.6.10-isgee-neptun-1/build
KERNEL_DIR:=/usr/src/kernel-source-2.6.10-isgee-neptun-1
the ouput for the latter was:
neptun:/home/opr/slmodem-2.9.10# make install
make -C modem all
make[1]: Entering directory `/home/opr/slmodem-2.9.10/modem'
make[1]: Leaving directory `/home/opr/slmodem-2.9.10/modem'
make -C drivers KERNEL_DIR=/usr/src/kernel-source-2.6.10-isgee-neptun-1
make[1]: Entering directory `/home/opr/slmodem-2.9.10/drivers'
cc -I/usr/src/kernel-source-2.6.10-isgee-neptun-1/include -o kernel-ver
kernel-ver.c
make all KERNEL_VER=2.6.10-isgee-neptun-1
make[2]: Entering directory `/home/opr/slmodem-2.9.10/drivers'
make modules -C /usr/src/kernel-source-2.6.10-isgee-neptun-1
SUBDIRS=/home/opr/slmodem-2.9.10/drivers
make[3]: Entering directory `/usr/src/kernel-source-2.6.10-isgee-neptun-1'
Building modules, stage 2.
MODPOST
make[3]: Leaving directory `/usr/src/kernel-source-2.6.10-isgee-neptun-1'
make[2]: Leaving directory `/home/opr/slmodem-2.9.10/drivers'
make[1]: Leaving directory `/home/opr/slmodem-2.9.10/drivers'
make install -C drivers
KERNEL_DIR=/usr/src/kernel-source-2.6.10-isgee-neptun-1
make[1]: Entering directory `/home/opr/slmodem-2.9.10/drivers'
cc -I/usr/src/kernel-source-2.6.10-isgee-neptun-1/include -o kernel-ver
kernel-ver.c
mkdir -p /dev
mknod -m 600 /dev/slamr0 c 212 0 ; mknod -m 600 /dev/slamr1 c 212 1
; mknod -m 600 /dev/slamr2 c 212 2 ; mknod -m 600 /dev/slamr3 c212 3
; echo -n
mknod -m 600 /dev/slusb0 c 213 0 ; mknod -m 600 /dev/slusb1 c 213 1
; mknod -m 600 /dev/slusb2 c 213 2 ; mknod -m 600 /dev/slusb3 c213 3
; echo -n
make install KERNEL_VER=2.6.10-isgee-neptun-1
make[2]: Entering directory `/home/opr/slmodem-2.9.10/drivers'
install -D -m 644 slamr.ko /lib/modules/2.6.10-isgee-neptun-1/extra/slamr.ko
install -D -m 644 slusb.ko /lib/modules/2.6.10-isgee-neptun-1/extra/slusb.ko
/sbin/depmod -a
make[2]: Leaving directory `/home/opr/slmodem-2.9.10/drivers'
make[1]: Leaving directory `/home/opr/slmodem-2.9.10/drivers'
install -D -m 755 modem/slmodemd /usr/sbin/slmodemd
rm -f -rf /var/lib/slmodem
install -d -D -m 755 /var/lib/slmodem
Trying to Load modem hardware specific kernel module:
modprobe slamr
ends with
FATAL: Error inserting slamr
(/lib/modules/2.6.10-isgee-neptun-1/extra/slamr.ko): Unknown symbol in
module, or unknown parameter (see dmesg)
and the dmsg output is
slamr: Unknown symbol get_device
slamr: Unknown symbol put_device
slamr: Unknown symbol device_release_driver
hmmm any ideas how to proceed?