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

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Apr 21, 2003 2:04 pm    Post subject: genkernel Reply with quote

In GWN today there was a mention of a package in portage called genkernel. Anyone know more about its specifics and what it's purpose is? How is it related to the gentoo-sources?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
nrl
Guru
Guru


Joined: 27 Mar 2003
Posts: 446
Location: Glasgow, UK

PostPosted: Mon Apr 21, 2003 2:30 pm    Post subject: Reply with quote

Well there is only one way to find out, I merged it and when run it outputs
Code:

# genkernel       
* usage: genkernel kernel-version
*
*  --testing    =       install kernels marked unstable
*  --config     =       invoke menuconfig
*  --myconfig   =       uses personal config file
*                       /etc/kernels/myconfig
*  --bootsplash =       install bootsplash initrd also
*                       add its initrd path to settings

I then ran
Code:

genkernel gentoo-sources

and it download and compiled the kernel, I quit it with Ctrl-C when I seen it was compiling the kernel but I presume this is the kernel auto configuration we have been hearing about.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Apr 21, 2003 3:18 pm    Post subject: Reply with quote

nrl wrote:
I then ran
Code:

genkernel gentoo-sources

and it download and compiled the kernel, I quit it with Ctrl-C when I seen it was compiling the kernel but I presume this is the kernel auto configuration we have been hearing about.


I wonder how much this will be adopted? Does it actually configure automatically or just take your pre-made config and rebuild in one command? hmmm... I need to break out the test computer.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Mon Apr 21, 2003 4:51 pm    Post subject: Reply with quote

it doesn't make sense to use it at the moment. It just sets some standard options (like i386 for cpu type). You could as well downloaded a precompiled kernel from RedHat.

BTW: Heard of no one yet who actually successfully compiled a kernel with it. It quits with an error message somewhere in the middle.

[edit]: this post might be of interest for you http://forums.gentoo.org/viewtopic.php?t=47645
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Mon Apr 21, 2003 5:21 pm    Post subject: Reply with quote

nerdbert wrote:
BTW: Heard of no one yet who actually successfully compiled a kernel with it. It quits with an error message somewhere in the middle.


Wonder how it got out of being masked then?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Mon Apr 21, 2003 5:29 pm    Post subject: Reply with quote

flickerfly wrote:
nerdbert wrote:
BTW: Heard of no one yet who actually successfully compiled a kernel with it. It quits with an error message somewhere in the middle.


Wonder how it got out of being masked then?


Code:

emerge -p genkernel

These are the packages that I would merge, in order:

Calculating dependencies   
!!! all ebuilds that could satisfy "genkernel" have been masked.

!!! Error calculating dependancies. Please correct.


just did an emerge sync - should be up to date
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue Apr 22, 2003 2:09 pm    Post subject: Reply with quote

nerdbert wrote:

Code:

emerge -p genkernel

These are the packages that I would merge, in order:

Calculating dependencies   
!!! all ebuilds that could satisfy "genkernel" have been masked.

!!! Error calculating dependancies. Please correct.


just did an emerge sync - should be up to date


I stand corrected. Sorry.

I guess my confusion is between "stable" by GWN's definition and worthy of being unmasked. I assumed they were one and the same. Could someone shed some light to clear up the differences for me?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Tue Apr 22, 2003 4:05 pm    Post subject: Reply with quote

flickerfly wrote:

I guess my confusion is between "stable" by GWN's definition and worthy of being unmasked. I assumed they were one and the same. Could someone shed some light to clear up the differences for me?


Stable by gentoo standards means it at least will probobly come close to working and if you test it we can ge the kinks ironed out. (Though pleanty of perfectly working software is still masked) unmasked means it's been shown to work perfectly.
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Tue Apr 22, 2003 6:36 pm    Post subject: Reply with quote

thanks
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
herring
Apprentice
Apprentice


Joined: 22 Jul 2002
Posts: 187
Location: Norway

PostPosted: Wed Apr 23, 2003 12:01 am    Post subject: Reply with quote

nerdbert wrote:
it doesn't make sense to use it at the moment. It just sets some standard options (like i386 for cpu type). You could as well downloaded a precompiled kernel from RedHat.


Had to try it myself ;-)
Commented out the following lines of /etc/kernels/genkernel prior to testing, to prevent timeconsuming kernelcompilation because my prime interest was looking at the resulting .config file
Code:

#compile
#busybox >/var/log/genkernel.log 2>&1
#initrd >/var/log/genkernel.log 2>&1

and ran
Code:

cd /etc/kernels
./genkernel gentoo-sources --testing --config

