Note that current the IP address is assigned dynamically. The MAC adderess is correct though.
IP | MAC | Name |
---|---|---|
00:0A:35:00:1E:53 | KK | |
00:0A:35:00:1E:54 | Noah | |
00:0A:35:00:1E:55 | Zhicai | |
00:0A:35:00:1E:00 | UK | |
00:0A:35:00:1E:01 | UK | |
00:0A:35:00:1E:02 | UK | |
00:0A:35:00:1E:03 | UK | |
00:0A:35:00:1E:04 | UK | |
00:0A:35:00:1E:05 | Brookhaven/UCSC | |
00:0A:35:00:1E:06 | UK | |
00:0A:35:00:1E:07 | UK | |
00:0A:35:00:1E:08 | UK | |
00:0A:35:00:1E:09 | Brookhaven/UCSC | |
192.168.0.12 | 00:0A:35:00:1E:12 | Rack0.1.Up.P0 |
192.168.0.13 | 00:0A:35:00:1E:13 | Rack0.1.Up.P9 |
192.168.0.14 | 00:0A:35:00:1E:14 | Rack0.1.Down.P0 |
192.168.0.15 | 00:0A:35:00:1E:15 | Rack0.1.Down.P9 |
192.168.0.16 | 00:0A:35:00:1E:16 | Rack1.0.Up.P0 |
192.168.0.17 | 00:0A:35:00:1E:17 | Rack1.0.Up.P9 |
192.168.0.18 | 00:0A:35:00:1E:18 | Rack1.1.Down.P0 |
192.168.0.19 | 00:0A:35:00:1E:19 | Rack1.1.Down.P9 |
Interrupt the automatic boot after ZTurn power-up to get into the uBoot shell. Type the following commands to set the MAC address to 00:0a:35:00:1e:54
.
Zynq> set ethaddr 00:0a:35:00:1e:54
Zynq> saveenv
Saving Environment to SPI Flash... SF: Detected s25fl128s with page size 256 Bytes, erase size 64 KiB, total 16 MiB
Erasing SPI flash...Writing to SPI flash...done
OK
Firmware using the LBL shared NFS drive is compiled automatically by the CI. See the "collect" stage of the latest pipline. The released versions are also uploaded to the release page.
The MicroSD cards should be prepared as for the reception testing setup.
trumer.dhcp.lbl.gov:/opt/petalinux/pbv3_mass_tester_2021.1
All developement should happen on your local machine.
/opt/Xilinx/Vitis/2021.1
)/opt/petalinux/pbv3_mass_tester_2021.1
. If you are not on one of those computers, you need to mount it yourself.sudo mount trumer.dhcp.lbl.gov:/opt/petalinux/pbv3_mass_tester_2021.1 pbv3_mass_tester
active
..cd /opt/petalinux/pbv3_mass_tester_2021.1/home/${USER}
git clone ssh://git@gitlab.cern.ch:7999/berkeleylab/labremote-apps/powertools.git
cd powertools
git checkout activeTB
git submodule update --init --recursive
mkdir build
cd build
cmake3 .. -DCMAKE_TOOLCHAIN_FILE=../toolchains/xilinx.cmake -DXILINX_SDK_PATH=/opt/Xilinx/Vitis/2020.3 -DROOTFS_PATH=/opt/petalinux/pbv3_mass_tester_2020.3
make
If you encounter an error when running cmake3, you may need to specify the env variable as well by adding to the cmake3 command the following:
-DXILINX_SDK_PATH=/path/to/Xilinx/SDK/version
The resulting test programs can then be executed by SSH'ing into the active board.
Start by setting up an NFSv4 server. Instructions for CentOS8, other distributions can be found via Google. The following is an example content for /etc/exports
.
/opt/petalinux 128.3.2.0/22(rw,sync,no_root_squash)
Ported realted to NFS services need to opened in firewalld.
firewall-cmd --permanent --add-service=nfs
firewall-cmd --permanent --add-service=mountd
firewall-cmd --permanent --add-service=rpc-bind
firewall-cmd --reload
Extract the rootfs.tar.gz
archive on the NFS server (ie: /misc/petalinux/mytestsetup
, assuming this location is exported by NFS). The archive can be downloaded from any recent CI job from the firmware. It does not matter which variation (ie: zturn_7020
) is used for the RootFS archive. Only the firmware must match.
The last step is to point the firmware to the NFS shared directory. The firmware should be the nfs variation for the right SoC board. Interrupt the uboot bootloader by pressing a key right after powering up the SoC boards. The following commands will update the bootargs pernamently, meaning that this step only has to be done once. The ${NFSROOT}
should be replaced with ip.address.of.nfs.server:/misc/petalinux/mytestsetup
.
setenv bootargs console=ttyPS0,115200 earlyprintk root=/dev/nfs nfsroot=${NFSROOT},v4,tcp ip=dhcp rw uio_pdrv_genirq.of_id=generic-uio
saveenv
boot
The user ID on the MicroZed needs to match that on the network drive. To get user id on the network drive, run the following on any lab computer. The user id of kkrizka
is 50094
.
[kkrizka@carl-pc ~]$ id kkrizka
uid=50094(kkrizka) gid=31677(atlas) groups=31677(atlas),10(wheel),18(dialout),980(pico),976(wireshark),135(mock)
To add a new user (kkrizka
in this example) on the MicroZed, run the following:
useradd -G dialout,plugdev -u 50094 -U kkrizka
passwd # Set the user's password