• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: kernel update with kirkwood install  (Read 3246 times)
melmoth
Newbie
*

Karma: 0
Posts: 2


View Profile
« on: January 14, 2010, 09:27:44 AM »

Hi there.

I just installed debian lenny based on the kirkwood document below:

http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html

I have installed lenny on a usb drive.

I have two question about this installation method regarding kernel updates.

My main concern is to get a fresh kernel whenever some security problem are fixed.

1) In the default /etc/apt/sources.list, there is the following repository:

# Orion repository
#deb http://people.debian.org/~tbm/orion lenny main

What is this repository for ?
Do i need it if i want to get automatic kernel update (if there is such a thing. I am wondering if i am supposed to follow what is going on at kernel.org and recompile one myself each time a security issue is fixed).

2) Assuming there is such a thing as regular kernel updates, how exactly tells uBoot the kernel has changed ?


http://plugcomputer.org/plugforum/index.php?topic=1182.msg7246;topicseen#msg7246
I am a bit lost with those uImage and uInitrd files.

or should i follow
http://plugcomputer.org/plugwiki/index.php/Install_Prebuilt_Kernels_From_sheeva.with-linux.com

?
Logged

af3556
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #1 on: January 20, 2010, 05:55:00 PM »

Quote
My main concern is to get a fresh kernel whenever some security problem are fixed.

If you're running Debian stable (currently lenny), you'll rarely get an update; w/ Debian testing (currently squeeze) you'll get a few more but still pretty uncommon. This is a good thing: security issues in stable kernels are fortunately rare.

For example, here's the recent history for the kernel package:
feed://packages.qa.debian.org/l/linux-2.6/news.rss20.xml

So, stick with Debian's updates and rest easy. I don't believe you need the ~tbm/orion repository; the standard Debian sources should be fine.

http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-sources.list


Or, if you want to bleed a bit more, do-it-yourself and manage your kernel manually, e.g. via sheeva.with-linux.com/sheeva/; in this case you'll need to follow kernel mailing lists to see when you need to update (and trust cbxbiker61 who graciously provides the SwL kernels :-).


Quote
Assuming there is such a thing as regular kernel updates, how exactly tells uBoot the kernel has changed ?

If you install the kernel to flash, u-boot doesn't need to know about updates (it'll keep on truckin', loading the new kernel from the old/same location).

If you boot the kernel from external storage, managed by Debian, Debian will update the symlinks in / to point to the new kernel images. i.e. uboot will find the new kernel via the symlink.


Either way, normally you don't need to touch u-boot when updating the kernel.


uImage/uInitrd: uboot requires it's images to be in a specific format (http://www.denx.de/wiki/DULG/UBootImages); basically a wrapper around the file. uImage is a uboot wrapped kernel image, similarly uInitrd is a uboot wrapped initial-ramdisk image (http://en.wikipedia.org/wiki/Initrd, required by highly-modular kernels, e.g. Debian; sheeva.with-linux kernels don't need one).


Good luck,
Ben
Logged

pancho
Newbie
*

Karma: 1
Posts: 20


View Profile
« Reply #2 on: January 20, 2010, 11:57:09 PM »

Quote
jMy main concern is to get a fresh kernel whenever some security problem are fixed.

1) In the default /etc/apt/sources.list, there is the following repository:

# Orion repository
#deb http://people.debian.org/~tbm/orion lenny main

What is this repository for ?
Do i need it if i want to get automatic kernel update (if there is such a thing. I am wondering if i am supposed to follow what is going on at kernel.org and recompile one myself each time a security issue is fixed).

Lenny does not support the SheevaPlug, so you won't get any kernel security updates from the main repositories.

For that, you can either uncomment Martin Michlmayr's orion/kirkwood repos line (the one you mention)
 or use the backports service at http://www.backports.org.  See http://backports.org/dokuwiki/doku.php?id=instructions there for instructions.

Hope that it helps.

Cheers,
Logged

evilned
Newbie
*

Karma: 0
Posts: 13


View Profile
« Reply #3 on: January 25, 2010, 09:36:43 AM »

I have Squeeze installed to a USB disk using the debian installer, and recently had a kernel update, unfortunately, even after removing the old kernel package, I am still showing the old kernel version as running.  Is there anyway to force those kernel update scripts to run on Squeeze?
Logged

evilned
Newbie
*

Karma: 0
Posts: 13


View Profile
« Reply #4 on: January 25, 2010, 10:53:34 AM »

For further clarification, it looks like vmlinuz and the initrd files are updated, but uImage and uInitrd are not. Are uImage and uInitrd generated on kernel install?  If so, how do I generate them?
Logged

evilned
Newbie
*

Karma: 0
Posts: 13


View Profile
« Reply #5 on: January 25, 2010, 11:16:24 AM »

Looks like someone figured this out already, but the information isn't on here.  Thanks to http://blog.bofh.it/debian/id_265

apt-get uboot-mkimage
cd /boot/
mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 \
  -n Linux-<kernel Version> -d vmlinuz-<Kernel Version>-kirkwood uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 \
  -n initramfs -d initrd.img-<Kernel Version> -kirkwood uInitrd
Logged

tbm
Full Member
***

Karma: 7
Posts: 121



View Profile WWW
« Reply #6 on: January 25, 2010, 04:11:55 PM »

Simply run:

flash-kernel

and it will generate the files for you.
Logged

Pages: [1]
Print
Jump to: