Problem on CM4 with vc_dispmanx_display_open failed! Make sure to have hdmi_force_hotplug=1 setting in /boot/config.txt
cherbin opened this issue · 0 comments
Hello,
I am trying to get the fbcp-ili9341 running on the CM4.
Getting the following error:
root@raspberrypi:~/fbcp-ili9341# ./fbcp-ili9341
bcm_host_get_peripheral_address: 0xfe000000, bcm_host_get_peripheral_size: 25165824, bcm_host_get_sdram_address: 0xc0000000
BCM core speed: current: 200000000hz, max turbo: 500000000hz. SPI CDIV: 12, SPI max frequency: 41666667hz
Allocated DMA channel 7
Allocated DMA channel 1
Enabling DMA channels Tx:7 and Rx:1
DMA hardware register file is at ptr: 0xf6083000, using DMA TX channel: 7 and DMA RX channel: 1
DMA hardware TX channel register file is at ptr: 0xf6083700, DMA RX channel register file is at ptr: 0xf6083100
Resetting DMA channels for use
DMA all set up
Initializing display
Resetting ili9488 display at reset GPIO pin 5
Creating SPI task thread
InitSPI done
vc_dispmanx_display_open failed! Make sure to have hdmi_force_hotplug=1 setting in /boot/config.txt
Can you please let us know what we can do to fix this error. Also hdmi_force_hotplug=1 is in the /boot/config.txt
Thanks
The cmake string is:
cmake -DILI9488=ON -DGPIO_TFT_DATA_CONTROL=13 -DGPIO_TFT_RESET_PIN=5 -DSPI_BUS_CLOCK_DIVISOR=12 -DISPLAY_CROPPED_INSTEAD_OF_SCALING=true -DARMV8A=ON
And the /boot/config.txt is:
lrwxrwxrwx 1 root root 19 Dec 4 18:07 config.txt -> firmware/config.txt
root@raspberrypi:~/fbcp-ili9341# cat /boot/config.txt
For more options and information see
http://rptl.io/configtxt
Some settings may impact device functionality. See link above for details
Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
DISPLAY FOR IceWallet Display
#dtparam=spi=on
hdmi_group=2
hdmi_mode=87
framebuffer_width=480
framebuffer_height=640
hdmi_cvt=480 640 60 1 0 0 0
hdmi_force_hotplug=1
Enable audio (loads snd_bcm2835)
dtparam=audio=on
Additional overlays and parameters are documented
/boot/firmware/overlays/README
Automatically load overlays for detected cameras
camera_auto_detect=1
Automatically load overlays for detected DSI displays
display_auto_detect=1
Automatically load initramfs files, if found
auto_initramfs=1
Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
Don't have the firmware create an initial video= setting in cmdline.txt.
Use the kernel's default instead.
disable_fw_kms_setup=1
Disable compensation for displays with overscan
disable_overscan=1
Run as fast as firmware / board allows
arm_boost=1
[cm4]
Enable host mode on the 2711 built-in XHCI USB controller.
This line should be removed if the legacy DWC2 controller is required
(e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]