5.2 Installation of Raspberry Pi™ 3 Image

Oracle provides an installation image of Oracle Linux 7 Update 7 (aarch64) that is specifically designed to run on Raspberry Pi 3 Model B or Raspberry Pi 3 Model B+ hardware. The provided installation image is a default installation of Oracle Linux 7 Update 7 (aarch64) into a raw disk image that can be cloned block-by-block to an SD Card for immediate boot. The default file system used in the image is btrfs. Raspberry Pi is a trademark of the Raspberry Pi Foundation.

For more information about installing a Linux image onto the Raspberry Pi, visit https://www.raspberrypi.org/documentation/installation/installing-images/linux.md.

The following is a summary of the recommended installation process:

  1. Obtain the Raspberry Pi 3 disk image from the Oracle Technology Network at https://www.oracle.com/linux/products.html. Unzip the disk image when you have downloaded it.

  2. On an existing Oracle Linux 7 system, insert the SD Card into an SD Card reader that is connected to the system. The image is 5 GB in size. At minimum, your SD Card must have the capacity to store this image. An 8 GB SD Card is the recommended minimum.

  3. Identify the device name for the SD Card. You can obtain this information from the output of dmesg, when you connect the device by using the lsblk or fdisk -l commands to list device names and device information.

  4. Use the dd command to perform a block copy of the image file to the SD Card device, for example:

    # dd if=/path/to/img of=/dev/mmcblk0 bs=4M

    where /path/to/img is the relative path to the image file and /dev/mmcblk0 is the device name for the SD Card.

    Important

    This operation is destructive and will overwrite any data on the device that you have specified. Ensure that you have specified the correct device name. The operation may take some time to complete.

  5. When the operation has completed, eject the SD Card from the reader, insert it into the SD Card reader on the Raspberry Pi and boot into Oracle Linux 7.

  6. Log into the image as the root user using the password oracle. Change the password immediately after logging into to image.

If your SD Card is larger than the image (5 GB), you can grow the partition size to maximize disk usage. To grow the partitiion size, run the following commands after the installation has completed and after logging into the system on the Raspberry Pi:

# growpart /dev/mmcblk0 4 
# btrfs filesystem resize max /
Tip

If you require a graphical user interface (GUI), the XFCE desktop environment, which is available in the ol7_developer_EPEL yum repository, is usable and may be more suitable for devices with limited resources, such as the Raspberry Pi.