Page 1 of 1

[solved] Converting from rpi2 to rpi3?

Posted: Sun Mar 06, 2016 3:23 am
by bennettp123
Hi all

So I have two shiny new rpi3, and I want to update my existing rpi2 devices. My OSMC was easy, just swap the SD card from the rpi2 to the rpi3 and it worked out of the box.

But how can I get my raspbian SD card working in the rpi3?

It's currently booting using the default raspbian kernel (linux-image-3.18.0-trunk-rpi2) and bootloader (raspberrypi-bootloader-nokernel), but when I swap the SD card into the rpi3 it just rainbows.

I also tried updating using rpi-update, but that didn't help either.

I'm guessing the firmware it's pulling down is rpi2-only. Anyone know how I can get the rpi3 kernel/firmware while booted to a raspberry pi 2?

Re: Converting from rpi2 to rpi3?

Posted: Sun Mar 06, 2016 3:47 am
by bennettp123
For the record, here's how I updated my rpi2 to rpi3:
  • sudo rpi-update (it downloaded 4.1.19-v7+ this time, previously 4.1.18-v7+)
  • sudo cp /boot/kernel7.img /boot/kernel7.img-4.1.19-v7+ (optional)
  • sudo update-imitramfs -c -k 4.1.19-v7+ (optional)
  • update /boot/config.txt to point at the kernel and initramfs above
  • sudo rm /etc/udev/rules.d/70-persistent-net.rules
  • sudo shutdown -h now and swap the SD card into the rpi3
Copying kernel7.img is optional, but my system doesn't boot without an initramfs, and I've forgotten to update-initramfs it a few times after rpi-update, resulting in an unbootable system. This way if I forget, it just boots to the old kernel and initramfs.

Re: Converting from rpi2 to rpi3?

Posted: Sun Mar 06, 2016 3:57 am
by bennettp123
Oh and you can power a rpi3 from the USB ports again (discovered by accident after a shutdown -r instead shutdown -h).