Skip to content

Raspberry Pi 4B incompatibility with flashmem project #2

@OutsourcedGuru

Description

@OutsourcedGuru

I'm noting that the source code for the Chapter 8, p153 flashmem code works as expected on the Raspberry Pi 3B computer but doesn't seem to be running on the Raspberry Pi 4B.

gpiomem.s:

gpioaddr:       .word   0x3F200             @ mem address of gpio register / 4096

Are you sure this is correct for the Raspberry Pi 4B, as indicated on p154's last paragraph?

I'm getting a "Failed to map memory" error from this platform (as run by sudo ...).

ls -l /dev/mem
  crw-r----- 1 root kmem 1, 1 Dec  7 17:49 /dev/mem
ls -l /dev/gpiomem
  crw-rw---- 1 root gpio 247, 0 Dec  7 17:49 /dev/gpiomem
groups
  pi adm dialout cdrom sudo audio video plugdev games users input netdev gpio i2c spi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions