PZ-TIO Manual
Version 1.01
© 2022 XIA LLC
15
-
<escape>
exit from GUI
-
sfp show
shows known SFP modules
-
init show
shows the startup commands for the White Rabbit core
2.8 Useful Linux Commands
The following commands may be helpful
1.
Type
ifconfig
to find the IP address
The network does not come up by itself occasionally. Type
ifconfig eth1 up
xxx.xxx.xxx.xxx
with a known allowed IP number to restart. The IP number
can be omitted in some cases. Or, for a change of restart, type
sudo
/etc/init.d/networking restart
else power cycle.
2.
The temperature is reported as a raw number in
/sys/devices/soc0/amba/f8007100.adc/iio:device0/in_temp0
_raw
; the actual temperature can be computed by subtracting 2219 and multiplying
with 0.12304. Board and Zynq temperatures are also reported in the status
information and by
./progfippi
3.
To change a parameter value in the settings file without opening/editing/closing the
file, a sed command as follows can be used:
sed –i ‘/RUN_TYPE/c RUN_TYPE 1281’ settings.ini
This replaces (-i = in the file) the line containing the string “RUN_TYPE” with the
text “RUN_TYPE 1281”.
4.
To mount a USB drive
7
(e.g. to copy data or SW updates), type
mount /dev/sda1 /mnt/usb
/var is not a suitable directory to mount the USB stick, as it confuses the web server
5.
Type
date
to verify Linux time automagically updated to UTC from its Ethernet
connection (nothing to do with PTP or White Rabbit)
6.
Use the mount command to mount external network drives. For example, to mount
NASdrive/data from a PC with IP address 192.168.1.123, type
mount //192.168.1.123/data /mnt/data –o
“username=[user],password=[passwd]”
with the appropriate values filled in for [user] and [passwd]
7.
To mount the SD card boot partition to a folder /mnt/sd, execute
mount /dev/mmcblk0p1 /mnt/sd
this is useful to update the boot files without removing the SD card. The PZ-TIOhas
to be rebooted before the new boot files become effective.
8.
To clear the command line history, type
history –c
history –w
2.9 Direct Network Connection between PZ-TIO and a Windows PC
The above description of setup and operation of the PZ-TIO assumes both PZ-TIO and the
user device (PC, tablet, smartphone) are connected to a local network with DHCP server
and gateway. Instead, it is possible to directly connect the PZ-TIO to a laptop or desktop
7
Currently /dev/sda1 is not available in Linux