LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-17-2009, 08:26 AM   #1
jstitch
LQ Newbie
 
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Rep: Reputation: 1
compiling 2.6.32 doesn't detects my sound card or SD memory reader, toshiba laptop


hello,

I have Debian 5 with kernel version 2.6.26, but wanted to upgrade to 2.6.32 by compiling the kernel.
I am using a Toshiba Satellite A215 SP4057 laptop with AMD64, ATI radeon graphics X1200, Realtek wireless, and Realtek sound card

The purpose for upgrading was that the 2.6.26 of my distro doesn't recognizes my wifi card (a Realtek RTL8187B), from info at the internet I know 2.6.27 already supports it. The problem I now face is that with my compilation of 2.6.32 it doesn't now recognize my sound card, or my SD memory reader (which, with the 2.6.26 that came with my distro were already detected and working OK).

In fact, when configuring 2.6.32 for compilation, trying to read the .config file from 2.6.26 gives me an error I couldn't read but which makes me think that's the reason why I couldn't get the sound (or the SD memory reader) to be configured in the 2.6.32 compilation... (my wireless is detected as I expected)

So, my question is, what should I manually configure in my 2.6.32 so I can get my sound card detected? also my SD memory reader? If not manual configuration, how can I know what's been broken between configuration of 2.6.26 and 2.6.32 and how can I manage to correctly read 2.6.26 config file in the 2.6.32 configuration, so that I can compile 2.6.32 with every thing needed for the sound and SD memory reader detected.... ? Or any other useful ideas you can give me to solve this problems?

Here it comes, my lspci output with the 2.6.26 kernel:

Code:
00:00.0 Host bridge: ATI Technologies Inc RS690 Host Bridge
00:01.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (Internal gfx)
00:04.0 PCI bridge: ATI Technologies Inc Device 7914
00:05.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 1)
00:06.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2)
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS690M [Radeon X1200 Series]
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
14:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
14:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
14:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
14:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
14:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff)
and with my compiled 2.6.32 kernel the output is almost the same, the only difference is in the last line:
Code:
14:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
please note that it reports an ATI tech SBX00 Azalia (Intel HDA) as audio device, although, I think its a Realtek device, since I had before another distro wich also didn't detected my sound card and I used a realtek-linux-audiopack to detect it (a solution, of course, I have already tried here, but it isn't working now), but I may be wrong with this, the lspci is perhaps more trustful...


I don't know if its useful, here it is my lsusb with 2.6.26:
Code:
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 004: ID 04f2:b008 Chicony Electronics Co., Ltd 
Bus 006 Device 003: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 062a:0003 Creative Labs 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
and with 2.6.32, apart from the order of almost all entries, the lines which are different:
Code:
Bus 003 Device 002: ID 062a:0003 Creative Labs 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 04f2:b008 Chicony Electronics Co., Ltd 
Bus 002 Device 003: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

anything else you may need to know, just let me know...


Thank you very much,
Javier
 
Old 12-17-2009, 08:40 AM   #2
AleLinuxBSD
Member
 
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 272

Rep: Reputation: 37
Master Kernel Thread

HowTo: Installing and using KernelCheck

About KernelCheck
Quote:
At the moment, KernelCheck is only supported on Debian-Based platforms.
Ubuntu is a derived debian distro so often you could use information for Ubuntu useful even for debian with procedere often almost identical.

Note:
I'm used kernelcheck on ubuntu, it's very easy.
 
Old 12-17-2009, 09:54 PM   #3
jstitch
LQ Newbie
 
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by AleLinuxBSD View Post
Ubuntu is a derived debian distro so often you could use information for Ubuntu useful even for debian with procedere often almost identical.

Note:
I'm used kernelcheck on ubuntu, it's very easy.

well, I installed kernelcheck, but didn't have luck running it, it reports me that Kernel.org server couldn't fulfill request or that there are no updates available. Notice I executed kernelcheck in both kernels I have (2.6.26 and 2.6.32)

I located kernelcheck files, but couldn't find anything to manage configuration, just python source code, maybe I should try to debug it or something, but right now my priority is to manage the compilation of my kernel, supporting all my hw devices...

thanks anyway, I'll take another look to kernelcheck later

any more ideas?
 
Old 12-17-2009, 11:56 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
I've just gone from 2.6.28.8 to 2.6.32 with no problems. So, can you tell me which method you used to compile your new kernel? If you've used the "make-kpkg" method, then I can probably help if you give me the exact commands you used and the exact errors you got.

When I compile a new kernel, I run these steps in this order.
Code:
cp /boot/config-`uname -r` .config
make oldconfig
make-kpkg clean
fakeroot make-kpkg --append_to_version -k8 --revision=0.1 --initrd kernel_image
Note 1: those are backquotes (to the left of the "1" key) in the "cp" command, not single quotes.

Note 2: "make oldconfig" asks a lot of questions because there are a lot of new configuration options. You can almost always just take the default on them, but since you have new hardware, look out for it and answer as appropriate for your system.

If you haven't been using this method and want to try it, let me know and I'll post a link to a page with the many pre-req packages for it.

Last edited by Quakeboy02; 12-17-2009 at 11:57 PM.
 
Old 12-18-2009, 07:48 AM   #5
jstitch
LQ Newbie
 
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Original Poster
Rep: Reputation: 1
hi,

here is the list of commands I've used:

been with 2.6.26...
Code:
cp /boot/config-`uname -r` .config
make menuconfig
make-kpkg clean
make-kpkg --rootcmd fakeroot --initrd --revision=custom.001 kernel_image kernel_headers
I've finally found the errors that menuconfig throws when loading the old .config file... here they are:
Code:
.config:334:warning: symbol value 'm' invalid for ACPI_DOCK
.config:493:warning: symbol value 'm' invalid for INET_LRO
.config:747:warning: symbol value 'm' invalid for IP_DCCP_CCID3
.config:750:warning: symbol value 'm' invalid for IP_DCCP_TFRC_LIB
.config:1006:warning: symbol value 'm' invalid for RFKILL_INPUT
.config:1756:warning: symbol value 'm' invalid for IWL4965
.config:1934:warning: symbol value 'm' invalid for ISDN
.config:3515:warning: symbol value 'm' invalid for GFS2_FS_LOCKING_DLM
I have never tried oldconfig, I'm kinda new compiling kernels, but I may give it a try... someday hehe... if I can solve the problem with the menuconfig, that would be cool, but if I must learn to use to the oldconfig, then I will...


Thank you
 
Old 12-18-2009, 11:40 AM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Run the "make oldconfig" to clean up the .config file. Then try making again.
 
Old 12-19-2009, 09:51 AM   #7
jstitch
LQ Newbie
 
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Original Poster
Rep: Reputation: 1
Thank you, I will try that...

by now, I have done the following...
I compiled 2.6.27, from 2.6.26 config.
Then 2.6.28, from 2.6.27 config.
and so on...
When I reached 2.6.32 from 2.6.31 config, I noticed I got wiki and also sound , but not yet SD memory reader... That could be enough for me, and may use it for a while, but I will continue with what you suggest...

You mentioned something about a link to a page with the many pre-req packages for the oldconfig?? Can I know about it please? I still have to do what you said: use the oldconfig to repair the config file, so I need some help here. How do I know what to answer to all those questions?

Thanks again
 
Old 12-19-2009, 10:25 AM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
The link wasn't for the oldconfig, it's for the make-kpkg. Since you're already using that, you already have what you need.

Added:
I forgot to address this:
Quote:
I still have to do what you said: use the oldconfig to repair the config file, so I need some help here. How do I know what to answer to all those questions?
What "make oldconfig" does is to compare the .config file with the options available in the new kernel and ask you what you want to do for any new options. Generally it's OK to just press the Enter key and take the default. The default will be in capital letters in the question so that you know what you're going to get by pressing Enter. If your device appears in the questions then you can answer appropriately. If not, then run either "make menuconfig" or "make xconfig", find it, and enable it. I've found that xconfig is helpful in cases where you're having trouble finding your device, as you can just press CTL-"f" and do a search for it.

Last edited by Quakeboy02; 12-19-2009 at 11:02 AM.
 
1 members found this post helpful.
Old 06-08-2010, 04:57 PM   #9
jstitch
LQ Newbie
 
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Original Poster
Rep: Reputation: 1
finally, I got it

haven't visited in here for a while, but just remembered that you helped me a lot, and in fact your advice gave me the right indications to get it done

thanks!
 
  


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
[F9]Problems with my intigrated card reader on my Toshiba L45 Laptop uncholowapo Fedora 2 06-17-2008 11:04 AM
Toshiba memory card reader under Suse 10.1 DoctorWynn Linux - Laptop and Netbook 6 08-02-2006 06:09 AM
Sound Card on Toshiba Laptop not being recognized by Gentoo kingzog Linux - Hardware 2 06-25-2006 08:08 AM
sound card detects but not working abdulbaqi Red Hat 2 03-21-2006 08:10 AM
compiling kernel to include sound support for toshiba laptop slackfan Slackware 4 02-14-2003 10:33 AM


All times are GMT -5. The time now is 11:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration