yeah, devmem already exists with almost same name and correct :-)

This commit is contained in:
Ciro Santilli
2017-07-12 00:19:06 +01:00
parent 93453a4ae2
commit 5941e09d37
3 changed files with 18 additions and 50 deletions

View File

@@ -45,3 +45,21 @@ BR2_PACKAGE_LINUX_TOOLS_GPIO=y
BR2_PACKAGE_DTC=y
BR2_PACKAGE_DTC_PROGRAMS=y
BR2_PACKAGE_HOST_DTC=y
# On ARM, with our lkmc_platform_device:
#
# devmem2 0x101e9000 w 0x12345678
#
# Then on QEMU monitor, notice that the registers don't actually change value:
#
# xp/4 0x101e9000
#
# Uses /dev/mem:
#
# - https://superuser.com/questions/71389/what-is-dev-mem/1214662#1214662
# - https://unix.stackexchange.com/questions/4948/shell-command-to-read-device-registers
#
# TODO: why with mmap MAP_PRIVATE (used in my previous custom naive version),
# the entire register page is read?;
#
BR2_PACKAGE_DEVMEM2=y