This is a cache of https://discuss.96boards.org/t/hikey970-not-able-to-find-dev-mem/7733. It is a snapshot of the page at 2024-10-31T10:52:24.222+0000.
Hikey<strong>970</strong> - Not able to find /dev/mem - HiKey<strong>970</strong> - 96Boards Forum

Hikey970 - Not able to find /dev/mem

Board based on the Kirin 970 - HI3670 Application Processor
More info: http://www.96boards.org/product/hikey970/ (Website coming soon…)
Buy now: https://www.seeedstudio.com/HiKey-970-Development-Board-p-3046.html

Hi All,

I’ve recently bought Hikey970 board and installed Lebuntu on it. However, when i checked the config file, the CONFIG_DEVMEM was not set.
So, i downloaded the kernel from https://github.com/96boards-hikey/linux and did a make defconfig. The .config file generated had the CONFIG_DEVMEM set. I compiled the new kernel and I installed it.

In one of the programs i am trying to execute on the board as shown below:
"int fd = open("/dev/mem", O_RDWR | O_SYNC)"

When i run the executable, i get an error saying No such device or address.

Can someone please help me with this?