LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
  Search this Thread
Old 06-22-2003, 03:10 PM   #1
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Rep: Reputation: 0
Mandrake 9.1 With BCM V.90 56K HARDWARE Modem


It detects the device but I cannot edit any of the properties. I have found a Driver for Red hat but obviously this would not work on Mandrake.

I have found mutiple threads on this problem...

http://www.modemsite.com/56k/bcm.asp
This has a link to the driver for Red hat including source.

I would dearly love to connect to the internet with linux but I cannot without my modem. I have E-mail the mandrake hardware support but no responce yet.

Thanks in Advance
 
Old 06-22-2003, 03:21 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Well a RedHat package is most likely to work with Mandrake, but it's far better for you to download and compile the source. (It'll run quicker for it too).

Once you have your driver installed, I suggest you try using a seperate dialer like Kppp (from the cds) if the Mandrake Control Centre cant set up your ISP account and connection.
 
Old 06-22-2003, 03:37 PM   #3
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I tried setting it up with the source I got errors from the include/linux/version.h I got rid of the error but it still did not work...

This is the error I get
Code:
[root@localhost bcm4212-source]# rpm -rebuild BCMSM-3.4.19-6.src.rpm
Installing BCMSM-3.4.19-6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.28502
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf BCMSM-3.4.19
+ /bin/gzip -dc /usr/src/RPM/SOURCES/BCMSM-3.4.19.tar.gz
+ tar -xvvf -
drwxr-xr-x luisgm/games      0 2002-07-19 00:46:49 BCMSM-3.4.19/
-rwxr-xr-x luisgm/games 100087 2002-07-19 00:46:49 BCMSM-3.4.19/lkvi.c
-rwxr-xr-x luisgm/games  20442 2002-07-19 00:46:49 BCMSM-3.4.19/lkvi.h
-rw-r--r-- luisgm/games 1109440 2002-07-19 00:46:49 BCMSM-3.4.19/BCMSM_lib.o
-rw-r--r-- luisgm/games    2377 2002-07-19 00:46:49 BCMSM-3.4.19/BCMSM-init-redh
at
-rw-r--r-- luisgm/games    3252 2002-07-19 00:46:49 BCMSM-3.4.19/BCMSM.inf
-rw-r--r-- luisgm/games   39907 2002-07-19 00:46:49 BCMSM-3.4.19/INF2C.c
-rw-r--r-- luisgm/games    9641 2002-07-19 00:46:49 BCMSM-3.4.19/Makefile
-rw-r--r-- luisgm/games    3108 2002-07-19 00:46:49 BCMSM-3.4.19/README
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd BCMSM-3.4.19
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.28502
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.28502
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd BCMSM-3.4.19
+ make clean
touch LastRPMBuildInfo
rm -f lkvi.o INF2C.o BCMSM.o BCMSM_inf.o BCMSM_inf.c *.rpm
+ make install KERNEL_VERSION=2.4.9-e.3 KERNEL_DIR=/usr/src/kernel_headers/linux
-2.4.9-e.3 RPM=1 INSTALL_ROOT=
Building Linux Kernel Version Independent layer for this system..
In file included from lkvi.c:14:
/usr/include/linux/version.h:2:2: #error "======================================
================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of
kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro
m a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended
 by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may
 not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should
only be"
/usr/include/linux/version.h:10:2: #error "included via other system header file
s - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include
<linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the
 following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exis
ts and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/incl
ude/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t
he following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct
 include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/in
