VoltServer / uboot-bootcount

Read and reset the u-boot 'bootcount' register on various ARM platforms
GNU General Public License v3.0
2 stars 5 forks source link

Another way how to read/write scratch registers #5

Open sonicpp opened 2 years ago

sonicpp commented 2 years ago

Since this commit the kernel exposes scratch0-2 registers (when enabled RTC_NVMEM and RTC_DRV_OMAP configs). To read/write to these registers you can simple use file _/sys/bus/nvmem/devices/omap_rtcscratch0/nvmem (all 12 bytes are accessible by this file). But you still need to do the logic with magic number on your own, tho.

thom-nic commented 2 years ago

Thanks for pointing that out! I will look into it.