Starting with the NXP Android 10 BSP for imx8mm, has anyone been able to add a new device?
Basically today in the NXP BSP for android 10 there is /android_build/device/fsl/imx8m/evk_8mm/ . I want to create a new device such as /android_build/device/ABC-company/DEF-chipsets/xyz/
I saw that link but what I did was copy the device/fsl/imx8m/evk_8mm. to a newer directory /device/ABC/DEF/spf_mini. The compile finishes with all the changes made to point to the new directory and target spf_mini. But when I load the build, everything loads and runs but when its in android immediately after it loads init.rc, I get the following avc denied errors. So most likely something to do with the sepolicy files maybe ? ZNy help is appreciated or some breadcrumbs to track these errors..
[ 11.486513] type=1400 audit(19.932:223): avc: denied { map } for comm="HwBinder:3214_1" path="/dev/graphics/fb0" dev="tmpfs" ino=2922 scontext=u:r:hal_graphics_allocator_default:s0 tcontext=u:object_r:graphics_device:s0 tclass=chr_file permissive=1
I have checked the sepolicy files for my new target spf_mini but I have not made any changes since i figure it should be identical to the sepolicy files for evk_8mm target.
When I shell into the new target :
spf_mini:/ # ls -latr -Z /dev/dri/
total 0
crw-rw-rw- 1 root graphics u:object_r:gpu_device:s0 226, 128 1970-01-01 00:00 renderD128
crw-rw-rw- 1 root graphics u:object_r:graphics_device:s0 226, 1 1970-01-01 00:00 card1
crw-rw-rw- 1 root graphics u:object_r:graphics_device:s0 226, 0 1970-01-01 00:00 card0
drwxr-xr-x 2 root root u:object_r:gpu_device:s0 100 1970-01-01 00:00 .
drwxr-xr-x 19 root root u:object_r:device:s0 3180 1970-01-01 00:00 ..
spf_mini:/ # ls -latr -Z /dev/graphics/
total 0
crw-rw---- 1 system graphics u:object_r:graphics_device:s0 29, 0 1970-01-01 00:00 fb0
drwxr-xr-x 2 root root u:object_r:graphics_device:s0 60 1970-01-01 00:00 .
drwxr-xr-x 19 root root u:object_r:device:s0 3180 1970-01-01 00:00 ..
spf_mini:/ #
And doing an audit shows the following
sudo adb logcat -b all -d | audit2allow -p policy
#============= crash_dump ==============
allow crash_dump graphics_device:chr_file { getattr open };
allow crash_dump graphics_device:dir search;
allow crash_dump hwservicemanager_prop:file { getattr map open };
#============= healthd ==============
allow healthd sysfs:file { getattr open read };
I am currently using imx-android-10.0.0.1.0.0. But I see that 10.0.0.2.1.0 is out so if it helps I can get on the newer version for any solution that is available.
Can you please tell us which version of android 10 you are using Q10.0.0_1.0.0 or Q10.0.0_2.0.0?
Regards,
Radhika Somaiya.