EasyManua.ls Logo

Advantech ROM-5620 - USB Test; RTC Test

Advantech ROM-5620
56 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ROM-5620 User Manual 28
4.1.7 USB Test
USB(2.0/3.0) disk test
After inserting the USB disk into 2.0 or 3.0 port: (Please note that with ROM-5620,
USB3.0 port on ROM-DB5901 coastline can only recognize USB 3.0 devices. It can-
not recognize USB 2.0 only devices)
Test (eg. if USB disk is /dev/sda)
4.1.8 RTC Test
Disable RTC sync service
Set system time to current, then set RTC
Set one incorrect time, then read time from RTC to verify
Restore the RTC time to system time
root@imx8qxprom5620a1:~# lsusb -t
/: Bus 02. Port 1: Dev 1, Class=root_hub, Driver=/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 01. Port 1: Dev 1, Class=root_hub, Driver=/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
|__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage,
480M
root@imx8qxprom5620a1:~#
# dd if=/dev/urandom of=data bs=1 count=1024
# dd if=/dev/sda of=backup bs=1 count=1024 skip=4096
# dd if=data of=/dev/sda bs=1 seek=4096
# dd if=/dev/sda of=data1 bs=1 count=1024 skip=4096
# diff data data1
# dd if=backup of=/dev/sda bs=1 seek=4096
root@imx8qxprom5620a1 : ~# systemctl stop systemd-timesyncd
root@imx8qxprom5620a1 : ~# systemctl stop ntpdate . service
root@imx8qxprom5620a1 : ~# date 021710452016 && hwclock -w && date
Wed Feb 17 10 : 45 : 00 UTC 2016
Wed Feb 17 10 : 45 : 00 UTC 2016
root@imx8qxprom5620a1 : ~# date 010100002000 && hwclock -r && date
Sat Jan 1 00 : 00 : 00 UTC 2000
Wed Feb 17 10 : 46 : 25 2016 0 . 000000 seconds
Sat Jan 1 00 : 00 : 00 UTC 2000
root@imx8mqrom5720a1 : ~#
root@imx8qxprom5620a1 : ~# hwclock -s && date
Web Feb 17 10:45:10 UTC 2016

Related product manuals