Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel configurations stored where? [Solved...on to ALSA!]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Sat Jan 19, 2008 7:16 pm    Post subject: kernel configurations stored where? [Solved...on to ALSA!] Reply with quote

sorry for the lame question. I started with 2007.0 and its 2.6.19 kernel. got it up and running fine, likewise the update to 2.6.21 kernel. Have failed to get 2.6.22 or, now, 2.6.23 to work...that is, to boot at all (never mind into KDE 3.5)

I'm really puzzled when the options under menuconfig move around, and suspect I am forgetting to check one or the other crucial one...or that I am messing up yaboot...(though all the kernels I have do show up when I reboot and hit the tab key...it's just that only the 2.6.21.5 option actually then runs...) I thought that if I could see the choices I made in some file with a list (one for each kernel?) I might be able to see where I'm going wrong?

Or I could post those file(s) here (along with yaboot's config?) and someone could walk me through it?

thanks,

the prairie dad

G4 7450 (733 MHz, I think a gig of RAM) pretty plain vanilla old Mac


Last edited by prairie_dad on Mon Jan 21, 2008 6:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
psomas
Retired Dev
Retired Dev


Joined: 23 Sep 2006
Posts: 212
Location: Greece

PostPosted: Sat Jan 19, 2008 7:21 pm    Post subject: Reply with quote

all the options are stored in /usr/linux/.config
so you can copy the .config from your last working kernel to the dir of the kernel you want...

#cp /usr/src/linux-2.6.19-gentoo/.config /usr/src/linux-2.6.23-gentoo

and then check for changes and new options of the new kernel:
#cd /usr/src/linux-2.6.23-gentoo
#make oldconfig

but,before you do anything, what error do you get when trying to boot?
_________________
myblog
FOSS NTUA Community
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Sat Jan 19, 2008 8:24 pm    Post subject: Reply with quote

psomas wrote:
all the options are stored in /usr/linux/.config


thanks, that's what I was looking for initially.

...

psomas wrote:

so you can copy the .config from your last working kernel to the dir of the kernel you want...

#cp /usr/src/linux-2.6.19-gentoo/.config /usr/src/linux-2.6.23-gentoo

and then check for changes and new options of the new kernel:
#cd /usr/src/linux-2.6.23-gentoo
#make oldconfig

but,before you do anything, what error do you get when trying to boot?


When I booted into 2.6.22 (I haven't bothered for a long while, it wasn't that important to me) I don't think I ever got any error messages at all, just a blank (dark) screen...I could try, but it doesn't really matter at this point.

When I booted into 2.6.23 (this morning) I almost immediately got a white screen with dark text on it (unusual, I usually just get a "terminal" look on the whole screen until the KDE login appears) with a half a dozen or so lines of text, I haven't noted them now but can get them...and then nothing, that is, they stay on screen but the screen is unresponsive; hitting the return doesn't move the cursor, etc.

my question about your comment above is...can't I compare those files with some utility (the name diff springs to mind...) One problem is that there seem to be so many differences between the two kernel versions! Names change and the location of choices within menuconfig changes and even the way the .config is subdivided into sections changes.

And if I copy as you suggest, don't I lose the existing .config file, or is that the whole point? And what will "make oldconfig" do, I haven't renamed the file...or do you not mean that as a command?

thanks
Back to top
View user's profile Send private message
psomas
Retired Dev
Retired Dev


Joined: 23 Sep 2006
Posts: 212
Location: Greece

PostPosted: Sat Jan 19, 2008 8:40 pm    Post subject: Reply with quote

make oldconfig, checks your .config and prompts you for changes in kernel configuration...
for example, if an option has been added it will ask if you want it or not...
_________________
myblog
FOSS NTUA Community
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 19, 2008 8:46 pm    Post subject: Reply with quote

It sounds like you're missing the framebuffer options. I'd suggest using the make oldconfig method suggested above. If you do want to start a new configuration, make sure that you use "make pmac32_defconfig" before starting configuration, it sets many useful defaults.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Sun Jan 20, 2008 5:02 am    Post subject: Reply with quote

JoseJX wrote:
It sounds like you're missing the framebuffer options. I'd suggest using the make oldconfig method suggested above. If you do want to start a new configuration, make sure that you use "make pmac32_defconfig" before starting configuration, it sets many useful defaults.


many thanks, I'll look for the framebuffer options in particular.

And when you say "make pmac32_defconfig" do you mean instead of "make menuconfig"?

Okay...well, I tried oldconfig, and I learned a lot, that's a good app to know about for the future...I mostly chose n when it said N, and m when it said M, but in a few cases I contradicted its suggestions...maybe when it said no Mac80211 stack for wireless, for instance...

but still no luck, the indeed I get the same error exactly...here's what appears all on a white background, with black text...:

Code:


done
found display : pci@f000000...ATI, BlueStoneParent.....a bunch more stuff
copying OF device tree
building dt strings
building dt structure
device tree strings 0x01156000 -> 0x01156c3c
device tree structure 0x01157000 -> 0x0117b000
calling quiesce...
returning from prom_init



Should I start all over again with pmac32_defconfig...maybe I'll have better luck that way?

thanks,

the prairie dad
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Sun Jan 20, 2008 5:31 am    Post subject: hmmm, I found some older posts that are quite similar Reply with quote

nothing like searching!

I found some similar posts (and your responses, JoseJX) back in spring summer fall 2006...kernel 2.6.16 issues, but quite similar on how to do the _defconfig thing.

One question...it was unclear then (and still is to me, a little) from which directory to issue which command...?

I issued the make oldconfig while actually in the 2.6.23-gentoo-r3 directory...that's where i'd moved .config from the working ...6.21 kernel, and that's how I read my other helper's comment...

but you said to someone in 2006 to issue the pmac32_defconfig command in the /usr/src/linux...directory, right? Not in one of the particular, individual kernel subdirectories? is that correct?

thanks
Back to top
View user's profile Send private message
corsair
Retired Dev
Retired Dev


Joined: 06 Oct 2003
Posts: 451
Location: Aachen, Germany

PostPosted: Sun Jan 20, 2008 8:40 am    Post subject: Reply with quote

yes, run the command in the /usr/src/linux-2.6.23-gentoo-r3 directory.

/usr/src/linux should be a symlink to the current sources (i.e. /usr/src/linux-2.6.23-gentoo-r3):

Code:

$ ls /usr/src/ -l
total 8
lrwxrwxrwx  1 root root   15 2007-12-06 10:25 linux -> linux-2.6.23-gentoo-r3/
drwxr-sr-x 20 root root 4096 2007-12-18 10:34 linux-2.6.23-gentoo-r3


I normally set the symlink once the new kernel booted. this is neccessary, because there are some ebuilds that build their kernel modules for the kernel sources that are in /usr/src/linux.

regards,

-corsair
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Sun Jan 20, 2008 6:55 pm    Post subject: Reply with quote

corsair wrote:
yes, run the command in the /usr/src/linux-2.6.23-gentoo-r3 directory.

/usr/src/linux should be a symlink to the current sources (i.e. /usr/src/linux-2.6.23-gentoo-r3):

Code:

$ ls /usr/src/ -l
total 8
lrwxrwxrwx  1 root root   15 2007-12-06 10:25 linux -> linux-2.6.23-gentoo-r3/
drwxr-sr-x 20 root root 4096 2007-12-18 10:34 linux-2.6.23-gentoo-r3


I normally set the symlink once the new kernel booted. this is neccessary, because there are some ebuilds that build their kernel modules for the kernel sources that are in /usr/src/linux.

regards,

-corsair


well, my /usr/src looks just like yours, with the correct symlink (as above.) I went into the 2.6.23-gentoo-r3 directory and ran pmac32_defconfig, the resuting file was written to .config, and I rebooted....same error as before.

So now I'll reboot into 2.6.21 and go through the make menuconfig process, is that right?

thanks! (und schoene Gruesse an Aachen. Ich habe vor vielen Jahren in Koeln studiert und Duesseldorf gearbeit, und kenn' die Ecke gut.)
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Mon Jan 21, 2008 6:55 pm    Post subject: solved Reply with quote

okay, it now boots correctly into 6.23-r3. I changed a few little things (still can't get ALSA to work....!!) but have learned a great deal about kernel configuration. many thanks to JoseJX and Corsair...

No more kernel changes for me till 6.24 is approved for ppc. I am hoping that that kernel will, at last, allow me to use one of my USB wireless dongles, either a d-link dwl-g122 version B1 or ... off-grand, both have ralink chips in them and have never worked before with rt2500 or rt73 drivers installed (perhaps not correctly installed!?) but now the rt2x00 driver is in the 6.24 kernel....so keep those fingers crossed.

any tips on ALSA? Even with the new kernel I keep getting "no drivers found" errors at start up..

thanks and regards

the prairie dad
Back to top
View user's profile Send private message
psomas
Retired Dev
Retired Dev


Joined: 23 Sep 2006
Posts: 212
Location: Greece

PostPosted: Mon Jan 21, 2008 7:12 pm    Post subject: Reply with quote

what soundcard do you have?
have you selected the alsa driver in the kernel config?...
_________________
myblog
FOSS NTUA Community
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jan 21, 2008 8:48 pm    Post subject: Reply with quote

Take a look at the FAQ, it should have enough information to get it working for you:
http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#alsa
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Mon Jan 21, 2008 11:14 pm    Post subject: sound card is the built in one Reply with quote

psomas wrote:
what soundcard do you have?
have you selected the alsa driver in the kernel config?...

I just have the built in one...not sure, can't go see dmesg now...a slightly older G4 I am sitting at here (with OS X) has this:

Texas Instruments TAS3001C

the one with Gentoo won't be much different, maybe a generation later? this is a dual 533 digital audio G4, that one is a Quicksilver 733, but also only the standard, built-in Mac default hardware...

and I have in kernel config more or less exactly what pmac32_defconfig gave me...no changes in the sound area, anyway.

does that TI sound card have a separate driver that needs to be included in the kernel? if ALSA is set to <M> and not <*> will that be an issue? I believe that pmac32_defconfig uses lots of <M> and far fewer <*> , should I be changing some of them in my own particular .config? Like if I _know_ I have a Radeon card and not a Rage or Matrox...for instance...?

The FAQ says...

Quote:

Code Listing 3.11: Kernel options for ALSA

Device Drivers - I2c support --->
I2C Hardware Bus Support --->
<*> Powermac I2C interface (Keywest on 2.6.15 and older)

Device Drivers - Sound --->
<*> Sound card support
Advanced Linux Sound Architecture --->
< > PowerMac DMA sound support
<*> Advanced Linux Sound Architecture
<*> Sequencer support
<*> Sequencer dummy client
<*> OSS Mixer API
<*> OSS PCM (digital audio) API
[*] OSS Sequencer API

Depending on the age of the machine, the correct sound driver should also be enabled. On more modern machines such as Aluminum PowerBooks, new iBooks or G5's the Apple On-board Audio driver should be used. For older machines, try the ALSA PowerMac driver instead.

Code Listing 3.12: ALSA Drivers - Choose only one

Older Machines
ALSA PowerMac devices --->
<*> PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)
Newer Machines
Apple Onboard Audio driver --->
<*> Apple Onboard Audio driver
<*> layout-id fabric
<*> support Onyx chip
<*> support TAS chip
<*> support Toonie chip



but I'm not sure what "Choose only one" means? Only one of "Older" or "Newer"... or only one of the Apple Onboard Audio driver choices...? I've no idea about Onyx, TAS or Toonie, how would I know which to choose? Maybe that could be made a little clearer in the FAQ?

thanks,

the prairie_dad
Back to top
View user's profile Send private message
psomas
Retired Dev
Retired Dev


Joined: 23 Sep 2006
Posts: 212
Location: Greece

PostPosted: Mon Jan 21, 2008 11:24 pm    Post subject: Reply with quote

with lspci i think you can see what sound card you have...

i think you have to choose one...
if you have an older machinve,choose the first one...
else,one of the new drivers...maybe more info you could get from lspci...

about <M>...
it means compile as a module...so that it will be loaded when needed...
for things like alsa i think you should compile them as modules...
_________________
myblog
FOSS NTUA Community
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Jan 22, 2008 1:05 am    Post subject: Reply with quote

psomas:
lspci is useless on macs for sound cards because the sound card is on the i2c bus.

prairie_dad:
From the FAQ:
Quote:

Depending on the age of the machine, the correct sound driver should also be enabled. On more modern machines such as Aluminum PowerBooks, new iBooks or G5's the Apple On-board Audio driver should be used. For older machines, try the ALSA PowerMac driver instead.


I'm not quite sure how I can make that more clear. You don't have any of the above machines, so you should use the ALSA PowerMac driver.

As for modules/built in, I follow a simple rule, and I'd suggest you use the same. For hardware that stays in the computer (video cards, sound cards, etc.) build it in. For removable hardware (usb, firewire, pcmcia cards, etc.) build it as a module. If you follow this simple rule, the kernel configuration becomes pretty simple, and you don't have to worry about modules complicating the hardware that you'll use all the time.

Feel free to turn off components that you know you will not use or do not have the hardware for. The pmac32_defconfig is provided as a way to enable a booting configuration on most machines. It's meant to be customized to your specific hardware needs.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
prairie_dad
n00b
n00b


Joined: 02 Aug 2007
Posts: 68
Location: Denver, CO

PostPosted: Mon Jan 28, 2008 3:13 am    Post subject: Reply with quote

JoseJX wrote:

psomas:
lspci is useless on macs for sound cards because the sound card is on the i2c bus.


Okay, so no lspci, is there a way to find what's on the i2c bus? I read through dmesg, and nowhere does it identify anything like the TI card I know is in one of my other G4s. I also went to Apple's support site, and found only this...

Quote:

Audio

* Built-in speaker
* Apple speaker minijack (16 bit) for connection to Apple Pro Speakers
* Headphone jack (16 bit)
* Optional Apple Pro Speakers
* Support for external third-party USB digital audio peripherals such as microphones, speakers, and MIDI devices


which is to say...nothing about any sound card in particular, and nothing that will show up in menuconfig...is it necessary to name a particular card at all? I suppose so, but which one?

JoseJX wrote:

prairie_dad:
From the FAQ:
Quote:

Depending on the age of the machine, the correct sound driver should also be enabled. On more modern machines such as Aluminum PowerBooks, new iBooks or G5's the Apple On-board Audio driver should be used. For older machines, try the ALSA PowerMac driver instead.


I'm not quite sure how I can make that more clear. You don't have any of the above machines, so you should use the ALSA PowerMac driver.


Okay, well, I guess maybe I meant an easier way of telling which machines are "older" and which "newer..." or maybe a way to know if what some of the drivers mentioned as options were...Toonie, for instance...I guess part of the problem is that Apple's site is not too forthcoming...

Anyway, I have now marked ALSA PowerMac with * and the others with blank...no more error message when booting up, that is, it doesn't say it can't find the right driver...that's good...but still no sound. It tells me I have no config file for the mixer, and need to unmute my sound card! Now what? I went (from the K menu, remember I run KDE) to Settings -> Sound and Multimedia -> Sound System, but I get nothing when I run the sound test. I don't bet it's a question of unmuting, maybe it's that I'm still not telling clearly what sound card I have...can that be?

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum