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.
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.
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
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.
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.
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.
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
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]#
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!
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. "
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?
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
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]#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.