I am having Android 2.3.7 (Cyanogen mod), the 2 nodes /dev/mem and /dev/kmem do not exist on my device.
I have tried the following two commands to create the nodes:
# mknod /dev/mem c 1 1
# chown root.mem /dev/mem
# mknod /dev/kmem c 1 2
# chown root.kmem /dev/kmem
but I get the error: chown: unknown user/group root:mem
It seems like I can create the nodes, but I cannot bind them with the mem and kmem.
Please give me some suggestion.
Thanks
You are probably seeing several separate issues:
The Android installation that you are using has no existing user groups
memandkmemfor controlling access to those devices. Just use an existing group instead…/dev/kmemcould very well be disabled – creating the device node would do nothing in that case.I would expect
/dev/memto be at least filtered, if not outright disabled through some patch.Why do you need to use either of these virtual devices?