Test; Rtc Test; Switch To External Rtc - Advantech RSB-4760 User Manual

3.5" sbc with qualcomm apq-8016 processor arm cortex a53 architecture
Table of Contents

Advertisement

3.1.6.2. Test

1. Insert USB disk 
2. Run: 
# Generate random file
$ dd if=/dev/urandom of=data bs=1 count=1024
# Backup
$ dd if=/dev/sda of=backup bs=1 count=1024 skip=4096
# Write data
$ dd if=data of=/dev/sda bs=1 seek=4096
3. Read & verify 
$ dd if=/dev/sda of=data1 bs=1 count=1024 skip=4096
$ diff data data1
4. Restore 
$ dd if=backup of=/dev/sda bs=1 seek=4096
 

3.1.7. RTC Test

Set system time and write to RTC. 
The date format is MMDDhhmm[[CC]YY][.ss] 
$ date 021710452016 && hwclock -w & date
 
Set incorrect time and read time from RTC to verify 
$ date 010100002000 && hwclock -r & date
 
Restore the RTC time to system time 
$ hwclock -s && date

3.1.7.1. Switch to external RTC

1. Check RTC1 info 
$ udevadm info -a -p /sys/class/rtc/rtc1
  looking at device 
'/devices/platform/soc/78ba000.i2c/i2c‐0/0‐0030/rtc/rtc1': 
    KERNEL=="rtc1" 
    SUBSYSTEM=="rtc" 
    DRIVER=="" 
34 

Advertisement

Table of Contents
loading

Table of Contents