Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 06:14 AM
Venkat Venkataraju
 
Posts: n/a
Default genkernel fails

Hi genkernel fails on make modules. i deleted the entire source
directory and emergerd it again, but it still fails.

GenKernel v3.0.1_beta4-3
* ARCH: x86
* KERNEL VER: 2.4.22-gentoo-r5
* kernel: configuring source
* kernel: running mrproper
* kernel: using config from /usr/share/genkernel/x86/kernel-config-2.4
* kernel: running oldconfig
* kernel: running clean
* kernel: Making dependencies for linux 2.4.22-gentoo-r5
* kernel: Starting compile of linux 2.4.22-gentoo-r5 bzImage
* kernel: Starting compile of linux 2.4.22-gentoo-r5 modules
* gen_die(): compile of modules failed

Any help appriciated

-V-

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 06:14 AM
Michael R.
 
Posts: n/a
Default Re: genkernel fails

I had the same problem, with the same kernel, switch to a different
kernel and it worked.

Venkat Venkataraju wrote:
> Hi genkernel fails on make modules. i deleted the entire source
> directory and emergerd it again, but it still fails.
>
> GenKernel v3.0.1_beta4-3
> * ARCH: x86
> * KERNEL VER: 2.4.22-gentoo-r5
> * kernel: configuring source
> * kernel: running mrproper
> * kernel: using config from /usr/share/genkernel/x86/kernel-config-2.4
> * kernel: running oldconfig
> * kernel: running clean
> * kernel: Making dependencies for linux 2.4.22-gentoo-r5
> * kernel: Starting compile of linux 2.4.22-gentoo-r5 bzImage
> * kernel: Starting compile of linux 2.4.22-gentoo-r5 modules
> * gen_die(): compile of modules failed
>
> Any help appriciated
>
> -V-
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 06:15 AM
Shan Destromp
 
Posts: n/a
Default Re: genkernel fails

Captains log; stardate Sunday 18 January 2004 04:02 pm, Lieutenant Michael R. reported that.......

> I had the same problem, with the same kernel, switch to a different
> kernel and it worked.
>
> Venkat Venkataraju wrote:
>> Hi genkernel fails on make modules. i deleted the entire source
>> directory and emergerd it again, but it still fails.
>>
>> GenKernel v3.0.1_beta4-3
>> * ARCH: x86
>> * KERNEL VER: 2.4.22-gentoo-r5
>> * kernel: configuring source
>> * kernel: running mrproper
>> * kernel: using config from /usr/share/genkernel/x86/kernel-config-2.4
>> * kernel: running oldconfig
>> * kernel: running clean
>> * kernel: Making dependencies for linux 2.4.22-gentoo-r5
>> * kernel: Starting compile of linux 2.4.22-gentoo-r5 bzImage
>> * kernel: Starting compile of linux 2.4.22-gentoo-r5 modules
>> * gen_die(): compile of modules failed
>>
>> Any help appriciated
>>
>> -V-
>>


Or you can build your kernel manually, its not that difficult, especially if you use
--makemenuconfig or whatever the option is in genkernel to get a list of options to enabled /
disable / modulize in the kernel. All it does after that is the equiv of "make dep && make bzImage
modules modules_install". I've seen quite a few of these kinds of posts (both in newsgroups and
forums) by people using genkernel, and whenever I / we get them to build the kernel manually, they
never have any problems, nor do they have to switch what sources their using.

Genkernel is wothless when you really get down to it. All it does is take away you having to type
one line of commands, and give you the impression that its saving you time.

My first install of Gentoo I used genkernel and immediately didn't like the way it worked. As soon
as the station was up and running I rm -rf'd the .config file inside /usr/src/linux and did
everything by hand. After that, my kernel was a great deal faster, and nearly half the size of the
one by genkernel (ALL of my hardware was working, unlike most done by genkernel).

--
Shan Destromp
---
Sent: Mon, Jan 19, 2004 @ 13.53.10 EST
----
OS: GNU/Linux 2.4.22-gentoo-r5
Processor: AuthenticAMD i686

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 06:16 AM
Joseph
 
Posts: n/a
Default Re: genkernel fails

On Mon, 19 Jan 2004 18:58:36 +0000, Shan Destromp wrote:

> Genkernel is wothless when you really get down to it. All it does is take away you having to type
> one line of commands, and give you the impression that its saving you time.


