Broadcom Confidential 5880X-PS225-UG101
19
PS225 User Guide Quick Start Guide
5 Setting Up a Linux Distribution rootfs on the PS225
This section describes how to set up a Linux distribution rootfs on the PS225.
5.1 Running Ubuntu on a PS225
This section describes basic Ubuntu 16.04 setup on a PS225 board. It is assumed that an x86 host with Ubuntu 16.04 is
being used. With small changes, it should apply to other variants as well.
NOTE: Follow Upgrading the PS225 Software and successfully boot to Linux from the most recent SmartNIC release on
the PS225.
5.1.1 Setting Up Ubuntu on a PS225
To set up Ubuntu on a PS225:
1. SSH to the PS225 card or use the serial console to access the PS225 Linux shell.
2. Create a new ext4 partition on the eMMC card. Ensure that the existing partitions used for UEFI (and yocto) are not
deleted.
3. Run fdisk -l to verify the current partitions on /dev/mmcblk0.
If mmcblk0p5 is already created and it is 2 GB, skip Step 3.
NOTE: mmcblk0p5 may have already been created during installation of the SmartNIC release.
NOTE: In future releases, the partition layout may change. Check the release documentation before proceeding with
Step 4 and Step 5.
4. Use the fdisk command to create /dev/mmcblk0p5. Skip this step if it has already been completed. Refer to the
following example command:
# boot normally, so from Yocto built kernel and RootFS
root@bcm958802a8048c:~# fdisk /dev/mmcblk0
type 'n' to create a new partition
used defaults (will created mmcblk0p5)
typed 'w' to write changes
5. Format the partition using the following command:
root@bcm958802a8048c:~# mkfs.ext4 /dev/mmcblk0p5
NOTE: This step takes several minutes.
6. Mount the newly created partition to a directory of choice (for example, /mnt) using the following commands:
root@bcm958802a8048c:~# mkdir /mnt/ubuntu
root@bcm958802a8048c:~# mount /dev/mmcblk0p5 /mnt/ubuntu
7. Download the latest 16.04 ARM64 image from Ubuntu to the x86 host and untar it on the PS225. See the following
commands: