Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Gentoo Linux - Kernel Configuration - Modules

This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
Gentoo Linux - Kernel Configuration - Modules
bamccaig
Member #7,536
July 2006
avatar

I'm going to attempt to rebuild the kernel tonight (I hope). I wish there was a disable-all option so I could start with a bare kernel. IIRC, many of the modules are enabled by default. Thanks to CGamesPlay, Thomas Fjellstrom, BAF, [and anybody I forgot to mention] for the module help. I will try to identify the required modules tonight.

Don Freeman said:

Are you even listening to me?!?:o I am trying to help you out...:P Read my post about the file: /boot/grub/device.map
This is also in the Gentoo handbook, in the section about installing grub.::) Also, when in the grub menu on boot, you can hand edit each line. You can use tab completion (limited, and sorta retarded...but doable) to find out what drive hd0 or hd1 is pointing to and what files are in the boot directory (actually where grub was installed).8-)

Yes, I'm listening to you! :D I appreciate your help. For whatever reason, booting my slave drive (/dev/sdb) from the BIOS makes grub believe that it is actually (hd0). This has been confirmed by creating a listing for each and attempting to boot both. I can't explain, but if you can then please do. Marco Radaelli has confirmed that grub works the same way for him. /dev/sdb should be (hd1), and while running from the livecd it truly is, but apparently when booting from the BIOS it becomes (hd0). :-/

BTW, is there a reason that I don't have a /boot/grub/device.map?

Don Freeman said:

It would be nice if you showed us the output of lsmod with the gentoo cd kernel running. That way you can get an idea of what modules you will need.:P

Ah yes, lsmod! I was trying to remember what command that was and couldn't... I did a search of the thread and couldn't find it anywhere (maybe it was said in the last thread?). It was also in the Gentoo Handbook, but at the time I was too exhausted to continue looking for it. I will try to post that tonight.

Don Freeman said:

Also, are you using hd0,1 or hd1,0 for the root in your /boot/grub/grub.conf file?

I already posted my /boot/grub/grub.conf file and the bootable revision. :P

le_y_mistar
Member #8,251
January 2007
avatar

hahahahaha what a roller coaster of a thread, how many days have you been compiling gentoo with all these kids?:P

-----------------
I'm hell of an awesome guy :)

Don Freeman
Member #5,110
October 2004
avatar

Quote:

Yes, I'm listening to you! :D I appreciate your help.
Don Freeman said:
Also, are you using hd0,1 or hd1,0 for the root in your /boot/grub/grub.conf file?
I already posted my /boot/grub/grub.conf file and the bootable revision. :P

I guess I wasn't listening...::);D I will try to help you more...got to get back to my computer first.

In the mean time, try to
read this
Read the section on the grub shell. I believe that this is what I did because grub-install did not work for me.:o

If that does not create one for you, simple create the file /boot/grub/default.map Then fill it in like:

(hd0)     /dev/sda
(hd1)     /dev/sdb

And in the /boot/grub/grub.conf file: (using the above example from default.map)

root (hd1,0)      //really /dev/sdb1
kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual / directory

Any time that you change the /boot/grub/default.map file you should re-run:

>grub
grub> root (hd0,0)    #(Specify where your /boot partition resides)
grub> setup (hd0)     #(Install GRUB in the MBR)
grub> quit            #(Exit the GRUB shell)

Just remember that the number will be one less than the actual partition number, just like in fdisk. (/dev/sdb1 is really (hd1,0) and /dev/sdb4 is really (hd1,3)::)

Edit:

Quote:

For whatever reason, booting my slave drive (/dev/sdb) from the BIOS makes grub believe that it is actually (hd0). This has been confirmed by creating a listing for each and attempting to boot both. I can't explain, but if you can then please do. Marco Radaelli has confirmed that grub works the same way for him.

If you are using the BIOS to manually boot your second drive, then it will! If you properly installed grub, then you should not have to do that. You install grub in the mbr of the first drive and then from there, everything is relative to that. If you want to manually boot using your BIOS, then in your /boot/grub/grub.conf:

map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)      //really /dev/sdb1
kernel /vmlinuz-2.6.22-gentoo-r2 root=/dev/sdb3 //set root= to your actual

This will swap the drives around.::)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

bamccaig
Member #7,536
July 2006
avatar

Don Freeman said:

It would be nice if you showed us the output of lsmod with the gentoo cd kernel running. That way you can get an idea of what modules you will need.:P

1livecd /root # lsmod
2Module Size Used by
3sg 19484 0
4eth1394 12548 0
5e100 22792 0
6mii 3968 1 e100
7rtc 7476 0
8tg3 88324 0
9e1000 90432 0
10nfs 85180 0
11lockd 41352 1 nfs
12sunrpc 99644 2 nfs,lockd
13jfs 143340 0
14dm_mirror 13008 0
15dm_mod 31896 1 dm_mirror
16pdc_adma 4868 0
17sata_mv 11656 0
18ata_piix 8072 0
19ahci 11268 0
20sata_qstor 4996 0
21sata_vsc 4100 0
22sata_uli 3204 0
23sata_sis 3844 0
24sata_sx4 8452 0
25sata_nv 4740 0
26sata_via 4868 0
27sata_svw 3844 0
28sata_sil24 8708 0
29sata_sil 5384 0
30sata_promise 6276 0
31libata 61460 15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
32sbp2 15364 0
33ohci1394 24880 0
34ieee1394 53176 3 eth1394,sbp2,ohci1394
35sl811_hcd 8320 0
36usbhid 29792 0
37ohci_hcd 13572 0
38uhci_hcd 15240 0
39usb_storage 57280 0
40ehci_hcd 19976 0
41usbcore 78084 7 sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd

