LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-02-2005, 05:36 AM   #1
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
Booting Gentoo 2005.0 on SATA hd


How's it done?

kernel-2.6.11-gentoo-r7 on an nForce3 250Gb Chipset.

To begin with, I went the genkernel way (which makes it boot initrd first to detect the hardware [I think]). It begins to boot, but then tells me it can't find the specified boot partition, ( /dev/sda8 ), and gives me a boot prompt.

I can type "shell" and I find myself in a strange ash shell I think - I'm guessing the root is a ramdisk... And there are no /dev/sda entries.


The make menuconfig route, (which allows you to configure your kernel directly, thus eliminating the need for initrd [I think]), following the instructions given in the online docs and not really changing anything else, makes a kernel which won't boot at all - it just says "kernel panic" and gives up.

You can have a look at my grub.conf if you like:

Code:
# Default image to boot (number in menu)
default 1

# Timeout before default option is booted (seconds)
timeout 15

# Path to splash image :)
splashimage=(hd0,0)/grub/splash.xpm.gz

# What's its name?
title=Gentoo Linux 2.6.11 genkernel
# Where's the kernel?
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7-1 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda8 udev
initrd /initrd-2.6.11-gentoo-r7-1

title=Gentoo Linux 2.6.11 menuconfig
root (hd0,0)
kernel /kernel-2.6.11-gentoo-r7-2 root=/dev/sda8
I know there must be loads out there on this, but I've Googled, and done a search here, and I can't find anyone with my exact problem.

Apologies for length - I'm just trying to be helpful to all those fine people who I hope will help me
 
Old 06-02-2005, 01:03 PM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Napalm Llama

Think you'll find that SATA drives are seen by the kernel as SCSI devices

So SCSI support needs to be built into the kernel, not as a module

Genkernel does not do this by default

If you want to use genkernel do

Code:
genkernel --menuconfig --udev all
This will allow you to make changes to the kernel via menuconfig but still provide you with initrd-2.6.11-gentoo-r7-1

Otherwise if you feel confident just use menuconfig

Hope this helps

Pete
 
Old 06-02-2005, 01:33 PM   #3
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
Hurrah! It helped! Thankyou kindly!

Now I've just got to get Xorg up and running so I can see things properly... links does a good job in text mode, but it's still no match for Firefox...

Ah well. Emerging as I speak. Let's just hope it works this time
 
Old 06-02-2005, 01:51 PM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Napalm Llama

Sounds like you still have a long way to go

Gnome or Kde takes a very looooooooooong time to compile

Good luck

Pete
 
Old 06-02-2005, 04:32 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you configure and compile the kernel yourself and you made SATA and scsi as modules, you just need to specify --with when using mkinitrd. You may need to install mkinitrd. genkernel just takes all the fun out of configuring and compiling the kernel.

It took about 17 hours to compile gnome and kde.
 
Old 06-04-2005, 10:01 AM   #6
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
Wow that's a long time.

I've figured it out, though (thanks to Pete M) - I'm currently booted off the hd, in Fluxbox @ 1280x1024, typing away merrily into my Firefox.

I've been trying to compile gnome, but for some reason the system freezes up every time.

On the bright side, I didn't chuck all that hard-saved money away - before I went to bed last night, it was about halfway through its 148 gnome packages, and it'd only been an hour or two. This AMD64 really is fast!

Last edited by Napalm Llama; 06-04-2005 at 10:02 AM.
 
Old 06-04-2005, 04:02 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I used a Pentium 4 2.0 GHZ (Northwood core) with 512 MB of ECC Rambus memory. It emerged about 214 packages. It seem that it compiled all of them instead of using binary. AMD processors are always faster than Intel processors when it comes time to compile. I recommend using ECC memory to minimize long period compiling problems.

Napalm Llama, not all programs can be compile with a CFLAG option -m64. Try using -m64 only for multimedia programs where high data bandwidth is needed. You probably want to add -mfpmath=387 because AMD64 processors are not very efficient when handling SSE.
 
Old 06-06-2005, 10:59 AM   #8
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
Is -m64 the same as using "-march=k8"?

I've traced the complie problem back to Ghostscript though -- apparently this is a known issue.
 
Old 06-06-2005, 01:06 PM   #9
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Yes, but k8 has optimized compile options designed only for Athlon 64-bit processors.
 
Old 06-08-2005, 06:54 AM   #10
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
So are you suggesting that if I temporarily remove the "-march=k8" (I have an Athlon64) it could solve some of the problems?
 
  


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
How do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 10:30 AM
ICH5 SATA on Mandrake 10.1/2005 taylortbb Linux - Hardware 5 10-03-2005 05:09 PM
gentoo 2005.1 Jimbo99 Linux - Software 2 08-20-2005 11:20 AM
Grub not booting with Sata on fresh Gentoo install jxbryan Linux - Software 2 03-08-2005 06:02 PM
Problems booting a fresh gentoo install on onboard sata stoned Linux - Distributions 3 08-29-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 PM.

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