⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 Sigma SMP8634 Mrua v. 2.8.2.0
💻
字号:
XPU RTC Testing===============The SMP8634 contains a battery-backed hardware clock register.  Thehardware register is a 32-bit value that rolls seconds since the UNIXepoch, January 1st 1970.System and Application engineers can use the xpurtc_timer application andrmxpurtcapi library to access the hardware clock directly through thermxpurtc xtask library.xpurtc_timer------------The xpurtc_timer code exposes the functions of the RTC clock to the CPU and shell scripting with this sample application.  The API has 4 mainoperations to perform on the clock.	1. get, retreives the time from the XPU clock register	2. query, prints the value of the 'valid' bit in the XPU clock register	3. restore, copies the time from the battery backed register to the XPU	   exposed register(required after reboot!).	4. set, writes a time to the XPU clock registerTo print out the time from the XPU clock register:	# ./xpurtc_time --get	XPU RTC time is: -1This means the clock is in an unset state.  Either the time has never beenset or the battery backed clock regsiter has not been written to the XPUclock register after reboot.To query the clock to see if it has been set in the past:	# ./xpurtc_time --query	xpurtc state is: VALID	or possibly	xpurtc state is: INVALIDThis will return the state of the XPU RTC valid bit from the register.  Ifthe time has been set in the past and reads -1, but the query returns VALID,this means the battery backed up register has not been copied to the XPUregister.  See the --restore command.To restore the clock value from the battery register after a power cycle:	# ./xpurtc_time --restoreThere is no feedback that will indicate if there was valid data in thebattery regeister other than the feedback from the --query command orsimply getting the time again.  If there was no battery backed up timea restore command will have no effect and the XPU register will stillcontain -1.To simply set the time:	# ./xpurtc_time --set <timestamp>Where timestamp is UNIX time retreived from another machine.  One can simplyretreive the time from another machine with:	# date +%sSometimes an OEM may want to sync against some external time source.  Typically this involves a CPU space program like NTP that sets the Linuxsoftware clock.  To sync the XPU clock against this software clock one can exectue:	# ./xpurtc_time --set -1This will directly read the time out of the system clock and write it to the XPU.Busybox contains a very minimal version of the date program that is slightly different from the date normally found on UNIX system.  To setthe system time via date one uses:	# date -s <time string>The time string is a bit unusual, in that it is not anything printed outby default on normal systems.  It accepts the format that is created bythis date string on a normal UNIX system:	 # date +%2m%2d%2H%2M%Y	 050312432000One can the use this date in the previous date command to set the systemtime on the board.  And subsequently use the xpurtc_time program towrite this stamp to the XPU clock.Security Concerns-----------------There is a voluntary challenge-authentication algorithm that DRM's use tovalidate secure time stamps.  See the README in teh rmxpurtc SDK for moreinformation.The example xpurtc xtask does not perform authentication by default, andis not required by OEMs to implement.  Other DRM's running on their systemmay still obey the system and cause undefined behavior by the xpurtc clockwriting over their timestamps.  OEM's should take care in order respectthe time stamps of other DRMs and implement their challenge-authenticaitonfor the xtask accordingly.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -