utils: vclog doesn't seem to work

I can’t get meaningful logs displayed. This is in direct contrast to the old vcdbg.

I have the following deployment:

root@rpi-87fa00:~# vcgencmd version
Apr 25 2023 18:33:04
Copyright (c) 2012 Broadcom
version d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 (clean) (release) (start_x)

root@rpi-87fa00:~# uname -a
Linux rpi-87fa00 6.1.42-v8 #1 SMP PREEMPT Wed Aug  2 20:49:45 UTC 2023 aarch64 GNU/Linux


root@rpi-87fa00:~# /lib/aarch64-linux-gnu/libc.so.6
GNU C Library (Debian GLIBC 2.36-9+deb12u1) stable release version 2.36.
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 12.2.0.
libc ABIs: UNIQUE ABSOLUTE
Minimum supported kernel: 3.7.0
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.

I’ve built vclog off of 8fc892d82f7c58e2adc58354cf62a73d1b6c6850

root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build/# git rev-parse HEAD
8fc892d82f7c58e2adc58354cf62a73d1b6c6850

root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build# cmake ..
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/tmp.MoicJspBpb/utils/build
root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build# make vclog
[ 50%] Building C object vclog/CMakeFiles/vclog.dir/vcdbg.c.o
[100%] Linking C executable vclog
[100%] Built target vclog

but upon execution, i see nothing

root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build# ./vclog/vclog -m
root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build# ./vclog/vclog -a

when i run the current 64bit statically compiled vcdbg i do get output:

root@rpi-87fa00:/var/tmp/tmp.MoicJspBpb/utils/build# ~/vcdbg log msg
001303.275: brfs: File read: /mfs/sd/config.txt
001303.735: brfs: File read: 229 bytes
001308.978: brfs: File read: /mfs/sd/dt-blob.bin
001337.037: HDMI0:EDID error reading EDID block 0 attempt 0
001338.305: HDMI0:EDID error reading EDID block 0 attempt 1
001339.569: HDMI0:EDID error reading EDID block 0 attempt 2
001340.835: HDMI0:EDID error reading EDID block 0 attempt 3
001342.100: HDMI0:EDID error reading EDID block 0 attempt 4
001343.366: HDMI0:EDID error reading EDID block 0 attempt 5
001344.630: HDMI0:EDID error reading EDID block 0 attempt 6
001345.896: HDMI0:EDID error reading EDID block 0 attempt 7
001347.161: HDMI0:EDID error reading EDID block 0 attempt 8
001348.427: HDMI0:EDID error reading EDID block 0 attempt 9
001349.449: HDMI0:EDID giving up on reading EDID block 0
001349.593: brfs: File read: 68470 bytes
001352.216: brfs: File read: /mfs/sd/config.txt
001352.724: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not defined
001352.753: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
001365.656: gpioman: gpioman_get_pin_num: pin BT_ON not defined
001365.676: gpioman: gpioman_get_pin_num: pin WL_ON not defined
001392.400: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined

Am i misunderstanding what i should be expecting to see in the output? https://github.com/raspberrypi/firmware/issues/1118#issuecomment-1564291095 seems to imply that vclog is the replacement for vcdbg.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 27

Most upvoted comments

FYI I’ve just uploaded a build of the release candidate - please use this version for your testing (the link is unchanged): https://drive.google.com/file/d/1D3Bv3kL83-t3o_idDOEilxs5C9uHxFfK/view?usp=sharing