poart android_N7.1.1_1.0.0 in SABRE Board

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

poart android_N7.1.1_1.0.0 in SABRE Board

Jump to solution
2,268 Views
wangxizhi
Contributor I

board: SABRE Board

CPU:  im6qp

android  code version : android_N7.1.1_1.0.0

We  downloaded the code and debugged it with android_N7.1.1_1.0.0_docs, but found that the boot log displays as following

//////////////////////////////////////start//////////////////////////////////////////////////

Freeing unused kernel memory: 440K (80b5c000 - 80bca000)
init: init first stage started!
init: SELinux: Could not mount selinuxfs: No such device
init: failed to load policy: No such device
init: init second stage started!
init: Failed to initialize property area
init: Running restorecon...
init: waitpid failed: No child processes
init: (Loading properties from /default.prop took 0.00s.)
init: (Parsing /init.environ.rc took 0.00s.)
init: (Parsing /init.usb.rc took 0.00s.)
init: (Parsing init.freescale.usb.rc took 0.00s.)
init: (Parsing init.freescale.i.MX6QP.rc took 0.00s.)
init: (Parsing /init.freescale.rc took 0.01s.)
init: (Parsing /init.usb.configfs.rc took 0.00s.)
init: (Parsing /init.zygote32.rc took 0.00s.)
init: (Parsing /init.rc took 0.04s.)
init: Starting service 'ueventd'...
init: Waiting for /dev/.coldboot_done...
init: cannot setexeccon('u:r:ueventd:s0'): No such file or directory
init: Timed out waiting for /dev/.coldboot_done
init: Waiting for /dev/.coldboot_done took 1.02s.
init: Service 'ueventd' (pid 181) exited with status 127
init: Service 'ueventd' (pid 181) killing any children in process group
init: waitpid failed: No child processes
init: /dev/hw_random not found
init: Unable to set adequate mmap entropy value!
init: w5 security_failure
init: Security failure; rebooting into recovery mode...
/////////////////////////////////////////////end/////////////////////////////////////////////////////////
I'm trying to do as  following
add  

CONFIG_SECURITY_SELINUX=y

CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY=y
CONFIG_AUDIT=y
CONFIG_NET=y
CONFIG_INET=y
CONFIG_LSM_MMAP_MIN_ADDR=32768
in kernel_imx/arch/arm/configs/imx_v7_android_defconfig
but the error as following
////////////////////////////////////////////start/////////////////////////////////////////////
Freeing unused kernel memory: 440K (80b8e000 - 80bfc000)
init: init first stage started!
SELinux: policydb version 30 does not match my version range 15-29
init: SELinux: Could not load policy: Invalid argument
init: failed to load policy: Invalid argument
init: SELinux: Could not set context for /init: Operation not supported on transport endpoint
init: restorecon failed: Operation not supported on transport endpoint
init: w5 security_failure
init: Security failure; rebooting into recovery mode...
init: init second stage started!
init: Failed to initialize property area
init: Running restorecon...
init: SELinux: Could not set context for /dev: Operation not supported on transport endpoint
init: SELinux: Could not set context for /dev/socket: Operation not supported on transport endpoint
init: SELinux: Could not set context for /dev/__properties__: Operation not supported on transport endpoint
init: SELinux: Could not set context for /property_contexts: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/stats: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/stats/total_trans: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/affected_cpus: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/related_cpus: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state0/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/cpuidle/state1/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power/control: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power/runtime_active_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power/autosuspend_delay_ms: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power/runtime_status: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/power/runtime_suspended_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/subsystem: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/online: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/of_node: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/uevent: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/core_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/thread_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/core_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/core_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/thread_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu0/topology/physical_package_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpufreq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state0/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/cpuidle/state1/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power/control: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power/runtime_active_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power/autosuspend_delay_ms: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power/runtime_status: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/power/runtime_suspended_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/subsystem: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/online: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/of_node: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/uevent: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/core_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/thread_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/core_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/core_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/thread_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu1/topology/physical_package_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpufreq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state0/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/desc: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/name: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/disable: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/usage: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/latency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/cpuidle/state1/residency: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power/control: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power/runtime_active_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power/autosuspend_delay_ms: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power/runtime_status: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/power/runtime_suspended_time: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/subsystem: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/online: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/of_node: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/uevent: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/core_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/thread_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/core_siblings: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/core_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/thread_siblings_list: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu2/topology/physical_package_id: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu3: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu3/cpufreq: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu3/cpuidle: Operation not supported on transport endpoint
init: SELinux: Could not set context for /sys/devices/system/cpu/cpu3/cpuidle/state0: Operation not supported on transport endpoint
init: SELinux: Could no
/////////////////////////////end/////////////////////////
 I've found that POLICYVERS is defined as "30" in Android code, but the kernel code is defined as "29"
I have the following questions
Both the development board and the code are provided by NXP. I think the development board should work properly ,Why does my code have so many problems? I think it must be something wrong with my operation,Can you give me some reference?
Labels (1)
0 Kudos
1 Solution
1,072 Views
mija
Contributor I

I had the same problem on Android Nougat 7.1.1:

init: SELinux: Could not mount selinuxfs: No such device

For me this solved the problem and Android booted fine:

Rebuild kernel with the following configuration

SECURITY_SELINUX_BOOTPARAM=yes
SECURITY_SELINUX_BOOTPARAM_VALUE=1
SECURITY_SELINUX_DISABLE=yes

In u-boot add to the kernel boot args androidboot.selinux=permissive

View solution in original post

0 Kudos
2 Replies
1,073 Views
mija
Contributor I

I had the same problem on Android Nougat 7.1.1:

init: SELinux: Could not mount selinuxfs: No such device

For me this solved the problem and Android booted fine:

Rebuild kernel with the following configuration

SECURITY_SELINUX_BOOTPARAM=yes
SECURITY_SELINUX_BOOTPARAM_VALUE=1
SECURITY_SELINUX_DISABLE=yes

In u-boot add to the kernel boot args androidboot.selinux=permissive

0 Kudos
1,073 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Thanks a lot for sharing.

0 Kudos