LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mandrake 9.1 With BCM V.90 56K HARDWARE Modem (https://www.linuxquestions.org/questions/linux-hardware-18/mandrake-9-1-with-bcm-v-90-56k-hardware-modem-67293/)

Sno 06-22-2003 04:10 PM

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

Proud 06-22-2003 04:21 PM

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.

Sno 06-22-2003 04:37 PM

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


Proud 06-22-2003 04:49 PM

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?

Sno 06-22-2003 04:59 PM

yes I did install the source I had to inorder to get some of the other stuff

Proud 06-22-2003 05:12 PM

Seems some links and moving wasn't done when the sources were installed. Try following the instructions given by the error messages. :)

Sno 06-22-2003 05:39 PM

if I may ask what is a symbolic link?
and what is the `uname -r` in
/lib/modules/`uname -r`/build

Proud 06-22-2003 05:54 PM

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. :)

Sno 06-22-2003 06:06 PM

thanks I will try it now

Proud 06-22-2003 06:10 PM

Hope it works :)

Sno 06-23-2003 10:41 AM

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 :newbie:

Proud 06-23-2003 02:55 PM

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. :confused:

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. :)

Sno 06-23-2003 03:39 PM

ok I found it :) but I'm still lost

Proud 06-23-2003 03:46 PM

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? :)

Sno 06-23-2003 03:50 PM

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


All times are GMT -5. The time now is 04:45 AM.