LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-16-2004, 10:21 PM   #1
edigital
LQ Newbie
 
Registered: Dec 2003
Posts: 17

Rep: Reputation: 0
loading usb modules - maybe


A friend of mine has a very old computer running 98 that was not working. I wiped it off and installed mandrake 9.2 and it works great now. I've set it up so that he can do everything he could under windows and so far it's working out great! EXCEPT I can't seem to get his mp3 player set up. Maybe you can help.

Here is the progam i'm using, MPIO Project.
http://mpio.sourceforge.net/install.html#Installation

The instructions say this for rpm install:

rpmbuild --rebuild mpio-0.6.0.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/mpio-0.6.0-1.i386.rpm
modprobe mpio

Here is what I get when i do rpm build: (sorry for the long paste) I'm asking about the rpm install.. i've tried compling the binaries and i get the same thing. I fixed the readline problem by installing the packages, but this is more than a simple package i think.

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.13845
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd mpio-0.7.0
+ make
Making all in kernel
make[1]: Entering directory `/usr/src/RPM/BUILD/mpio-0.7.0/kernel'
gcc -c -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -DMODULE -I/usr/include/linux mpio.c
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 mpio.c:37:
/usr/include/asm/processor.h:55: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: error: requested alignment is not a constant
In file included from /usr/include/linux/module.h:297,
from mpio.c:37:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,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 from 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 files - 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 exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/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 the 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/include"
/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 accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from mpio.c:37:
/usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE"
In file included from /usr/include/linux/mm.h:12,
from /usr/include/linux/poll.h:10,
from mpio.c:44:
/usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/mmzone.h:44: error: requested alignment is not a constant
In file included from /usr/include/linux/usb.h:136,
from mpio.c:48:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,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 from 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 files - 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 exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/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 the 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/include"
/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 accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from /usr/include/linux/usb.h:139,
from mpio.c:48:
/usr/include/linux/irq.h:65: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: error: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from /usr/include/linux/usb.h:139,
from mpio.c:48:
/usr/include/asm/hardirq.h:16: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: error: requested alignment is not a constant
In file included from /usr/include/linux/usb.h:139,
from mpio.c:48:
/usr/include/linux/interrupt.h:129: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: error: requested alignment is not a constant
mpio.c:294:41: missing binary operator before token "("
mpio.c:392:41: missing binary operator before token "("
mpio.c:403: warning: initialization from incompatible pointer type
mpio.c:407:41: missing binary operator before token "("
mpio.c:629:41: missing binary operator before token "("
make[1]: *** [mpio.o] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/mpio-0.7.0/kernel'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.13845 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.13845 (%build)

I'm not sure what the problem is. I'm not sure if my usb is loaded. here are some entries from lsmod that says what i have loaded.

usb-uhci 25136 0 (unused)
usbcore 74988 1 [usb-storage acm usb-uhci]
scsi_mod 106176 4 (autoclean) [usb-storage sg st sr_mod sd_mod]
usb-storage 91616 0 (unused)
acm 7488 0 (unused)

maybe something isn't in the right path.

any help would be awesome if for no other reason than we've got one more person who won't be in windows spreading viruses. Thank you guys.
 
Old 02-17-2004, 08:08 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Do you have the kernel-source installed?

If so you might need to run this

cd /usr/src/linux-2.4
make oldconfig dep clean
 
Old 02-18-2004, 01:04 PM   #3
edigital
LQ Newbie
 
Registered: Dec 2003
Posts: 17

Original Poster
Rep: Reputation: 0
hrm. What does this do? I have mandrake 9.2 download edition. It was a clean install, straight off the disk. so I have not run that command. Can you tell me a little more about what it is and why I should do it. Thanks!
 
Old 02-18-2004, 06:20 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
To build a kernel module you need the kernel-source. Sometimes the kernel-source from the distro may not work for a certain build unless it has actually been used to build a kernel. By running the make commands some files are created in the source tree.

The first step would be to make sure you have the kernel-source installed, if not then that may be all that's required. If you do already have it installed and you cannot build a kernel module, then you should try to go through the steps of actually building a kernel, then try it.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
usb mpio - issues loading usb modules edigital Linux - Software 0 02-16-2004 10:00 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM
usb modules not loading dave37 Linux - General 6 12-31-2003 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:13 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
Open Source Consulting | Domain Registration