Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Rpi5 - 32bit (Raspberry Pi OS with desktop, Debian version: 12 (bookworm)) #319

Open
mcpat-it opened this issue Dec 18, 2023 · 2 comments
Open

Comments

@mcpat-it
Copy link

I tried to compile as usual the fbcp, tried without patching anything, here the output of cmake:

-- Board revision: d04170
CMake Warning at CMakeLists.txt:40 (message):
  The board revision of this hardware is not known.  Please add detection to
  this board in CMakeLists.txt.  (proceeding to compile against a generic
  multicore CPU)

and I tried with a patched CMakeLists.txt (added d04170 to ARMV8A):

-- Board revision: d04170
-- Detected this Pi to be one of: Pi 2B rev. 1.2, 3B, 3B+, 3A+, CM3, CM3 lite, CM4, 4B(1GB,2GB,4GB,8GB RAM), Pi400 or 5B(4GB,8GB RAM), with 4 hardware cores and ARMv8-A instruction set CPU.
-- Enabling optimization flags that target ARMv8-A instruction set (Pi 2B >= rev. 1.2, 3B, 3B+, CM3 or CM3 lite)

But after compiling and starting, I get this:

root@rpi5:/opt/build/fbcp-ili9341/build# ./fbcp-ili9341
bcm_host_get_peripheral_address: 0x10, bcm_host_get_peripheral_size: 2080374784, bcm_host_get_sdram_address: 0xc0000000
mapping /dev/mem failed

The pi5 also doesn't have a /dev/fb0.

I tried to enable/disable this settings in config.txt:

dtoverlay=vc4-kms-v3d
max_framebuffers=2

and added/removed this in config.txt:

hdmi_force_hotplug=1
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 480 60 6 0 0 0
hdmi_drive=2
display_rotate=0

It's always the same error mapping /dev/mem failed.

I also copied a successfully compiled file from another pi to the rpi5. Checked with ldd if everything is found (it is!), and started this file, but the same error:

bcm_host_get_peripheral_address: 0x10, bcm_host_get_peripheral_size: 2080374784, bcm_host_get_sdram_address: 0xc0000000
mapping /dev/mem failed

This was only a first try before I patch to 64bit, and I didn't expect any problems, but now I am here with this unexpected error...

And I tested also, so it shouldn't be the problem:

root@rpi5:/opt# sudo modprobe configs
root@rpi5:/opt# zgrep STRICT_DEVMEM /proc/config.gz
# CONFIG_STRICT_DEVMEM is not set
@StormyNotFound
Copy link

same

@StormyNotFound
Copy link

i dont know a fix

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants