![Broadcom Stingray PS225 Скачать руководство пользователя страница 25](http://html.mh-extra.com/html/broadcom/stingray-ps225/stingray-ps225_quick-start-manual_2815726025.webp)
Broadcom Confidential
5880X-PS225-UG101
25
PS225
User Guide
Quick Start Guide
5.2 Running CentOS on a PS225
This section describes basic CentOS 7 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.2.1 Setting Up CentOS on the PS225
To set up CentOS on the 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.
CAUTION!
Ensure that the existing partitions used for UEFI (and Yocto) are not deleted.
If mmcblk0p5 is already created and it is 2 GB, skip
Step 3
. mmcblk0p5 is already created during the installation of GA
1.0.3.
NOTE:
In future releases, the partition layout may change. Check the release documentation before proceeding with
Step 4
and
Step 5
.
3. Run
fdisk -l
to verify the current partitions on
/dev/mmcblk0
.
4. Create
/dev/mmcblk0p5
with the following
fdisk
command. Skip this step if this has already been done.
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 with the following command:
root@bcm958802a8048c:~#
mkfs.ext4 /dev/mmcblk0p5
NOTE:
This step can take several minutes to complete.
6. Mount the newly created partition to a directory of choice with the following command (for example. /mnt):
root@bcm958802a8048c:~#
mkdir /mnt/centos
root@bcm958802a8048c:~#
mount /dev/mmcblk0p5 /mnt/centos
7. Download the latest 16.04 ARM64 image from Centos to the x86 host and untar it on the PS225. Ensure that there is
connectivity with the host (see the PS225 Quick Start Guide for additional details).
a. Download the image with the following command:
byang@byang-PowerEdge-2950:
~$wget http://mirror.centos.org/altarch/7/isos/aarch64/CentOS-7-
aarch64-rootfs-7.4.1708.tar.xz
b. Ensure connectivity with the host and PS225 with the following commands:
byang@byang-PowerEdge-2950:~$
sudo insmod ~/temp/bnxt_en-1.8.29/bnxt_en.ko
byang@byang-PowerEdge-2950:~$
sudo ifconfig enp8s0f0 192.168.1.20 up ; ping 192.168.1.10
c. On the PS225, SCP the CentOS image with the following command:
cd /mnt/centos
Broadcom
Confidential
Содержание Stingray PS225
Страница 31: ...B r o a d c o m C o n f i d e n t i a l ...