Skip to content

Commit

Permalink
vclog: Add DMA support (needed for Pi 3)
Browse files Browse the repository at this point in the history
Pi 3 (BCM2710) has a 16MB hole in the ARM's address space where it can't
see RAM because the I/O space is mapped there. This is the area where
the firmware usually puts its logging information, so accessing it
from the ARM requires the use of DMA to copy it to visible RAM.

This major update adds DMA support, but also makes vclog more resilient
when run in "follow" mode.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  • Loading branch information
pelwell committed Aug 9, 2023
1 parent 8fc892d commit 94b89a6
Show file tree
Hide file tree
Showing 3 changed files with 465 additions and 761 deletions.
2 changes: 1 addition & 1 deletion vclog/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -pedantic")
project(vclog)

#add executables
add_executable(vclog vcdbg.c)
add_executable(vclog vclog.c)
install(TARGETS vclog RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Loading

0 comments on commit 94b89a6

Please sign in to comment.