mozcelikors
Posts: 8
Joined: Sun Dec 04, 2016 1:23 pm

Raspberry Pi 4 "VCHI initialization failed" error

Fri May 29, 2020 8:27 pm

Hi,
I am trying to update Raspberry Pi 4 (64-bit) bootloader eeprom using vcgencmd commands and rpi-eeprom-update. I am using a custom Yocto distro that uses dtoverlay=vc4-fkms-v3d. I have the following config.txt and /proc/cmdline;

Code: Select all

root@raspberrypi4-64:~# cat /proc/cmdline
coherent_pool=1M 8250.nr_uarts=1 cma=64M cma=256M video=HDMI-A-1:1024x600@60 
smsc95xx.macaddr=DC:A6:32:03:2E:E3 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  
dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait     rootflags=commit=120,data=writeback 
elevator=deadline noatime nodiratime data=writeback  bootdelay=0   consoleblank=0  vt.global_cursor_default=0 
splash  lpj=216000 loglevel=1 console=ttyS0,115200

root@raspberrypi4-64:~# cat /run/media/mmcblk0p1/cmdline.txt
[...]
dtoverlay=vc4-fkms-v3d
arm_64bit=1
dtparam=i2c_arm=on
dtparam=i2c1=on
dtparam=spi=on
boot_delay=0
dtparam=audio=on
avoid_warnings=1
disable_splash=1
enable_uart=1
dtparam=uart0=on
boot_delay=0
gpu_mem=256
dtparam=audio=on
avoid_warnings=1
disable_splash=1
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1

root@raspberrypi4-64:~# getent group video
video:x:44:root

root@raspberrypi4-64:~# vcgencmd help
VCHI initialization failed

root@raspberrypi4-64:~# dmesg | grep vc4-cma
root@raspberrypi4-64:~# 

root@raspberrypi4-64:~# dmesg | grep cma
[    0.000000] cma: Reserved 256 MiB at 0x000000001ec00000
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M cma=256M video=HDMI-A-1:1024x600@60 smsc95xx.macaddr=DC:A6:32:03:2E:E3 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait     rootflags=commit=120,data=writeback elevator=deadline noatime nodiratime data=writeback  bootdelay=0   consoleblank=0  vt.global_cursor_default=0 splash  lpj=216000 loglevel=1 console=ttyS0,115200
[    0.000000] Memory: 3456472K/3866624K available (5950K kernel code, 390K rwdata, 1980K rodata, 512K init, 560K bss, 148008K reserved, 262144K cma-reserved)
When I issue any vcgencmd command, I get "VCHI initialization failed". My user is correctly set up, I am thinking maybe some feature is not integrated to the custom BSP I'm basing my work on. For example, there is no vc4-cma loaded, only vc4-drm is loaded.

Any ideas are greatly appreciated.

Let me know if anything else might be needed as info. Thanks.

swahren
Posts: 149
Joined: Mon Sep 19, 2016 5:24 pm
Location: Germany

Re: Raspberry Pi 4 "VCHI initialization failed" error

Sat May 30, 2020 9:15 am

Did you enabled CONFIG_BCM2835_VCHIQ in the kernel?

esvertit
Posts: 7
Joined: Mon Jul 23, 2012 7:31 am

Re: Raspberry Pi 4 "VCHI initialization failed" error

Wed Jun 03, 2020 8:17 pm

swahren wrote:
Sat May 30, 2020 9:15 am
Did you enabled CONFIG_BCM2835_VCHIQ in the kernel?
Hi swahren, how to do this?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9916
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Raspberry Pi 4 "VCHI initialization failed" error

Thu Jun 04, 2020 10:38 am

esvertit wrote:
Wed Jun 03, 2020 8:17 pm
swahren wrote:
Sat May 30, 2020 9:15 am
Did you enabled CONFIG_BCM2835_VCHIQ in the kernel?
Hi swahren, how to do this?
You set it in the kernel config when you're building your kernel. It's in the standard Pi defconfigs. VCHIQ also needs to be enabled via device tree.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

audas
Posts: 32
Joined: Tue Oct 01, 2019 11:11 pm

Re: Raspberry Pi 4 "VCHI initialization failed" error

Sun Nov 08, 2020 9:00 am

Hi,
I am trying to get both HDMI ports using CEC commands. I updated to the 5.9 kernel however I am now unable to use wireless mouse etc. However it apepears TVSERVICE is not working now as well. I get the following error

"Failed to initialize VCHI (ret=-1)"

Perhaps hardware issues are the cause as per this thread. I am not sure how to go about adding this in ?

I followed the steps on changing the kernel found here
https://www.raspberrypi.org/documentati ... uilding.md

But everything seems broken now.

I changed this to

CONFIG_LOCALVERSION="rpi-5.9.y"

Any help or thoughts on where things went wrong ?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9916
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Raspberry Pi 4 "VCHI initialization failed" error

Sun Nov 08, 2020 9:23 am

Issues related to the 5.9 kernel should be reported on the 5.9 kernel thread
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Advanced users”