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, 11:00 AM
Sharino
 
Posts: n/a
Default FS: upgrade Kernel

Can anybody direct me to a how to site on update the
kernel, I found the steps on rebuilding the current kernel
but no on how to change it to 2.6.6. I did a fresh install of
Slack 9.1 and would like to change the kernel. Do I need
the patch of 2.6.6 or the source to accomplish this?
TIA


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 11:00 AM
chud
 
Posts: n/a
Default Re: FS: upgrade Kernel

On Sun, 06 Jun 2004 16:50:48 +0000, Sharino wrote:

> Can anybody direct me to a how to site on update the kernel, I found the
> steps on rebuilding the current kernel but no on how to change it to
> 2.6.6. I did a fresh install of Slack 9.1 and would like to change the
> kernel. Do I need the patch of 2.6.6 or the source to accomplish this? TIA


I just built a 2.6.6 kernel last night, so it's fresh in my mind.
1) Get the kernel src from kernel.org.
2) The src package has excellent instructions, especially see the
Documentation directory.
3) I did a make defconfig, then modified the resulting config for my
hardware.
4) There are some changes you'll need to make to your 9.1 Slackware
configuration. For example, you won't need the hdc=ide-scsi line in
lilo.conf. That means you'll need to change the /dev/cdrom link as well.
There are other changes as well, but nothing major. Google is your friend.

hth

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 11:00 AM
~kurt
 
Posts: n/a
Default Re: FS: upgrade Kernel

Sharino <sharino07REMOVE@hotmail.com> wrote:
> Can anybody direct me to a how to site on update the
> kernel, I found the steps on rebuilding the current kernel
> but no on how to change it to 2.6.6. I did a fresh install of


The steps are the same except for some differences in how you
prepare the kernel for compile. This is a pretty good kernel
howto that covers 2.6.x:

<http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html>

> Slack 9.1 and would like to change the kernel. Do I need
> the patch of 2.6.6 or the source to accomplish this?


I do not know of any way to patch a 2.4.x to be a 2.6.x - that
would probably be pretty pointless as the patch would be huge.
You should just download the full source and follow the directions
in the above link to build and install it. Also check out
the README in the kerel source.

- Kurt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 11:00 AM
Ross Kendall Axe
 
Posts: n/a
Default Re: FS: upgrade Kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

~kurt wrote:
| I do not know of any way to patch a 2.4.x to be a 2.6.x - that
| would probably be pretty pointless as the patch would be huge.
| You should just download the full source and follow the directions
| in the above link to build and install it. Also check out
| the README in the kerel source.
|
| - Kurt

If you were to try and patch 2.4.x to 2.6.x you probably have to get a
bunch of 2.4 patches and back them out until you arrived at the version
that was forked to 2.5, than apply all the 2.5 patches and all the the
2.6 patches as well. I'm not even sure that would work.
You're right, just download the tarball.

Ross
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAw2/z9bR4xmappRARAgDkAJ92ODg97PZfuT2W83dZ5Maj5EPbwQCgl 1Nq
zrRsgU6bRuSydqhiLBqYeBQ=
=KPWn
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 11:00 AM
/dev/rob0
 
Posts: n/a
Default Re: FS: upgrade Kernel

"FS"? I thought that usually meant "for sale" in Usenet subjects? I was
interested in buying an upgrade kernel.

On Sun, 06 Jun 2004 16:50:48 +0000, Sharino wrote:
> Can anybody direct me to a how to site on update the
> kernel, I found the steps on rebuilding the current kernel
> but no on how to change it to 2.6.6. I did a fresh install of
> Slack 9.1 and would like to change the kernel. Do I need
> the patch of 2.6.6 or the source to accomplish this?


There are dozens of ways to get from where you are to where you want to
be, but they all require some knowledge, which is generally available
by reading the instructions, but possibly not always. For example, you
have to know something about your hardware in order to properly
configure a new kernel.

Your post doesn't give any direct indication of what you know or don't
know, which I will take as an indirect indication that you don't know
much at all. In that case the best question for you is ... WHY? Why do
you think you need a 2.6.6 kernel?

<you tell me what you expect to gain>

Whether or not those gains are real or imaginary, you would probably
gain more from learning some basic skills. In general the skill of
configuring a kernel is not that important. I suspect that a lot of
people who get caught up in that before they understand anything about
GNU/Linux are the ones who get burned out and go back to Windows in
anger or frustration.

<assuming you're going to disregard my advice, everyone does >

As others have told you already, there is no major difference between a
2.4.x and 2.6.x kernel. Go forth and follow the instructions you found.
If you were fortunate enough to land on some clueful instructions, you
will soon enjoy your shiny new 2.6.6 kernel.

Slackware-current has a generic 2.6.6 kernel and modules in its
testing/ directory. That one might be tricky to use, because unlike its
predecessor Slackware kernels, it's stripped down. You'll probably need
to use the new mkinitrd package (also in testing/) to build an initrd
which contains all the modules you need to get to your root filesystem.
(The idea is that once your root filesystem is mounted, you can load
all the modules you need.)

I can't advise you on the mkinitrd thing, not having done it myself.
But if you try it and run into problems I'm sure I/we here in a.o.l.s.
can help.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 11:00 AM
Robert D. De Mars
 
Posts: n/a
Default Re: FS: upgrade Kernel

Sharino wrote:

> Can anybody direct me to a how to site on update the
> kernel, I found the steps on rebuilding the current kernel
> but no on how to change it to 2.6.6. I did a fresh install of
> Slack 9.1 and would like to change the kernel. Do I need
> the patch of 2.6.6 or the source to accomplish this?
> TIA
>
>

This is what I do.

1. Log in as root
2. Download the full kernel source code from
www.kernel.org. The current stable kernel at this time is 2.6.2.
I downloaded the full kernel source code file
linux-2.6.2.tar.bz2 this was downloaded into the /root
directory
3. To avoid possible drama, I never unpack the new
kernel source in the /usr/src. Since I am logged in as root, I
will proceed with unpacking the source in my /root dir. I use
the following command
* bzip2 -cd linux-2.6.2.tar.bz2 | tar -xvf -
This will unpack everything into /root/linux-2.6.2/
4. cd /usr/src/linux & then
* make mrproper this cleans-up old kernel
stuff
5. When compiling the kernel all output files will per
default be stored together with the kernel source code. Using
the option "make O=output/dir" allows you to specify an alternate
place for the output files (including .config). I like this
option. Since my kernel source code is in /root/linux-2.6.2, I
will save my output files to /root/build/kernel. I believe an
added bonus to this option is the next time I run "make mrproper"
in my new /root/linux-2.6.2 kernel source, I believe my .config
file will remain safely in /root/build/kernel for future purposes
I don't want to f-things up, so I make the dir tree
/root/build/kernel in advance. Note: if the O=output/dir is
used, it must be used with each make command.
6. cd /root/linux-2.6.2
7. make O=/root/build/kernel menuconfig
* This starts a menu driven utility to help
config the kernel
8. make O=/root/build/kernel
9. make O=/root/build/kernel bzImage
10. make O=/root/build/kernel modules_install
11. cp /root/build/kernel/arch/i386/boot/bzImage /boot
12. cd /boot
13. mv vmlinuz vmlinuz.old
14. vi /etc/lilo.conf (need to edit lilo for new
kernel, and add an entry for the old 2.4.22 kernel)

#Linux bootable partition config starts
#this will load the new kernel 2.6.2
image = /boot/bzImage
root = /dev/hda3
label = slackware
read-only

#old back-up stock 2.4.22 kernel - old
faithful
image = /boot/vmlinuz.old
root = /dev/hda3
label = slack2422
read-only

# End Config File


15. lilo **don't forget this command **
16. reboot


--
===========================
http://b-o-b.homelinux.com
Long 93:18W Lat 45:09N
===========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 11:00 AM
/dev/rob0
 
Posts: n/a
Default Re: FS: upgrade Kernel

On Mon, 07 Jun 2004 03:07:06 +0000, Robert D. De Mars wrote:
> This is what I do.
>
> 1. Log in as root


Why?!? There is no any need to do typical compiling jobs as root. The
more you use that root account the more potential risks you face:
risk of you typing something wrong, risk of someone else having typed
something wrong, or worse: a deliberate trojan.

> 2. Download the full kernel source code from


If a vulnerability existed in your FTP/HTTP client, a hostile server
could exploit you. This kind of thing happens to Windows/MSIE users
every day.

> www.kernel.org. The current stable kernel at this time is 2.6.2.


?!?!? It's 2.6.6, as the OP noted.

The rest of this is basically good advice, however:

> option. Since my kernel source code is in /root/linux-2.6.2, I
> will save my output files to /root/build/kernel. I believe an
> added bonus to this option is the next time I run "make mrproper"
> in my new /root/linux-2.6.2 kernel source, I believe my .config
> file will remain safely in /root/build/kernel for future purposes


Unless you use the O=/output/dir with that. Also, all your object files
remain, so what you might have wanted from running mrproper in the
first place is not achieved. I'd say that the O=/output/dir benefit is
that you don't need to run make clean or mrproper. If you're doing a
different ARCH or dramatically different configurations, specify a
different output directory.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 11:01 AM
Robert D. De Mars
 
Posts: n/a
Default Re: FS: upgrade Kernel

/dev/rob0 wrote:

> On Mon, 07 Jun 2004 03:07:06 +0000, Robert D. De Mars wrote:
>
>>This is what I do.
>>
>> 1. Log in as root

>
>
> Why?!? There is no any need to do typical compiling jobs as root. The
> more you use that root account the more potential risks you face:
> risk of you typing something wrong, risk of someone else having typed
> something wrong, or worse: a deliberate trojan.
>


Noted.

>
>> 2. Download the full kernel source code from

>
>
> If a vulnerability existed in your FTP/HTTP client, a hostile server
> could exploit you. This kind of thing happens to Windows/MSIE users
> every day.
>
>
>>www.kernel.org. The current stable kernel at this time is 2.6.2.

>
>
> ?!?!? It's 2.6.6, as the OP noted.
>


Yeah, sorry. These were the notes I made back when 2.6.2 was fresh.

> The rest of this is basically good advice, however:
>
>
>>option. Since my kernel source code is in /root/linux-2.6.2, I
>>will save my output files to /root/build/kernel. I believe an
>>added bonus to this option is the next time I run "make mrproper"
>>in my new /root/linux-2.6.2 kernel source, I believe my .config
>>file will remain safely in /root/build/kernel for future purposes

>
>
> Unless you use the O=/output/dir with that. Also, all your object files
> remain, so what you might have wanted from running mrproper in the
> first place is not achieved. I'd say that the O=/output/dir benefit is
> that you don't need to run make clean or mrproper. If you're doing a
> different ARCH or dramatically different configurations, specify a
> different output directory.


Thank you for the advice/correction.

Robert De Mars

--
===========================
http://b-o-b.homelinux.com
Long 93:18W Lat 45:09N
===========================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 11:01 AM
Sharino
 
Posts: n/a
Default Re: FS: upgrade Kernel


"Robert D. De Mars" <bob-news@b-o-b.homelinux.com> wrote in message
news:uZQwc.3832$Fd.2227@twister.rdc-kc.rr.com...
> Sharino wrote:
>
> > Can anybody direct me to a how to site on update the
> > kernel, I found the steps on rebuilding the current kernel
> > but no on how to change it to 2.6.6. I did a fresh install of
> > Slack 9.1 and would like to change the kernel. Do I need
> > the patch of 2.6.6 or the source to accomplish this?
> > TIA
> >
> >

> This is what I do.
>
> 1. Log in as root
> 2. Download the full kernel source code from
> www.kernel.org. The current stable kernel at this time is 2.6.2.
> I downloaded the full kernel source code file
> linux-2.6.2.tar.bz2 this was downloaded into the /root
> directory
> 3. To avoid possible drama, I never unpack the new
> kernel source in the /usr/src. Since I am logged in as root, I
> will proceed with unpacking the source in my /root dir. I use
> the following command
> * bzip2 -cd linux-2.6.2.tar.bz2 | tar -xvf -
> This will unpack everything into /root/linux-2.6.2/
> 4. cd /usr/src/linux & then
> * make mrproper this cleans-up old kernel
> stuff
> 5. When compiling the kernel all output files will per
> default be stored together with the kernel source code. Using
> the option "make O=output/dir" allows you to specify an alternate
> place for the output files (including .config). I like this
> option. Since my kernel source code is in /root/linux-2.6.2, I
> will save my output files to /root/build/kernel. I believe an
> added bonus to this option is the next time I run "make mrproper"
> in my new /root/linux-2.6.2 kernel source, I believe my .config
> file will remain safely in /root/build/kernel for future purposes
> I don't want to f-things up, so I make the dir tree
> /root/build/kernel in advance. Note: if the O=output/dir is
> used, it must be used with each make command.
> 6. cd /root/linux-2.6.2
> 7. make O=/root/build/kernel menuconfig
> * This starts a menu driven utility to help
> config the kernel
> 8. make O=/root/build/kernel
> 9. make O=/root/build/kernel bzImage
> 10. make O=/root/build/kernel modules_install
> 11. cp /root/build/kernel/arch/i386/boot/bzImage /boot
> 12. cd /boot
> 13. mv vmlinuz vmlinuz.old
> 14. vi /etc/lilo.conf (need to edit lilo for new
> kernel, and add an entry for the old 2.4.22 kernel)
>
> #Linux bootable partition config starts
> #this will load the new kernel 2.6.2
> image = /boot/bzImage
> root = /dev/hda3
> label = slackware
> read-only
>
> #old back-up stock 2.4.22 kernel - old
> faithful
> image = /boot/vmlinuz.old
> root = /dev/hda3
> label = slack2422
> read-only
>
> # End Config File
>
>
> 15. lilo **don't forget this command **
> 16. reboot
>
>
> --
> ===========================
> http://b-o-b.homelinux.com
> Long 93:18W Lat 45:09N
> ===========================

Thanks for the directions, this is exactly what I needed,
I know have Slackware 9.1 running on 2.6.6
Thanks again


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 11:06 AM
Jim Diamond
 
Posts: n/a
Default Re: FS: upgrade Kernel

On 2004-06-07, Robert D. De Mars <bob-news@b-o-b.homelinux.com> wrote:
> Sharino wrote:
>
>> Can anybody direct me to a how to site on update the
>> kernel, I found the steps on rebuilding the current kernel
>> but no on how to change it to 2.6.6. I did a fresh install of
>> Slack 9.1 and would like to change the kernel. Do I need
>> the patch of 2.6.6 or the source to accomplish this?
>> TIA
>>
>>

> This is what I do.


> 3. To avoid possible drama, I never unpack the new
> kernel source in the /usr/src.

I always do, and never get any drama. Maybe I'm missing something :-(
As others pointed out, being root for this is a Bad Thing, so I usually
do something like (as root)
cd /usr/src
mkdir linux-2.6.6
chown <my-userid> linux-2.6.6
and then proceed up until the install phase as just plain old me.

> Since I am logged in as root, I will proceed with unpacking the
> source in my /root dir. I use the following command * bzip2 -cd
> linux-2.6.2.tar.bz2 | tar -xvf -


Much easier:
tar xfvj linux-2.6.6.tar.bz2

> This will unpack everything into /root/linux-2.6.2/
> 4. cd /usr/src/linux & then
> * make mrproper this cleans-up old kernel
> stuff


Ummm.... what does that have to do with the new kernel you are compiling?
If you were re-compiling the old source in the same tree, you would
want to do that, but otherwise I don't see the point.

Cheers.

Jim
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:14 PM.


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

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