linux_image_ADI-scripts icon indicating copy to clipboard operation
linux_image_ADI-scripts copied to clipboard

[WIP] Add Jupiter SDR specific scripts

Open SRaus opened this issue 1 year ago • 2 comments

There are 2 new files for Jupiter: fan-control.service and fan-control (sh script) I have added them in /jupiter_scripts and will be moved on desired paths on 'make install'. We need to add a condition here to enable & start the fan-control service only when there is detected "Jupiter SDR" host. This information can be get from "/sys/firmware/devicetree/base/model". It would be great to add this condition directly in fan-control.service, but if it's not possible, maybe have a wrapper script that will first check the 'model', and ony if it is "Jupiter SDR" to start & enable this service.

The second big change here is on fix_x11.sh:

  • extended condition to cover Jupiter case
  • delete file created by enable_dummy_display, if exists
  • fix DP audio sampling rate (to get rid of dmesg errors)

SRaus avatar Aug 08 '24 10:08 SRaus

Probably will need to split the fix for audio driver in a separate script - X11 being related only to video. But we still can have a wrapper over both - fix_x11.sh and fix_audio.sh.

SRaus avatar Aug 09 '24 08:08 SRaus

It would be great to run this script on start up, or to have a service, that runs fix_x11.sh and fix_audio.sh automatically is case the platform is a zynq_mp one.

SRaus avatar Aug 09 '24 08:08 SRaus

Just change the name of the new service (jupiter.service), since it's not specific only to Jupiter, but also to zcu102 and adrv9009-zu11g. Due to the same reason, maybe it's better to move it one level up, not in 'jupiter_script' folder

Maybe a name like 'display_port_fixes.service'

SRaus avatar Sep 02 '24 13:09 SRaus

v2:

  • changed service name to fix-display-port.service
  • moved service from the jupiter folder

mlradu avatar Sep 02 '24 14:09 mlradu