Jump to content

Ed van den Enden

Members
  • Posts

    16
  • Joined

  • Last visited

Community Answers

  1. Ed van den Enden's post in Unable to make it to work: RTC module ds3231, BPI M2Z and ARMBIAN Bookworm was marked as the answer   
    @going
    @djurny
    @IBV
     
    Reason why I need an working hardware clock:
    Because my access point need to work without internet connection, but with always the right date and time.
     
    Following made the battery operated hardware clock ds3132 to work:
     
    OS: Armbian Bookworm from 24-04-2025
    apt-get update (No upgrade! )
     
    Edit /boot/armbianEnv.txt
    add following lines:
    overlays=i2c0
    dtoverlay=i2c-rtc,ds1307
     
    Edit /etc/modules
    add following lines
    i2c-dev
    aml_i2c
     
    Edit /etc/rc.local
    add following lines
    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
    hwclock -s
     
    Reboot
     
    Check date and eventual correct date and time.
    Check if the i2c has the right status with: i2cdetect -y 0 ==> address 068 should show UU
    Check hwclock is communicating with: hwclock --verbose
    Save the right system time to the hwclock with: hwclock -w
    Check if you can read hwclock with: hwclock -r
     
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines