The time has finally come – our new image is available. To download it please go to our shop.
Before you upload the new image on your RevPi Core, we recommend that you save all the data that are important for you. There are a number of ways to save your data. In this tutorial, we will which ones we feel are the most sensible.
- Your PC
- Mains adapter for the power supply
- USB 2.0 type A cable – connector on USB 2.0 type micro B – connector
- USB stick
Download these files/programmes and install the programmes on your PC:
Saving old image
- Connect the mini USB port of your RevPi Core with a USB A port on your PC.
- Open RPi Boot.
- Connect you RevPi Core with a power supply
RPi Boot will now search for you RevPi Core. The following window will open:
Your RevPi Core has now been recognised.
- Click on “Continue without check”
- Open Win32 Disk Imager.
The following window will open:
- Click on the folder symbol.
- Select the USB stick where the image is to be saved.
- Write the name of the file that the image should have at the end of the selection. The name has to end in “img”.
- Select your RevPi Core in the drop-down list. Only the drive initials are shown for selection. If you no longer know which one it is you can look it up in Explorer. Your RevPi Core can be found under “Device with removal media”. It is displayed as “boot”.
- Click on “Read”.
Your image will now be saved. The process may take a few minutes. You will be given confirmation that the file has been created.
- Download Jessie here
- Unpack the download
- Open WinMD5Free
- The programme begins with the calculation of the MD5 checksum
- The calculated checksum will be shown in a few seconds
- the *.MD5 file from the unpacked download with an editor. The file is called for example 2017-05-31-revpi-jessie.md5
- Copy the MD5 sum and enter it in the “Original file MD5 checksum value …” box and click on the “Verify” button.
- When the “Matched!” dialogue is shown then the image is correct.
- Should however “NOT Matched” appear then the image is not correct. On occasions, it can happen when downloading or copying. You will have to download the image once again before being able to continue. Start Install Jessie once again.
- Open Win32 Disk Imager
- Select your RevPi Core in the drop-down list. Only the drive initials are shown for selection. If you no longer know which one it is, you can look it up in Explorer. Your RevPi Core can be found under “Device with removal media”. It is displayed as “boot”.
It is possible that data will be destroyed if you mistakenly choose the wrong device.
- Click on the folder symbol.
- Select your image file.
- Click on “Write”.
Your image will now be downloaded onto RevPi Core. The process can take a few minutes. You will receive a confirmation when the file has been transferred:
Copying necessary files from the old image
- Plug your USB stick containing your image in a free USB port on your RevPi Core.
- Start your RevPi Core. It is important that you don’t interrupt this first start as now a few files are generated, like for example the SSH key
IMPORTANT – when logging onto Jessie for the first time, there are a few features that differ from the normal log-in process. Please read the following steps carefully.
- When logging onto your freshly downloaded image for the first time as user “pi”, the password is still “raspberry”. Immediately after logging on, the password will be then returned to the one it had upon delivery of your RevPi Core. Please note: The keyboard layout is german by default. You may need to exchange the “y” with an “z” if you are using an english keyboard.
- Enter the serial number (2) and the MAC address (1) of your RevPi Core. Both are to be found on the front panel of your RevPi Core.
MAC address, (2) serial number
Your device number will now be shown.
- Shut down your module by entering the following command: “sudo shutdown”
- Re-start your module by disconnecting it from the power supply, waiting a couple of seconds and then reconnecting to the power supply.
- Log-in with your log-in data
- Enter the following command: “lsblk”. It enables you to check whether your USB stick has been recognised by your RevPi Core. Normally, the USB stick is shown as the “sda” drive.
- Enter the following command: “sudo mount /dev/sda /mnt”. It enables you to mount your USB stick in the directory hierarchy.
- Enter the following command: ”sudo losetup /dev/loop0 /mnt/Name of the image”. It enables you to create a loop device (a virtual drive) where you can access your old image.
- Enter the following command: ”sudo partprobe /dev/loop0″. It means you can readout the kernel of the partition table of the loop device.
Please note: In the following steps we will mount the image under “/tmp/alt”. You can obviously mount it in another place. To do so, you must adapt the path accordingly.
- Enter the following command: “mkdir /tmp/alt”. It enables you to mount the image in the “/tmp/alt” directory.
- Enter the following commands one after another: “sudo mount -o ro /dev/loop0p2 /tmp/alt”, “sudo mount -o ro /dev/loop0p1 /tmp/alt/boot”. It enable you to mount both partitions of the image.
Files to configure the system can be found on partition 1. Own files and programmes that you have created yourself can be found in partition 2.
You can now copy your files from your old image. Our ones for example look like this: “sudo cp -p /tmp/alt/etc/dhcpcd.conf /etc/dhcpcd.conf”.
As we don’t know which files are important for you here, we’ve put together a list of the files that we always save:
- Authorisations and certifications:
- Network settings:
- Boot options:
- Software lists:
- Write lists of all the installed programmes: dpkg -l>Dateiname.txt
- Lists of all the programmes you have installed yourself: /var/log/apt/history.log
You’ve found everything you need? Great. Now a little sprint to the finish. The directories that we have gone to great pains to mount now have to be dismounted. But you’ve already had enough practice which is why we’ll go through it quickly.
- Enter the following commands one after another: “sudo umount /tmp/alt/bootsudo”, “sudo umount /tmp/alt”, “sudo losetup -d /dev/loop0”, “sudo umount /mnt”, “sudo delpart /dev/loop0 1”, “sudo delpart /dev/loop0 2”.
Done and dusted. And now we’d like to wish you lots of fun with Jessie.