'make menuconfig' really popped up to be proofread prior to compiling. But there is no autodetection/setting of kerneloptions as I expected. Like you said, now it only provides a "redhat like" compile-everything-possible-important-as-a-module-approach, but the silent make oldconfig gives you a more gentoofriendly base config than /usr/src/linux/arch/*/defconfig

I was wondering, is it not possible to create a /script/Autoconfig script (I have no idea how to) that grep's useful information from gentoo boot CD's /proc/cpuinfo, dmesg and lspci and then provide some level of autoconfiguration and sane answers to a '/script/Configure'-like script that actually parses the 30+ 'Linux Kernel Configuration' config.in files where dependencies and options already are taken care of.
will we see 'make autoconfig --menuconfig' ?
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Wed Apr 23, 2003 7:31 am    Post subject: Reply with quote

The kernel it compiles won't run on my PC, it lack several important drivers... I wish someone would do some hardware detection, because I only have well known, well supported hardware so lacking drivers isn't a problem.

So I decided to fall back on "do it yourself", much safer.
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Wed Apr 23, 2003 8:35 am    Post subject: Reply with quote

it looks more like a proof of concept right now, but I'm quite sure that hardware detection will come.
I'm wondering if this will only work with the gentoo-sources.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed Apr 23, 2003 7:55 pm    Post subject: Reply with quote

nerdbert wrote:
it looks more like a proof of concept right now, but I'm quite sure that hardware detection will come.

I agree, hope it moves beyond as long as it doesn't take away the manual config options.
Something like this alone would significantly demistify the install process for fresher users. I'd prefer my own kernel, but when helping a friend I'd let them start with this if (when?) it worked.
nerdbert wrote:
I'm wondering if this will only work with the gentoo-sources.

/me nods curiously.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Thu Apr 24, 2003 1:46 pm    Post subject: Reply with quote

Does anyone know how/if it backs up existing kernels and/or modules. I tend to recompile my kernel about once every other week, but being a little paranoid, I want to keep all my old kernels with modules and a nice changelog of what I have done.

//Daniel Armyr
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Thu Apr 24, 2003 3:14 pm    Post subject: Reply with quote

I'm quite sure it makes no backups. But you could try it with a kernel you don't use normaly. If you use gentoo-sources try:

genkernel vanilla-sources

[edit] we are not sure if it's supposed to work with every kernel version, as mentioned before. But give it a try.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Fri Apr 25, 2003 8:20 pm    Post subject: Reply with quote

Cuardin wrote:
Does anyone know how/if it backs up existing kernels and/or modules. I tend to recompile my kernel about once every other week, but being a little paranoid, I want to keep all my old kernels with modules and a nice changelog of what I have done.


If a devel for this prog is watching, I'd like to second this as a feature request.
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Sat Apr 26, 2003 12:04 am    Post subject: Reply with quote

Submitted:
Bug 19972

//Daniel Armyr
Back to top
View user's profile Send private message
livewire
Retired Dev
Retired Dev


Joined: 03 Mar 2003
Posts: 42

PostPosted: Mon Apr 28, 2003 12:49 am    Post subject: Reply with quote

ok, im the genkernel/livecd/xfs-sources/gs-sources dev...
I just added a --buildpkg option to genkernel that packages
kernel,initrd,modules,config.
For now genkernel builds a kernel and initrd very similar
to livecd. Reason is for new users that have never
compiled a kernel. if the livecd boots, so should this.

and the above message was right.. this was released
more as a proof of concept.

Now its here and working.. so where do i wanna take it...

btw it only works with kernel ebuilds that export KV from
kernel.eclass. this is most the main kernels in portage.
Back to top
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Mon Apr 28, 2003 1:23 am    Post subject: Reply with quote

Well, I will have a closer look, but I am surprised something like this isn't part of the standard Linux. It was the first util I coded myself ( Although I know too little of general linux to make a consumer-ready version )

//Daniel Armyr
Back to top
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Sun May 11, 2003 7:53 am    Post subject: Reply with quote

I really like this feature. Worked great on the intial build. Now if only hardware detection (sorry I am repeating what everyone else said). Maybe I should look at doing an ebuild for that, it would be sweet to see this in Gentoo.
Back to top
View user's profile Send private message
panserg
Apprentice
Apprentice


Joined: 16 Apr 2003
Posts: 188

PostPosted: Sun May 11, 2003 12:48 pm    Post subject: Reply with quote

gsfgf wrote:
Stable by gentoo standards means it at least will probobly come close to working and if you test it we can ge the kinks ironed out. (Though pleanty of perfectly working software is still masked) unmasked means it's been shown to work perfectly.


Hmm...

Try to compile net-dialup/rp-pppoe, media-sound/festival and net-fs/openafs - they are unmasked and they are hopelessly broken. rp-pppoe compiles but doesn't work out of the box - you have to compile it manually with manually pulled out cvs sources of ppp. festival and openafs just do not compile. Developers know about both cases from bugzilla but ebuilds are still unmasked confusing innocent users.

Perhaps the fact that developers define stable as "ready for QA" (tell it in any enterprise - they will through you away b/c "stable" is "proved by both QA *AND* time as no known bugs") shows that the concept of stability itself has to be fixed in Gentoo development team.
Back to top
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Wed May 14, 2003 3:36 pm    Post subject: Reply with quote

BTW this does not work from the get go. This is made to make a Live CD.
Back to top
View user's profile Send private message
flickerfly
l33t
l33t


Joined: 08 Nov 2002
Posts: 677
Location: Lanham, MD

PostPosted: Wed May 14, 2003 5:37 pm    Post subject: Reply with quote

cchapman wrote:
BTW this does not work from the get go. This is made to make a Live CD.

So this was never intended to be used as a real kernel, just one to install off of?
_________________
An Evil Genious' Guide to Sheeple and How To Avoid Becoming One | 0x4C9EF4A
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Wed May 14, 2003 6:11 pm    Post subject: Reply with quote

Curous: how would genkernel deal with more than one kernel version on a box? And especially: what would happen with packages like alsa/nvidia-kernel, lm_sensors, that have very tight links to a specific kernel version, if you want to have more than one kernel on your box?
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Wed May 14, 2003 6:23 pm    Post subject: Reply with quote

the syntax is genkernel <*-sources> , so having more than one kernel shouldn't be a problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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