View previous topic :: View next topic |
Author |
Message |
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 3:19 pm Post subject: This is simply not my day... |
|
|
Ok I got the Kernel sources installed. Portage is emerged... Now I'm onto Genkernel, because I already failed at doing it manually yesterday.
merge genkernel
I get an error
Incomplete merge: /var/db/pkg/sys-kerne;/merging-developement-sources-2.6.6
Doesn't actually give me an error, so i ignore it and move on
now
genkernel all
grep: /usr/src/linux/Makefile: No such file or directory
*repaeats this error 3 more times*
*Compiling Linux Kernel .. for x86...
* ERROR: Error: No kernel specified, or file not found!
* -- Grepping log... --
* Gentoo Linux Genkernel; version 3.0.2a
* Compiling Linuc Kernel .. for x86...
* ERROR Error: No kernel config specified, or file not found!
* -- End Log... --
Can anyone help me? I am completely baffled now. This is my 3rd attempt at insalling and I come across problems every time I compile a kernel.
I guess it's aso worth noting tha during Kernel source emerge I got several DMA errors, none of which were reported as critical. The emerge just kept happenning and seemed fully successful in the end. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Jun 24, 2004 3:59 pm Post subject: |
|
|
the emerge of the kernel sources was not successful, which is what "incomplete merge" wants to tell you. Thus some files are missing and genkernel craps out. Check the disk (as of the DMA errors) and re-emerge the kernel sources, then try again |
|
Back to top |
|
|
MaxDamage l33t
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Thu Jun 24, 2004 4:00 pm Post subject: |
|
|
I would suggest checking if the symlink /usr/src/linux is pointing to the correct kernel source. _________________ La PDA de tungsteno |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Thu Jun 24, 2004 4:01 pm Post subject: |
|
|
It seems that your incomplete merge was...well...incomplete. It obviously hasn't make the symlink at /usr/src/linux to /usr/src/linux-2.6.whatever (there are notes about this in the manual config section of the handbook if you noticed them). You might try making the symlink and seeing if it works then, because perhaps the only problem at merge time was in the symlink.
The only problem being the symlink is really rather unlikely, so you will probably still get errors; but you can at least try. Who knows, maybe it is the problem. Otherwise doing so will probably help diagnose the real problem anyway. _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 4:59 pm Post subject: |
|
|
Ok i started over yet again... I just have a question. If I do a successful emerge sync, do i have to do an emerge-webrsync? The manual is unclear as to what this does... |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Jun 24, 2004 5:01 pm Post subject: |
|
|
You don't need emerge-webrsync then, it's only for the special when something like a firewall blocks emerge sync. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 5:04 pm Post subject: |
|
|
Could that possibly be the root of so many of my problems?
/me continues install |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 5:33 pm Post subject: |
|
|
Alright, i've decided to consult the forums fo every question now because I have realised jsut how much of a n00b I am...
symlink... Hwo should this be setup? Should I follow the manual exactly? The manual seems to bee using the 2.4.25-gentoo kernel or some such, but I downloaded the dev kernel which is 2.6.6 What should I pun in fo this pat of the command?
ln -s linux-?????? linux |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 6:00 pm Post subject: |
|
|
Anybody? I figure it should probably be either
ln -s linux-2.6.6 linux
or
ln -s linux-development-sources-2.6.6 linux |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Jun 24, 2004 6:52 pm Post subject: |
|
|
IIRC the former. However, just use tab completion to find out:
Code: |
cd /usr/src
ln -s linux-<TAB>
|
where <TAB> is the tab key on your keyboard. Awesome feature |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 7:09 pm Post subject: |
|
|
Eh... I put in linux-2.6.6... I couldn't spend 2 hours waiting for someone to reply. I probably killed it again.
Now I have a new problem... After compiling Genkernel I now cannot use emerge. or genkernel for that matter... Thus I a once again stuck
Also when I type in
ls /boot/kernel* /boot/initrd*
I get 2 kernels...
/boot/initrd-2.4.25-gentoo /boot/initrd-2.6.5-gentoo /boot/kernel-2.4.25-gentoo /boot/kernel-2.6.5-gentoo
This tells me 2 things... 1 I didn't use the right name for my symlink
2 My kernel version is diffrent from the one my computer originally told me it was un-tarring. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Thu Jun 24, 2004 7:19 pm Post subject: |
|
|
Ok i have my commands back, I did a chroot, and I think I'm good to go. Hopefully that didn screw anything up... Probably did, as it seems I'm not meant to be able to install Gentoo... |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Thu Jun 24, 2004 8:56 pm Post subject: |
|
|
Ahkorishaan wrote: | as it seems I'm not meant to be able to install Gentoo... |
Hmm. I know how that goes. I spent like five months (okay, so most of that doesn't count because I got sidetracked for three) setting up Gentoo, but did I give up? Umm...well...yes. But that doesn't matter. I tried again! And again...and again...and I think again... And guess what, it worked!
Okay enough for my speech. I just thought I would let you know that we aren't ignoring you. Umm...let me think about this for a minute and I'll try to get back to you... _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Thu Jun 24, 2004 9:14 pm Post subject: |
|
|
Okay as far as the two kernels, it looks like you tried to emerge a kernel twice, right? The only problem being, you used different versions, like "gentoo-dev-sources" and "gentoo-sources", am I correct?
(see edit at bottom!!!)
I realize this may be frustrating, but what I would suggest is that you start over again. Now before you flame me, I don't mean start all over again. I just mean delete the files from boot (that are related to the kernel; don't delete like the /boot symlink, etc.), unmerge genkernel, and why don't you unmerge the kernel sources you have, too:
Code: | (chrooted with all partitions mounted)
rm -f /boot/kernel* /boot/initrd* /boot/config* /boot/System.map*
emerge unmerge genkernel
emerge unmerge gentoo-dev-sources
emerge unmerge gentoo-sources |
Now make sure there are no leftovers:
Code: | ls /usr/src/linux*
(if this turns up anything:)
rm -fr /usr/src/linux* |
Now emerge your kernel:
Code: | (assuming you still want the 2.6 kernel)
emerge gentoo-dev-sources
(or if you want the 2.4 kernel)
emerge gentoo-sources |
and genkernel:
Now, make sure the /usr/src/linux symlink points to the kernel you want:
Code: | ls -l /usr/src/linux
(if the directory after the little arrow at the end of the listing is not the kernel you want, or it doens't exist:)
ln -sf /usr/src/linux-2.6.* |
Keep in mind that that assumed you are still using 2.6. If not, change that to 2.4.
Now try running genkernel and see what happens.
[edit]
Keep in mind that only do this if your kernel still isn't working. I am a little fuzzy as to what has been solved and what hasn't. _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 12:17 am Post subject: |
|
|
Thakyou for all your help. All is going very well now. Hopefully I can get this installation over and done with in under 3 days... I kinda want my functionality back. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 12:41 am Post subject: |
|
|
The hits keep coming... I can;t configure modules, as there doesn;t seem to be any... |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Fri Jun 25, 2004 2:49 am Post subject: |
|
|
Ahkorishaan wrote: | The hits keep coming... I can;t configure modules, as there doesn;t seem to be any... |
Maybe you didn't think this either, and were just simply making a statement of fact, but I don't believe that is an error. I only used genkernel once (it aparantly added something to the kernel that made it fail, and I have done it manually ever since), so I don't know much about it, but I think it should have compiled everthing into the kernel directly. _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 3:21 am Post subject: |
|
|
I don't think so... All the Windows filesystems are modularized. I started over with a stage three this time. I figure I've gotten through the first two stages hitch free so why bother waiting them out again
I really didn't optimize anything I just went throught the motions to see what it was like.
So I'm at the genkernel all stage again. we'll see how it pans out this time. |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Fri Jun 25, 2004 3:36 am Post subject: |
|
|
Oh, okay. Well then what do you mean by "there don't seem to be any"? Are there (I mean, were there, if you are reinstallling again) no *.ko files in /lib/modules/*? Or are there errors when running genkernel? Just thought it might help diagnose the problem if we knew the symptoms (even if the problem it helps with is one that happens later)... _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 3:42 am Post subject: |
|
|
Alright I'm absolutely perfect this time round up until I try to find modules.
Code: | # find /lib/modules/2.6.7-gentoo-r6/ -type f -iname '*.o' -or '*.ko'
find: paths must precede expression
Usage: find [path...] [expression] |
Thats what happens.
Now I did some 'ls' work and it seems 2.6.7-gentoo-r6 is filled with more directories and no files... This is liekly the problem, but I don't know where to find the modules I'm supposed to be finding, so they can be auto-loaded.
[edit]Heh, i'm an idiot the problem was that it's -or -iname '*.ko' ...[/edit]
Last edited by Ahkorishaan on Fri Jun 25, 2004 3:49 am; edited 1 time in total |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 3:45 am Post subject: |
|
|
found it! The -or part of the script was not right or something to that effect. I killed it. now I'm good.
wait, how do I scroll up? The list is longer than the screen.... |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Fri Jun 25, 2004 3:51 am Post subject: |
|
|
Oh, yes. There should have been another -iname switch in front of the -or one and before the '*.o' part... _________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 4:09 am Post subject: |
|
|
How do i scroll up to see all my modules? |
|
Back to top |
|
|
supreme_geek_overlord Apprentice
Joined: 13 Oct 2003 Posts: 217 Location: Floating around in my ego
|
Posted: Fri Jun 25, 2004 4:21 am Post subject: |
|
|
You mean the output of find overflows the screen? Whew, genkernel must make a lot of modules! Anyway you can scroll by redirecting it with a pipe ("|") to less (like this:)
Code: | find whatever | less |
_________________ 9 out of 10 geeks prefer supreme_geek_overlord to Satan as the all-powerful dictator of the universe. |
|
Back to top |
|
|
Ahkorishaan n00b
Joined: 24 Jun 2004 Posts: 39
|
Posted: Fri Jun 25, 2004 4:52 am Post subject: |
|
|
Once I have the system up I'll remive most of them, and recompile the kernel, but I jsut wanna get the thing into X Windows or at least booting.
Thanks for the scroll thang. |
|
Back to top |
|
|
|