You must be talking about the -old- genkernel...

================
# genkernel --menuconfig all

*** End of Linux kernel configuration.

* kernel: running clean
* kernel: skipping make dep for non 2.4 kernels
* kernel: Starting compile of linux 2.6.1-rc2-gentoo make
* kernel: Starting compile of linux 2.6.1-rc2-gentoo modules
* Dietlibc: Found bincache at /usr/share/genkernel/pkg/x86/dietlibc-0.24-x86.tar.bz2
* Busybox: Found bincache at /usr/share/genkernel/pkg/x86/busybox-1.00-pre3-patched-x86.bz2
* module-init-tools: configure
* extracting dietlibc bincache
* module-init-tools: make all
* cleaning up dietlibc bincache
* module-init-tools: copying to bincache
* module-init-tools: cleaning up
* devfsd: Found bincache at /usr/share/genkernel/pkg/x86/devfsd-1.3.25-dietlibc-kernel25-x86.bz2 and /usr/share/genkernel/pkg/x86/devfsd-conf-0.24-x86.bz2
* initrd: creating base system
* initrd: copying modules
* initrd: copying auxilary files
* initrd: calculating initrd size
* initrd: calculated size 900 + 100k slop for fs overhead
* initrd: real size 1000
* initrd: creating loopback filesystem
* initrd: moving initrd fs to loopback
* initrd: cleaning up and compressing initrd
* initrd: copying bootsplash
* DONE
==================================

--
-Joseph-
Newbies, we all say & do stupid things sometimes. But, googling is powerful.
http://users.netwit.net.au/~pursang/l-faq.pdf
http://www.gentoo.org/doc/en/index.xml

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 06:16 AM
Venkat Venkataraju
 
Posts: n/a
Default Re: genkernel fails

I used to compile my kernels manually. But genkernel creates initrd
which i dont know how to make one manually.

i tried to compile 2.4.22-r4 and it worked without any probelm.

/V


Joseph wrote:
> On Mon, 19 Jan 2004 18:58:36 +0000, Shan Destromp wrote:
>
>
>>Genkernel is wothless when you really get down to it. All it does is take away you having to type
>>one line of commands, and give you the impression that its saving you time.

>
>
> You must be talking about the -old- genkernel...
>
> ================
> # genkernel --menuconfig all
>
> *** End of Linux kernel configuration.
>
> * kernel: running clean
> * kernel: skipping make dep for non 2.4 kernels
> * kernel: Starting compile of linux 2.6.1-rc2-gentoo make
> * kernel: Starting compile of linux 2.6.1-rc2-gentoo modules
> * Dietlibc: Found bincache at /usr/share/genkernel/pkg/x86/dietlibc-0.24-x86.tar.bz2
> * Busybox: Found bincache at /usr/share/genkernel/pkg/x86/busybox-1.00-pre3-patched-x86.bz2
> * module-init-tools: configure
> * extracting dietlibc bincache
> * module-init-tools: make all
> * cleaning up dietlibc bincache
> * module-init-tools: copying to bincache
> * module-init-tools: cleaning up
> * devfsd: Found bincache at /usr/share/genkernel/pkg/x86/devfsd-1.3.25-dietlibc-kernel25-x86.bz2 and /usr/share/genkernel/pkg/x86/devfsd-conf-0.24-x86.bz2
> * initrd: creating base system
> * initrd: copying modules
> * initrd: copying auxilary files
> * initrd: calculating initrd size
> * initrd: calculated size 900 + 100k slop for fs overhead
> * initrd: real size 1000
> * initrd: creating loopback filesystem
> * initrd: moving initrd fs to loopback
> * initrd: cleaning up and compressing initrd
> * initrd: copying bootsplash
> * DONE
> ==================================
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 06:16 AM
Shan Destromp
 
Posts: n/a
Default Re: genkernel fails

Captains log; stardate Monday 19 January 2004 05:04 pm, Lieutenant Joseph reported
that.......

> On Mon, 19 Jan 2004 18:58:36 +0000, Shan Destromp wrote:
>
>> Genkernel is wothless when you really get down to it. All it does is take away
>> you having to type one line of commands, and give you the impression that its
>> saving you time.

>
> You must be talking about the -old- genkernel...
>

<snip>

I fail to see what the big deal about it is. So it can now pre-select your hardware
and such, whoopty doo. Maybe I don't WANT all of my hardware installed (as is the
case with a built in modem and sound), or I don't agree with some of the default
options it pre-selects for me.

I know its all a matter of personal preference, but I feel as though genkernel is
taking away a step Linux users (ESPECIALLY newbies) should have to (learn how to)
do. If you don't know how to build your kernel (and what the options mean) then you
don't know how to fix it when you need to, and so on and so forth ad nauseam,
infinity and what have you.

I dunno, maybe the install docs *shouldn't* have you run it by default, or should
alteast make you use --menuconfig to look around before you let it go on its way

--
Shan Destromp
---
Sent: Tue, Jan 20, 2004 @ 01.51.57 EST
----
OS: GNU/Linux 2.4.22-gentoo-r5
Processor: AuthenticAMD i686

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 06:29 AM
Mr. Root
 
Posts: n/a
Default Re: genkernel fails

Venkat Venkataraju wrote:
> I used to compile my kernels manually. But genkernel creates initrd
> which i dont know how to make one manually.


I had the same problem until someone explained to me that for the most
part you don't need an initrd. initrd "is a RAM disk that is initialized
(e.g. loaded) by the boot loader before the kernel is started." Unless
you're booting to a scsi drive then initrd isn't needed.

Genkernel 3.x is still new and has some problems. Once you manually
build a kernel (which is very simple) you'll never look back again.
Here's a simplified step by step guide:

Make sure /boot is mounted. running 'mount /boot' if it isn't.

cd /usr/src/linux
This of course drops you into your source directory.

make menuconfig
This will open the kernel configuration utility and select whatever
options you had selected previously. Go through the menus and see if you
want to make some changes. When done hit esc until you're asked if you
want to save your changes. Say yes.

make dep && make bzImage modules modules_install
The build begins.

cp arch/i386/boot/bzImage /boot/kernel-2.4.22-test
Insert your kernel version.

cp System.map /boot/System.map-2.4.22-test
Again, insert your kernel version.

cp .config /boot/config-2.4.22-test
Once again, your kernel version. This just backs up you kernel
configuration file (/usr/src/linux/.config).

modules-update
Updates /etc/modules.conf.

nano -w /boot/grub/grub.conf
Add the following:

title=Gentoo Linux 2.4.22-test
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel (hd0,0)/kernel-2.4.22-test root=/dev/hda3

Notice the lack of an initrd? Unless you need a driver loaded _before_
the kernel, initrd isn't needed. Save and exit.

That's it. Reboot and enjoy. If your new kernel fails (because of the
options selected) just reboot, go back to the last working one and
change some options. The first one is the toughest but after a little
while you'll be building custom kernels for different things (like
gaming or video compression).

Good luck and please post your results to the tread.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 06:29 AM
Joseph
 
Posts: n/a
Default Re: genkernel fails

On Wed, 04 Feb 2004 09:13:02 -0500, Mr. Root wrote:

> That's it. Reboot and enjoy.


Yes, so much easier than:

# genkernel all

....isn't it?

--
-Joseph- Thank God for the ability to PLONK people.
Watch out for people who have forgotten what it's like to be a nOOb.
Give them a good PLONK for 30 days or so. And, be greatful when people
say they are going to PLONK you; that is often a Godsend.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 06:29 AM
Ben Measures
 
Posts: n/a
Default Re: genkernel fails

Mr. Root wrote:
> Venkat Venkataraju wrote:
>
>> I used to compile my kernels manually. But genkernel creates initrd
>> which i dont know how to make one manually.

>
>
> I had the same problem until someone explained to me that for the most
> part you don't need an initrd. initrd "is a RAM disk that is initialized
> (e.g. loaded) by the boot loader before the kernel is started." Unless
> you're booting to a scsi drive then initrd isn't needed.


Not quite for that last sentence... more in a bit. (initrd is the main
topic for my post here, just a little background.)

> Genkernel 3.x is still new and has some problems. Once you manually
> build a kernel (which is very simple) you'll never look back again.


Oh so true. Manually configuring your kernel gives you that extra bit of
control (and optimisation) of your system(s). You also learn more than
(just) 'genkernel'.

