-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm64 binaries #1118
Comments
We don't really support 64bit at present, although some work has been done for 64bit kernel support. 64bit userspace is still a way off. vcgencmd is part of the userland repo - https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/gencmd vcdbg isn't public, but it may be possible to make such a 64bit binary. |
Thanks for the pointer to vcgencmd. I know 64bit is way off to be fully supported, but I'd be happy to see even unsupported I've just tried copying the 32bit libs/binaries, but seems this is not enough with plain So I'll anyway have to dig into a modified kernel first... best regards, Florian La Roche |
vc-mem is under the config BCM2708_VCMEM. I fixed the driver up for 64bit recently, and I thought I'd added it to bcmrpi3_defconfig but can't see it there now. Add it and that bit should work. vcdbg will then try to use part of the bcm2708_fb driver to memcpy from GPU memory to ARM memory, but reverts to accessing via /dev/mem if that fails. Annoyingly it used to log a message every time it failed, so the useful stuff got partially hidden behind a load of annoying error messages. That should have been fixed recently. |
Compiling the userland binaries works great except when one needs to run vcdbg. Any chance of an arm64 binary of vcdbg being released so we don't have to juggle the libraries which are commong to vcdbg and other tools like vcgencmd? |
For those who want to get vcdbg working on arm64, this should fix that, at least on arm64/ubuntu eoan and later: (This assumes you have already compiled and installed the rest of the userland for arm64, and of course the binary would need a kernel compiled with BCM2708_VCMEM.)
|
@6by9 I have noticed that on pi4/arm64/ubuntu I'm able to get the vcdbg messages to show, but not on a 3b+. Both running (current) 5.3.0-1017-raspi2. On Raspberry Pi 3 Model B Plus Rev 1.3:
On Raspberry Pi 4 Model B Rev 1.1:
Of note, the appropriate kernel driver appears to be compiled in:
Same issue with Raspberry Pi 3 Model B Plus Rev 1.3 running newer rpi kernel:
|
I did tweak libdebugsym.so to look at /proc/cmdline for the vc_mem parameters should /dev/vc-mem not exist, mainly as I wanted to be able to get logging out from a mainline kernel. |
I'm pulling down vcdbg straight from the hexxeh repository, and using the same version on two different systems though. Are you saying that libdebugsym.so is the issue? Is there a known good version? |
The version in the Hexxeh repo was updated 19 days ago: https://github.com/Hexxeh/rpi-firmware/blob/master/vc/hardfp/opt/vc/lib/libdebug_sym.so |
Since the 64bit beta has been out for nearly a year, are there any updated timelines on providing a 64bit binary for vcdbg? patching the 32bit binary to work is a little hacky and while there is a 32bit static build for vcdbg here raspberrypi/Raspberry-Pi-OS-64bit#67 (comment) it's not "maintained". If there's a more appropriate issue tracking this, please let me know. |
I would like to bump this issue after 2 years where 64bit is much more common then before and wanted to know if this is possible by now? |
vclog is the replacement for vdbg and is available here. I think this issue can be closed. |
I agree. And if new issues should come up, they should go into new issue reports. I'll close this request. best regards and thanks for your good/great engineering support, Florian La Roche |
Is it possible to provide binaries like vcgencmd and vcdbg
for aarch64?
Thanks a lot,
Florian La Roche
The text was updated successfully, but these errors were encountered: