mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
Use busybox devmem
This commit is contained in:
@@ -47,31 +47,6 @@ 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.
|
||||
#
|
||||
# Upstream: http://free-electrons.com/pub/mirror/devmem2.c
|
||||
#
|
||||
# See also:
|
||||
#
|
||||
# - https://superuser.com/questions/71389/what-is-dev-mem/1214662#1214662
|
||||
# - https://unix.stackexchange.com/questions/4948/shell-command-to-read-device-registers
|
||||
# - man mem
|
||||
#
|
||||
# TODO: why with mmap MAP_PRIVATE (used in my previous custom naive version),
|
||||
# the entire register page is read?;
|
||||
#
|
||||
# TODO: have a look at: https://github.com/kaiwan/device-memory-readwrite
|
||||
#
|
||||
BR2_PACKAGE_DEVMEM2=y
|
||||
|
||||
# Provides setpci and a lspci more advanced than Busybox's
|
||||
#
|
||||
# setpci can read and write to PCI configuration registers.
|
||||
|
||||
Reference in New Issue
Block a user