IgorS

Members
  • Content Count

    43
  • Joined

  • Last visited

About IgorS

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. IgorS

    Real time clock DS3231

    /proc/driver/rtc ... the system clock RTC may expose itself https://www.kernel.org/doc/Documentation/rtc.txt Obviously kernel dependent Rasperry3b: igor@pi-ubuntu:~$ uname -a Linux pi-ubuntu 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l armv7l armv7l GNU/Linux igor@pi-ubuntu:~$ ls /proc/driver/rtc /proc/driver/rtc igor@pi-ubuntu:~$ cat /proc/driver/rtc rtc_time : 17:23:12 rtc_date : 2018-04-17 alrm_time : 06:17:00 alrm_date : 2018-04-18 alarm_IRQ : no alrm_pending : no update IRQ enabled : no periodic IRQ enabled : no periodic IRQ frequency : 1 max user IRQ frequency : 64 24hr : yes igor@pi-ubuntu:~$ sudo hwclock [sudo] password for igor: Uto 17 Tra 2018 19:23:48 .676962 seconds OrangePi +2e, legacy kernel: igor@orangepiplus2e:~$ uname -a Linux orangepiplus2e 3.4.113-sun8i #18 SMP PREEMPT Wed Jan 24 22:10:49 CET 2018 armv7l armv7l armv7l GNU/Linux igor@orangepiplus2e:~$ ls /proc/driver/rtc /proc/driver/rtc igor@orangepiplus2e:~$ cat /proc/driver/rtc rtc_time : 06:05:49 rtc_date : 1970-01-09 alrm_time : 11:53:47 alrm_date : 1970-01-08 alarm_IRQ : no alrm_pending : no update IRQ enabled : no periodic IRQ enabled : no periodic IRQ frequency : 1 max user IRQ frequency : 64 24hr : yes igor@orangepiplus2e:~$ sudo hwclock [sudo] password for igor: Tue 17 Apr 2018 07:20:29 PM CEST .904616 seconds igor@orangepiplus2e:~$ OrangePi +2e, mainline kernel: igor@websrv:~$ uname -a Linux websrv 4.14.18-sunxi #24 SMP Fri Feb 9 16:24:32 CET 2018 armv7l armv7l armv7l GNU/Linux igor@websrv:~$ ls /proc/driver/rtc ls: cannot access '/proc/driver/rtc': No such file or directory igor@websrv:~$ sudo hwclock [sudo] password for igor: Tue 17 Apr 2018 07:39:22 PM CEST .052402 seconds
  2. IgorS

    Real time clock DS3231

    As far as I know there is no way to wake Orange Pi +2e with DS3231 widouth additional circuitry.
  3. Can anybody help, please, I can't figure out how to fix this to work. Despite loaded overlay which change emited code to KEY_POWER on button press, there is no event created in /sys, I think that still something missing. This is beyond of my knowledge so please help.
  4. IgorS

    Real time clock DS3231

    It should work on every kernel after 4.9.xxx which have rtc_ds3232 kernel module included.
  5. IgorS

    Real time clock DS3231

    Tested also on Raspberry Pi 3b, kernel 4.14.33
  6. IgorS

    Real time clock DS3231

    Tested on OPi+2E, OPi One, OPi Zero with mainline kernel 4.14.18-sunxi.
  7. IgorS

    Real time clock DS3231

    Update: Newer kernels have module rtc_ds3232 and using this module you will be able to read temperature from DS3231 sensor board via hwmon. example: rtctemp=$(cat /sys/class/i2c-adapter/i2c-0/0-0068/hwmon/hwmon0/temp1_input) rtctemp=$(bc -l <<< "$rtctemp / 1000") echo "RTC temp = $rtctemp" Attached is changed fake-hwclock which tryes to load rtc_ds3232 module if ds3231attached variable = yes, and falls back to rtc_ds1307 module on older kernels. fake-hwclock.tar.gz
  8. Compiled and activated overlay, but still nothing from acpi_listen
  9. I am looking to example: https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/gpio-button.dts Could I only change pin number in this example?
  10. Thank you very much for answer... But I really don't know how to write such Device Tree overlay. Can you help me with this?
  11. Please help, what I am missing? With legacy kernel installed acpid and pressing power button on OpiOne gives me events (monitoring with acpi_listen). Same thing not working with next kernel 4.14.18. Do anybody have solution?
  12. IgorS

    Problems with 5.38 update

    Sorry, I missunderstood you. Yes, when fix comes, will be possible through armbian-config install to emmc.
  13. IgorS

    Problems with 5.38 update

    Nope, bloody new U-Boot wan't boot from emmc. Until solution, we are trapped on mmc