LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-06-2003, 10:37 PM   #1
andrewb758
Member
 
Registered: Jan 2003
Location: Columbus, OH USA
Distribution: Debian unstable
Posts: 63

Rep: Reputation: 15
Soft Modem on Inspiron 300m


I would like to get the internal software modem on my Inspiron 300m up and running under Mandrake Linux 9.1, and I've downloaded a few drivers to try out. The bottom of the unit says it has a Broadcom BCM9415M modem inside, and lspci says this for the modem:

00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem (rev 01) (prog-if 00 [Generic])
Subsystem: Broadcom Corporation: Unknown device 4d64
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Interrupt: pin B routed to IRQ 10
Region 0: I/O ports at 2400 [size=256]
Region 1: I/O ports at 2000 [size=128]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

I think the one that has the best hope is one from Dell for a Broadcom modem that is here.
Intel of course has drivers, but I have not had initial success there and I'm frankly not sure which chipset to select at their site. (P.S. Any insight there would be appreciated as well)

I cannot get the Broadcom driver to install successfully. I can get it to compile, using some hacks like this one, I managed to get it to build a workable .spec for my kernel by issuing this command:

make rpm RPM_KERNELS=`uname -r` KERNEL_DIR=/usr/src

Then I copied the .tar.gz file to /usr/src/RPM/SOURCES and issued rpm -ba BCMSM-3.9.14.spec. It built both source and binary RPM. When installing, this is the output:


[root@nala i586]# rpm -Uvh BCMSM-3.4.19-6.i586.rpm
Preparing... ########################################### [100%]
1:BCMSM ########################################### [100%]
mknod: wrong number of arguments
Try `mknod --help' for more information.
chmod: failed to get attributes of `/dev/ttySMconfig': No such file or directory

So, something must be wrong in the %post script of the .spec file. I looked there and it uses an init script to create the /dev node on bootup. The init script follows this message. I cannot figure out how it decides the major/minor numbers of the node. I am not very knowledgeable in that area and I would appreciate any insight into this problem. Forgive me if I went on too long here!
 
Old 09-06-2003, 10:38 PM   #2
andrewb758
Member
 
Registered: Jan 2003
Location: Columbus, OH USA
Distribution: Debian unstable
Posts: 63

Original Poster
Rep: Reputation: 15
/etc/rc.d/init.d/BCMSM

# BCMSM init.d script for RedHat
# Copyright (C) 2000 Broadcom Corporation. All rights reserved.
#
# chkconfig: 12345 99 1
# description: BCM V.92 56K Modem

. /etc/rc.d/init.d/functions

function manage_nodes()
{
# $1 - DEVICE
# $2 - CREATE/REMOVE
create=$2
if [ -z $create ]; then
create="0"
fi
if [ -e /proc/tty/drivers ]; then
MINOR_MATCH_PATTERN=^.*/dev/$1[[:space:]]*[[:digit:]]*[[:space:]]*
MINOR_LIST=`egrep "$MINOR_MATCH_PATTERN" /proc/tty/drivers | sed
"s#$MINOR_MATCH_PATTERN\([0-9\-]*\).*#\1#"`
MINOR_START=`echo $MINOR_LIST | sed 's/\([0-9]*\).*/\1/'`
MINOR_END=`echo $MINOR_LIST | sed 's/\([0-9]*\)-\([0-9]*\).*/\2/'`
else
MINOR_START="0"
MINOR_END="0"
fi
for suffix in "" "audio" "eye" "log" "status"; do
if [ ! -z $suffix ]; then
devname=$1"_"$suffix
else
devname=$1
fi

major=`egrep "$devname$" /proc/devices | sed 's/\([0-9]*\) .*/\1/'`
if [ ! -z $major ]; then
for ((minor=($MINOR_START); ($minor <= $MINOR_END);
minor=($minor + 1))) ; do
devnode=/dev/ttySM$suffix$minor
if [ -e $devnode ]; then
rm -f $devnode
fi
if [ $create = "1" ]; then
mknod $devnode c $major $minor
chmod 666 $devnode
fi
done
fi
done
suffix="config"
devname=$1"_"$suffix
major=`egrep "$devname$" /proc/devices | sed 's/\([0-9]*\) .*/\1/'`
minor=0
devnode=/dev/ttySM$suffix
if [ -e $devnode ]; then
rm -f $devnode
fi
if [ $create = "1" ]; then
mknod $devnode c $major $minor
chmod 666 $devnode
fi
}

if [ ! -e /proc/devices ]; then
exit 0
fi

DEVICE=BCMSM
KERNEL_VERSION=`uname -r`
MODULE_DIR=`echo /lib/modules/$KERNEL_VERSION`


case "$1" in
start)
gprintf "Starting %s: " "$DEVICE"

gprintf "%s " "$DEVICE"

if [ ! -f $MODULE_DIR/modules.dep ]; then
depmod -a
fi

modprobe $DEVICE 2>/dev/null

manage_nodes $DEVICE 1

if [ -e /dev/ttySMconfig ]; then
if [ -f /etc/$DEVICE.conf ]; then
cat /etc/$DEVICE.conf > /dev/ttySMconfig
fi
fi

echo

touch /var/lock/subsys/$DEVICE

;;
stop)
gprintf "Shutting down %s: " "$DEVICE"

if lsmod | grep -q $DEVICE; then
gprintf "%s " "$DEVICE"
if [ -e /dev/ttySMconfig ]; then
cat /dev/ttySMconfig > /etc/$DEVICE.conf
fi

manage_nodes $DEVICE 0

rmmod $DEVICE
fi

echo

rm -f /var/lock/subsys/$DEVICE

;;
restart|reload)
$0 stop
$0 start
;;
*)
gprintf "Usage: start {start|stop|restart|reload}\n"
exit 1
esac

exit 0
 
Old 10-02-2003, 10:54 AM   #3
pqb
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
Unhappy



I have recently installed RH9 on an Inspiron 5150.

I also have the same problem as you had. I can't seem to be able to clear the mknod errors when I write, "service BCMSM start".

Any help on this will be highly appreciated. Thanks in advance.
 
Old 10-03-2003, 07:42 AM   #4
andrewb758
Member
 
Registered: Jan 2003
Location: Columbus, OH USA
Distribution: Debian unstable
Posts: 63

Original Poster
Rep: Reputation: 15
giving up

I gave up on that modem a while ago. I read somewhere that Dell tech support told someone that the BCMSM driver was compatible with the 300m's modem, but I am pretty sure it's not. For one thing, the model numbers are completely different. Also, insmod says "init_module: no such device", which is exactly what it would say when it couldn't find the device it was intended for. I don't think it's worth it to pull my hair out over that thing when it may not even work in the end. I went out and bought a compatible PCMCIA modem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulties in modem instalation Agere systems PCI soft modem mcstanoye SUSE / openSUSE 2 02-01-2007 11:48 AM
The Intel Corp.82801CA/CAM AC'97 Modem (aka Lucent Technologies Soft Modem AMR)works! tarek Linux - Laptop and Netbook 6 03-18-2006 05:05 AM
Internal soft modem (which one?) suro Linux - Hardware 2 04-23-2005 10:42 AM
Slackware 10.1 on Dell inspiron 300M Swift&Smart Slackware 5 04-22-2005 02:00 AM
Dell inspiron 300m with Linux Swift&Smart Linux - Laptop and Netbook 2 11-23-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration