Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Livecd works, genkernel doesn't
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
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Apr 09, 2014 12:07 am    Post subject: Livecd works, genkernel doesn't Reply with quote

Hi all o/

So I'm putting Gentoo on a Chromebook, and everything works great with the livecd, but when I do a genkernel (I want a base functioning system before I dig in) wireless stops working.. the adapter doesn't even show up. I was under the impression that 'genkernel all' was basically the livecd, why does one work but not the other?

Nub question: why do kernels I make and copy into /boot not show in grub?

Thanks!
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Apr 09, 2014 12:17 am    Post subject: Reply with quote

This is probably due to the very, very common mistake of neglecting to emerge linux-firmware. Most adapters need more than just kernel support.

Failing that, try following the directions on www.kernel-seeds.org with either a default kernel config or one provided. Either way, the steps are the same and the guide is very well written.

Quote:
Nub question: why do kernels I make and copy into /boot not show in grub?


Because grub reads a config file. It doesn't probe the disk. It will display any entry as a bootable option even if it no longer exists or never did. You need to update the config with each kernel update.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Apr 09, 2014 12:22 am    Post subject: Reply with quote

The Doctor wrote:
This is probably due to the very, very common mistake of neglecting to emerge linux-firmware. Most adapters need more than just kernel support.

Failing that, try following the directions on www.kernel-seeds.org with either a default kernel config or one provided. Either way, the steps are the same and the guide is very well written.

Quote:
Nub question: why do kernels I make and copy into /boot not show in grub?


Because grub reads a config file. It doesn't probe the disk. It will display any entry as a bootable option even if it no longer exists or never did. You need to update the config with each kernel update.


Awesome :) yea when genkernel fires up it says something like "skipping firmware because already present in kernel FIRMWARE_EXISTS_KERNEL=Y" or something to that affect. I'm assuming I just have to pass some option to make it not do that? I figured that was the problem but I like to ask just in case :)

Thanks so much for your quick answer :)
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Apr 09, 2014 12:37 am    Post subject: Reply with quote

This shouldn't involve genkernel at all. The kernel you built should be okay as long as I am right. All you need to do is emerge -a linux-firmware You will need to get the sources somehow. The kernel option is for building firmware into the kernel. This isn't needed for most hardware.

The two easiest options are using the live CD to chroot back into your install (NOT reinstall) or simply downloading the files you need right from the live CD or dowloading on another computer and using a usb to transfer the files. They go in /usr/portage/distfiles/.

I emphasize the "no need to reinstall" because of how often advice to chroot into an install is misinterpreted.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Apr 09, 2014 1:54 am    Post subject: Reply with quote

The Doctor wrote:
This shouldn't involve genkernel at all. The kernel you built should be okay as long as I am right. All you need to do is emerge -a linux-firmware You will need to get the sources somehow. The kernel option is for building firmware into the kernel. This isn't needed for most hardware.

The two easiest options are using the live CD to chroot back into your install (NOT reinstall) or simply downloading the files you need right from the live CD or dowloading on another computer and using a usb to transfer the files. They go in /usr/portage/distfiles/.

I emphasize the "no need to reinstall" because of how often advice to chroot into an install is misinterpreted.


Meh, something isn't working. My output from emerge syskernel/linux-firmware is literally "syskernel/linux-firmware does not exist, did you mean syskernel/linux-firmware?" hehe
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Wed Apr 09, 2014 2:10 am    Post subject: Reply with quote

The problem is just that you have a typo in the name. It should be sys-kernel/linux-firmware, Are you sure that isn't the correction?

However there is no need to specify the category. Simply linux-firmware should be enough for portage to figure out what you want.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 325
Location: 39.885° N. -88.913° W.

PostPosted: Wed Apr 09, 2014 2:15 am    Post subject: Reply with quote

Kilteroff

The The Doctor didn't say [*]syskernel/linux-firmware[*] The Doctor said
Code:
emerge -a linux-firmware
Which would ask you if you wanted to emerge [ebuild N ] sys-kernel/linux-firmware-20130728 Which has a ( - ) between the sys and the kernel.

So then you can tell it if you want to emerge that item.

Hope this explains this for you.
Back to top
View user's profile Send private message
Kilteroff
n00b
n00b


Joined: 18 Dec 2013
Posts: 36

PostPosted: Wed Apr 09, 2014 2:19 am    Post subject: Reply with quote

Nice, already packed up and heading home but my problem is likely in one of those answers, thanks :)
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3103

PostPosted: Wed Apr 09, 2014 11:17 am    Post subject: Re: Livecd works, genkernel doesn't Reply with quote

Kilteroff wrote:
Hi all o/

So I'm putting Gentoo on a Chromebook, and everything works great with the livecd, but when I do a genkernel (I want a base functioning system before I dig in) wireless stops working.. the adapter doesn't even show up. I was under the impression that 'genkernel all' was basically the livecd, why does one work but not the other?

becouse config used by your genkernel and config used by LiveCD devs' genkernel are 2 different configs.
I bet your particular wireless kernel modules are disabled by default. For example atheros is disabled by default.
Try compilation with `genkernel --menuconfig (to allow you toggling options) --bootloader=grub (to add new kernel to grub config) --no-clean (to reduce compilation time, since you are making only minor changes) all (to make both, kernel and modules)` Obviously skip everything inside brackets :)
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