clude"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordi
ngly."
/usr/include/linux/version.h:35:2: #error "=====================================
=================="
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/module.h:11,
                 from lkvi.c:22:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (no
t in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
                 from lkvi.c:22:
/usr/include/linux/version.h:2:2: #error "======================================
================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{l
inux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of
kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files fro
m a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended
 by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may
 not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should
only be"
/usr/include/linux/version.h:10:2: #error "included via other system header file
s - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include
<linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the
 following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exis
ts and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directo
ry"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h t
o"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/incl
ude/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use t
he following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct
 include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/in
clude"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordi
ngly."
/usr/include/linux/version.h:35:2: #error "=====================================
=================="
In file included from lkvi.c:22:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `prin
/usr/include/linux/module.h:433: `ESRCH' undec
/usr/include/linux/module.h:433: (Each undecla                                                ce
/usr/include/linux/module.h:433: for each func
lkvi.c:49:2: #error This driver compiles only
In file included from /usr/include/linux/wait.
                 from /usr/include/linux/fs.h:
                 from /usr/include/linux/capab
                 from /usr/include/linux/binfm
                 from /usr/include/linux/sched
                 from /usr/include/linux/mm.h:
                 from lkvi.c:155:
/usr/include/linux/kernel.h:177:1: missing bin
In file included from lkvi.c:156:
/usr/include/linux/malloc.h:4:2: warning: #war                                                 use linux/slab.h instead.
lkvi.c:563:26: linux/bios32.h: No such file or
make: *** [lkvi.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.2


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.2850

Last edited by Sno; 06-22-2003 at 03:57 PM.
 
Old 06-22-2003, 03:49 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Did you install the kernel source and header files for the version of kernel you're using? Eg dont install the 2.4.21-0.18mdk source files if you still have 2.4.21-0.13mdk.

What command gives what error now?
 
Old 06-22-2003, 03:59 PM   #5
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
yes I did install the source I had to inorder to get some of the other stuff
 
Old 06-22-2003, 04:12 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Seems some links and moving wasn't done when the sources were installed. Try following the instructions given by the error messages.
 
Old 06-22-2003, 04:39 PM   #7
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
if I may ask what is a symbolic link?
and what is the `uname -r` in
/lib/modules/`uname -r`/build
 
Old 06-22-2003, 04:54 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
I means run uname -r, it'll give you the exact version of your kernel. Substitute that into the file path.

Symbolic links are like shortcuts which are invisible. They enable /usr/src/linux to always point to the current linux sources on your system, or /dev/modem to mean the same directory as your actually modem etc.
 
Old 06-22-2003, 05:06 PM   #9
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
thanks I will try it now
 
Old 06-22-2003, 05:10 PM   #10
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Hope it works
 
Old 06-23-2003, 09:41 AM   #11
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
hrm a problem I can't find
/boot/vmlinuz.version.h
I only have
/boot/vmlinuz
I don't know how to make a virtual link and I can't find the source... where is it usually?

I am also reading the readme it suggests I do
How to build RedHat 7.x RPM packages:

TARGET : one of the linux softmodem targets(i.e opt-linux-pentium-mmx)
RPM_KERNELS : list of kernel versions to build(i.e "2.4.7-10 2.4.7-smp").
KERNEL_DIR : base directory for kernel header files. The header files for
kernel version xx.yy.zz are assumed to be located on
$(KERNEL_HEADERS_ROOT)xx.yy.zz/include
RPM_BUILD_ARCH : the build architecture used for rpm.
Normally set to i386 in config/config.oem.
DEVICE_NAME : the name of the module(i.e BCMSM)
VERSION_NUMBER : modem version number(i.e 3.4.19)
PACKAGE_VERSION : package version number. Normally set to 1 in config/config.oem. Should be
incremented when modem is repackaged and reset to 1 when building a package with a
different modem version number.

Source rpms are built by default. To build binary rpms from top level softmodem dir
execute the following command:

make <TARGET> RPM_KERNELS=<see above> KERNEL_DIR=<see above> [RPM_NAME=<...>] [RPM_BUILD_ARCH=<see above>]
This builds an rpm called
<DEVICE_NAME>-<VERSION_NUMBER>-<PACKAGE_VERSION>.<RPM_BUILD_ARCH>.rpm by default
or <RPM_NAME> if RPM_NAME is redefined. The source rpm is called
<DEVICE NAME>-<VERSION NUMBER>-<PACKAGE VERSION>.src.rpm. The binary rpm includes
the modem kernel modules compiled for the kernel versions specified in
RPM_KERNELS.

To build binary rpms using the Makefile in this directory replace <TARGET> with rpm.

and I just found out that I do not have a kernal source, where do I get that? and where to I get the rest of that info?

I am a big

Last edited by Sno; 06-23-2003 at 10:07 AM.
 
Old 06-23-2003, 01:55 PM   #12
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
You can install the kernel source from the mandrake cds, just go to the Install Software menu entry/in the Mandrake Control Centre, and search for kernel. Then pick the source package.

If you didnt have a /boot/vmlinuz-2.4.21-0.13mdk then your pc couldnt actually boot, so you must be mistaken somewhere.

Btw you want a guide for building Mandrake rpms, not RedHat ones-you already gave a link for a RedHat one. There's one on the Mandrake site iirc.
 
Old 06-23-2003, 02:39 PM   #13
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
ok I found it but I'm still lost
 
Old 06-23-2003, 02:46 PM   #14
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
So have you got:
Your kernel source files installed
A generic .src.rpm
A guide to make that into a Mandrake .rpm
And a problem? If so, what is it exactly now?
 
Old 06-23-2003, 02:50 PM   #15
Sno
LQ Newbie
 
Registered: Jun 2003
Posts: 12

Original Poster
Rep: Reputation: 0
well I don't know where the source files are... where are they at default? there for not being able to find version.h causing errors in the rebuild. I can't find my kernel config either I have checked the install and I found kernel sources but not mine... I found enterprise secure and smp which I have none of

Last edited by Sno; 06-23-2003 at 02:53 PM.
 
  


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
BCM V.92 56K Modem Mandrake 9.1 Driver? linman Linux - Hardware 63 01-03-2007 04:10 PM
need drivers 4 BCM V.90 56K Modem bobFz Linux - Hardware 4 06-27-2005 07:56 AM
BCM v.90 56k modem not automatically detected UndieingHacker Linux - Hardware 1 07-13-2004 06:25 PM
BCM V.92 56K modem on RH9 pqb Linux - Laptop and Netbook 5 04-24-2004 12:00 PM
BCM v.90 56k modem in Mandrake 9.1 SMACK Linux - Hardware 2 09-08-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration