Deploy Arch Linux ARMv7 Image on the Raspberry Pi 2

Some weeks ago the new Raspberry Pi 2 has been released, I was realy amused by the new ARMv7 quad core and the increasement of 1 GB RAM. I couldn't let this slip through my hands and thus bought the new Raspberry Pi 2, to complete my collection; the only one that I'm missing at the moment is the A+ model.

Give it a try

When I received the new RPi last one week, I tried to install Arch Linux just like I've done on my previous RPi's. I'm a huge enthousiast of Arch Linux because it's clean, lightweight and also has a nice package manager (pacman); you should now that I've built on it.

Most of the people, noobies and advanced, will deploy an .img on the SD card with the command line or an install tool (for their specific workingstation). That's also the way how I am/was working, because it's just so easy; click, click and you're done. Now for the previous RPi's, which have an ARMv6 processor, there is an .img available which can be found here. After intensive searching, I realised that there isn't an .img for the ARMv7 processor available, and that ofcourse the .img for ARMv6 don't works.

So yeah no image, and no easy installation. You can find a tutorial on the Arch Linux ARM website, which explains how to setup partitions and install Arch Linux on the SD card. This looks very simple as wel, so I gave it a shot. You should now that I'm using OSX as my workingstation, and I found out that as OSX user, I'm not able to see/create ext4 partitions. So basically this was a no go. I could install some special packages that would make me able to do so, but they aren't recommended. Therefore I searched for another solution, and ended up with setting up a Linux virtual machine.

So eventualy I was able to install Arch Linux on my new Raspberry Pi 2. The only problem I still had, was that I wasn't able to connect with the RPi through SSH, however I was able to ping. After some research I found out that the /etc/ssh directory was broken, some keys weren't created. The solution was to reinstall openssh with pacman.

pacman -Syy
pacman -Rsn openssh
rm -vfr /etc/ssh
pacman -S openssh
systemctl enable sshd.service
systemctl start sshd.service
systemctl status sshd.service

Download image

After everything worked properly, I made an image of the SD card and uploaded it to megaconz and google drive. Click on the megaconz or google drive logo below to download the image. After downloading the image, you can follow this tutorial to deploy the image on your SD card; enjoy! Please note that you will need a 4GB or bigger SD card for this image.


Google Drive

Hey, I'm Cédric a software engineer, who's motivated to broaden his horizon and to discover and learn new methodologies. With a huge interest in web technologies, artificial intelligence and image processing, I try to understand our mountainous world a little bit better.