> Here's a simplified step by step guide:
>
> Make sure /boot is mounted. running 'mount /boot' if it isn't.
>
> cd /usr/src/linux
> This of course drops you into your source directory.
>
> make menuconfig
> This will open the kernel configuration utility and select whatever
> options you had selected previously. Go through the menus and see if you
> want to make some changes. When done hit esc until you're asked if you
> want to save your changes. Say yes.
>
> make dep && make bzImage modules modules_install


This is just an aside but I usually
make dep && make clean bzImage modules modules_install
just for that extra clean feeling (okay, rogue modules get cleaned from
/lib/modules/, helps sometimes with modules-update errors).

> The build begins.
>
> cp arch/i386/boot/bzImage /boot/kernel-2.4.22-test
> Insert your kernel version.
>
> cp System.map /boot/System.map-2.4.22-test
> Again, insert your kernel version.
>
> cp .config /boot/config-2.4.22-test
> Once again, your kernel version. This just backs up you kernel
> configuration file (/usr/src/linux/.config).
>
> modules-update
> Updates /etc/modules.conf.
>
> nano -w /boot/grub/grub.conf
> Add the following:
>
> title=Gentoo Linux 2.4.22-test
> # Partition where the kernel image (or operating system) is located
> root (hd0,0)
> kernel (hd0,0)/kernel-2.4.22-test root=/dev/hda3
>
> Notice the lack of an initrd? Unless you need a driver loaded _before_
> the kernel, initrd isn't needed. Save and exit.


Here we are, about initrd. initrd is an initial ramdisk (compressed
image) that gets passed to the kernel before its boot-up sequence.
initrd decomresses the image and the kernel then loads it as the
(initial) root partition.

It is useful for storage/loading modules before the root partition (or
more precisely /lib/modules/) is available. So for example it is useful
for loading lvm or reiserfs if your root partition needs that. Or a raid
or scsi driver if it needs that.

Now I hear you ask, why not just compile those modules into the kernel?
Well, here is where initrd comes into its own. You can compile one
kernel for many machines with different hardware and just customise the
initial ramdisk image. This means that only the specific modules that a
machine needs to boot will be saved onto the /boot/ partition (most
useful when space is limited).

So in short, there isn't much advantage to an initrd *unless* you're
building a kernel for multiple computers. So as Mr Root wrote, you don't
really need to know how to make an initrd (just yet ).

> That's it. Reboot and enjoy. If your new kernel fails (because of the
> options selected) just reboot, go back to the last working one and
> change some options. The first one is the toughest but after a little
> while you'll be building custom kernels for different things (like
> gaming or video compression).
>
> Good luck and please post your results to the tread.


And GL from me. Enjoy!

--
Ben M.

----------------
What are Software Patents for?
To protect the small enterprise from bigger companies.

What do Software Patents do?
In its current form, they protect only companies with
big legal departments as they:
a.) Patent everything no matter how general
b.) Sue everybody. Even if the patent can be argued
invalid, small companies can ill-afford the
typical $500k cost of a law-suit (not to mention
years of harassment).

Don't let them take away your right to program
whatever you like. Make a stand on Software Patents
before its too late.

Read about the ongoing battle at http://swpat.ffii.org/
----------------

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 06:29 AM
Johan Lindquist
 
Posts: n/a
Default Re: genkernel fails

So anyway, it was like, 17:28 CET Feb 04 2004, you know? Oh, and, yeah,
Ben Measures was all like, "Dude,

> make dep && make clean bzImage modules modules_install just for
> that extra clean feeling (okay, rogue modules get cleaned from
> /lib/modules/, helps sometimes with modules-update errors).


I thought modules_install was responsible for wiping out /lib/modules
before installing stuff?

'make clean' only does its thing in /usr/src/linux (well, the current
dir, to be precise), afaik.

> So in short, there isn't much advantage to an initrd *unless* you're
> building a kernel for multiple computers. So as Mr Root wrote, you
> don't really need to know how to make an initrd (just yet ).


Personally, I've never used one. I've not booted off of lvm (because
I find it silly to put such a critical thing as / on a device that is
nothing else than software raid), but I've booted off some odd ide
cards, and I've currently got two boxen running on adaptec scsi cards.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
19:11:40 up 11 days, 2:47, 2 users, load average: 2.07, 2.09, 2.08
$ cat /dev/bollocks Registered Linux user #261729
streamline open-source networks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558