Downgrading Raspberry Pi kernel

Downgrading Raspberry Pi kernel

You might have done  a rpi-upgrade and need to downgrade to a stable kernel. Downgrading Raspberry Pi kernel is easy. Here is how to do a downgrade.

Hardware needed
  • Raspberry Pi with Raspbian
  • Power supply and peripherals
  • Extra SD card
  • Another computer
  • Micro SD to USB reader

Method 1:

  1. Downgrade the kernel with this terminal command
    sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel

Method 2:

Fresh install of latest Raspbian

  1. Download the latest Raspbian image from The Raspberry Pi Foundation.
  2. Install it to your extra SD card with etcher.
  3. Boot the extra SD card with your Raspberry Pi and connect to wifi.
  4. Open terminal and type sudo apt-get update
  5. And sudo apt-get upgrade
  6. Log into root, insert your custom Raspbian SD card into the raspberry pi.
  7. Find you SD card df -h
  8. In our case the SD card was /dev/sdb.
  9. Mount it. mount /dev/sdb1 /media/pi
  10. Download and install gnome-disk-utility
    sudo apt-get install gnome-disk-utility
    
  11. Open the disk utility application.
  12. On your custom SD card, click on the boot partition and delete the boot partition.
  13. Create a new partition named boot, free space of 4.2 MB and the partition type FAT.
  14. In terminal run again: mount /dev/sdb1 /media/pi
  15. Open file manager and locate /boot and /media/pi/boot.
  16. Right click in file manager and select “show hidden files”
  17. Copy ALL files from /boot to /media/pi/boot.
  18. You need to find out your UUID of your Custom raspbian SD card, open /dev/disk/by-partuuid
  19. Eject your custom Raspbian SD card, and record which UUID was removed from /dev/disk/by-partuuid.
  20. Plug the custom SD back into your raspberry pi, mount it again. mount /dev/sdb1 /media/pi
  21. Open /media/pi/boot/cmdline.txt
  22. Change the value in root=PARTUUID= to the one found in step 19.
  23. Save the file and eject the SD card. Shutdown your raspberry pi.
  24. Remove your Newly flashed sd card from your Raspberry pi and insert your custom one into it.
  25. Boot up your Raspberry Pi and you should now have a downgraded/stable kernel.

 

Any suggestions or issues? Post them in the comments!

 

Yusuf’s Site | Raspberry Pi, Linux and more!

Leave a Reply

Your email address will not be published. Required fields are marked *