Broadcom Confidential
5880X-PS225-UG101
20
PS225
User Guide
Quick Start Guide
NOTE:
Ensure that there is connectivity with the host (follow the
PS225 Quick Start Guide
in
Table 1
for additional details).
a. On the host, download the Ubuntu image with the following commands:
byang@byang-PowerEdge-2950:~$
wget http://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-
16.04-server-cloudimg-arm64-root.tar.xz
b. Ensure connectivity between host and PS225 with the following commands (see the
PS225 Quick Start Guid
e in
Table 1
):
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
Pinging 192.168.1.10 with 32 bytes of data:
Reply from 192.168.1.10: bytes=32 time=1ms TTL=128
Reply from 192.168.1.10: bytes=32 time=1ms TTL=128
Reply from 192.168.1.10: bytes=32 time=1ms TTL=128
Reply from 192.168.1.10: bytes=32 time=1ms TTL=128
Ping statistics for 192.168.1.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
c. On the PS225, scp the Ubuntu image with the following command:
root@bcm958802a8048c:~#
scp [email protected]:~/ubuntu-16.04-server-cloudimg-arm64-root.tar.xz.
d. Set the correct date with the following commands so that tar accepts the future time.
root@bcm958802a8048c:~#
date -s "14 MAR 2018 20:00:00"
root@bcm958802a8048c:~#
cd /mnt/ubuntu
root@bcm958802a8048c:
/mnt/ubuntu# tar --numeric-owner -xf /mnt/ubuntu/ubuntu-16.04-server-
cloudimg-arm64-root.tar.xz
8. The new rootfs is extracted in the specified partition (in the example above
/dev/mmcblk0p5
).
chroot
to the device
to set up several items before the kernel boots that rootfs for the first time. This step is important, otherwise the Ubuntu
OS does not boot properly. See the following commands:
a. Copy the bnxt* modules from the yocto filesystem to the ubuntu rootfs with the following command:
root@bcm958802a8048c:/mnt/ubuntu#
cp -r /lib/modules/$(uname -r) lib/modules
b. Switch to Ubuntu's filesystem through chroot with the following command:
root@bcm958802a8048c:
/mnt/ubuntu# chroot /mnt/ubuntu
c. Remove cloud init from this prebuilt image (since it interferes with normal boot) with the following command:
\u@\h:\w$ dpkg --purge cloud-init
d. Add getty for ttyS0 with the following commands:
\u@\h:\w$ cp /etc/init/ttyAMA0.conf /etc/init/ttyS0.conf
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 ...