![]() ![]() Modprobe: FATAL: Module rtc-ds1307 not found in directory /lib/modules/4.4.143-61-rockchip-g1f77a85486f7 (modproble) rtc-ds1307 => /etc/modules is giving modprobe rtc-ds1307 => /etc/modules Is this required in overlays or should I give rk3308-i2c1. I have enabled i2c-1 in overlays i2c1-hym8563. I had connected to pin 23(SDA) & 24 (SCL) as per the instructions given today to work with i2C-0. The hwclock init script sets the system time based on the rtc1 time at boot and also updates it on shutdown based on the current system clock, which may have been updated by NTP.Thanks for the followup. ![]() Lrwxrwxrwx 1 root root 4 /dev/rtc -> rtc1 Reboot and /dev/rtc should now be pointing at the new /dev/rtc1 cbtest:~$ ls -alh /dev/rtc* Unfortunately, the hwclock utility by default looks for /dev/rtc0 first and then /dev/rtc so just changing the /dev/rtc target isn’t enough.Įdit /etc/conf.d/hwclock to use rtc1 via our retargeted symlink: clock_args="-rtc=/dev/rtc" The above entries first create the rtc1 device and then change the /dev/rtc symlink to point to /dev/rtc1 Lrwxrwxrwx 1 root root 4 Nov 20 11:05 /dev/rtc -> rtc0Ĭreate a udev rules file name /etc/udev/rules.d/les with the following content: KERNELS="i2c-5", SUBSYSTEMS="i2c", DRIVERS="", ATTRS="rtc-ds1307 5-0068", SYMLINK+="rtc" The symlink for /dev/rtc is currently pointing to /dev/rtc0 cbtest:~$ ls -alh /dev/rtc Testing looks good but we want the system to use /dev/rtc1 automatically on boot. Time since last adjustment is 1668962027 secondsĬalculated Hardware Clock drift is 0.000000 seconds Time read from Hardware Clock: 0 16:33:47 Waiting in loop for time from /dev/rtc1 to change Ioctl(3, RTC_UIE_ON, 0): Invalid argument Use hwclock to read the time from /dev/rtc1 cbtest:~$ doas hwclock -r -verbose -rtc=/dev/rtc1Īssuming hardware clock is kept in UTC time. We should see rtc1 now: cbtest:~$ ls /dev/rtc* cbtest:~$ doas i2cdetect -lĮrror: Could not open file '/dev/i2c-5' or '/dev/i2c/5': No such file or directoryġ0: -Ģ0: -ģ0: -Ĥ0: -ĥ0: -Ħ0: - 68 -īefore adding the new new device we only see rtc0: cbtest:~$ ls /dev/rtc*Īdd the device: /home/cb # echo ds1307 0圆8 > /sys/class/i2c-adapter/i2c-5/new_device Loading the module is only needed when using tools like i2cdetect and isn’t required for the system to make use of the rtc. Loading the i2c-dev module does create them and allows the userspace tools to work correctly so I decided to just leave it as a module. ![]() I tried CONFIG_I2C_CHARDEV built into the kernel instead of as a module but the /dev/i2c-* device files weren’t created on boot. The century option is probably not required but I set it anyway. Make sure the below kernel options are set. I was not able to communicate with the external RTC until I backed this change out. The commit message was “Switch to builtin HDMI DDC bus on rk3288-veyron”. The below kernel patch needs to be reverted. I went with a 1k ohm resistor in the final assembly.ġ9 male HDMI Board Edge, Straddle Mount Connector I used a DS3231 module from Amazon and desoldered the battery (reuse) and pin header (discard). Note that many Sink devices simply connect the HPD signal to the +5V Power signal through a 1000 ohm resistor.Ī custom PCB from enabled me to assemble a clean and compact final solution, despite my ineptness with a soldering iron. I did not have a 1k resistor to test with but I assume that would work fine and aligns with this comment from the ti.com link: I tested with the 22k resistor and without and both configurations worked. See references at the bottom of this page. There is contradictory information about the value and even the need for this resistor at all. Note the 22k ohm resistor in the picture that connects 5v VCC to the hot plug detect pin (19-HPD). I removed an HDMI connector from a cable and used a small breadboard for testing: This post details how to add an external battery backed RTC module connected to the HDMI port. Note the 2013 date in the above dmesg output. The problem is the lack of a battery to keep the time when power is removed. The Aopen Chromebase (or Chromebox) Mini seems to be equipped with a real time clock (RTC): rk808-rtc rk808-rtc: registered as rtc0 Tags Aopen Chromebase with HDMI RTC and Alpine Linux Aopen Chromebase with HDMI RTC and Alpine Linux Home | ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |