RevPi Cloning Tutorial
You want to distribute an existing system to other devices, i.e. clone it. What you have to consider is explained here.
The license of the RevPi Connect+ feat. CODESYS is bound to a device, thus cannot be cloned.
Instruction
Create a golden image, i.e. a copy of the system image to be distributed or cloned.
Think about which settings you want to change beforehand, i.e. passwords, network configuration, time-server, SSH access, etc.
https://revolution.kunbus.com/tutorials/images/install-jessie/?noredirect=en_US
Copy this image to another device.
see link above
Boot and login to the device.
Reset the hardware configuration by removing the respective entries in
/boot/config.txt
Open the file
/boot/config.txt
in an editor with root permissions:sudo nano /boot/config.txt
Navigate to the block labeled
[all]
and remove the lines starting withdtoverlay=revpi-
anddtparam=eth
Save the file and reboot the RevPi
Run the command:
pi@RevPi12345:~ $ sudo revpi-factory-reset Usage: revpi-factory-reset <compact|connect|core> <serial> <mac addr> (see front plate)This will set MAC address, hostname and credentials as on the sticker of the device
This will also maximize the partition according to the eMMC flash, i.e. 8,16 or 32 GB
Reboot the device
sudo reboot
Login using the credentials from the sticker
The default key map changed since Buster to English, i.e. QWERTY
Dos and Don’ts
If there are problems with network access, it may be because there are multiple devices on the network with the same MAC address. This leads to ARP conflicts. Perform step (5).
You may use this guide to copy from i.e. RevPi Core 3 to a RevPi Core 3+ device.
You should not use this guide to copy to different RevPi types unless you know what you are doing. I.e. RevPi Core 3 to RevPi Connect.
Your target devices should have more or equal eMMC space available. So you cannot copy a RevPi Core 3+ 16GB image to a RevPi Core 3 with 4GB eMMC space. This can be performed if you create your own custom image, i.e. via: https://github.com/RevolutionPi/imagebakery
If you want to avoid using a PC, you may use a RevPi Module to flash data to another RevPi Module as well. There is the Linux equivalent of the RPiBoot.exe tool for Linux:
GitHub - raspberrypi/usbboot: Raspberry Pi USB booting code, moved from tools repository
You can then use i.e. “fdisk -l” and “dd” in a bash script to automate your commands.
You may use PiShrink - can easily shrink your image. On first boot, the image is then resized.
https://github.com/Drewsif/PiShrinkYou can access the production information, i.e. serial number, etc. on the that are supported via hat-EEPROM (RevPi Connect 4, etc.) via
More information
https://revolution.kunbus.de/forum/viewtopic.php?f=18&t=2531&p=9158#p9137
https://revolution.kunbus.de/forum/viewtopic.php?f=6&t=1976&p=7679#p7476