Miguel

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Thanks martinayotte, I've never done anything like that. Any help on how to do it? Thanks for your help Miguel
  2. Hello, Hello, I have connected a pcf6523 RTC module to my OrangePI plus 2E and I can not get it to work. The i2cdetect -y 0 command gives me the following answer: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- 04 -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: 20 21 22 23 24 -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: 40 41 42 -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- -- The next thing I have to do is insert the sudo echo pcf8523 0x68 > /sys/class/i2c-adapter/i2c-0/new device command to activate /dev/rtc1 but this does not work. I think the problem is that my system does not have the driver for the module because in the folder /lib/modules/4.19.17-sunxi/kernel/drivers/rtc I do not have the file rtc-pcf8523.ko y have rtc-pcf8563.ko How can I add the correct driver for my rtc module? Thanks for your help Miguel
  3. Thank you for your help. The script not runs on a period basis, i can not put in crontab. I know that my script not is the correct solution but I can not change it in this moment, I would like remove the messages in auth.log, I don´t understand why my solution works in rasperry pi with raspbian but not in ARMBIAN 5.65 (OrangePi+ 2E).
  4. Hello I´m use ARMBIAN 5.65 in OrangePi+ 2E, I have admin user to execute one custom scritp, it uses sudo to run commnads as root, but prints this messages in /var/log/auth.log every few seconds. Dec 4 17:15:11 ORANGEZN3 sudo: root : TTY=unknown ; PWD=/home/admin ; USER=root ; COMMAND=/usr/sbin/i2cdetect -y 0 Dec 4 17:15:11 ORANGEZN3 sudo: pam_unix(sudo:session): session opened for user root by (uid=0) Dec 4 17:15:11 ORANGEZN3 sudo: pam_unix(sudo:session): session closed for user root I have same problem in my raspberry pi 3 and I can stopt this messages with de following code in /etc/pam.d/sudo file session [success=done default=ignore] pam_succeed_if.so quiet uid = 0 user = root ruser = admin session required pam_env.so readenv=1 user_readenv=0 session required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0 But in ARMBIAN 5.65 not work. do you have any idea about this? Thank you in advance