Giter Site home page Giter Site logo

Comments (5)

MichaIng avatar MichaIng commented on July 18, 2024

If the device tree overlay is loaded, /etc/modules(-load.d) entries shouldn't be required, since the overlays trigger the driver load.

So indeed it seems this overlay is broken with the new kernel packages. We'll need to have a look at and in case report it here: https://github.com/raspberrypi/linux/issues

from dietpi.

Kreeblah avatar Kreeblah commented on July 18, 2024

Yep, the overlays for these not working is the only thing that makes sense to me for what's causing the issue here.

I grabbed some additional info on this (in case it helps folks track it down) since I reflashed the microSD card with a fresh DietPi image. When I don't run the migration script, this is what I get for dmesg | grep pps:

[    0.060548] pps_core: LinuxPPS API ver. 1 registered
[    0.060558] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    2.049581] pps pps0: new PPS source [email protected]
[    2.049660] pps pps0: Registered IRQ 37 as PPS source

And those PPS source lines are missing afterwards. Similarly, running dmesg | grep rtc before I run the script gets me:

[    2.938576] rtc-rv3028 1-0052: registered as rtc0
[    2.939998] rtc-rv3028 1-0052: setting system clock to 2023-12-25T06:18:05 UTC (1703485085)

But it doesn't find any lines afterwards. Similarly, running i2cdetect -y 1 afterwards gets me this:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- 42 -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- 52 -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

That shows something (the RTC) is detected at 0x52, but the driver isn't loaded because the overlay hasn't been applied. When it's loaded (before running the migration script), that shows UU instead of 52 there.

from dietpi.

Joulinar avatar Joulinar commented on July 18, 2024

How does it behaves on latest RPi OS 64 bit? Important to ensure all apt packages updated to latest version.

from dietpi.

Kreeblah avatar Kreeblah commented on July 18, 2024

How does it behaves on latest RPi OS 64 bit? Important to ensure all apt packages updated to latest version.

That's a good question. Interestingly enough, it works there. I just flashed a microSD card with the current minimal 64-bit RPi OS available in the imaging program, upgraded all the packages on it, and ran through installing/configuring it for my GPS hat, and it does detect the PPS device and RTC as I'd expect when getting things configured (using /boot/firmware/config.txt instead of /boot/config.txt).

root@ntp:~# uname -a
Linux ntp 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
root@ntp:~# ls /dev/pps0
/dev/pps0
root@ntp:~# ls /dev/rtc0
/dev/rtc0

So, just in case it was an issue with my previous installation, I just tried reflashing the current DietPi Bookworm image, unmarked the rpi-eeprom package so I could upgrade it, upgraded that package, ran the migration script, and then went through setting things up the same way I did on RPi OS, and I'm getting the same results as before. The PPS and RTC overlays aren't being applied and /dev/pps0 and /dev/rtc0 aren't being created.

from dietpi.

Kreeblah avatar Kreeblah commented on July 18, 2024

There's followup at #6676 (comment) and #6676 (comment) if anybody finds this later and is looking for context. Seems to be a case of the old kernel package removing some of the overlay files when it gets purged.

from dietpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.