Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Hardware issues-kernel recompile?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
itlarson
n00b
n00b
Posts: 46
Joined: Sun Oct 21, 2007 3:48 pm

Hardware issues-kernel recompile?

  • Quote

Post by itlarson » Thu Nov 08, 2007 1:59 am

My new install is mostly successful, but I have some hardware issues:
-sound is not working (but I think I know which driver to install).
-usb flash drives are not recognized.

Here are my questions:
-How do I compile just the module for a driver, instead of the whole kernel? This seems a quicker way to troubleshoot, even if I re compile the kernel latter.
-Where do I start with the usb thing? maybe I just need to mount it manually, but /dev/sdb1, which works on my other computers, doesn't here.
-How do I tell which driver is actually being used? There are redundant drivers I would like to remove next time I recompile the kernel .
-I also would like advise on modules- is there a disadvantage to using them over putting something in the kernel? Other than things you need at boot, that is.
Top
melchoir
n00b
n00b
Posts: 30
Joined: Tue Apr 24, 2007 3:21 am
Location: Salt Lake City, UT

Re: Hardware issues-kernel recompile?

  • Quote

Post by melchoir » Thu Nov 08, 2007 3:47 am

itlarson wrote:My new install is mostly successful, but I have some hardware issues:
-sound is not working (but I think I know which driver to install).
-usb flash drives are not recognized.

Here are my questions:
-How do I compile just the module for a driver, instead of the whole kernel? This seems a quicker way to troubleshoot, even if I re compile the kernel latter.
Well that depends, on if your using a manually compiled kernel or genkernel.
If you are using a manually compiled kernel, you'd do the following.

Code: Select all

cd /usr/src/linux
make menuconfig
make modules && make modules_install
If you are using genkernel, then I'm really unsure how to do it without recompiling the kernel, but you'd issue the command.

Code: Select all

genkernel --menuconfig --no-clean kernel
-Where do I start with the usb thing? maybe I just need to mount it manually, but /dev/sdb1, which works on my other computers, doesn't here.
Well first you'll want to make sure you have all those features compiled, either statically or as modules.
Check in Device Drivers > SCSI Device Support > and use SCSI disk support and SCSI CDROM support (if applicable)
Also in Devices Drivers > USB Support ECHI (USB2.0), OHCI and UHCI (USB1.1), and USB Mass Storage Support
And lastly go into Loadable Module support and enable Automatic kernel module loading if you haven't.
-How do I tell which driver is actually being used? There are redundant drivers I would like to remove next time I recompile the kernel .
the command is lsmod
-I also would like advise on modules- is there a disadvantage to using them over putting something in the kernel? Other than things you need at boot, that is.
Well if you do a static kernel you'd of course want to make sure you aren't compiling things you aren't using, and as you said, some things like drive controllers and file systems need to be statically compiled, but that aside it doesn't matter.
Personally, my kernel is all static except for devices that can in fact be removed, like usb drives, joysticks, things of that nature, which I keep as modules.

Hope that answered your questions.
Top
dev_zero
n00b
n00b
User avatar
Posts: 28
Joined: Thu Nov 01, 2007 8:53 pm
Location: Somewhere in the kernel source

  • Quote

Post by dev_zero » Thu Nov 08, 2007 3:49 am

To build only modules, make modules && make modules_install
Usb disk driver is called usb-storage, make sure the module is loaded and when insterting the device try checking dmesg and see if you get any output or have gotten any output from the usbmodules which says anything about which device (/dev/*) it is on.
Dell Latitude D630 DSDT
Top
itlarson
n00b
n00b
Posts: 46
Joined: Sun Oct 21, 2007 3:48 pm

belated thanks

  • Quote

Post by itlarson » Sat Nov 10, 2007 10:17 pm

Thanks to those who answered- I ran out of time to deal with this until the weekend. I got sound working, but not USB, please see my new thread.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic