Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel Trouble
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sand49
n00b
n00b


Joined: 10 Jul 2012
Posts: 7
Location: уфа, россия

PostPosted: Tue Jul 10, 2012 1:53 am    Post subject: genkernel Trouble Reply with quote

guys having a bit on trouble installing gentoo i am up to installing the kernel.
i am installing it on a 32 bit PC with 2gb of ram i have installed gentoo-sources and genkernel but when i try to run "genkernel all" it says
"ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing. maybe re-install Kernel sources."
i have re-installed the Kernel sources comes up with the same message.

Please can you help. :D
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Jul 10, 2012 2:11 am    Post subject: Reply with quote

sand49,

Welcome to gentoo :D

What does readlink /usr/src/linux && ls -l /usr/src/linux/Makefile return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 2:23 pm    Post subject: Reply with quote

Hi,

I have quite the same problem as the thread-starter. One difference is, that my gentoo was already running for some weeks... now I dont really know what I did or what happend, but my eth0 cannot come up.
"ifconfig eth0 up" says "No such device"

So my brother came up with the idea to run the "genkernel all", but that gives me the error that the Makefile is missing...

The command from you, BillWho, "readlink /usr/src/linux && ls -l /usr/src/linux/Makefile" gives me:

linux-3.3.8-gentoo
ls: cannot access /usr/src/linux/Makefile: No such file or directory


hope someone can help me :)
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Thu Aug 16, 2012 2:52 pm    Post subject: Reply with quote

@Nardian, Welcome to Gentoo. :)

This indicates that the install of gentoo-sources failed. Could you report the output of
Code:
emerge -s gentoo-sources
and
Code:
mount
please?

- 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
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 3:10 pm    Post subject: Reply with quote

Hi, thanks for the respone :)

Code:

emerge -s gentoo-sources
Searching...
[ Result for search key : gentoo-sources ]
[ Applications found : 1 ]

* sys-kernel/gentoo-sources
       Latest version available: 3.5.1
       Latest version installed: 3.5.1
       Size of files: 79,148 kB
       Homepage:      http://dev.gentoo.org/~mpagano/genpatches
       Description:   Full sources including the Gentoo patchset for the 3.5 kernel tree
       License:       GPL-2 !deblob? ( freedist )



Code:
 mount
rootfs on / type rootfs (rw)
proc on /proc type proc(rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
/dev/sda3 on type ext4 (rw,noatime,user_xattr,acl,barrier=1,data=ordered)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
cgroup_root on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
openrc on /sys/fs/cgroup/openrc type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpuset on /sys/fs/cgroup/cpuset tpye cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cpuacct on /sys/fs/cgroup/cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
usbfs on /proc/bus/usb type usbfs (rw,noexec,nosuid,devmode=0664,devgid=85)


well - that took a while to copy that by hand ^^ hope I didnt make some typos.... :P
or is there a better method to copy the output (the gentoo has no network, so I cannot access it remotely...)?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Thu Aug 16, 2012 3:17 pm    Post subject: Reply with quote

Yes there is; sorry. Just emerge wgetpaste. Then you can do things like
Code:
emerge -s gentoo-sources | wgetpaste
and you'll be presented with a short URL where the output has been pasted onto the web. Looks like you have more than one version of gentoo-sources installed. Can you (emerge wgetpaste first and then) post the listing of the /usr/src directory contents, like
Code:
ls -l /usr/src | wgetpaste
please?

- 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
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 16, 2012 3:18 pm    Post subject: Reply with quote

Nardian,

What does
Code:
eselect kernel list
return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 3:25 pm    Post subject: Reply with quote

John R. Graham wrote:
Yes there is; sorry. Just emerge wgetpaste.

sorry, cannot do that, I have no network, so I cannot emerge that - and even if - how should it create a short URL without network? :(

Code:
ls -l /usr/src
lrwxrwxrwx  1 root root    18 Jul 14 17:23 linux -> linux-3.3.8-gentoo
drwxr-xr-x 21 root root  4096 Aug 13 21:20 linux-3.3.8-gentoo
drwxr-xr-x 23 root root  4096 Aug 16 15:44 linux-3.5.1-gentoo
-rw-r--r--  1 root root 90114 Aug 16 15:57 my.config

the my.config I copied from ... I dont know which linux-xxx-gentoo folder ".config" - so that "my.config" can be ignores / removed if you want

Code:
eselect kernel list
  [1]   linux-3.3.8-gentoo *
  [2]   linux-3.5.1-gentoo
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 16, 2012 3:30 pm    Post subject: Reply with quote

Nardian,

Code:
eselect kernel set 2
will take care of the symlink - then cd /usr/src/linux and try to build your kernel again.

You probably did a depclean, but the directory is not removed.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 3:33 pm    Post subject: Reply with quote

BillWho wrote:
You probably did a depclean, but the directory is not removed.

yep, I really did that ^^
and "genkernel all" seems to work now

Thanks for the help (both of you :) )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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