Unix Technical Forum

SEO

vBulletin Search Engine Optimization


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 03:52 PM
Kiki Novak
 
Posts: n/a
Default Easy way to install 2.6.7?

Hi,

In response my last post, Joost Kremers suggested I use udev instead of
devfs. Which means I have to use a 2.6 kernel.

Until now, I've always worked with stock out-of-the-box kernels without much
(or more exactly: any) recompiling. Correct me if I'm wrong, but after
googling around a bit, it looks to me as if replacing my 2.4.26 kernel that
came with Slackware 10.0 with the 2.6.7 included in the 'testing' directory
on CD 2 is not exactly a trivial operation. I also read
the /boot/README-initrd, which confused me even more.

Question: can someone point me to some *reliable* doc on the subject? Some
nice and easy step by step tutorial that shows how to replace a 2.4 kernel
on Slackware by a 2.6 *without* being written for Doctors in Computer
Science? I don't care about reading *much*, I care about reading right
things that avoid hair-pulling as much as possible.

(And all this only because I wanted to use a USB stick AND a camera... Days
like these, I really get the hang of OS X -> 1/2 joking)

Cheers,

Niki Kovacs
--
Whereof one cannot speak, thereof one frequently goes ranting on and on at
ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus,
first draft)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 03:52 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Kiki Novak wrote:

>Hi,
>
>In response my last post, Joost Kremers suggested I use udev instead of
>devfs. Which means I have to use a 2.6 kernel.
>
>Until now, I've always worked with stock out-of-the-box kernels without much
>(or more exactly: any) recompiling. Correct me if I'm wrong, but after
>googling around a bit, it looks to me as if replacing my 2.4.26 kernel that
>came with Slackware 10.0 with the 2.6.7 included in the 'testing' directory
>on CD 2 is not exactly a trivial operation. I also read
>the /boot/README-initrd, which confused me even more.
>
>Question: can someone point me to some *reliable* doc on the subject? Some
>nice and easy step by step tutorial that shows how to replace a 2.4 kernel
>on Slackware by a 2.6 *without* being written for Doctors in Computer
>Science? I don't care about reading *much*, I care about reading right
>things that avoid hair-pulling as much as possible.
>
>(And all this only because I wanted to use a USB stick AND a camera... Days
>like these, I really get the hang of OS X -> 1/2 joking)
>
>Cheers,
>
>Niki Kovacs
>
>

The instructions in README-initrd are just about right (just did this on
a Gateway Solo, updating 2.4.26 to 2.6.7 about an hour ago); the only
thing you really have to worry about is what file system you have (if
you have reiserfs -- as I do -- the instructions are pretty plain).

What I did was

installpkg kernel-generic-2.6.7-i486-1.tgz
installpkg kernel-modules-2.6.7-i486-2.tgz
installpkg kernel-source-2.6.7-noarch-1.tgz
installpkg alsa-driver-1.0.5a_2.6.7-i486-1.tgz
cd /boot
mkinitrd -c -k 2.6.7 -m reiserfs
vi /etc/lilo.conf
add the stuff on the second page of the README.initrd exactly as shown
lilo
init 6

Works just fine.

Per the WARNING in the directory, I did not install the headers.

That'll get your kernel replaced, then look in /etc/rc.d/rc.modules and
see if you can just turn on whatever module you need for your USB ports
(if they're there, fat dumb and happy; if not, then you have to fiddle
with rebuilding the kernel which is, for now, beyond my understanding
but I'm sure somebody will give you advice on how to do that).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 03:52 PM
Kiki Novak
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Thomas Ronayne wrote:

> The instructions in README-initrd are just about right (just did this on
> a Gateway Solo, updating 2.4.26 to 2.6.7 about an hour ago); the only
> thing you really have to worry about is what file system you have (if
> you have reiserfs -- as I do -- the instructions are pretty plain).
>
> What I did was
>
> installpkg*kernel-generic-2.6.7-i486-1.tgz
> installpkg*kernel-modules-2.6.7-i486-2.tgz
> installpkg*kernel-source-2.6.7-noarch-1.tgz
> installpkg*alsa-driver-1.0.5a_2.6.7-i486-1.tgz
> cd*/boot
> mkinitrd*-c*-k*2.6.7*-m*reiserfs
> vi*/etc/lilo.conf
> add*the*stuff*on*the*second*page*of*the*README.ini trd*exactly*as*shown
> lilo
> init*6
>
> Works just fine.
>
> Per the WARNING in the directory, I did not install the headers.
>
> That'll get your kernel replaced, then look in /etc/rc.d/rc.modules and
> see if you can just turn on whatever module you need for your USB ports
> (if they're there, fat dumb and happy; if not, then you have to fiddle
> with rebuilding the kernel which is, for now, beyond my understanding
> but I'm sure somebody will give you advice on how to do that).


1) Well, I'm using ext2 on the /boot partition and ext3 on every other one
(root partition, /usr, /var, /tmp, /home). So I don't exactly know how to
answer that question. My filesystem on the /boot partition? On /?

2) Second difference: I'm using GRUB, not LILO.

