LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 04-12-2004, 08:53 AM   #46
whtriced
LQ Newbie
 
Registered: Mar 2004
Location: Central New York, USA
Distribution: Fedora yarrow
Posts: 14

Rep: Reputation: 0
Cool




Too cool for school, Linman,
After punting myself with a couple of silly errors, and step skipping, I was able
to use your tutorial to get my modem up and running.

The details:
Dell Dimension 2.4 Desktop
Fedora Core 1 kernel-2.4.22-1.2115.nptl.
And the wonderful Bcom v.92 56k Modem WooHoo

A question, though. Why did the person that wrote the driver include
a hard coded version of the kernel? Why not use the uname -r option in
the specs sheet as well? Just thinking out loud.

Thanks for all of the help everyone. Your posts definitely help us Noobs
get where we need to go. Now I'm off to the Evolution and hostname
threads.

Have a great day, ya'll
D
 
Old 04-16-2004, 06:15 PM   #47
zakoukou
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
hi guy
iam like u i have a dell dimension 2.66 256 mo ram with a 'Bcom v.92 56k Modem '
i installed mandrake 10 everythinh worked perfectly but i can' t surf the net
plz can u help me
i am really new in linux , i installed with the help of my friend
plz can write the complete steps to install the driver of my modem ,
i'd die to surf under llinux
plz help me
thanxs
ciao
 
Old 04-18-2004, 12:48 PM   #48
NguyenAnhHoang
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Hi Everyone,

I have the same problem as al_chemyst's. I am using ManDrake 9.2, and its kernel is 2.24.22-26mdk( mknod ... of step 7 from Linman). If anyone has a fix, please post up here.

HN
 
Old 04-19-2004, 11:53 PM   #49
whtriced
LQ Newbie
 
Registered: Mar 2004
Location: Central New York, USA
Distribution: Fedora yarrow
Posts: 14

Rep: Reputation: 0
Arrow

Go to post #2 in this thread and follow the steps outlined by Linman. It's a pretty thorough tutorial. You will have to do a little searching for the RPMS files and spec files if you aren't using the exact distro quoted there, but if I can do it, you will be able to also.

D
 
Old 04-20-2004, 03:36 AM   #50
NguyenAnhHoang
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Hi Whtricea,

Thank for the reply. I went throught several times the instruction from post #2 from Linnam. I even went to the folder that contain source and object file, and I tried to execute the shell script in there. I could go to step by step to execute the shell script, but I hope if someone has a solution, she/he could post here.

Last edited by NguyenAnhHoang; 04-20-2004 at 03:37 AM.
 
Old 04-20-2004, 02:38 PM   #51
whtriced
LQ Newbie
 
Registered: Mar 2004
Location: Central New York, USA
Distribution: Fedora yarrow
Posts: 14

Rep: Reputation: 0
If you post the steps that you went through and the error messages that you got, it will be easier to find the answer to your question.
 
Old 04-21-2004, 11:42 PM   #52
NguyenAnhHoang
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Hi Whriced,

I stepped through the BCMSM from init.d folder. I noticed the reason I get an error at mknod ( missing an argument) when it executes
mknod /dev/ttySMconfig c $major $minor.

The variable of major is NULL after it egrep BCMSM_config from /proc/devices .

Can you copy and paste your /proc/devices in this forum?

I can not uninstall the package because I want to start fresh. Do you know how the rpm -ivh *.rpm work. I assume it install then execute but I want to know its steps.

What is variable major and minor supposed to be? Can you go the BCMSM script and echo $major and $minor before the line
mknod /dev/ttySMconfig c $major $minor

Thanks
 
Old 04-28-2004, 07:48 AM   #53
darkone66669
Member
 
Registered: Mar 2004
Distribution: Fedora 10
Posts: 85

Rep: Reputation: 15
Well I thought I had my modem working but I don't....I got the RPM built and it didn't give me any errors but when I ran the RPM I got this can you tell me what is wrong maybe some tips on how to fix

BCMSM-3.4.19-6.i686.rpm BCMSM-debuginfo-3.4.19-6.i686.rpm
[root@localhost 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[root@localhost i686]#


and mknod –help was not any help
 
Old 04-28-2004, 08:57 AM   #54
johnfg
LQ Newbie
 
Registered: Mar 2004
Location: Hazelton, Idaho USA
Posts: 15

Rep: Reputation: 0
That's the question we all keep asking! And it's a question that hasn't been answered! And it's a question that's getting more and more frustrating! Help us, please!
 
Old 04-28-2004, 02:54 PM   #55
NguyenAnhHoang
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
OK, I try to do, but it does not work. I think when it tries to load the module BCMSM.o, it fails; so the modem device can not be loaded to /proc/devices. Then it creates the mknod by reading the /proc/devices to get the major variable. The major variable is NULL. Therefore mknod complains " wrong number arguments )

From the link of Linman, I see the readme find. I think you should check to make sure your chip work with the code or not.

" Note that Dell started shipping new Broadcom modems that are not compatible with
this driver. To test your modem version, check the output of the command
"/sbin/lspci -vv" and compare its modem section with mine:
--
01:04.0 Modem: Broadcom Corporation BCM v.90 56k modem (rev 02) (prog-if 00 [Generic])
Subsystem: Dell Computer Corporation: Unknown device 0001
--
If it's a similar match, you can use this driver. But, if your lspci says something
like:
--
00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem (rev 02) (prog-if 00 [Generic])
Subsystem: Broadcom Corporation: Unknown device 4d64
--
then, this driver may not work for you. "
 
Old 04-28-2004, 05:57 PM   #56
johnfg
LQ Newbie
 
Registered: Mar 2004
Location: Hazelton, Idaho USA
Posts: 15

Rep: Reputation: 0
OK, here's the output of the command. So what am I, sunk? Any other ideas?

00:1f.6 Modem: Intel Corp. 82801DB (ICH4) AC'97 Modem Controller (rev 02) (prog-if 00 [Generic])
Subsystem: Broadcom Corporation: Unknown device 4d64.

BTW...Thanks for the reply. Still looking for help and ANSWERS!
 
Old 06-27-2004, 12:05 PM   #57
phreakblaze
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
slack

got it to work, kinda it says it can't find /etc/rc.d/init.d/functions

Last edited by phreakblaze; 06-27-2004 at 10:36 PM.
 
Old 07-01-2004, 03:43 AM   #58
deftone
LQ Newbie
 
Registered: Apr 2004
Location: MX
Posts: 14

Rep: Reputation: 0
kernel 2.6.3-4mdk

my system is mandrake 10 and my kernel is 2.6.3-4mdk

i have done the tutorial of linman now everything is ok until step 7 the file doesnt appear; i have the kernel sources, i modify the BCMSM-3.4.19 file, y dont have /dev/modem. i dont know maybe is the kernel version, any way here is the whole text


[root@localhost 1auno]# rpmbuild --rebuild BCMSM-3.4.19-6.src.rpm
Installing BCMSM-3.4.19-6.src.rpm
.................................................................................................... .................................................................................................... ..
[root@localhost SPECS]# chmod 666 BCMSM-3.4.19.spec
-------then i change the 2.4.18-27.8.0 to 2.6.3-4mdk
[root@localhost SPECS]# ls -l /dev/modem
ls: /dev/modem: No such file or directory
-------here i dont known why but im in the folder SPECS and when type the next line
[root@localhost SPECS]# rpmbuild -bb --target i686 BCMSM-3.4.19.spec
-----it runs, but when i copy the text appears like this
[root@localhost 1auno]# rpmbuild --rebuild BCMSM-3.4.19-6.src.rpm
Installing BCMSM-3.4.19-6.src.rpm
.................................................................................................... .................................................................................................... ...................
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.57736 (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.57736 (%install)
[root@localhost SPECS]# ls -l /usr/src/RPM/RPMS/i686
total 0
[root@localhost SPECS]#

also. if want to install it again whichs files or folder should i remove?

please, i really apreciate your help
 
Old 07-01-2004, 01:19 PM   #59
phreakblaze
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
after you do the "rpmbuild -bb thing, you may want to check your /usr/src/rpm/build folder instead and follw the instruction for a redhat 5/6 install, if all works correctly, you may have make your /dev/modem link on your own, and find a way to make it start /etc/rc.d/init.d.BCMSM every time you boot up, don't worry about the "file /etc/rc.d/init.d/functions is not found" error you might get
 
Old 07-02-2004, 12:16 AM   #60
deftone
LQ Newbie
 
Registered: Apr 2004
Location: MX
Posts: 14

Rep: Reputation: 0
Unhappy

these lines are different from the linman tutorial, can somebody explain me whats going on?


Building Linux Kernel Version Independent layer for this system..
gcc -minline-all-stringops -D__KERNEL__ -DMODULE -I/usr/src/linux-2.6.3-4mdk/include -O2 -o lkvi.o -c lkvi.c
In file included from lkvi.c:21:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error " instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
lkvi.c:149: warning: data definition has no type or storage class
lkvi.c: In function `lkvi_inc_mod_use_count':
lkvi.c:635: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.3-4mdk/include/linux/module.h:502)
lkvi.c: In function `lkvi_dec_mod_use_count':
lkvi.c:642: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.3-4mdk/include/linux/module.h:514)
lkvi.c: In function `lkvi_tty_driver__open':
lkvi.c:832: error: structure has no member named `device'
lkvi.c:833: error: structure has no member named `device'
lkvi.c: In function `lkvi_tty_driver_init':
lkvi.c:1656: warning: assignment makes integer from pointer without a cast
lkvi.c:1657: error: structure has no member named `table'
In file included from /usr/src/linux-2.6.3-4mdk/include/linux/irq.h:20,
from /usr/src/linux-2.6.3-4mdk/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.3-4mdk/include/linux/interrupt.h:11,
from lkvi.c:2822:
/usr/src/linux-2.6.3-4mdk/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux-2.6.3-4mdk/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.3-4mdk/include/linux/interrupt.h:11,
from lkvi.c:2822:
/usr/src/linux-2.6.3-4mdk/include/linux/irq.h: At top level:
/usr/src/linux-2.6.3-4mdk/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux-2.6.3-4mdk/include/linux/irq.h:72,
from /usr/src/linux-2.6.3-4mdk/include/asm/hardirq.h:6,
from /usr/src/linux-2.6.3-4mdk/include/linux/interrupt.h:11,
from lkvi.c:2822:
/usr/src/linux-2.6.3-4mdk/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux-2.6.3-4mdk/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)
lkvi.c: In function `lkvi_isr_obtain':
lkvi.c:2877: warning: passing arg 2 of `request_irq' from incompatible pointer type
lkvi.c: In function `lkvi_obtain_region':
lkvi.c:2903: warning: `check_region' is deprecated (declared at /usr/src/linux-2.6.3-4mdk/include/linux/ioport.h:121)
lkvi.c: At top level:
lkvi.c:2992: error: field `tq' has incomplete type
lkvi.c: In function `lkvi_bottom_half_task_queue':
lkvi.c:3016: error: `tq_immediate' undeclared (first use in this function)
lkvi.c:3016: error: (Each undeclared identifier is reported only once
lkvi.c:3016: error: for each function it appears in.)
lkvi.c:3017: error: `IMMEDIATE_BH' undeclared (first use in this function)
lkvi.c:3023: error: `tq_timer' undeclared (first use in this function)
lkvi.c:3024: error: `TIMER_BH' undeclared (first use in this function)
lkvi.c: In function `lkvi_get_num_cpus':
lkvi.c:3682: error: `smp_num_cpus' undeclared (first use in this function)
lkvi.c: In function `lkvi_spin_unlock_irqrestore':
lkvi.c:3900: warning: comparison of distinct pointer types lacks a cast
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.2818 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.2818 (%install)
[root@localhost SPECS]#
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need drivers 4 BCM V.90 56K Modem bobFz Linux - Hardware 4 06-27-2005 08:56 AM
BCM V.92 56K modem on RH9 pqb Linux - Laptop and Netbook 5 04-24-2004 01:00 PM
Mandrake 9.2 Broadcom (BCM) modem driver?? Nilihanth Mandriva 2 11-07-2003 11:19 PM
Mandrake 9.1 With BCM V.90 56K HARDWARE Modem Sno Linux - Hardware 21 09-08-2003 08:11 PM
BCM v.90 56k modem in Mandrake 9.1 SMACK Linux - Hardware 2 09-08-2003 07:59 PM


All times are GMT -5. The time now is 02:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration