-
Notifications
You must be signed in to change notification settings - Fork 22
vcdbg missing #67
Comments
See raspberrypi/linux#3666 and https://git.venev.name/hristo/rpi-vc-log for an alternative. @hvenev kindly submitted them ages ago and I've been pondering and tweaking when I get a spare moment because the driver change is larger than I feel ought to be necessary, but they should basically just work as is. |
Whoops. The command I end up needing to run is I'm not seeing how to do that using |
For vc-log the last commit makes it use read() on /dev/vc-mem, which is implemented by the driver change @pelwell was talking about. Before it used `mmap()`, which only works on Pi 4 and on devices with <= 1008 MB RAM.
…On July 1, 2020 11:48:03 PM GMT+03:00, satmandu ***@***.***> wrote:
Whoops. The command I end up needing to run is ```sudo
LD_LIBRARY_PATH=/opt/vc/lib /usr/bin/vcdbg set awb_mode 0```
I'm not seeing how to do that using ```vc-log``` though I can compile
it just fine.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#67 (comment)
|
Nevertheless, I can't get it to read the log on a RPI4:
|
That's because you have checked out the latest commit, where it uses pread() instead of mmap(). The driver change hasn't been merged yet.
On Pi4, you can try the previous commit (312af3705d02b198f09d6efa69c68ba1598fb721) instead. I think it should work.
…On July 1, 2020 11:57:12 PM GMT+03:00, satmandu ***@***.***> wrote:
Nevertheless, I can't get it to read the log on a RPI4:
```
***@***.*** ~/src/rpi-vc-log$ sudo ./vc-log
pread() failed: Invalid argument
Aborted
***@***.*** ~/src/rpi-vc-log$ ls -aFl /dev/vc-mem
crw------- 1 root root 248, 0 Jul 1 16:17 /dev/vc-mem
```
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#67 (comment)
|
Thanks that works splendidly for using vcdbg to get the log. But I for instance need to run |
Well, vc-log is what I managed to do in one evening of frustration and reverse engineering. vcdbg is a blob I don't want anywhere near me. I would appreciate help figuring out how to replicate the rest of its functionality.
…On July 2, 2020 9:36:58 PM GMT+03:00, satmandu ***@***.***> wrote:
> I think it should work.
Thanks that works splendidly for using vcdbg to get the log.
But I for instance need to run ```vcdbg set awb_mode 0``` to get AWB
turned off for my no-ir camera. vc-log doesn't seem to replicate that
functionality from vcdbg for me yet, I think.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#67 (comment)
|
Hmm, it's more than just a question of typing make - it's definitely not 64-bit clean. Would a static 32-bit build of vcdbg be acceptable? |
@pelwell Any chance of having libraspberrypi0 packaged like the As long as the libraries are in the right location, (and the right cross-libraries are installed, such as
|
That's a larger task than I'm prepared to take on, as one that wouldn't naturally fall to me. |
And yes a static build would absolutely be acceptable. |
I believe packaging comes under @XECDesign 's umbrella, and IIRC there was a decision to deliberately not ship cross-libraries by default in the 64-bit beta OS, in order to uncover exactly these kinds of issues 😉 |
The fact that the utility is absent means this issue is already uncovered. Until the compilation and packaging has been sorted out, there's a static 32-bit build here: https://drive.google.com/file/d/1HS9E5vnxxNqrizB4mEYrnFoQQ1axSRKm/view?usp=sharing |
Thanks! Works perfectly.
…On Thu, Jul 2, 2020 at 4:37 PM Phil Elwell ***@***.***> wrote:
The fact that the utility is absent means this issue is already uncovered.
Until the compilation and packaging has been sorted out, there's a static
32-bit build here:
https://drive.google.com/file/d/1HS9E5vnxxNqrizB4mEYrnFoQQ1axSRKm/view?usp=sharing
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAILX7PEIGQE6O4RL4KTTA3RZTVX5ANCNFSM4ONUZQEQ>
.
|
Hi, are there any plans to include the 32bit statically linked version in the firmware repository too, or is the gdrive link the only approved option for now, at least until packaging is sorted out? |
Uh oh!
There was an error while loading. Please reload this page.
I got it installed by copying it over from a 32-bit install to /usr/bin/vcdbg, installing
apt install libc6-armhf-cross
and then runningsudo LD_LIBRARY_PATH=/opt/vc/lib /usr/bin/vcdbg
though some messing with patchelf might negate the need to do that if you don't want to just compile it for arm64.Relevant: raspberrypi/userland#314 (comment)
(I needed vcdbg to troubleshoot awb issues with my no-ir camera setup)
The text was updated successfully, but these errors were encountered: