
~ # mtd_debug read /dev/mtd0 0 4096 dump_file
Copied 4096 bytes from address 0x00000000 in flash to dump_file
Check Read and Write
Use compare tools(yacto has tools named diff).
~ # diff tp dump_file
~ #
If diff command has no print log, the FlexSPI verification is passed.
4.2.6 Real Time Clock (RTC)
Linux SDK for QorIQ Processors
Description
Provides the RTC function.
Kernel Configure Tree View Options
Kernel Configure Tree View Options
Description
Device Drivers->
Real Time Clock-->
[*] Set system time from RTC on
startup and resume (new)
(rtc0) RTC used to set the system
time (new)
<[*] /sys/class/rtc/rtcN (sysfs)
<[*] /proc/driver/rtc (procfs for
rtc0)
<[*] /dev/rtcN (character devices)
Enable RTC driver
Compile-time Configuration Options
Option
Values
Default Value
Description
CONFIG_RTC_LIB
y/m/n
y
Enable RTC lib
CONFIG_RTC_CLASS
y/m/n
y
Enable generic RTC class
support
CONFIG_RTC_HCTOSYS
y/n
y
Set the system time from
RTC when startup and
resume
CONFIG_RTC_HCTOSYS_D
EVICE
"rtc0"
RTC used to set the system
time
CONFIG_RTC_INTF_SYSFS y/m/n
y
Enable RTC to use sysfs
Table continues on the next page...
Linux kernel
Layerscape LS1028A BSP User Guide, Rev. 0.3, 04/2019
56
NXP Semiconductors
Summary of Contents for Layerscape LS1028A BSP
Page 135: ......