imx6: android6.0 can't find /dev/mem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6: android6.0 can't find /dev/mem

Jump to solution
1,639 Views
jiejia
Contributor III

Hi,

  I want to access register according /dev/mem in android 6.0 refer https://community.nxp.com/message/457670 . But I can't find /dev/mem in android fs. Why?

Labels (4)
0 Kudos
1 Solution
1,021 Views
gary_bisson
Senior Contributor III

Hi,

The reason is that it isn't enabled in the kernel configuration:

linux-2.6-imx.git - Freescale i.MX Linux Tree 

The reason behind that reason is for security purposes. There's a CTS test that checks that /dev/mem isn't present, so it is the safe/standard option to disable it.

Regards,

Gary

View solution in original post

0 Kudos
1 Reply
1,022 Views
gary_bisson
Senior Contributor III

Hi,

The reason is that it isn't enabled in the kernel configuration:

linux-2.6-imx.git - Freescale i.MX Linux Tree 

The reason behind that reason is for security purposes. There's a CTS test that checks that /dev/mem isn't present, so it is the safe/standard option to disable it.

Regards,

Gary

0 Kudos