Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
stuck at 7e in handbook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Wed Nov 09, 2011 2:16 pm    Post subject: stuck at 7e in handbook Reply with quote

hello guys i am just instaling gentoo amd64 and i got stuck just after compiling kernel... my screen looks like this :

Kernel:
Code:
arch/x86/boot/bzImage is ready


so i did :
Code:
cp arch/x86/boot/bzImage /boot/kernel-3.0.6-gentoo


and then to check modules i did :
Code:
find /lib/modules/kernel-3.0.6-gentoo/ -type f -iname '*.o' -or -iname '*.ko' | less


and i got this error:
Code:
find '/lib/modules/kernel-3.0.6-gentoo/' : No such file or directory
                             find 'type' : No such file or directory
                             find 'f' : No such file or directory



i rly dont know where i did mistake whole setup went a bit too flawlessly
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Nov 09, 2011 2:18 pm    Post subject: Reply with quote

Within /usr/src/linux run:
Code:
# make modules_install

This will copy all built modules to /lib/<version>/

//edit: I usually run:
Code:
# make -j4 && make modules_install && make install

So I don't have to copy the image manually etc. Just make sure /boot ist mounted, if on a seperate partition.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Wed Nov 09, 2011 2:44 pm    Post subject: Reply with quote

disi wrote:
Within /usr/src/linux run:
Code:
# make modules_install

This will copy all built modules to /lib/<version>/

//edit: I usually run:
Code:
# make -j4 && make modules_install && make install

So I don't have to copy the image manually etc. Just make sure /boot ist mounted, if on a seperate partition.


sadly...
Code:
# make modules_install
did not work i got same error
terminal response was :
Code:
INSTALL arch/x86/kernel/test_nx.ko
                                             INSTALL drivers/scsi/scsi_wait_scan.ko
                                             INSTALL net/netfilter/xt-mark.ko
                                             DEPMOD 3.0.6-gentoo


and hows
Code:
make && make modules_install
and
Code:
make -j4 && make modules_install && make install
different except u define how many cores are compiling what does the
Code:
make install
do?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 09, 2011 2:59 pm    Post subject: Reply with quote

Bia wrote:
sadly...
Code:
# make modules_install
did not work i got same error
terminal response was :
Code:
INSTALL arch/x86/kernel/test_nx.ko
                                             INSTALL drivers/scsi/scsi_wait_scan.ko
                                             INSTALL net/netfilter/xt-mark.ko
                                             DEPMOD 3.0.6-gentoo
There's no error reported here. Are there more messages you're not sharing? Otherwise, it looks like success to me.

"make install" copies the kernel image to /boot. It allegedly doesn't work on some obscure architectures so it isn't the standard Handbook method, but many of us have been using it on x86 and amd64 forever. :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Wed Nov 09, 2011 3:04 pm    Post subject: Reply with quote

John R. Graham wrote:
Bia wrote:
sadly...
Code:
# make modules_install
did not work i got same error
terminal response was :
Code:
INSTALL arch/x86/kernel/test_nx.ko
                                             INSTALL drivers/scsi/scsi_wait_scan.ko
                                             INSTALL net/netfilter/xt-mark.ko
                                             DEPMOD 3.0.6-gentoo
There's no error reported here. Are there more messages you're not sharing? Otherwise, it looks like success to me.

- John

no i am showing everythink i can ....

1.st i did
Code:
make modules_install


response was:
Code:
INSTALL arch/x86/kernel/test_nx.ko
                                             INSTALL drivers/scsi/scsi_wait_scan.ko
                                             INSTALL net/netfilter/xt-mark.ko
                                             DEPMOD 3.0.6-gentoo

2.nd i did
Code:
find /lib/modules/kernel-3.0.6-gentoo/ -type f -iname '*.o' -or -iname '*.ko' | less


response was:
Code:
find '/lib/modules/kernel-3.0.6-gentoo/' : No such file or directory
                             find 'type' : No such file or directory
                             find 'f' : No such file or directory
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 09, 2011 3:07 pm    Post subject: Reply with quote

Well, what does
Code:
ls /lib/modules
report? Seems like
Code:
find '/lib/modules/kernel-3.0.6-gentoo/' : No such file or directory
is a really big hint.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Nov 09, 2011 3:12 pm    Post subject: Reply with quote

try (I think, can't check here): /lib/modules/3.0.6-gentoo/

You can also type /lib/modules/ and hit the TAB key to autocomplete folders in there.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Nov 09, 2011 3:18 pm    Post subject: Reply with quote

/lib/modules/ here you get uname -r result and not kernel-version directory to hold modules

so stop searching the modules with a kernel-version in your find as this directory doesn't exist.
better use find /lib/modules/`uname -r`blahblah for your running kernel
or just cd to /lib/modules you will see the right directories names
Back to top
View user's profile Send private message
Bia
n00b
n00b


Joined: 27 May 2011
Posts: 65

PostPosted: Wed Nov 09, 2011 3:19 pm    Post subject: Reply with quote

John R. Graham wrote:
Well, what does
Code:
ls /lib/modules
report? Seems like
Code:
find '/lib/modules/kernel-3.0.6-gentoo/' : No such file or directory
is a really big hint.

- John


and now i dont get it...

handbook says in part 7c
Code:
Use whatever name you feel is appropriate for your kernel choice and remember it as you will need it later on when you configure your bootloader. Remember to replace kernel-2.6.34-gentoo-r1 with the name and version of your kernel.


so i defined name of my kernel
Code:
kernel-3.0.6-gentoo
then why when i run
Code:
ls /lib/modules
it says
Code:
3.0.6-gentoo
??

also when i run
Code:
find /lib/modules/3.0.6-gentoo/ -type f -iname '*.o' -or -iname '*.ko' | less
it returns only 3 .ko modules thats all?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Nov 09, 2011 3:23 pm    Post subject: Reply with quote

Looks correct to me, could even name them :P
test_nx.ko, scsi_wait_scan.ko, xt-mark.ko

It's correct because it's what you have ask the kernel to do, it might not be correct if you didn't asked the kernel anything, but it's not a kernel issue, but a user configuration issue.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 09, 2011 3:41 pm    Post subject: Reply with quote

krinn wrote:
/lib/modules/ here you get uname -r result and not kernel-version directory to hold modules

so stop searching the modules with a kernel-version in your find as this directory doesn't exist.
better use find /lib/modules/`uname -r`blahblah for your running kernel
Doesn't necessarily work because he's not necessarily running the kernel he's building.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Wed Nov 09, 2011 3:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Nov 09, 2011 3:43 pm    Post subject: Reply with quote

krinn wrote:
...uname -r`blahblah for your running kernel


I didn't fall in the gap.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 09, 2011 3:44 pm    Post subject: Reply with quote

Oh, I see. Correct, but not relevant. :wink:

Bia, krinn is absolutely correct that you have to ask the kernel to make modules. If you don't ask (by selecting modules during the kernel configuration process), you won't get any. We don't see any errors in what you've been reporting.

That doesn't mean that your kernel configuration is correct yet (although it may very well be). It just means that you're incorrect in thinking that you haven't made it through this step. You have.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Nov 09, 2011 4:06 pm    Post subject: Reply with quote

Bia wrote:
...so i defined name of my kernel
Code:
kernel-3.0.6-gentoo
then why when i run
Code:
ls /lib/modules
it says
Code:
3.0.6-gentoo
??
Because just copying and renaming one file doesn't change what the kernel build process has already done to other files elsewhere in the filesystem. The kernel source code knows what version it is and names certain directories (like the ones under /lib/modules) appropriately.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Wed Nov 09, 2011 6:59 pm    Post subject: Reply with quote

firstly, step 7.e has been pretty well overtaken by development and can be skipped by almost everyone. udev and kernel and openrc take good care of modules.

if you really want to do it
Code:
find /lib/modules/* -type f -iname '*.ko' | less
will get you past the mental block about kernel names varying here and there
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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