New IT forum Follow us on Twitter
21 May 2012, 05:01:16 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Upgrade kernel  (Read 1264 times)
greg
Newbie
*
Posts: 2


« on: 31 May 2011, 10:22:48 am »

Hi

I've received a new SheevaPlug with Debian on SD. I'm new to Debian but I've been using Fedora for years.

I was able to "update" various software parts, but some of ones I need are somehow specify to a kernel version (such as kernel headers needed for compilation).

Is there a simple way to have the kernel match the other "up to date" software in the repo? I found this thread (http://www.newit.co.uk/forum/index.php/topic,986.0.html) but it seems very complicated, I was expecting something like "upgrade then reboot"

TIA

greg
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 31 May 2011, 05:01:46 pm »

Greg -

See here: http://plugcomputer.org/plugforum/index.php?board=2.0

and here: http://sheeva.with-linux.com/sheeva/

Make sure that you read the instructions in the README file.
Logged
greg
Newbie
*
Posts: 2


« Reply #2 on: 03 June 2011, 12:40:30 am »

Thanks for your answer, but all this is awfully complicated. Is there a simpler method?
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #3 on: 03 June 2011, 07:34:53 am »

Thanks for your answer, but all this is awfully complicated. Is there a simpler method?

Greg -

It is a simple method.

I highlighted the fact that the README file should be read, because others will read this thread and there are circumstances under which running the script (the README file is also a script) will be detrimental. Specifically, this method is not appropriate for Sheevaplugs that have the ex-factory jffs2 file system on NAND.

You implied that you have a multiboot system (because you stated that you have Debian "on SD"). That means that the procedure is fine for updating your UBIFS system on the internal NAND. That upgrade will be a separate procedure from the SD card upgrade.

To upgrade NAND, must already have been converted to UBIFS to kernel 2.6.38.2 (for example):

Code:
wget http://sheeva.with-linux.com/sheeva/README-PLUG-UPDATE.sh
./README-PLUG-UPDATE.sh 2.6.38.2 --nandkernel

Again, because your plug already has a non-original kernel, the environment variable changes have already been taken care of. If you have an eSATA plug, you may need to change arcNumber to 2678.

As for your SD card, you can download the modules and kernel manually:

Code:
wget http://sheeva.with-linux.com/sheeva/2.6.38/2.6.38.2/sheeva-2.6.38.2-uImage
wget http://sheeva.with-linux.com/sheeva/2.6.38/2.6.38.7/sheeva-2.6.38.7-Modules.tar.gz

Check the downloaded files against the md5sums that are also available at sheeva.with-linux.com

Decompress the modules to your rootfs, they should decompress to /lib/modules. For instance, on a system I have here (because I haven't cleaned out the old modules), I see:

Code:
debian:~# ls -al /lib/modules/     
drwxr-xr-x  3 root root  4096 Aug 30  2010 2.6.32.7
drwxr-xr-x  3 root root  4096 Aug 21  2010 2.6.35.3
drwxr-xr-x  3 root root  4096 Jan 30 16:56 2.6.36


After you have verified that the modules have been decompressed to the correct location, rename the kernel to uImage, and copy it to the first partition of your SD card, overwriting the "old" uImage.

Logged
rieker
Newbie
*
Posts: 1


« Reply #4 on: 03 November 2011, 05:56:32 pm »

I have a normal sheevaplug with UBIFS

 uname -a
Linux debian 2.6.36 #3 PREEMPT Sun Dec 5 16:26:45 GMT 2010 armv5tel GNU/Linux

now I would like to update to 3.1.

Do I need to run
./README-PLUG-UPDATE.sh 3.1 --nandkernel
or
./README-PLUG-UPDATE.sh 3.1 --rootkernel

?
 Thanks in advance
Logged
LeKeiser
Newbie
*
Posts: 11


« Reply #5 on: 09 December 2011, 11:28:05 am »

Hello,

I have en e-Sata Sheevaplug running under Debian Squeeze 4.3.5-4 , and I need to upgrade the kernel/version.
Do I have to understand that to do so, I first have to upgrade the nand, change the uImage, and more stuff, before I can do an aptitude dist-upgrade?
Could you explain to me exactly what I'm supposed to do? I don't understand why I have to upgrade first the Nand to be able to upgrade the OS... I thought the Nand could be considered like a Bios, and I never have to change the Bios on a "normal" server to upgrade/change a kernel.

Thanx for your time, and sorry if this post sounds stupid Sad

Cheers
Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #6 on: 09 December 2011, 06:23:35 pm »

Quote
Debian Squeeze 4.3.5-4
Thats OK, but what is your current kernel version (cat /proc/version) ?

Quote
aptitude dist-upgrade
Will not upgrade the kernel on a plug, hence the script mentioned in the posts above.
Will try to upgrade your Distribution (e.g. change it to Debian Wheezy) which may break things.

Quote
I don't understand why I have to upgrade first the Nand
Where is you current Debian Squeeze 4.3.5-4 OS installed ?

If you are not sure what you are doing, install an OS either to a SD card or a HDD, if you break things you can just unplug it, boot, and start again.


Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Roel1963
Newbie
*
Posts: 4


« Reply #7 on: 10 December 2011, 09:24:38 am »

Quote
aptitude dist-upgrade
Will not upgrade the kernel on a plug, hence the script mentioned in the posts above.
Will try to upgrade your Distribution (e.g. change it to Debian Wheezy) which may break things.

I think this will only try to upgrade your distro if you change the lines in your sources.list first. Anyway, always be careful when issuing this command.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!