6.2 Installation of Raspberry Pi™ 3 Image

Note

The disk image for the Raspberry Pi is available as a technology preview for developer use only. Oracle does not provide support for Oracle Linux on Raspberry Pi systems. Oracle recommends that developers assist each other on the Oracle Linux for Arm community forum at https://community.oracle.com/community/technology_network_community/server_%26_storage_systems/linux/oracle-linux-for-arm

Oracle provides an installation image of Oracle Linux 7 Update 6 (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 6 (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. More information about installing a Linux image onto the Raspberry Pi is available at:

https://www.raspberrypi.org/documentation/installation/installing-images/linux.md

In summary, the recommended installation process is as follows:

  1. Obtain the Raspberry Pi 3 disk image from the Oracle Technology Network (https://www.oracle.com/linux/products.html). You should unzip the disk image once you have downloaded it.

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

  3. Identify the device name for the SD Card. You can use this using the output from dmesg when you connect the device, using the lsblk or by using fdisk -l 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

    Replace /path/to/img with the relative path to the image file, and replace /dev/mmcblk0 with the device name for the SD Card. 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 is complete, 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 with the password oracle. Change the password immediately after you login.

If your SD Card is larger than the image (5 GB) you can grow the partition size to maximize disk usage. You can do this by running the following commands after installation is complete and once you have logged into the system on the Raspberry Pi:

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

If you require a graphical user interface, the XFCE desktop environment 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.