3) Maybe my question is a bit silly (although when I used to teach, I always
told my pupils that there's no such thing as a stupid question). Anyway:
does this install a complete working 2.6.7 kernel... or only the sources
and modules and you have to compile everything yourself?

4) What does the "init 6" after "lilo" mean? Just reboot?

In any case: thanks for your explanations.

Niki Kovacs

--
Whereof one cannot speak, thereof one frequently goes ranting on and on at
ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus,
first draft)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 03:52 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Kiki Novak wrote:

>Thomas Ronayne wrote:
>
>
>
>>The instructions in README-initrd are just about right (just did this on
>>a Gateway Solo, updating 2.4.26 to 2.6.7 about an hour ago); the only
>>thing you really have to worry about is what file system you have (if
>>you have reiserfs -- as I do -- the instructions are pretty plain).
>>
>>What I did was
>>
>>installpkg kernel-generic-2.6.7-i486-1.tgz
>>installpkg kernel-modules-2.6.7-i486-2.tgz
>>installpkg kernel-source-2.6.7-noarch-1.tgz
>>installpkg alsa-driver-1.0.5a_2.6.7-i486-1.tgz
>>cd /boot
>>mkinitrd -c -k 2.6.7 -m reiserfs
>>vi /etc/lilo.conf
>>add the stuff on the second page of the README.initrd exactly as shown
>>lilo
>>init 6
>>
>>Works just fine.
>>
>>Per the WARNING in the directory, I did not install the headers.
>>
>>That'll get your kernel replaced, then look in /etc/rc.d/rc.modules and
>>see if you can just turn on whatever module you need for your USB ports
>>(if they're there, fat dumb and happy; if not, then you have to fiddle
>>with rebuilding the kernel which is, for now, beyond my understanding
>>but I'm sure somebody will give you advice on how to do that).
>>
>>

>
>1) Well, I'm using ext2 on the /boot partition and ext3 on every other one
>(root partition, /usr, /var, /tmp, /home). So I don't exactly know how to
>answer that question. My filesystem on the /boot partition? On /?
>
>

/boot is where the kernel file (the one that's loaded into memory and
runs) along with other important files is found -- its name is 'vmlinuz.
When you upgrade to 2.6.7, there will be a file vmlinuz-ide-2.4.26 (your
old kernel) and a file vmlinuz-generic-2.6.7. There will be a symbolic
link from vmlinuz-generic-2.6.7 to vmlinuz (after you upgrade, not
before). The /boot directory does not contain your file system, it
contains the files needed for Linux to boot.

Your existing partition schema does not change, don't worry about that.

I suspect that you'd "mkinitrd -c -k 2.6.7 -m jbd:ext2" but you'd better
read the manual page (man mkinitrd).

>2) Second difference: I'm using GRUB, not LILO.
>
>

You're on your own for that one -- dunno squat about GRUB.

>3) Maybe my question is a bit silly (although when I used to teach, I always
>told my pupils that there's no such thing as a stupid question). Anyway:
>does this install a complete working 2.6.7 kernel... or only the sources
>and modules and you have to compile everything yourself?
>
>

A complete working kernel and the source (if you "installpkg
kernel-source-2.6.7-noarch-1.tgz"). The source will go into
/usr/src/linux-2.6.9 (there will be a /usr/src/linux-2.6.7 or something
like that already). If you need to compile the kernel, that's where
you'll do it.

>4) What does the "init 6" after "lilo" mean? Just reboot?
>
>

Yep, that's shorthand for shutdown and reboot.

>In any case: thanks for your explanations.
>
>Niki Kovacs
>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 03:52 PM
Henrik Carlqvist
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Kiki Novak <mickey@mouse.com> wrote:
> In response my last post, Joost Kremers suggested I use udev instead of
> devfs. Which means I have to use a 2.6 kernel.


> (And all this only because I wanted to use a USB stick AND a camera...
> Days like these, I really get the hang of OS X -> 1/2 joking)


If you don't want to upgrade to 2.6 you should probably be able to
configure hotplug to solve your problem. The idea is the following:

/etc/hotplug/usb.usermap contains lines with the identities of different
USB devices and scripts which should be run when those devices are plugged
in. The directory /etc/hotplug/usb contains the executable scripts that
usb.usermap is pointing to.

In your case you could try to have scripts doing something like this:

#!/bin/bash

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
ln -s "${DEVICE}" /dev/usbkey
fi

By making symbolic links to new names you could use the new names and
those will always point to the right device without having to consider in
which order the USB devices was plugged.

Maybe if you want to point out a partition the line instead should look
something like:

ln -s "${DEVICE}"1 /dev/usbkey_partition

Not very long ago I wrote a description on how to use hotplug together
with a digital camera, I think you will get the idea from:
http://groups.google.com/groups?selm...deads pam.com

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc2(at)uthyres.com Examples of addresses which go to spammers:
svar@webtelevision.se info@webrider.ru root@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 03:52 PM
Kiki Novak
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Thomas Ronayne wrote:

> I suspect that you'd "mkinitrd -c -k 2.6.7 -m jbd:ext2" but you'd better
> read the manual page (man mkinitrd).


I did exactly that. Once I got over the initial repulsion of reading docs
that could result in breaking my entire system and make a general mess out
of my life... I found it very clear in factD

Googling showed me how to make the according entry in GRUB.

Correct me if I'm wrong. Now I have two new things to worry about:

1) udev instead of devfs

2) Where do we come from? Where do we go to? And where is ALSA?

Cheers,

NK
--
Whereof one cannot speak, thereof one frequently goes ranting on and on at
ball-breaking length. (Ludwig Wittgenstein, Tractatus Logico-Philosophicus,
first draft)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 03:52 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

Kiki Novak wrote:

>Thomas Ronayne wrote:
>
>
>
>>I suspect that you'd "mkinitrd -c -k 2.6.7 -m jbd:ext2" but you'd better
>>read the manual page (man mkinitrd).
>>
>>

>
>I did exactly that. Once I got over the initial repulsion of reading docs
>that could result in breaking my entire system and make a general mess out
>of my life... I found it very clear in factD
>
>

Ah, but that's why we make book disks -- so we can save our butts from
ourselves.

>Googling showed me how to make the according entry in GRUB.
>
>

Cool beans.

>Correct me if I'm wrong. Now I have two new things to worry about:
>
>1) udev instead of devfs
>
>

There's a better response than I can give you later in the thread.

>2) Where do we come from? Where do we go to? And where is ALSA?
>
>

Same place it always was -- all you're doing is installing an update.
Does KDE play it's little tune? If not, rerun alsaconf and alsactl.

>Cheers,
>
>NK
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 03:52 PM
Ron Gibson
 
Posts: n/a
Default Re: Easy way to install 2.6.7?

On Sun, 24 Oct 2004 16:07:06 +0200, Kiki Novak wrote:

> Until now, I've always worked with stock out-of-the-box kernels without
> much (or more exactly: any) recompiling. Correct me if I'm wrong, but
> after googling around a bit, it looks to me as if replacing my 2.4.26
> kernel that came with Slackware 10.0 with the 2.6.7 included in the
> 'testing' directory on CD 2 is not exactly a trivial operation. I also
> read the /boot/README-initrd, which confused me even more.


> Question: can someone point me to some *reliable* doc on the subject? Some
> nice and easy step by step tutorial that shows how to replace a 2.4 kernel
> on Slackware by a 2.6 *without* being written for Doctors in Computer
> Science? I don't care about reading *much*, I care about reading right
> things that avoid hair-pulling as much as possible.


Some things are controlled by what modules are loaded which of course you
can change if you erdit init scripts.

A much easier method would be to go here and grab the stuff in this
package...

<ftp://ftp.slackware.no./linux/slackw...ting/packages/
linux-2.6.8.1>

You might want to archive a few files as I can't remember if pkgtool will
clobber the old kernel or not.

However this needs to be done on at least Slack 10 version or one that was
kernel 2.6* ready.

Myself I just grab a kernel from kernel.org and use my old .config file.
But for kernel newbies that might be a bit much.

If you do it this way you'll have a stock set of modules already built too.
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 07:07 AM.


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 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716