[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrading kernel on a NSLU2



HI Martin,

Thanks for the confirmation, the upgrade did work but with some tiny effort...
see the log below....
I had to install the specific version by using linux-image.... =version_number...

==========================================================
myslug:~/kernel# apt-get clean
myslug:~/kernel# apt-get clean all
myslug:~/kernel# apt-get update
Get:1 http://natasha.stmarytx.edu etch Release.gpg [378B]
Hit http://natasha.stmarytx.edu etch Release
Get:2 http://security.debian.org etch/updates Release.gpg [189B]
Get:3 http://www.backports.org etch-backports Release.gpg [189B]
Get:4 http://security.debian.org etch/updates Release [22.5kB]
Get:5 http://www.backports.org etch-backports Release [43.7kB]
Ign http://natasha.stmarytx.edu etch/main Packages/DiffIndex
Ign http://natasha.stmarytx.edu etch/main Sources/DiffIndex
Hit http://natasha.stmarytx.edu etch/main Packages
Hit http://natasha.stmarytx.edu etch/main Sources
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Get:6 http://security.debian.org etch/updates/main Packages [191kB]
Hit http://www.backports.org etch-backports/main Packages/DiffIndex
Hit http://www.backports.org etch-backports/contrib Packages/DiffIndex
Hit http://www.backports.org etch-backports/non-free Packages/DiffIndex
Get:7 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Get:8 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Get:9 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Ign http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff
Get:10 http://security.debian.org etch/updates/main Sources [28.9kB]
Hit http://www.backports.org etch-backports/contrib
Fetched 287kB in 6s (45.6kB/s)
Reading package lists... Done
myslug:~/kernel# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-2.6.18-4-ixp4xx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8851kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
myslug:~/kernel# man apt-get
Reformatting apt-get(8), please wait...
myslug:~/kernel# apt-get -f
apt 0.6.46.4-0.1 for linux arm compiled on Feb 26 2007 22:44:23
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
   install - Install new packages (pkg is libc6 not libc6.deb)
   remove - Remove packages
   source - Download source archives
   build-dep - Configure build-dependencies for source packages
   dist-upgrade - Distribution upgrade, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files
   check - Verify that there are no broken dependencies

Options:
  -h  This help text.
  -q  Loggable output - no progress indicator
  -qq No output except for errors
  -d  Download only - do NOT install or unpack archives
  -s  No-act. Perform ordering simulation
  -y  Assume Yes to all queries and do not prompt
  -f  Attempt to continue if the integrity check fails
  -m  Attempt to continue if archives are unlocatable
  -u  Show a list of upgraded packages as well
  -b  Build the source package after fetching it
  -V  Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.
myslug:~/kernel# apt-get -d dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-2.6.18-4-ixp4xx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 8851kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://security.debian.org etch/updates/main linux-image-2.6.18-4-ixp4xx 2.6.18.dfsg.1-12etch2 [8851kB]
Fetched 8851kB in 24s (364kB/s)
Download complete and in download only mode
myslug:~/kernel# dpkg -l | grep linux
ii  foomatic-db                  20061031-1                               linuxprinting.org printer support - database
ii  foomatic-db-engine           3.0.2-20061031-1                         linuxprinting.org printer support - programs
ii  foomatic-filters             3.0.2-20061031-1.2                       linuxprinting.org printer support - filters
ii  libselinux1                  1.32-3                                   SELinux shared libraries
ii  linux-image-2.6.18-4-ixp4xx  2.6.18.dfsg.1-12                         Linux 2.6.18 image on IXP4xx
ii  linux-kernel-headers         2.6.18-7                                 Linux Kernel Headers for development
ii  linuxvnc                     0.8.2-1                                  VNC server to monitor a tty
ii  util-linux                   2.12r-19etch1                            Miscellaneous system utilities
myslug:~/kernel# apt-get  install linux-image-2.6-ixp4xx=2.6.18+6etch2
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  linux-image-2.6-ixp4xx linux-image-2.6.18-5-ixp4xx
Suggested packages:
  linux-doc-2.6.18 fdutils
The following NEW packages will be installed:
  linux-image-2.6-ixp4xx linux-image-2.6.18-5-ixp4xx
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 8859kB of archives.
After unpacking 25.7MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://natasha.stmarytx.edu etch/main linux-image-2.6.18-5-ixp4xx 2.6.18.dfsg.1-17 [8857kB]
Get:2 http://natasha.stmarytx.edu etch/main linux-image-2.6-ixp4xx 2.6.18+6etch2 [2266B]
Fetched 8859kB in 13s (679kB/s)
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.18-5-ixp4xx.
(Reading database ... 41052 files and directories currently installed.)
Unpacking linux-image-2.6.18-5-ixp4xx (from .../linux-image-2.6.18-5-ixp4xx_2.6.18.dfsg.1-17_arm.deb) ...
Done.
Selecting previously deselected package linux-image-2.6-ixp4xx.
Unpacking linux-image-2.6-ixp4xx (from .../linux-image-2.6-ixp4xx_2.6.18+6etch2_arm.deb) ...
Setting up linux-image-2.6.18-5-ixp4xx (2.6.18.dfsg.1-17) ...

 Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-5-ixp4xx/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.18-5-ixp4xx/source

Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.

Running postinst hook script /usr/sbin/flash-kernel.
Flashing kernel: done.
Flashing initramfs: done.

Setting up linux-image-2.6-ixp4xx (2.6.18+6etch2) ...
myslug:~/kernel# sync;sync;sync;reboot

========================
Slug boots...
========================

myslug:~/smarthome/iplc/driver/linux-2.6# uname -a
Linux myslug 2.6.18-5-ixp4xx #1 Sun Dec 23 05:17:39 UTC 2007 armv5tel GNU/Linux
myslug:~/smarthome/iplc/driver/linux-2.6# apt-get update
Get:1 http://natasha.stmarytx.edu etch Release.gpg [378B]
Hit http://natasha.stmarytx.edu etch Release
Get:2 http://security.debian.org etch/updates Release.gpg [189B]
Get:3 http://www.backports.org etch-backports Release.gpg [189B]
Hit http://security.debian.org etch/updates Release
Hit http://www.backports.org etch-backports Release
Ign http://natasha.stmarytx.edu etch/main Packages/DiffIndex
Ign http://natasha.stmarytx.edu etch/main Sources/DiffIndex
Hit http://natasha.stmarytx.edu etch/main Packages
Hit http://natasha.stmarytx.edu etch/main Sources
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Hit http://www.backports.org etch-backports/main Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://www.backports.org etch-backports/contrib Packages/DiffIndex
Hit http://security.debian.org etch/updates/main Sources
Hit http://www.backports.org etch-backports/non-free Packages/DiffIndex
Get:4 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Get:5 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Get:6 http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff [596B]
Ign http://www.backports.org etch-backports/contrib 2007-06-10-0940.10.pdiff
Hit http://www.backports.org etch-backports/contrib
Fetched 599B in 2s (203B/s)
Reading package lists... Done
myslug:~/smarthome/iplc/driver/linux-2.6# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-image-2.6.18-4-ixp4xx
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/8851kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
myslug:~/smarthome/iplc/driver/linux-2.6# dpkg -l | grep linux-image
ii  linux-image-2.6-ixp4xx       2.6.18+6etch2                            Linux kernel 2.6 image on IXP4xx
ii  linux-image-2.6.18-4-ixp4xx  2.6.18.dfsg.1-12                         Linux 2.6.18 image on IXP4xx
ii  linux-image-2.6.18-5-ixp4xx  2.6.18.dfsg.1-17                         Linux 2.6.18 image on IXP4xx

==========================


As you can see it still wants me to install the older version....

I guess removing the older version of the kernel should solve the problem, but I want to let the system run reliably for a while before I do that.

Thanks again for all the help..

I hope this serves as a reference to some other folks...

Mayuresh





Martin Michlmayr <tbm@cyrius.com> wrote:
* mayur0122-linux@yahoo.com [2008-01-09 06:37]:
> If I do a apt-get upgrade how does the proprietary IXP4xx microcode get included ?

The IXP4xx microcode is stored in /lib/firmware and will still be
there when you upgrade the kernel.

> 2. I know that linux-image-2.6-ixp4xx (2.6.18+6etch2) is available,
> but I am really not sure why apt-get is telling me to upgrade to
> 2.6.18-4 only...

It should install 2.6.18-5. Does "apt-get dist-upgrade" rather than
"apt-get upgrade" help? Did you run "apt-get update" first?
--
Martin Michlmayr
http://www.cyrius.com/



-------------------------------------------------- When there is a Will, There is a way......
Reply to: