Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi guys and linman...
specs::::
my modem: Broadcom Corporation BCM4212 v.90 56k modem
kernel: 2.4.20.8
OS: red hat 9
i used your preocedure and it worked with no problems at all on Red hat 8. now i have upgraded to Redhat 9 and the procedure doesn't work. here's the last lines of output of
"rpmbuild -bb --target i686 BCMSM-3.4.19.spec"
------------------------------
lkvi.c:3671: parse error before "args"
lkvi.c:3672: `args' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_read_config_byte':
lkvi.c:3701: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_read_config_word':
lkvi.c:3710: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_read_config_dword':
lkvi.c:3719: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_write_config_byte':
lkvi.c:3728: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_write_config_word':
lkvi.c:3737: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_pci_write_config_dword':
lkvi.c:3746: `PCIBIOS_SUCCESSFUL' undeclared (first use in this function)
lkvi.c: In function `lkvi_spin_lock_init':
lkvi.c:3882: `spinlock_t' undeclared (first use in this function)
lkvi.c:3882: parse error before ')' token
lkvi.c:3882: `SPIN_LOCK_UNLOCKED' undeclared (first use in this function)
lkvi.c: In function `lkvi_spin_lock_irqsave':
lkvi.c:3887: `spinlock_t' undeclared (first use in this function)
lkvi.c:3887: `lockPtr' undeclared (first use in this function)
lkvi.c:3887: parse error before ')' token
lkvi.c: In function `lkvi_spin_unlock_irqrestore':
lkvi.c:3897: `spinlock_t' undeclared (first use in this function)
lkvi.c:3897: `lockPtr' undeclared (first use in this function)
lkvi.c:3897: parse error before ')' token
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.82167 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.82167 (%install)
-------------------------------------
anyone, and if linman you yourself :-) . i want to get online.
I found the cause of my RPM create problem. And Pisces107, you may have the same. In doing step #5, I did not properly replace the 2.4.18-27.8.0 with my kernel version. I omitted the last '.0' which was causing my RPM build to not 'see' my kernel sources and thus failing the build.
Hopefully that will help you Pisces107.
Now my build has gone perfectly, but when trying to install the built RPM in step 8, I get a 'Segmentation Fault' error.
OK...more work...more progress...still no working modem
I did some searching about my RPM error and ended up at the RPM site and found some instructions about repairing my RPM database. I did that and the install of the RPM worked...sort of...
My error now is:
mknod: wrong number if arguments
Try 'mknod --help' fior more information.
chmod: failed to get attributes of '/dev/ttySMconfig': No such file or directory
I've looked for that file in the '/dev' directory and it's not there, but I am not really sure if it should be or if I'm way off base here.
I'll keep looking by any help from a successful installer would be REALLY helpful
does anybody have/know driver for the modem for Slackware? actually i tried using the same method decsribed here for Slack: the rpm gets build with no errors but when i i try to install (rpm -ihv ...) it right away gives error for "/bin/sh required " . sh is of course installed . doesn anybody have any idea about that?
or better anybody knows where i can get the driver for Slackware?
hmm.. linman your method worked for me fine a while back when i had rh9 on my computer. right now i'm using xp only because when i tried to re-install the driver it did not for some strange reason.. one thing i did figure out was that linux must be bookted up with the default kernel only.. for example if you end up booting linux with 2.4.2-80bigmem or some other modified kernel the driver will not work. still it remains a mystery to me why the driver would not probably install itself the 2nd time i tried to.. also what is the update on slackware 9.0 installing the driver via RPM produces no results..
due to some wiring problems in my phone line my 56k modem does not connect at high speeds anymore which really blows because i'm surfing at an average speed of 28k - 32k very slow and very time consuming. anybody know what's up.. or how i can go about fixing this problem?
for this very reason if i were to get the broadcom modem working under linux then the internet connection would be some what better even if the connection remained within the 28k - 32k range since everythings faster under linux :-)
to install modem on Redhat 9 and it worked perfectly fine. but now, in Slack, that method doesn't work ; the rpm file gets generated but it doesn't get installed, it complains for " /bin/sh" required .
using the same method but this time i didn't make the rpm rather did the /make make install thing for Redhat 5/6 ". this time it made /dev/ttySM0 device and i started the BCMSM. ins short, in the kppp --> Modem-->Query, it detedcts the modem fine. but when i connect, the following error message pops up:
-------------------------------------
The pppd died unexpectedly.
Exit status:1
See man pppd
--------------------------------------
does anybody know, how to workaround that out? to me, it looks like modem is working but the pppd daemon is getting int the way.
hi,
as stated previously, i could get the modem driver compile and in kppp, 'Query Modem' does detects modem. and even, it dials but spits out the following error message:
-------------------------------------
The pppd died unexpectedly.
Exit status:1
See man pppd
%%% and when i click details. it shows this:
... pppd[826] : couldn't set tty to PPP discipline : Invalid argument
--------------------------------------
any ideas, what is that & why it is complaining?
thanks.
I'm a complete newbie and as such have no clue what i'm doing but i'm learning, at the moment though i have exactly the same problem wit hthe same modem, it won't work, i want to fix the problem myself but i installed mandrake with only the first 2 cds and as such have to d/l the 3rd for the kernel sources (only 36 horus left) . Does anyone have an install-ready copy of the driver for mandrake 9.2 (kernel version = 2.4.22.10mdk)? if so could you please e-mail it to david.goodfield@virgin.net
it's incredibly hard to learn how to use Linux when i have to read the articles booted in XP
Dear Linman,
I did as said by you in mandrake linux 9.2. Though I could get RPM made, while installing rpm I get mknod error and also ttySMconfig not found error. Doesit have anything to do with devfs to make device files which is default in mandrake. If so how to proceed. I want to solve the error of mknod.
The problem stated by al_chemyst is exactly the end problem that I had after following the instructions. BTW...I'm running Fedora Core 1, which is really, RedHat 10, as someone else pointed out.
Here's my errors:
[root@church i686]# rpm -ivh --replacepkgs BCMSM-3.4.19-6.i686.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
I'd sure appreciate any help in solving this problem.
Thanks in advance!
johnfg
P.S. I just did everything all over again, and still came up with the same error message. So, I didn't make a mistake in following the instructions. Perhaps there's a difference in Fedora vs. Mandrake?
Linman,
Thank you for your tutorial. I followed it and got my modem working. I am now able to surf from my Linux system.
I am new to Linux and have installed Mandrake 9.1, I've been visiting this site to get a lot of my problems resolved and I finally decided to register here.
I do have a problem with '/dev/modem'. After I completed step 8 in your tutorial and typed ls -l /dev/modem, I do see lr-xr-xr-x 1 root root 11 sep 8 17:47 /dev/modem -> /dev/ttySM0. I then use KPPP to connect to the internet. But after I disconnect and comebacj later and try to connect to the internet, it says that the modem is not found and ls -l /dev/modem does not list anything.
I have to then run step 8 again and then run KPPP. How do I make the /dev/modem entry permanent?
Thanks.
LinNut.
--------------------------------------------------------------------------------------
8.- Move to /usr/src/RPM/RPMS/i686 and type rpm -ivh --replacepkgs BCMSM-3.4.19-6.i686.rpm, you will get something like this:
Preparing... ########################################### [100%]
1:BCMSM ########################################### [100%]
...thats it.
type ls -l /dev/modem and you have to see something like this lr-xr-xr-x 1 root root 11 sep 8 17:47 /dev/modem -> /dev/ttySM0. If you have it but it is backgrounded in red there must be a problem. In my system /dev/modem appears colored in light blue and /dev/ttySM0 in yellow. Now use kppp to setup your internet connection and thats it.
----------------------------------------------------------------------------------------
right, I know that this thread is 'dead', though, Im still having problems with my modem, and they need to be sorted out. sorry :P .
Well, I say with my modem, not really, with the software Im using. basicly, I've managed to do everything up to stage 8, and when I do ls
-l /dev/modem it comes out as linman has said, with the colours. so, I know that my modem is working. but, linman says use kppp. Slight problem there, I dont have kppp. I have madrake 9.1, and KDE but not kppp.
Im not a complete n00b, so I started looking for other dialing programs. the first one I found was 'drakconnect'. to put a long story short, its b0rked. everytime I click on connect, it searchs for a modem, even though I alredy have it installed, and then, once the detection has finished, it asks me if i want to connect, I say yes, then it starts the detection proccess again. so, my final question is, what do I do, or, were do I get kppp from?
many thanks.
If you get errors try to uninstall the driver and delete any traces of files left by the installation process, i have tried that several times and worked, also be sure of not having another driver of the bcmsm in conflict. I am not an expert at linux so i will try to help you as long as my experience allows me to.
if you are looking for kernel sources or utilities like kppp try http://rpmfind.net
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.