Skip to content

Downgrade kernel #609

Closed
Closed

Description

@cho934

Hi,

Is it possible to downgrade to the previous kernel ? for exemple from
https://github.com/ev3dev/ev3-kernel/releases/tag/v3.16.7-ckt26-10-ev3dev-ev3_1
to
https://github.com/ev3dev/ev3-kernel/releases/tag/v3.16.7-ckt21-9-ev3dev-ev3_1
?

What are the correct instruction to downgrade ?

BR,

Activity

  1. dlech commented on Apr 17, 2016

    @dlech
    Member

    if flash-kernel only ran once since you upgraded, the there should be uImage.bak in /boot/flash (the FAT partition). Replace the current uImage with this and it should boot the old kernel.

    If flash-kernel was run more than once, the backup will be the same a uImage, so this won't work. You should be able to run flash-kernel 3.16.7-ckt21-9-ev3dev-ev3 to reinstall that version.

  2. cho934 commented on Apr 17, 2016

    @cho934
    Author

    In fact, when I tried to flash ckt21-9, ckt26-10 is installed instead...

    robot@ev3dev:~$ uname -a
    Linux ev3dev 3.16.7-ckt26-10-ev3dev-ev3 #1 PREEMPT Sun Apr 10 23:32:19 CDT 2016 armv5tejl GNU/Linux
    robot@ev3dev:~$ sudo flash-kernel 3.16.7-ckt21-9-ev3dev-ev3
    [sudo] password for robot:
    flash-kernel: installing version 3.16.7-ckt26-10-ev3dev-ev3
    Generating kernel u-boot image... done.
    Will use /dev/mmcblk0p1 as boot device.
    Taking backup of uImage.
    Installing new uImage.
    Generating boot script u-boot image... done.
    Taking backup of boot.scr.
    Installing new boot.scr.
    robot@ev3dev:~$
    
  3. dlech commented on Apr 17, 2016

    @dlech
    Member

    Maybe you have to use the --force option.

    flash-kernel --force 3.16.7-ckt21-9-ev3dev-ev3
    
  4. cho934 commented on Apr 18, 2016

    @cho934
    Author

    Perfect ;)

    robot@ev3dev:~$ sudo flash-kernel --force 3.16.7-ckt21-9-ev3dev-ev3
    flash-kernel: forcing install of 3.16.7-ckt21-9-ev3dev-ev3 instead of 3.16.7-ckt26-10-ev3dev-ev3.
    flash-kernel: WARNING: Installing any new kernel package might override this.
    flash-kernel: installing version 3.16.7-ckt21-9-ev3dev-ev3
    Generating kernel u-boot image... done.
    Will use /dev/mmcblk0p1 as boot device.
    Taking backup of uImage.
    Installing new uImage.
    Generating boot script u-boot image... done.
    Taking backup of boot.scr.
    Installing new boot.scr.
    

    Then I reboot, and I can use my previous program using ckt21-9 kernel version.
    I think this can be documented in the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions