View previous topic :: View next topic |
Author |
Message |
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 3:26 pm Post subject: |
|
|
Edited grub to the correct order. Here's ls -l /mnt/gentoo/boot:
http://pastebin.com/bPA5aj11 |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 3:52 pm Post subject: |
|
|
Try this:
Code: | # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_cha$
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.38-r3
root (hd0,0)
kernel /boot/2.6.38-gentoo-r3 root=/dev/sda3
title Gentoo Linux 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/sda3
title Gentoo Linux 2.6.34-r12
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/sda3
title Gentoo Linux 2.6.34-r12 (rescue)
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/sda3 init=/bin/bb |
Notice there's no kernel- in front of the first 2 file names:
Quote: | -rw-r--r-- 1 root root 3497328 Apr 11 11:39 2.6.34-gentoo-r12
-rw-r--r-- 1 root root 4140976 Apr 30 15:17 2.6.38-gentoo-r3
-rw-r--r-- 1 root root 4205776 Nov 11 12:06 kernel-2.6.34-gentoo-r1
-rw-r--r-- 1 root root 3627376 Nov 19 14:18 kernel-2.6.34-gentoo-r12 |
Also, the bottom 3 kernels in that grub.conf are all the same, I believe one should have the kernel- removed from the front, and one should be -r1 instead of -r12?
Either that, or you want to delete the middle 2 boot options, and
Code: | rm /boot/2.6.34-gentoo-r12
rm /boot/kernel-2.6.34-gentoo-r1 |
I'd probably do the latter!
Last edited by nemectic on Sun May 01, 2011 4:02 pm; edited 1 time in total |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 4:01 pm Post subject: |
|
|
I think I have grub set to what you show, but hadn't noticed the missing "kernel." Wonder what that means?
I'm Ok with r-1; I've never seen it before, maybe a typo from somewhere (where then? Me?), but it isn't hurting anything as far as I can tell. But I'm going to hold off on removing 2.6.38-r3- that's the one I want to keep!
Last edited by pottzie on Sun May 01, 2011 4:06 pm; edited 1 time in total |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 4:05 pm Post subject: |
|
|
It's just the file it's been named as, it doesn't mean anything as long as you edit grub to have the same name. Honestly, your best bet is probably to have this as your grub.conf:
Code: | default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.38-r3
root (hd0,0)
kernel /boot/2.6.38-gentoo-r3 root=/dev/sda3
title Gentoo Linux 2.6.34-r12 (rescue)
root (hd0,0)
kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/sda3 init=/bin/bb |
Just copy & paste it. Then rm the 2 files I mentioned in my last post. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 4:06 pm Post subject: |
|
|
Ok I'll try that.
Edit: After rebooting, still the same, error 15 in grub. Looks to me like the problem is with the kernel, or it's location. |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 4:21 pm Post subject: |
|
|
Can you repost your
Code: | /mnt/gentoo/boot/grub/grub.conf |
and
Code: | ls -l /mnt/gentoo/boot |
From within you live CD, just to double check please. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 5:06 pm Post subject: |
|
|
Actually, right now I'm going back and re-running the instructions from DONAHUE's post on Sat April30 @1:12 pm- should be the fifth entry in this thread. I'll skip the recompile of the kernel, since it was OK, but I want to see if I missed anything. All it does is re-install sys-kernel/gentoo-sources-2.6.38-r3, why, I don't know. Says everything is up to date. |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 5:22 pm Post subject: |
|
|
With the kernel sources already emerged, and you having a working kernel, those instructions should no longer be needed. The original file not found problem looked like it was because of your naming convention, which should have been fixed by the grub.conf posted above - I just wanted to double-check for any errors. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 5:34 pm Post subject: |
|
|
I'm stopping at the point that I copy the image to boot. I think when I did this before that I used the info from the previous "make && make modules" command, which shows 2.6.38-gentoo-r3.
I just copied the kernel to /boot/bzImage, but this time I used linux-2.6.38-gentoo-r3. Here's the pastebin, and anyone with any input is welcome to set me straight as to which method will get grub to see the kernel.
http://pastebin.com/T5aBtLWx
I'll stop here and wait for some clarity before doing anything else.
Edit; Tried to get ls -l /mnt/gentoo/boot and it shows no such file. I know that the first thing I did was run "mkdir /mnt/gentoo" so I don't know why it doesn't work. |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 5:41 pm Post subject: |
|
|
Code: | title Gentoo Linux 2.6.38-r3
root (hd0,0)
kernel /boot/linux-2.6.38-gentoo-r3 root=/dev/sda3 |
Insert that as the top option in
Code: | /boot/grub/grub.conf |
and you should be good to go. Just make sure it's entered exactly as above.
EDIT >> Because you're chrooted into your installation, it's /boot Before you chroot, it's /mnt/gento/boot |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 5:51 pm Post subject: |
|
|
Well, progress.....it boots....right into a kernel panic! Looks like the grub edit worked, though.
Think I'll try a reboot and see if it can fix anything itself. Anyone want to put odds on that happening?
Edit: Nope, didn't think that would work. Shows "Please append a correct "root=" boot option" Then it shows "some stuff," and sr0. No idea what it wants.
Before that, "Root-NFS: No NFS server address" also ties to find NFS in floppy, and it ain't there either.
Last edited by pottzie on Sun May 01, 2011 5:56 pm; edited 1 time in total |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 5:54 pm Post subject: |
|
|
Can you post the output from the kernel panic? A photo from your phone or, if need be, write it out then type it up?
What filesystem are you using for /dev/sda3 (ext3/reiserfs/brtfs etc)?
Did you compile support for the fs into the kernel? I can talk you through checking if you're not sure, just tell me which you used.
Last edited by nemectic on Sun May 01, 2011 6:02 pm; edited 1 time in total |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 5:59 pm Post subject: |
|
|
It woks up until "autorun done" Then it can't find the NFS and comes to a screeching halt. this happens pretty quickly after booting, seems like it's very early in the loading process.
"Root-NFS: no NFS server addresss
VFS: Unable to mount root fs via NFS, trying floppy
VFS: Cannot open root device "sda3" or unknown block(2,0)
I went with what I'd call "standard" se3ttings for the file system, nothing fancy. ext3 as far as I remember. |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun May 01, 2011 6:11 pm Post subject: |
|
|
Ok, it looks like you're missing some kernel options. Can you reboot with your livecd, and post the output of
Then do
Code: | mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo |
and upload the contents of
Code: | /mnt/gentoo/usr/src/linux/.config |
and the ouput of
I doubt it's your fs drivers tbh, probably sata/scsi or somthing similar you've missed.
EDIT >>> I'm off driving back to work, I'll probably be back in a little under 2 hours if you're not sorted by then. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 7:09 pm Post subject: |
|
|
What would help is a way to copy a file in bash! I've "nano'd" my way into /mnt/gentoo/usr/src/linux/.config
but it goes forever! The only way I know to paste it is to highlight as much as I can and then copy it and highlight as much of the next section...lather, rinse, repeat....forever!
I thought computers were supposed to be what did the boring, repetitive and error prone processes for us!
Any way to copy this with one mouse click? I'm sure I'll find out...as soon as I finish copying and pasting "War and Peace" at 5 lines per paste! |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Sun May 01, 2011 7:15 pm Post subject: |
|
|
What exactly are you copying?
Code: | cat /usr/src/linux/.config >> newconfig |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 01, 2011 7:23 pm Post subject: |
|
|
from the chroot: Code: | emerge wgetpaste
wgetpaste /usr/src/linux/.config |
what you are missing are the drivers for your hard drive adapter or you are trying to use deprecated sysfs
Code: | emerge pciutils
wgetpaste lspci -k | post url's
someone will tell you what you need
dot not comma my typo sorry _________________ Defund the FCC.
Last edited by DONAHUE on Sun May 01, 2011 7:34 pm; edited 2 times in total |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 7:31 pm Post subject: |
|
|
For whatever reason, the wgetpastes didn't work.
ubuntu / # wgetpaste /usr/src/linux/,config
/usr/bin/wgetpaste: /usr/src/linux/,config No such file found.
I did mkdir /mnt/gentoo when I started this, and mounted everything using:
sudo su --
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
swapon /dev/sda2
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 01, 2011 7:33 pm Post subject: |
|
|
in chroot
Code: | cd /usr/src/linux
make menuconfig |
edit to:
Quote: | Device Drivers --->
< > ATA/ATAPI/MFM/RLL support --->
SCSI device support --->
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<*> SCSI CDROM support
<*> Serial ATA (prod) and Parallel ATA (experimental) drivers --->
--- Serial ATA and Parallel ATA drivers
[ ] Verbose ATA error reporting
[*] ATA ACPI Support
[ ] SATA Port Multiplier support
*** Controllers with non-SFF native interface ***
<*> AHCI SATA support
< > Platform AHCI SATA support
< > Initio 162x SATA support
< > Silicon Image 3124/3132 SATA support
[*] ATA SFF support
*** SFF controllers with custom DMA interface ***
< > Pacific Digital ADMA support
< > Pacific Digital SATA QStor support
< > Promise SATA SX4 support (Experimental)
[*] ATA BMDMA support
*** SATA SFF controllers with BMDMA ***
< > Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support
< > Marvell SATA support
<*> NVIDIA SATA support
< > Promise SATA TX2/TX4 support
< > Silicon Image SATA support
< > SiS 964/965/966/180 SATA support
< > ServerWorks Frodo / Apple K2 SATA support
< > ULi Electronics SATA support
< > VIA SATA support
< > VITESSE VSC-7174 / INT
< > VITESSE VSC-7174 / INTEL 31244 SATA support
*** PATA SFF controllers with BMDMA ***
< > ALi PATA support
<*> AMD/NVidia PATA support
< > ARTOP 6210/6260 PATA support
< > ATI PATA support
< > ARTOP/Acard ATP867X PATA support
< > CMD64x PATA support
< > CS5510/5520 PATA support
< > CS5530 PATA support
< > Cypress CY82C693 PATA support (Very Experimental)
< > EFAR SLC90E66 support
< > HPT 366/368 PATA support
< > HPT 370/370A/371/372/374/302 PATA support
< > HPT 372N/302N PATA support
< > HPT 343/363 PATA support
< > IT8213 PATA support (Experimental)
< > IT8211/2 PATA support
< > JMicron PATA support
< > Marvell PATA support via legacy mode
< > NETCELL Revolution RAID support
< > Ninja32/Delkin Cardbus ATA support
< > Nat Semi NS87415 PATA support
< > Intel PATA old PIIX support
< > OPTI FireStar PATA support (Very Experimental)
< > Promise PATA 2027x support
< > Older Promise PATA controller support
< > RADISYS 82600 PATA support (Experimental)
< > RDC PATA support
< > SC1200 PATA support
< > Intel SCH PATA support
< > SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< > CMD / Silicon Image 680 PATA support
< > SiS PATA support
< > Toshiba Piccolo support (Experimental)
< > Compaq Triflex PATA support
< > VIA PATA support
< > Winbond SL82C105 PATA support
*** PIO-only SFF controllers ***
< > CMD640 PCI PATA support (Experimental)
< > Intel PATA MPIIX support
< > Nat Semi NS87410 PATA support
< > OPTI621/6215 PATA support (Very Experimental)
< > PC Tech RZ1000 PATA support
*** Generic fallback / legacy drivers ***
< > ACPI firmware driver for PATA
< > Generic ATA support
< > Legacy ISA PATA support (Experimental) |
Code: | make && make modules_install
cp arch/x86/boot/bzImage /boot/linux-2.6.38-gentoo-r3 |
_________________ Defund the FCC.
Last edited by DONAHUE on Sun May 01, 2011 7:36 pm; edited 2 times in total |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Sun May 01, 2011 7:35 pm Post subject: |
|
|
First glaring error I see with your kernel .config is:
Code: | # CONFIG_SATA_NV is not set |
That needs to be set in for your chipset.
paste the out put of lscpi -n at http://kmuto.jp/debian/hcl/
hit Check, that will tell you all the drivers you must have enabled in your kernel .config
after running make menuconfig search for the locations of specific sections of the menu for a specific driver by using:
"/" without quotes then type in the name of a driver for example:
i2c-nforce2 |
|
Back to top |
|
|
Honselas n00b
Joined: 24 Mar 2011 Posts: 29
|
Posted: Sun May 01, 2011 7:37 pm Post subject: |
|
|
pottzie wrote: | For whatever reason, the wgetpastes didn't work.
ubuntu / # wgetpaste /usr/src/linux/,config
/usr/bin/wgetpaste: /usr/src/linux/,config No such file found.
|
There's a typo there it should be .config not ,config |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 8:00 pm Post subject: |
|
|
Well, good news! DONAHUE's kernel worked! Booted into Gentoo. Fails at startx, but at least it can find it's hind quarters with the help of both hands. |
|
Back to top |
|
|
pottzie Guru
Joined: 06 Nov 2010 Posts: 314
|
Posted: Sun May 01, 2011 8:14 pm Post subject: |
|
|
Chrooted in with the live cd and ran emerge xorg-server $(qlist -IC x11-drivers)
Failed as it did a few days ago.
ubuntu / # emerge xorg-server $(qlist -IC x11-drivers)
Calculating dependencies... done!
emerge: there are no ebuilds built with USE flags to satisfy "x11-libs/libdrm[libkms,video_cards_vmware]".
!!! One of the following packages is required to complete your request:
- x11-libs/libdrm-2.4.23 (Change USE: +video_cards_vmware)
(dependency required by "x11-drivers/xf86-video-vmware-11.0.3" [ebuild])
(dependency required by "x11-drivers/xf86-video-vmware" [argument]) |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 01, 2011 8:30 pm Post subject: |
|
|
Code: | nano /etc/portage/package.use | edit to Quote: | x11-libs/libdrm video_cards_vmware | if still feeling compelled to have vmware
libkms???
Run if you get a black and white stipple screen with a moveable cursor X is working and problem is with display manager/window manager/desktop _________________ Defund the FCC.
Last edited by DONAHUE on Sun May 01, 2011 8:36 pm; edited 1 time in total |
|
Back to top |
|
|
|