I am trying to enable the linuxptp on latest version of DietPI with success. Because the kernel on RPI4 has not enabled the CONFIG_NETWORK_PHY_TIMESTAMPING and the CONFIG_PTP_1588_CLOCK I had to compile a new kernel following this guide
Just to avoid a misunderstanding. DietPi is not and will not do any kernel development. If you are using a RPi device, the stock kernel provided by Raspberry OS is used. There is nothing changed from DietPi side. If you are missing anything on kernel features, it is already missing within the stock RPi kernel. Next to this, DietPi is not an own OS. It is a set of bash scripts on top of a Raspberry OS (in case of RPi device).
Indeed compiling the kernel might be the only way if it is a kernel feature. Usually compiling the kernel should work same way as DietPi is a Raspberry OS. Maybe attaching a screen to the device would give an indication on what happen during boot.
Yes I have attach a screen on RPI but I have only black screen nothing else showing. I am not using the RPI as headless, at least during the configuration.
I have removed the quiet command and the same black screen. The green led when power up it shows some indication that is reading or writing from the sd card and then nothing. The red led is stable. None of the leds indicates that is problem or flashing.
It looks like you compiled an outdated non-LTS kernel version. Please always use official RPi sources, there are a lot of outdated and bad instructions floating around in the web .
When the required flags are still missing, you may want to ask the RPi devs whether they can enable it for the stable kernel packages: https://github.com/raspberrypi/linux/issues
I don’t know much about PTP, but sometimes things can be enabled as module or device tree overlay, so when there are others with this need (use the search function on the linked GitHub issues), you may have a chance they it gets enabled in a way.
Thank you for your answers. The problem is that already asked or RPI forum for enabling the flags or make an official release for this and they respond “build a kernel and try”. I haven’t made any questions on github but if I really can not afford of compile one and make it work I will do.
I will give one more shot and see. I will report back.
this is strange as DietPi is build on Raspberry image. What happen if you build/ran the own kernel on a RPI lite image. Once done and all working, try using our PREP script to install DietPi on top. Curious what will happen…
I have installed the DietPi conversion script and after reboot it does the same thing, black screen. Also I have noticed that it has uninstalled the custom made kernel (5.15.15) and installed the default one 5.10 . Also I have noticed that the linuxptp package that I use for PTP has uninstalled also all the configs I have done. In other words it was made like the official DietPI image and removed the custom made kernel and software installed.
Probably something on the scripts working on default kernel and configuration and not with custom kernel.
Regards.
Edit.
If this can not be fixed (with custom kernel) I think it might be someway to patch the kernel or insert the flags for PTP with one of your automated scripts. I am telling this because on installation of DiePi i see that kernel .config is adjusted. Just an idea.
With the black screen ok I understand as I am seeing it is a bug.
And also something more when I installed the DietPI scripts why the custom kernel removed?
And an other question if the default kernel has the problem the custom that is newer than that after the reboot why not loading like on Raspbian Lite?
And the final question if you say that you do not do anything to the kernel or alter the image which is based on Raspbian Lite, why when using the Raspbian Image and compiling a new custom kernel it works flawless (I have tried also to compile kernel 5.4.y and working flawless) ?
Maybe something I do not understand or missing.
With these questions I do not want to judge the DietPI image or the team which are doing excellent job. I am trying to figure out what I am doing wrong or if it is a problem to help fixed.
Regards.
Edit.
I have also compiled custom kernel on Raspbian Lite 64bit working flawless no black screen no anything (branches 5.10.y 5.15.y and 5.16.y). Tried on DietPI image 64bit and the same black screen.
Yes correct I have joined GitHub. It is working without any issues. Build the custom kernel and booted normally. i hope the problem to be fixed quick from the rpi dev because a lot of people will feature this issue.
Continue the excellent work and make DietPI stronger.
I hope in the feature to make some scripts so to be automated the process of PTP installation on DietPI specially for CM4 which is almost ready the hardware timestamping.
I guess still some investigation needed between RPI guys and our developer regarding the config file entry and if the boot behaviour is expected. As at the moment it is a specific value we set. Let’s what the guys will find out.
Of course it is not fix the problem completely but is working for now at least on systems that have the “black screen” issue, in case not need to reinstall everything from the beginning. I think it was made good for not getting upgrades until investigate what is going on.