Don Freeman
Member #5,110
October 2004
avatar

Hi bamccaig...I edited my last post. Read the edit about the map command. Slow getting home.:'( Thanks for posting that...should help us figure that out for you.8-)

Edit:
Also, what are your modules that you have in your kernel? You can post your /usr/src/linux/.config file.::) This way we can see what you need compared to what you selected.:D

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

bamccaig
Member #7,536
July 2006
avatar

Don Freeman said:

If you properly installed grub, then you should not have to do that. You install grub in the mbr of the first drive and then from there, everything is relative to that.

Yeah, but I've heard that Windows has a tendency to overwrite the MBR at it's own leisure, which for dual-booters can often require booting a rescue CD or something to reinstall their bootloader. I just find it easier to install grub on my slave drive and boot my slave drive from my BIOS.

Don Freeman
Member #5,110
October 2004
avatar

I have done this and yet to have had a problem. The only time windows will try to rewrite the mbr is if you are reinstalling windows. Even then, a simple boot into you distro of choice, and do a grub-install. Simple.;) Even better, keep a backup of the mbr for situations like this.8-)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

Jonatan Hedborg
Member #4,886
July 2004
avatar

Am i the only one who finds le_y_mistar annoying? And I don't even use gentoo.

My god, there is not a single thread where you don't mention gentoo. It's almost like gentoo broke your heart at some point, and you are really really bitter about it.

Don Freeman
Member #5,110
October 2004
avatar

I totally agree....if he doesn't like Gentoo...then go somewhere else...or at least shut the fuck up!;D

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

bamccaig
Member #7,536
July 2006
avatar

Don Freeman said:

Also, what are your modules that you have in your kernel? You can post your /usr/src/linux/.config file.::) This way we can see what you need compared to what you selected.:D

/usr/src/linux/.config :-[

Don Freeman
Member #5,110
October 2004
avatar

Ok...I am fixing this for you...
You may need to look at some of this to see if you need things like PCI Express support (I don't). Bump me after reading this so I can post the updated config and tell you how to use it.8-)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

CGamesPlay
Member #2,559
July 2002
avatar

bamccaig, what is your current status? :)

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay said:

bamccaig, what is your current status? :)

Too exhausted to attempt to compile a kernel tonight... :-/ Tomorrow (or at the latest, the weekend) I will try again...

Don Freeman
Member #5,110
October 2004
avatar

bamccaig: what kind of sound card and video card do you have...I almost have your .config done...::)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

CGamesPlay
Member #2,559
July 2002
avatar

So this is your most recent kernel output? http://www.allegro.cc/forums/thread/594244/713620#target

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Don Freeman
Member #5,110
October 2004
avatar

Never mind...this should work!;D Do the following:

>cp config /usr/src/linux/.config
>cd /usr/src/linux
>make oldconfig
>make menuconfig
>make && make modules_install && make install

That should do ya!::)8-)

Edit:
I will check on you kiddies latter...gotta go shoppin.:'( Must..get..caffeine..;D

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

BAF
Member #2,981
December 2002
avatar

Quote:

Am i the only one who finds le_y_mistar annoying? And I don't even use gentoo.

My god, there is not a single thread where you don't mention gentoo. It's almost like gentoo broke your heart at some point, and you are really really bitter about it.

Just ignore him. If he doesn't get any attention for trolling, he will stop eventually. :P

bamccaig
Member #7,536
July 2006
avatar

Don Freeman
Member #5,110
October 2004
avatar

I've modified your config file. It should work for you. It is here, along with instructions on how to use it. Well...got to get some sleep. 6:00am comes early.:-/Will check in later tomorrow. Don't know if I will get a chance to at work, but hopefully.8-)

--
"Everyone tells me I should forget about you, you don’t deserve me. They’re right, you don’t deserve me, but I deserve you."
"It’s so simple to be wise. Just think of something stupid to say and then don’t say it."

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay
Member #2,559
July 2002
avatar

Uhm, we're waiting for output from you...

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

bamccaig
Member #7,536
July 2006
avatar

CGamesPlay said:

Uhm, we're waiting for output from you...

I was just keeping it alive until I could get around to...requiring output. :-[

MiquelFire
Member #3,110
January 2003
avatar

You could have made a part three.

---
Febreze (and other air fresheners actually) is just below perfumes/colognes, and that's just below dead skunks in terms of smells that offend my nose.
MiquelFire.red
If anyone is of the opinion that there is no systemic racism in America, they're either blind, stupid, or racist too. ~Edgar Reynaldo

CGamesPlay
Member #2,559
July 2002
avatar

Naw, trilogies never work out. Just look at the Matrix and Pirates of the Caribbean.

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Jakub Wasilewski
Member #3,653
June 2003
avatar

Or Star Wars.

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

 1   2   3   4 


Go to: