Loading ...
Sorry, an error occurred while loading the content.

Debian upgrade etch --> lenny: The kernel doesn't fit in flash. -- 2.6.26-2

Expand Messages
  • die_amme
    Hello. after a long time i want to upgrade from etch to lenny. Everthing during the upgrade process works ok with exception of flash-kernel and
    Message 1 of 8 , Aug 5, 2009
    • 0 Attachment
      Hello.

      after a long time i want to upgrade from etch to lenny.
      Everthing during the upgrade process works ok with exception of
      "flash-kernel" and linux-image-2.6.26-2-ixp4xx.

      ---
      Richte linux-image-2.6.26-2-ixp4xx ein (2.6.26-17lenny1) ...
      Running depmod.
      Finding valid ramdisk creators.
      Using mkinitramfs-kpkg to build the ramdisk.
      initrd.img(/boot/initrd.img-2.6.26-2-ixp4xx
      ) points to /boot/initrd.img-2.6.26-2-ixp4xx
      (/boot/initrd.img-2.6.26-2-ixp4xx) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.26-2-ixp4xx.postinst line 588.
      vmlinuz(/boot/vmlinuz-2.6.26-2-ixp4xx
      ) points to /boot/vmlinuz-2.6.26-2-ixp4xx
      (/boot/vmlinuz-2.6.26-2-ixp4xx) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.26-2-ixp4xx.postinst line 588.
      Running postinst hook script flash-kernel.
      The kernel doesn't fit in flash.
      User postinst hook script [flash-kernel] exited with value 1
      dpkg: Fehler beim Bearbeiten von linux-image-2.6.26-2-ixp4xx (--configure):
      Unterprozess post-installation script gab den Fehlerwert 1 zurück
      ---

      ll /boot/
      insgesamt 46M
      -rw-r--r-- 1 root root 42K 13. Sep 2006 config-2.6.17-2-ixp4xx
      -rw-r--r-- 1 root root 1,1M 16. Sep 2006 vmlinuz-2.6.17-2-ixp4xx
      -rw-r--r-- 1 root root 595K 16. Sep 2006 System.map-2.6.17-2-ixp4xx
      -rw-r--r-- 1 root root 46K 4. Dez 2006 config-2.6.18-3-ixp4xx
      -rw-r--r-- 1 root root 1,2M 6. Dez 2006 vmlinuz-2.6.18-3-ixp4xx
      -rw-r--r-- 1 root root 619K 6. Dez 2006 System.map-2.6.18-3-ixp4xx
      -rw-r--r-- 1 root root 3,1M 12. Dez 2006 initrd.img-2.6.17-2-ixp4xx.bak
      -rw-r--r-- 1 root root 3,1M 28. Dez 2006 initrd.img-2.6.17-2-ixp4xx
      -rw-r--r-- 1 root root 3,0M 3. Jan 2007 initrd.img-2.6.18-3-ixp4xx.bak
      -rw-r--r-- 1 root root 3,0M 21. Jan 2007 initrd.img-2.6.18-3-ixp4xx
      -rw-r--r-- 1 root root 46K 21. Apr 2007 config-2.6.18-4-ixp4xx
      -rw-r--r-- 1 root root 1,2M 23. Apr 2007 vmlinuz-2.6.18-4-ixp4xx
      -rw-r--r-- 1 root root 621K 23. Apr 2007 System.map-2.6.18-4-ixp4xx
      -rw-r--r-- 1 root root 3,0M 15. Mai 2007 initrd.img-2.6.18-4-ixp4xx.bak
      -rw-r--r-- 1 root root 3,0M 17. Aug 2007 initrd.img-2.6.18-4-ixp4xx
      -rw-r--r-- 1 root root 46K 22. Dez 2007 config-2.6.18-5-ixp4xx
      -rw-r--r-- 1 root root 1,2M 24. Dez 2007 vmlinuz-2.6.18-5-ixp4xx
      -rw-r--r-- 1 root root 622K 24. Dez 2007 System.map-2.6.18-5-ixp4xx
      -rw-r--r-- 1 root root 3,0M 27. Dez 2007 initrd.img-2.6.18-5-ixp4xx
      lrwxrwxrwx 1 root root 23 17. Mai 2008 vmlinuz.old -> vmlinuz-2.6.18-6-ixp4xx
      lrwxrwxrwx 1 root root 26 17. Mai 2008 initrd.img.old -> initrd.img-2.6.18-6-ixp4xx
      -rw-r--r-- 1 root root 42K 21. Mai 2008 apex.flash
      -rw-r--r-- 1 root root 46K 5. Mai 10:14 config-2.6.18-6-ixp4xx
      -rw-r--r-- 1 root root 1,2M 6. Mai 17:20 vmlinuz-2.6.18-6-ixp4xx
      -rw-r--r-- 1 root root 622K 6. Mai 17:20 System.map-2.6.18-6-ixp4xx
      -rw-r--r-- 1 root root 3,0M 10. Mai 13:29 initrd.img-2.6.18-6-ixp4xx.bak
      -rw-r--r-- 1 root root 3,0M 10. Mai 13:34 initrd.img-2.6.18-6-ixp4xx
      -rw-r--r-- 1 root root 61K 26. Jul 22:41 config-2.6.26-2-ixp4xx
      -rw-r--r-- 1 root root 1,4M 28. Jul 19:52 vmlinuz-2.6.26-2-ixp4xx
      -rw-r--r-- 1 root root 769K 28. Jul 19:52 System.map-2.6.26-2-ixp4xx
      lrwxrwxrwx 1 root root 26 5. Aug 16:30 initrd.img -> initrd.img-2.6.26-2-ixp4xx
      lrwxrwxrwx 1 root root 23 5. Aug 16:30 vmlinuz -> vmlinuz-2.6.26-2-ixp4xx
      drwxr-xr-x 23 root root 4,0K 5. Aug 21:08 ..
      -rw-r--r-- 1 root root 3,5M 5. Aug 21:22 initrd.img-2.6.26-2-ixp4xx.dpkg-bak
      -rw-r--r-- 1 root root 3,5M 5. Aug 21:27 initrd.img-2.6.26-2-ixp4xx

      ---
      What can i do?

      It looks like the image is to big.

      OK: ---> -rw-r--r-- 1 root root 1,2M 23. Apr 2007 vmlinuz-2.6.18-4-ixp4xx
      NOK: --> -rw-r--r-- 1 root root 1,4M 28. Jul 19:52 vmlinuz-2.6.26-2-ixp4xx

      Maybe someone can give me a tip.

      best regards
      dA
    • Christopher Arndt
      ... I would be very interested a solution for this as well, since I m planning to upgrade my NSLU2 running under edge very soon too. Chris
      Message 2 of 8 , Aug 5, 2009
      • 0 Attachment
        die_amme schrieb:
        > after a long time i want to upgrade from etch to lenny.
        > Everthing during the upgrade process works ok with exception of
        > "flash-kernel" and linux-image-2.6.26-2-ixp4xx.
        > What can i do?
        >
        > It looks like the image is to big.

        I would be very interested a solution for this as well, since I'm
        planning to upgrade my NSLU2 running under edge very soon too.



        Chris
      • Mario Ruprecht
        Hi there, as both of you seem to be German you might take a look to my upgrade experience:
        Message 3 of 8 , Aug 5, 2009
        • 0 Attachment
          
          Hi there,
           
          as both of you seem to be German you might take a look to my upgrade experience:
           
          Basically, it worked and I did not have an issue with too big kernel files. But I did the whole process back in February.
           
          Cheers, Mario
           


          From: nslu2-linux@yahoogroups.com [mailto:nslu2-linux@yahoogroups.com] On Behalf Of Christopher Arndt
          Sent: Wednesday, August 05, 2009 10:06 PM
          To: nslu2-linux@yahoogroups.com
          Subject: [nslu2-linux] Re: Debian upgrade etch --> lenny: The kernel doesn't fit in flash. -- 2.6.26-2

           

          die_amme schrieb:

          > after a long time i want to upgrade from etch to
          lenny.
          > Everthing during the upgrade process works ok with exception
          of
          > "flash-kernel" and linux-image- 2.6.26-2- ixp4xx.
          >
          What can i do?
          >
          > It looks like the image is to big.

          I would be very interested a solution for this as well, since I'm
          planning to upgrade my NSLU2 running under edge very soon too.

          Chris

        • Martin Michlmayr
          ... What does cat /proc/mtd say? -- Martin Michlmayr http://www.cyrius.com/
          Message 4 of 8 , Aug 5, 2009
          • 0 Attachment
            * die_amme <die_amme@...> [2009-08-05 19:30]:
            > What can i do?
            >
            > It looks like the image is to big.

            What does
            cat /proc/mtd
            say?
            --
            Martin Michlmayr
            http://www.cyrius.com/
          • die_amme
            Hi, thanks for the link. 8-) But it helps not with the kernel problem. (with exception of your advice: Never touch a running system! ;-] ) What shows ls
            Message 5 of 8 , Aug 5, 2009
            • 0 Attachment
              Hi,

              thanks for the link. 8-)
              But it helps not with the kernel problem.
              (with exception of your advice:
              "Never touch a running system!" ;-] )

              What shows "ls -lisa /boot" and "uname -a" at your NSLU2?

              best regards,
              dA


              --- In nslu2-linux@yahoogroups.com, "Mario Ruprecht" <mario@...> wrote:
              >
              > Hi there,
              >
              > as both of you seem to be German you might take a look to my upgrade experience:
              > http://blog.knecht-ruprecht.info/2009/02/nslu2-upgrade-von-debian-etch-40-auf.html
              >
              > Basically, it worked and I did not have an issue with too big kernel files. But I did the whole process back in February.
              >
              > Cheers, Mario
              > --
              > http://www.knecht-ruprecht.info
              >
              >
              >
              > _____
              >
              > From: nslu2-linux@yahoogroups.com [mailto:nslu2-linux@yahoogroups.com] On Behalf Of Christopher Arndt
              > Sent: Wednesday, August 05, 2009 10:06 PM
              > To: nslu2-linux@yahoogroups.com
              > Subject: [nslu2-linux] Re: Debian upgrade etch --> lenny: The kernel doesn't fit in flash. -- 2.6.26-2
              >
              >
              >
              >
              > die_amme schrieb:
              > > after a long time i want to upgrade from etch to lenny.
              > > Everthing during the upgrade process works ok with exception of
              > > "flash-kernel" and linux-image-2.6.26-2-ixp4xx.
              > > What can i do?
              > >
              > > It looks like the image is to big.
              >
              > I would be very interested a solution for this as well, since I'm
              > planning to upgrade my NSLU2 running under edge very soon too.
              >
              > Chris
              >
            • die_amme
              Hi, i found a solution for my problem: Step 1) problem source cat /proc/mtd -- mtd3: 00140000 00020000 Kernel See also:
              Message 6 of 8 , Aug 6, 2009
              • 0 Attachment
                Hi,

                i found a solution for my problem:

                Step 1) problem source
                cat /proc/mtd
                --> mtd3: 00140000 00020000 "Kernel"

                See also: << http://www.mail-archive.com/debian-kernel@.../msg41077.html >>

                Step 2)
                following the linkmessage.
                "upslug2" and "flash-kernel"

                Checking again
                cat /proc/mtd
                --> mtd3: 00160000 00020000 "Kernel"

                :-) looks good, or?

                Now the upgrade on 2.6.26-2 works with no failure! :-)

                cu,
                dA
              • Martin Michlmayr
                ... An upgrade shouldn t be a problem and the kernel should fit in flash. We once generated NSLU2 images with a wrong (too small) kernel partition and I
                Message 7 of 8 , Aug 6, 2009
                • 0 Attachment
                  * Christopher Arndt <chris.arndt@...> [2009-08-05 22:05]:
                  > > after a long time i want to upgrade from etch to lenny.
                  > > Everthing during the upgrade process works ok with exception of
                  > > "flash-kernel" and linux-image-2.6.26-2-ixp4xx.
                  > > What can i do?
                  > >
                  > > It looks like the image is to big.
                  >
                  > I would be very interested a solution for this as well, since I'm
                  > planning to upgrade my NSLU2 running under edge very soon too.

                  An upgrade shouldn't be a problem and the kernel should fit in flash.
                  We once generated NSLU2 images with a wrong (too small) kernel
                  partition and I suspect "die_amme" installed one of those images;
                  however, those wrong images were only available for a short time, so
                  most users shouldn't be affected by this problem.

                  You can check by looking at the file /proc/mtd. There should be a
                  line like this:
                  mtd3: 00160000 00020000 "Kernel"
                  i.e. the kernel partition is 0x00160000 (1441792) bytes large, and so
                  the kernel should fit.
                  --
                  Martin Michlmayr
                  http://www.cyrius.com/
                • die_amme
                  Hi, cat /proc/mtd -- mtd3: 00140000 00020000 Kernel that was the problem. I found a solution.
                  Message 8 of 8 , Aug 6, 2009
                  • 0 Attachment
                    Hi,
                    cat /proc/mtd
                    --> mtd3: 00140000 00020000 "Kernel"
                    that was the problem.
                    I found a solution.
                    << http://tech.groups.yahoo.com/group/nslu2-linux/message/23913 >>

                    Thanks,
                    dA

                    --- In nslu2-linux@yahoogroups.com, Martin Michlmayr <tbm@...> wrote:
                    >
                    > * die_amme <die_amme@...> [2009-08-05 19:30]:
                    > > What can i do?
                    > >
                    > > It looks like the image is to big.
                    >
                    > What does
                    > cat /proc/mtd
                    > say?
                    > --
                    > Martin Michlmayr
                    > http://www.cyrius.com/
                    >
                  Your message has been successfully submitted and would be delivered to recipients shortly.