greengold
Posts: 6
Joined: Wed Oct 09, 2013 9:38 pm

Rpi1 -> Rpi2 system migration

Wed Jul 22, 2015 9:19 pm

Hi all,
can you tell if there is a way to convert system image from old raspberry pi 1 to raspberry pi 2?
I need to have all the software installed on previous model working on a rpi2 too...

Thanks

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Rpi1 -> Rpi2 system migration

Thu Jul 23, 2015 4:06 am

I do not think so, they are different architectures. The binaries for armv6h (pi 1) will not work on pi 2's armv7h system.

You certainly can transfer your text and personalized configuration files over, but not the binaries.

If you have a /var/log/pacman.log you could use that to see what you have installed, or ask pacman on your old system for a list of installed packages and use that to make your list for the new one. I just do not recall exactly if or how we can do that.

EDIT: I was able to get a list of the packages installed on my Pi with the command "pacman -Qs .|grep local". That dot is important, I think as a regex wildcard, it results in all installed packages being listed, and you could put the results into a text file and edit that or process it with sed (or some other line editor) to create a list of packages to install that pacman could use on your Pi 2. But don't use the version numbers, they could be different, the package names alone are what would need to be used.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

User avatar
DougieLawson
Posts: 39126
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Rpi1 -> Rpi2 system migration

Thu Jul 23, 2015 11:53 am

sdjf wrote:I do not think so, they are different architectures. The binaries for armv6h (pi 1) will not work on pi 2's armv7h system.
BZZT! Wrong!

The RPi2B is completely compatible with software written for the RPi1. The only thing that needs to change is the Linux kernel because the 2B has a four core processor. http://thepihut.com/blogs/raspberry-pi- ... berry-pi-2

For Arch you shouldn't need to do anything other than updating the /boot files (kernel and "firmware").
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: Rpi1 -> Rpi2 system migration

Thu Jul 23, 2015 3:54 pm

My response was based on comments by top Arch Linux Arm developers in the following thread.

http://archlinuxarm.org/forum/viewtopic.php?f=44&t=8371

The original poster could try what Dougie suggests, but no guarantees it will work without a full system upgrade/update from the arch armv7h repository.

Raspbian and ArchLinuxArm for the Pi have a lot in common, but a whole lot of differences as well.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Rpi1 -> Rpi2 system migration

Thu Jul 23, 2015 3:58 pm

armv6 binaries will work on armv7

It should be a simple matter of replacing all of the files in /boot and /lib/modules with the correct ones, though I've never tried it.
There are 10 types of people: those who understand binary and those who don't.

Return to “Arch”