Hi 6by9 ,
Yes!
1. My system uses vc4_kms-v3dand , At end, output of few commands, i tried, is ebing given to figure out the correct issue.
2. I have updated /poky/build/tmp/work-shared/raspberrypi4-64/kernel-source/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
with
&hdmi0 {
status = "okay";
//For HDMI0 Hotplug Detect
hpd-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
&hdmi1 {
status = "okay";
//For HDMI1 Hotplug Detect
hpd-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
i.e. make gpio12 high to for hotplug detect.
3. in /boot/config.txt i set hdmi_force_hotplug=1
IN local.conf i have IMAGE_INSTALL:append = " libgpiod spitools pxaregs pciutils pcimem" and it bitbaked properly , as core-image-sato-raspberrypi4-64.manifest contains below three packages
libgpiod-dev cortexa72 1.6.3
libgpiod2 cortexa72 1.6.3
libgpiodcxx1 cortexa72 1.6.3
After above changes, still hotplug is not working. After making gpio 12 and 13 as high display initially is coming but later , its not coming after booting. but on uart console booting is happening properly.
root@raspberrypi4-64:/bin# ls libgpio*
ls: cannot access 'libgpio*': No such file or directory
root@raspberrypi4-64:/bin# find /usr/bin -name "gpiodetect"
root@raspberrypi4-64:/bin# find /usr/bin -name "gpioset"
root@raspberrypi4-64:/bin# find / -name "gpiodetect" -type f
root@raspberrypi4-64:/bin# find / -name "gpioset" -type f
root@raspberrypi4-64:/bin# dmesg | grep vc4
[ 8.202046] fb0: switching to vc4 from simple
[ 8.274415] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 8.441927] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 8.470254] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[ 8.539566] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.588926] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 8.589455] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input3
[ 8.672490] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.680576] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 8.687937] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.697726] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.705352] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.716489] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.724285] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.745726] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 8.752704] vc4-drm gpu: [drm] Cannot find any crtc or sizes
root@raspberrypi4-64:/bin# dmesg | grep hdmi
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1280x800M@60 smsc95xx.macaddr=D8:3A:DD:06:0F:4B vc_mem.mem_o
[ 8.441927] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 8.470254] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[ 8.539566] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.588926] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 8.589455] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input3
[ 8.672490] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
root@raspberrypi4-64:/bin# gpio readall
-sh: gpio: command not found
root@raspberrypi4-64:/bin# cat /proc/device-tree/hdmi1/hpd-gpios
cat: /proc/device-tree/hdmi1/hpd-gpios: No such file or directory
Kindly help in details to get issue rectified.If some more information is needed kindly let me know,
Thanks for your reply.
Regards.
Ankur
Yes!
1. My system uses vc4_kms-v3dand , At end, output of few commands, i tried, is ebing given to figure out the correct issue.
2. I have updated /poky/build/tmp/work-shared/raspberrypi4-64/kernel-source/arch/arm/boot/dts/bcm2711-rpi-cm4.dts
with
&hdmi0 {
status = "okay";
//For HDMI0 Hotplug Detect
hpd-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
&hdmi1 {
status = "okay";
//For HDMI1 Hotplug Detect
hpd-gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
};
i.e. make gpio12 high to for hotplug detect.
3. in /boot/config.txt i set hdmi_force_hotplug=1
IN local.conf i have IMAGE_INSTALL:append = " libgpiod spitools pxaregs pciutils pcimem" and it bitbaked properly , as core-image-sato-raspberrypi4-64.manifest contains below three packages
libgpiod-dev cortexa72 1.6.3
libgpiod2 cortexa72 1.6.3
libgpiodcxx1 cortexa72 1.6.3
After above changes, still hotplug is not working. After making gpio 12 and 13 as high display initially is coming but later , its not coming after booting. but on uart console booting is happening properly.
root@raspberrypi4-64:/bin# ls libgpio*
ls: cannot access 'libgpio*': No such file or directory
root@raspberrypi4-64:/bin# find /usr/bin -name "gpiodetect"
root@raspberrypi4-64:/bin# find /usr/bin -name "gpioset"
root@raspberrypi4-64:/bin# find / -name "gpiodetect" -type f
root@raspberrypi4-64:/bin# find / -name "gpioset" -type f
root@raspberrypi4-64:/bin# dmesg | grep vc4
[ 8.202046] fb0: switching to vc4 from simple
[ 8.274415] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4])
[ 8.441927] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 8.470254] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[ 8.539566] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.588926] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 8.589455] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input3
[ 8.672490] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.680576] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4])
[ 8.687937] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.697726] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.705352] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.716489] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.724285] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4])
[ 8.745726] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 8.752704] vc4-drm gpu: [drm] Cannot find any crtc or sizes
root@raspberrypi4-64:/bin# dmesg | grep hdmi
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1280x800M@60 smsc95xx.macaddr=D8:3A:DD:06:0F:4B vc_mem.mem_o
[ 8.441927] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0
[ 8.470254] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input2
[ 8.539566] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4])
[ 8.588926] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1
[ 8.589455] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input3
[ 8.672490] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4])
root@raspberrypi4-64:/bin# gpio readall
-sh: gpio: command not found
root@raspberrypi4-64:/bin# cat /proc/device-tree/hdmi1/hpd-gpios
cat: /proc/device-tree/hdmi1/hpd-gpios: No such file or directory
Kindly help in details to get issue rectified.If some more information is needed kindly let me know,
Thanks for your reply.
Regards.
Ankur
Statistics: Posted by ankur_r — Wed May 08, 2024 12:32 pm