AnsweredAssumed Answered

imx6q android recovery fails

Question asked by Carlos Fernandez on Mar 1, 2019
Latest reply on Mar 19, 2019 by Carlos Fernandez

Hi all,


I'm working with the Android aosp for imx6q devices, version 7.1.2. We've managed to compile everything OK but when starting on recovery mode, the recovery.cpp application fails.  It shows this message:


Could not mount /cache (No such file or directory).


But partitions in normal operation android detects and mounts OK all the partitions, including /cache, and it does not seem to be any differences in the fstab files between recovery and boot partitions.


Also, if I take a look at the serial console, seems that the SELinux is not giving permissions to the recovery service. This message appears everytime Android tries to execute the recovery service: 


init: Starting service 'recovery'...
audit: type=1400 audit(243.990:6): avc: denied { read write } for pid=228 comm="recovery" name="card0" dev="tmpfs" ino=6663 scontext=u:r:recovery:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
init: Service 'recovery' (pid 228) killed by signal 11


I've tried to compare the recovery image with the default boot image and it only seems to differ in the init.rc file (and also, of course in /sbin/recovery). So, what's the problems? It's a SELinux permission problem or a parittion one?


Thanks in advance,