13.100ASK_T113-PRO RTC实验

这个实验太简单了,驱动已经在内核中做好了,不需要做什么.

测试:

复制代码
# ls /dev/
block            random           tty23            tty51
bus              rfkill           tty24            tty52
cedar_dev        root             tty25            tty53
char             rtc              tty26            tty54
console          rtc0             tty27            tty55
cpu_dma_latency  shm              tty28            tty56
disk             snd              tty29            tty57
disp             stderr           tty3             tty58
fb0              stdin            tty30            tty59
fd               stdout           tty31            tty6
full             sunxi-reg        tty32            tty60
fuse             sunxi-wlan       tty33            tty61
g2d              sunxi_pwm0       tty34            tty62
gpiochip0        sunxi_soc_info   tty35            tty63
i2c-2            tty              tty36            tty7
input            tty0             tty37            tty8
ion              tty1             tty38            tty9
kmem             tty10            tty39            ttyS1
kmsg             tty11            tty4             ttyS3
log              tty12            tty40            ubi_ctrl
mem              tty13            tty41            urandom
mmcblk0          tty14            tty42            usb-ffs
mmcblk0p1        tty15            tty43            vcs
mmcblk0p2        tty16            tty44            vcs1
mmcblk0p3        tty17            tty45            vcsa
mmcblk0p4        tty18            tty46            vcsa1
mmcblk0p5        tty19            tty47            vcsu
mmcblk0p6        tty2             tty48            vcsu1
null             tty20            tty49            watchdog
ptmx             tty21            tty5             watchdog0
pts              tty22            tty50            zero
#

可以看到 "RTC0"这个设备,驱动已经挂载好了.

看看时间吧,

date

Sat Nov 16 22:28:08 UTC 2024

设备时间

#date -s "2024-11-16 22:29"

相关推荐
Lzc7741 小时前
Linux网络的HTTPS
linux·https
我爱钱因此会努力2 小时前
ansible自动化运维入门篇
linux·运维·服务器·centos·自动化·ansible
zhaoyufei1333 小时前
RK3399 11.0关闭调试串口改为普通RS232通信串口
android·驱动开发
---学无止境---3 小时前
Linux中系统调用sys_symlink和sys_unlink函数的实现
linux
代码程序猿RIP3 小时前
【Etcd 】Etcd 详解以及安装教程
linux·数据库·etcd
Rotion_深3 小时前
单片机 看门狗的作用
单片机·嵌入式硬件
tb_first4 小时前
Linux入门1(2/2)
linux
cellurw4 小时前
Day72 传感器分类、关键参数、工作原理与Linux驱动开发(GPIO/I²C/Platform/Misc框架)
linux·c语言·驱动开发
NextZeros4 小时前
基于CentOS安装LNMP
linux·centos
梁萌4 小时前
Linux安装mysql8.4.6
linux·运维·mysql安装·8.4.6