Open adam900710 opened 3 years ago
In case you refer to the mainline kernel, there is no support for the CM4 or V3D yet. CM4: https://github.com/lategoodbye/rpi-zero/issues/48 V3D: https://github.com/lategoodbye/rpi-zero/issues/46
Also the downstream DTB won't help you.
No wonder.
But I tried the raspberry pi kernel, commit 94535fc8931c43d7106693a180113f7394fe1d48 of https://github.com/raspberrypi/linux
.
With the same down stream device tree, still no help.
So I guess I have to go the 5.10.x branch to get VC4 working?
BTW, although no mainline kernel support for CM4, it works exceptionally well, except the VC4 part.
Everything from Uboot to kernel wifi/bluetooth to PCIE host controller all work fine, using the down stream device tree.
Thus it gives me some illusion that VC4 should work without problem too.
@lategoodbye BTW, is there any working kernel branch which enabled VC4/V3D?
VC4 is working for RPi 4 B
@vianpl was working on V3D
His last branch against mainline seems to be here: https://github.com/vianpl/linux/commits/v3d-enable-v2
I just uploaded https://github.com/vianpl/linux/tree/v3d-enable-v3 which is more or less the same code as v2 rebased to yesterday's linux-next. I tested it against mesa 21.1.2 and manages to start X11 (although it's easy to make it crash).
Do I need any special device tree or can just reuse the existing down stream device tree?
I use the upstream one.
But I didn't see the upstream kernel has device tree for CM4, at least not in torvalds/master branch.
@adam900710 Oh! sorry for that. I missed you were talking about CM4 specifically. Then my suggestion would be to adapt the downstream DT. It should match the changes available on my branch.
Awesome, would try that branch and try to give some feedback in recent days.
Describe the bug When booting upstream kernel v5.12.10, even with
vc4-kms-v3d-pi4
overlay applied, vc4 still fails to probe the HDMI.The board is CM4, thus not sure if it's related to the dual HDMI. (Only HDMI0 has been utilized).
The FDT and overlays are from the official firmware repo, as upstream don't yet have CM4 fdt.
The involved dmesg are:
To reproduce Boot upstream kernel, with official firmware fdt and overlay, with
vc4-kms-v3d-pi4
overlay applied.Expected behaviour VC4 is expected to probe the HDMI without problem.
Actual behaviour VC4 is unable to probe the HDMI, thus gpu is not initialized at all.
System Not using RPI specific distro.
Which model of Raspberry Pi? CM4, 8G ram, 32G eMMC, with wifi
Which OS and version Manjaro ARM, with upstream kernel and uboot.
Which firmware version Latest, and no vc specific user tool installed
Which kernel version 5.12.10 Upstream kernel without any RPI specific patch