Comment 34 for bug 375148

Revision history for this message
Roland Hughes (original-seasoned-geek) wrote : Re: [Bug 375148] Re: no more /dev/ttySL0 device node

First attempt:

============================================
roland@logikaldesktop:~$ cd /usr/src
roland@logikaldesktop:/usr/src$ sudo tar jxvf sl-modem.tar.bz2
[sudo] password for roland:
tar: Record size = 8 blocks
modules/
modules/sl-modem/
modules/sl-modem/ungrab-winmodem/
modules/sl-modem/ungrab-winmodem/Readme.txt
modules/sl-modem/ungrab-winmodem/ungrab-winmodem.c
modules/sl-modem/ungrab-winmodem/Makefile
modules/sl-modem/modem/
modules/sl-modem/modem/modem_param.h
modules/sl-modem/modem/modem_debug.h
modules/sl-modem/modem/modem_dp.h
modules/sl-modem/modem/modem_defs.h
modules/sl-modem/modem/modem.h
modules/sl-modem/modem/modem_timer.h
modules/sl-modem/modem/modem_homolog.h
modules/sl-modem/drivers/
modules/sl-modem/drivers/amrmo_init.c
modules/sl-modem/drivers/st7554.c
modules/sl-modem/drivers/amrlibs.o
modules/sl-modem/drivers/Makefile
modules/sl-modem/drivers/sysdep_amr.c
modules/sl-modem/drivers/kernel-ver.c
modules/sl-modem/drivers/old_st7554.c
modules/sl-modem/debian/
modules/sl-modem/debian/control.modules.in
modules/sl-modem/debian/changelog
modules/sl-modem/debian/sl-modem-modules-_KVERS_.postinst.modules.in
modules/sl-modem/debian/compat
modules/sl-modem/debian/control
modules/sl-modem/debian/copyright
modules/sl-modem/debian/rules
modules/sl-modem/patches/
modules/sl-modem/patches/alsa-linux-2.6.0.patch
roland@logikaldesktop:/usr/src$ cd modules/sl-modem
roland@logikaldesktop:/usr/src/modules/sl-modem$ sudo debian/rules kdist
KVERS=`uname -r` KSRC=/usr/src/kernel-headers-`uname -r`
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/sl-modem'
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean SUPPORT_ALSA=1
make[2]: Entering directory `/usr/src/modules/sl-modem'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/src/modules/sl-modem'
make[1]: [clean] Error 2 (ignored)
cd modem; /usr/bin/make clean SUPPORT_ALSA=1
make[2]: Entering directory `/usr/src/modules/sl-modem/modem'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/src/modules/sl-modem/modem'
make[1]: [clean] Error 2 (ignored)
dh_clean
/usr/bin/make -C drivers clean
make[2]: Entering directory `/usr/src/modules/sl-modem/drivers'
rm -f kernel-ver slamr.o slusb.o slamr.ko slusb.ko *st7554.o amrmo_init.o
sysdep_amr.o *.mod.* .*.cmd *~
rm -f -r .tmp_versions
make[2]: Leaving directory `/usr/src/modules/sl-modem/drivers'
for templ in /usr/src/modules/sl-modem/debian/sl-modem-modules-
_KVERS_.postinst /usr/src/modules/sl-modem/debian/sl-modem-modules-
_KVERS_.postinst.modules.in; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.31-9-generic/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.31-9-generic/g ;s/#KVERS#/2.6.31-9-generic/g ;
s/_KVERS_/2.6.31-9-generic/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g '
< $templ > ${templ%.modules.in}; \
  done
dh_clean -k
dh_installdirs lib/modules/2.6.31-9-generic/misc usr/lib/sl-modem
if ! test -e drivers/Makefile ; then echo "Please update the package, extract
the tarball!"; exit 1 ; fi
/usr/bin/make -C drivers KERNEL_DIR=/usr/src/kernel-headers-2.6.31-9-generic
KVERS=2.6.31-9-generic
make[2]: Entering directory `/usr/src/modules/sl-modem/drivers'
gcc -I/usr/src/kernel-headers-2.6.31-9-generic/include -o kernel-ver kernel-
ver.c
kernel-ver.c: In function ‘main’:
kernel-ver.c:11: error: ‘UTS_RELEASE’ undeclared (first use in this function)
kernel-ver.c:11: error: (Each undeclared identifier is reported only once
kernel-ver.c:11: error: for each function it appears in.)
make[2]: *** [kernel-ver] Error 1
make[2]: Leaving directory `/usr/src/modules/sl-modem/drivers'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/sl-modem'
make: *** [kdist_build] Error 2
roland@logikaldesktop:/usr/src/modules/sl-modem$

============================================

After trying that I tried make only to find out the following:

roland@logikaldesktop:/usr/src/modules/sl-modem$ make clean
make: *** No rule to make target `clean'. Stop.
roland@logikaldesktop:/usr/src/modules/sl-modem$ make
make: *** No targets specified and no makefile found. Stop.
roland@logikaldesktop:/usr/src/modules/sl-modem$ dir
debian drivers modem patches ungrab-winmodem
roland@logikaldesktop:/usr/src/modules/sl-modem$

On Tuesday 01 September 2009 08:30:43 am أحمد المحمودي (Ahmed El-Mahmoudy)
wrote:
> On Tue, Sep 01, 2009 at 12:24:14PM -0000, seasoned_geek wrote:
> > Do I need to do a build then, or just install the source package?
>
> ---end quoted text---
>
> After install sl-modem-source package, you'll then need to build
> following the instructions in
> /usr/share/doc/sl-modem-source/README.Debian
>

--
Roland Hughes, President
Logikal Solutions
(630)-205-1593 (cell)
http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.logikalsolutions.com