This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: USB1 does not support OTG mode in Android

Part Number: AM5728
Other Parts Discussed in Thread: DRA752, PMP, BEAGLEBOARD-X15

Hi,

The SDK version used is ti-processor-sdk-android-am57xx-evm-04.00.00.04.

About the device tree configuration is as follows:

extcon_usb1: extcon_usb1 {

compatible = "linux,extcon-usb-gpio";
 ti,enable-vbus-detection;
 ti,enable-id-detection;
 id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>;
 vbus-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
};

&omap_dwc3_1 {
 extcon = <&extcon_usb1>;
};

&usb1 {
 maximum-speed = "super-speed";
 dr_mode = "otg";
};


&usb2 {
 /*
  * Stand alone usage is peripheral only.
  * However, with some resistor modifications
  * this port can be used via expansion connectors
  * as "host" or "dual-role". If so, provide
  * the necessary dr_mode override in the expansion
  * board's DT.
  */
 dr_mode = "host";
};

The same configuration can be used normally in Yocto filesystem.

Is there any problem with this configuration? Device tree needs to be changed, what else need to be changed?

  • Hello Weijie,

    What do you mean by "USB does not support OTG mode"? What kind of errors are you getting?

    Regards,
    Nick
  • weijei.li,

    The default proc sdk android release doesnt enable this feature:

    But the following might work , for what you are looking for,
    For Android USB DRD try the SW configuration and test procedure mentioned at
    processors.wiki.ti.com/.../6AO.1.0_Application_Notes
  • Hi

    Phenomenon is connected to the U disk as a HOST mode or as a device mode connected to the computer without any reaction.

    And my board does not 48890000.DW3 this node。have 48890000.usb this node, and I modify 48890000.usb mode to host or device, found that the changes did not work.

    And I set USB1 or_mode = "host",It works in host mode,but I set USB1 or_mode ="otg" or "peripheral",it is not work(no reaction).


    Thanks

  • Hi

    start log as below:
    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.67-g6e995fe41a (weijie@AplusTC_ECG) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #1 SMP PREEMPT Fri Mar 2 09:40:51 CST 2018
    [ 0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [ 0.000000] Machine model: TI AM5728 ROM7510
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [ 0.000000] Reserved memory: initialized node ipu2_cma@95800000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [ 0.000000] Reserved memory: initialized node dsp1_cma@99000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [ 0.000000] Reserved memory: initialized node ipu1_cma@9d000000, compatible id shared-dma-pool
    [ 0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
    [ 0.000000] Reserved memory: initialized node dsp2_cma@9f000000, compatible id shared-dma-pool
    [ 0.000000] cma: Reserved 24 MiB at 0x00000000fd400000
    [ 0.000000] Forcing write-allocate cache policy for SMP
    [ 0.000000] Memory policy: Data cache writealloc
    [ 0.000000] OMAP4: Map 0x00000000fed00000 to fe600000 for dram barrier
    [ 0.000000] DRA752 ES2.0
    [ 0.000000] PERCPU: Embedded 13 pages/cpu @eed52000 s23808 r8192 d21248 u53248
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 517696
    [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rw init=/init rootfstype=ext4 rootwait drm.rnodes=1 androidboot.selinux=permissive snd.slots_reserved=1,1 snd-soc-core.pmdown_time=-1 uio_pdrv_genirq.of_id=generic-uio console=ttyS2,115200n8 androidboot.serialno=${serial#} console=ttyS2,115200 androidboot.console=ttyS2 androidboot.hardware=rom7510board root=PARTUUID=000592c9-02 rw rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 1849516K/2077696K available (12288K kernel code, 819K rwdata, 3708K rodata, 2048K init, 488K bss, 39764K reserved, 188416K cma-reserved, 1266688K highmem)
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc0e00000 (14304 kB)
    [ 0.000000] .init : 0xc1200000 - 0xc1400000 (2048 kB)
    [ 0.000000] .data : 0xc1400000 - 0xc14ccc84 ( 820 kB)
    [ 0.000000] .bss : 0xc14ccc84 - 0xc1546e68 ( 489 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] ti_dt_clocks_register: failed to lookup clock node gmac_gmii_ref_clk_div
    [ 0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [ 0.000000] Architected cp15 timer(s) running at 6.14MHz (virt).
    [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [ 0.000004] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [ 0.000015] Switching to timer-based delay loop, resolution 162ns
    [ 0.000345] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [ 0.000353] OMAP clocksource: 32k_counter at 32768 Hz
    [ 0.000746] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [ 0.000760] pid_max: default: 32768 minimum: 301
    [ 0.000835] Security Framework initialized
    [ 0.000846] SELinux: Initializing.
    [ 0.000923] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000933] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.001512] Initializing cgroup subsys io
    [ 0.001530] Initializing cgroup subsys memory
    [ 0.001555] Initializing cgroup subsys devices
    [ 0.001568] Initializing cgroup subsys freezer
    [ 0.001579] Initializing cgroup subsys perf_event
    [ 0.001591] Initializing cgroup subsys pids
    [ 0.001602] Initializing cgroup subsys debug
    [ 0.001641] CPU: Testing write buffer coherency: ok
    [ 0.001885] /cpus/cpu@0 missing clock-frequency property
    [ 0.001901] /cpus/cpu@1 missing clock-frequency property
    [ 0.001910] CPU0: update cpu_capacity 1024
    [ 0.001918] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [ 0.001962] Setting up static identity map for 0x80200000 - 0x80200060
    [ 0.080198] CPU1: update cpu_capacity 1024
    [ 0.080203] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [ 0.080279] Brought up 2 CPUs
    [ 0.080295] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [ 0.080301] CPU: All CPU(s) started in SVC mode.
    [ 0.080334] CPU1: update max cpu_capacity 1024
    [ 0.090208] CPU1: update max cpu_capacity 1024
    [ 0.109188] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [ 0.110157] omap_hwmod: l3_main_2 using broken dt data from ocp
    [ 0.220009] omap_hwmod: dcan2: _wait_target_disable failed
    [ 0.313518] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.313541] futex hash table entries: 512 (order: 3, 32768 bytes)
    [ 0.317065] pinctrl core: initialized pinctrl subsystem
    [ 0.318028] NET: Registered protocol family 16
    [ 0.319418] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.340281] cpuidle: using governor ladder
    [ 0.370310] cpuidle: using governor menu
    [ 0.379547] OMAP GPIO hardware version 0.1
    [ 0.386118] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
    [ 0.412561] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [ 0.412572] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [ 0.413028] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [ 0.413038] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [ 0.413681] OMAP DMA hardware revision 0.0
    [ 0.462146] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [ 0.463325] edma 43300000.edma: memcpy is disabled
    [ 0.468163] edma 43300000.edma: TI EDMA DMA engine driver
    [ 0.472133] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [ 0.472327] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [ 0.472494] omap-iommu 58882000.mmu: 58882000.mmu registered
    [ 0.472657] omap-iommu 55082000.mmu: 55082000.mmu registered
    [ 0.472938] omap-iommu 41501000.mmu: 41501000.mmu registered
    [ 0.473144] omap-iommu 41502000.mmu: 41502000.mmu registered
    [ 0.475133] SCSI subsystem initialized
    [ 0.475562] usbcore: registered new interface driver usbfs
    [ 0.475624] usbcore: registered new interface driver hub
    [ 0.475704] usbcore: registered new device driver usb
    [ 0.476800] palmas 0-0058: Irq flag is 0x00000008
    [ 0.493328] palmas 0-0058: Muxing GPIO ff, PWM 0, LED 0
    [ 0.572101] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [ 0.572789] omap_i2c 48060000.i2c: bus 2 rev0.12 at 100 kHz
    [ 0.573208] omap_i2c 4807a000.i2c: bus 3 rev0.12 at 100 kHz
    [ 0.573730] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 100 kHz
    [ 0.573917] media: Linux media interface: v0.10
    [ 0.573971] Linux video capture interface: v2.00
    [ 0.574014] pps_core: LinuxPPS API ver. 1 registered
    [ 0.574021] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.574047] PTP clock support registered
    [ 0.574097] EDAC MC: Ver: 3.0.0
    [ 0.581182] omap-mailbox 4883c000.mailbox: omap mailbox rev 0x400
    [ 0.581478] omap-mailbox 4883e000.mailbox: omap mailbox rev 0x400
    [ 0.581765] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [ 0.582057] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [ 0.582503] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.584155] clocksource: Switched to clocksource arch_sys_counter
    [ 0.632684] NET: Registered protocol family 2
    [ 0.633289] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.633353] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [ 0.633478] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.633529] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.633560] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [ 0.633717] NET: Registered protocol family 1
    [ 0.634016] RPC: Registered named UNIX socket transport module.
    [ 0.634026] RPC: Registered udp transport module.
    [ 0.634032] RPC: Registered tcp transport module.
    [ 0.634039] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.635611] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [ 0.638178] audit: initializing netlink subsys (disabled)
    [ 0.638214] audit: type=2000 audit(0.629:1): initialized
    [ 0.645757] VFS: Disk quotas dquot_6.6.0
    [ 0.645917] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.646969] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.647744] NFS: Registering the id_resolver key type
    [ 0.647772] Key type id_resolver registered
    [ 0.647779] Key type id_legacy registered
    [ 0.647843] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.648176] fuse init (API version 7.23)
    [ 0.657004] bounce: pool size: 64 pages
    [ 0.657167] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.657185] io scheduler noop registered
    [ 0.657200] io scheduler deadline registered
    [ 0.657236] io scheduler cfq registered (default)
    [ 0.662926] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [ 0.667233] PCI host bridge /ocp/axi@1/pcie@51800000 ranges:
    [ 0.667245] No bus range found for /ocp/axi@1/pcie@51800000, using [bus 00-ff]
    [ 0.667278] IO 0x30003000..0x30012fff -> 0x00000000
    [ 0.667299] MEM 0x30013000..0x3fffffff -> 0x30013000
    [ 0.699419] dra7-pcie 51800000.pcie: link is not up
    [ 0.699594] dra7-pcie 51800000.pcie: PCI host bridge to bus 0001:00
    [ 0.699608] pci_bus 0001:00: root bus resource [bus 00-ff]
    [ 0.699619] pci_bus 0001:00: root bus resource [io 0x0000-0xffff]
    [ 0.699629] pci_bus 0001:00: root bus resource [mem 0x30013000-0x3fffffff]
    [ 0.700041] PCI: bus0: Fast back to back transfers disabled
    [ 0.700162] PCI: bus1: Fast back to back transfers enabled
    [ 0.700248] pci 0001:00:00.0: BAR 0: assigned [mem 0x30100000-0x301fffff]
    [ 0.700264] pci 0001:00:00.0: BAR 1: assigned [mem 0x30020000-0x3002ffff]
    [ 0.700278] pci 0001:00:00.0: PCI bridge to [bus 01]
    [ 0.700507] pcieport 0001:00:00.0: Signaling PME through PCIe PME interrupt
    [ 0.701704] backlight supply power not found, using dummy regulator
    [ 0.706098] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.708504] console [ttyS2] disabled
    [ 0.708554] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 301, base_baud = 3000000) is a 8250
    [ 1.753869] console [ttyS2] enabled
    [ 1.757921] 4806e000.serial: ttyS3 at MMIO 0x4806e000 (irq = 302, base_baud = 3000000) is a 8250
    [ 1.767271] 48066000.serial: ttyS4 at MMIO 0x48066000 (irq = 303, base_baud = 3000000) is a 8250
    [ 1.777290] [drm] Initialized drm 1.1.0 20060810
    [ 1.783978] OMAP DSS rev 6.1
    [ 1.787770] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [ 1.796238] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [ 1.815993] brd: module loaded
    [ 1.823951] loop: module loaded
    [ 1.828707] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
    [ 1.835555] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [ 1.844125] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst
    [ 1.854377] scsi host0: ahci
    [ 1.857541] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 350
    [ 1.868342] spi spi1.1: not using DMA for McSPI (-19)
    [ 1.874634] m25p80 spi32766.0: found w25q32, expected w25q128
    [ 1.880412] m25p80 spi32766.0: w25q32 (4096 Kbytes)
    [ 1.887210] libphy: Fixed MDIO Bus: probed
    [ 1.891886] tun: Universal TUN/TAP device driver, 1.6
    [ 1.896982] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
    [ 1.903273] CAN device driver interface
    [ 1.908115] c_can_platform 48480000.can: c_can_platform device registered (regs=fa480000, irq=359)
    [ 1.917279] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
    [ 1.924375] e1000: Copyright (c) 1999-2006 Intel Corporation.
    [ 1.930213] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
    [ 1.936087] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [ 1.942098] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
    [ 1.949108] igb: Copyright (c) 2007-2014 Intel Corporation.
    [ 1.954782] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 4.2.1-k
    [ 1.962469] ixgbe: Copyright (c) 1999-2015 Intel Corporation.
    [ 1.968344] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver - version 2.12.1-k
    [ 1.977796] ixgbevf: Copyright (c) 2009 - 2012 Intel Corporation.
    [ 2.034276] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
    [ 2.040400] davinci_mdio 48485000.mdio: detected phy mask ffffffef
    [ 2.048840] libphy: 48485000.mdio: probed
    [ 2.052873] davinci_mdio 48485000.mdio: phy[4]: device 48485000.mdio:04, driver Atheros 8035 ethernet
    [ 2.062826] cpsw 48484000.ethernet: Detected MACID = 00:01:02:03:04:05
    [ 2.069518] cpsw 48484000.ethernet: cpts: overflow check period 800
    [ 2.076616] PPP generic driver version 2.4.2
    [ 2.081011] PPP BSD Compression module registered
    [ 2.085782] PPP Deflate Compression module registered
    [ 2.090868] PPP MPPE Compression module registered
    [ 2.095725] NET: Registered protocol family 24
    [ 2.102442] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 2.109047] ehci-pci: EHCI PCI platform driver
    [ 2.113562] ehci-platform: EHCI generic platform driver
    [ 2.119144] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [ 2.125389] ohci-pci: OHCI PCI platform driver
    [ 2.129904] ohci-platform: OHCI generic platform driver
    [ 2.135902] usbcore: registered new interface driver usb-storage
    [ 2.142219] mousedev: PS/2 mouse device common for all mice
    [ 2.148408] usbcore: registered new interface driver xpad
    [ 2.153874] usbcore: registered new interface driver usb_acecad
    [ 2.159880] usbcore: registered new interface driver aiptek
    [ 2.165550] usbcore: registered new interface driver gtco
    [ 2.171022] usbcore: registered new interface driver hanwang
    [ 2.176766] usbcore: registered new interface driver kbtab
    [ 2.183103] i2c /dev entries driver
    [ 2.204689] i2c i2c-4: Added multiplexed i2c bus 5
    [ 2.209909] i2c i2c-4: Added multiplexed i2c bus 6
    [ 2.214193] ata1: SATA link down (SStatus 0 SControl 300)
    [ 2.220432] i2c i2c-4: Added multiplexed i2c bus 7
    [ 2.225505] i2c i2c-4: Added multiplexed i2c bus 8
    [ 2.230319] pca954x 4-0070: registered 4 multiplexed busses for I2C switch pca9545
    [ 2.238823] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    [ 2.245928] vip 48970000.vip: loading firmware vpdma-1b8.bin
    [ 2.252753] vip 48990000.vip: loading firmware vpdma-1b8.bin
    [ 2.258817] gspca_main: v2.14.0 registered
    [ 2.264290] vpe 489d0000.vpe: Device registered as /dev/video0
    [ 2.270168] vip 48970000.vip: VPDMA firmware loaded
    [ 2.277772] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 2.294184] vip 48990000.vip: VPDMA firmware loaded
    [ 2.304184] cannot register miscdev on minor=130 (err=-16)
    [ 2.309747] adv-wdt-i2c: probe of 2-0029 failed with error -16
    [ 2.315844] device-mapper: uevent: version 1.0.3
    [ 2.320708] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
    [ 2.330295] omap_hsmmc 4809c000.mmc: Got CD GPIO
    [ 2.374775] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr25 mode
    [ 2.381160] omap_hsmmc 480b4000.mmc: no pinctrl state for sdr12 mode
    [ 2.387695] vdd_3v3: supplied by regen1
    [ 2.425420] ledtrig-cpu: registered to indicate activity on CPUs
    [ 2.431547] hidraw: raw HID events driver (C) Jiri Kosina
    [ 2.439733] usbcore: registered new interface driver usbhid
    [ 2.445344] usbhid: USB HID core driver
    [ 2.449433] ashmem: initialized
    [ 2.453868] omap-rproc 58820000.ipu: assigned reserved memory node ipu1_cma@9d000000
    [ 2.461709] remoteproc0: 58820000.ipu is available
    [ 2.466624] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 2.475637] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.486169] remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
    [ 2.494522] omap-rproc 55020000.ipu: assigned reserved memory node ipu2_cma@95800000
    [ 2.502342] remoteproc1: 55020000.ipu is available
    [ 2.507264] remoteproc0: Falling back to user helper
    [ 2.512433] remoteproc1: Note: remoteproc is still under development and considered experimental.
    [ 2.521452] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.532111] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
    [ 2.539991] remoteproc2: 40800000.dsp is available
    [ 2.544906] remoteproc2: Note: remoteproc is still under development and considered experimental.
    [ 2.554001] remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
    [ 2.562255] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.572667] remoteproc1: Falling back to user helper
    [ 2.578204] omap-rproc 41000000.dsp: assigned reserved memory node dsp2_cma@9f000000
    [ 2.586079] remoteproc3: 41000000.dsp is available
    [ 2.590976] remoteproc3: Note: remoteproc is still under development and considered experimental.
    [ 2.600072] remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
    [ 2.608317] remoteproc3: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 2.618729] remoteproc2: Falling back to user helper
    [ 2.625731] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: USB cable is attached
    [ 2.633601] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: USB-HOST cable is detached
    [ 2.642007] remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
    [ 2.650772] remoteproc3: Falling back to user helper
    [ 2.687149] usbcore: registered new interface driver snd-usb-audio
    [ 2.694427] aic_dvdd_fixed: supplied by vdd_3v3
    [ 2.701212] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [ 2.711109] u32 classifier
    [ 2.713829] input device check on
    [ 2.717521] Actions configured
    [ 2.721103] Netfilter messages via NETLINK v0.30.
    [ 2.725895] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [ 2.732498] ctnetlink v0.93: registering with nfnetlink.
    [ 2.738348] xt_time: kernel timezone is -0000
    [ 2.743042] ip_tables: (C) 2000-2006 Netfilter Core Team
    [ 2.748576] arp_tables: (C) 2002 David S. Miller
    [ 2.753282] Initializing XFRM netlink socket
    [ 2.758259] NET: Registered protocol family 10
    [ 2.773716] mip6: Mobile IPv6
    [ 2.777887] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [ 2.783488] sit: IPv6 over IPv4 tunneling driver
    [ 2.788728] NET: Registered protocol family 17
    [ 2.793216] NET: Registered protocol family 15
    [ 2.797708] can: controller area network core (rev 20120528 abi 9)
    [ 2.803968] NET: Registered protocol family 29
    [ 2.808471] can: raw protocol (rev 20120528)
    [ 2.812767] can: broadcast manager protocol (rev 20120528 t)
    [ 2.818484] can: netlink gateway (rev 20130117) max_hops=1
    [ 2.824382] Key type dns_resolver registered
    [ 2.828679] NET: Registered protocol family 41
    [ 2.833708] omap_voltage_late_init: Voltage driver support not added
    [ 2.840661] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.846887] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.853603] Adding alias for supply vdd,cpu0 -> vdd,4a003b20.oppdm
    [ 2.859837] Adding alias for supply vbb,cpu0 -> vbb,4a003b20.oppdm
    [ 2.868070] Power Management for TI OMAP4+ devices.
    [ 2.873157] Registering SWP/SWPB emulation handler
    [ 2.878292] registered taskstats version 1
    [ 2.884108] dmm 4e000000.dmm: initialized all PAT entries
    [ 2.907177] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [ 2.913818] [drm] No driver support for vblank timestamp query.
    [ 3.188120] [drm] Enabling DMM ywrap scrolling
    [ 3.192696] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [ 3.224662] [drm] Initialized omapdrm 1.0.0 20110917 on minor 0
    [ 3.402098] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 3.413382] mmc0: new high speed SDHC card at address 0007
    [ 3.429263] mmcblk0: mmc0:0007 SD04G 3.71 GiB
    [ 3.435211] mmcblk0: p1 p2
    [ 3.462561] dwc3 48890000.usb: otg: primary host xhci-hcd.1.auto registered
    [ 3.469584] dwc3 48890000.usb: otg: shared host xhci-hcd.1.auto registered
    [ 3.476517] dwc3 48890000.usb: otg: can't start till gadget registers
    [ 3.477471] mmc1: MAN_BKOPS_EN bit is not set
    [ 3.480382] mmc1: new DDR MMC card at address 0001
    [ 3.490775] mmcblk1: mmc1:0001 Q2J55L 7.09 GiB
    [ 3.500986] mmcblk1boot0: mmc1:0001 Q2J55L partition 1 16.0 MiB
    [ 3.517173] mmcblk1boot1: mmc1:0001 Q2J55L partition 2 16.0 MiB
    [ 3.524644] mmcblk1: p1 p2 p3 p4 < p5 p6 >
    [ 3.700567] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [ 3.706101] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 1
    [ 3.714030] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00210010
    [ 3.722801] xhci-hcd xhci-hcd.2.auto: irq 476, io mem 0x488d0000
    [ 3.728976] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [ 3.735801] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 3.743050] usb usb1: Product: xHCI Host Controller
    [ 3.747961] usb usb1: Manufacturer: Linux 4.4.67-g6e995fe41a xhci-hcd
    [ 3.754442] usb usb1: SerialNumber: xhci-hcd.2.auto
    [ 3.759638] hub 1-0:1.0: USB hub found
    [ 3.763422] hub 1-0:1.0: 1 port detected
    [ 3.767618] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
    [ 3.773130] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 2
    [ 3.781645] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [ 3.789874] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [ 3.796698] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [ 3.803947] usb usb2: Product: xHCI Host Controller
    [ 3.808849] usb usb2: Manufacturer: Linux 4.4.67-g6e995fe41a xhci-hcd
    [ 3.815323] usb usb2: SerialNumber: xhci-hcd.2.auto
    [ 3.820520] hub 2-0:1.0: USB hub found
    [ 3.824315] hub 2-0:1.0: 1 port detected
    [ 3.829765] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [ 3.839256] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [ 3.846443] hctosys: unable to open rtc device (rtc0)
    [ 3.861730] aic_dvdd_fixed: disabling
    [ 3.865921] ALSA device list:
    [ 3.868897] #0: BeagleBoard-X15
    [ 3.872220] #1: HDMI 58040000.encoder
    [ 4.084190] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [ 4.224328] usb 1-1: New USB device found, idVendor=04b4, idProduct=6560
    [ 4.231065] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [ 4.261824] hub 1-1:1.0: USB hub found
    [ 4.265654] hub 1-1:1.0: 4 ports detected
    [ 4.544181] usb 1-1.3: new low-speed USB device number 3 using xhci-hcd
    [ 4.648081] usb 1-1.3: New USB device found, idVendor=093a, idProduct=2510
    [ 4.655038] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 4.662381] usb 1-1.3: Product: USB Optical Mouse
    [ 4.667145] usb 1-1.3: Manufacturer: PixArt
    [ 4.671708] usb 1-1.3: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    [ 4.712318] input: PixArt USB Optical Mouse as /devices/platform/44000000.ocp/488c0000.omap_dwc3_2/488d0000.usb/xhci-hcd.2.auto/usb1/1-1/1-1.3/1-1.3:1.0/0003:093A:2510.0001/input/input1
    [ 4.729227] hid-generic 0003:093A:2510.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-xhci-hcd.2.auto-1.3/input0
    [ 5.128021] EXT4-fs (mmcblk0p2): recovery complete
    [ 5.138309] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 5.146598] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [ 5.154077] Freeing unused kernel memory: 2048K (c1200000 - c1400000)
    [ 5.197960] init: init started!
    [ 5.224114] SELinux: Android master kernel running Android M policy in compatibility mode.
    [ 5.302511] audit: type=1403 audit(5.289:2): policy loaded auid=4294967295 ses=4294967295
    [ 5.311248] init: (Initializing SELinux non-enforcing took 0.11s.)
    [ 5.317547] audit: type=1400 audit(5.309:3): avc: denied { read } for pid=1 comm="init" name="selinux_version" dev="mmcblk0p2" ino=35 scontext=u:r:kernel:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.336985] audit: type=1400 audit(5.329:4): avc: denied { open } for pid=1 comm="init" path="/selinux_version" dev="mmcblk0p2" ino=35 scontext=u:r:kernel:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.356509] audit: type=1400 audit(5.349:5): avc: denied { getattr } for pid=1 comm="init" path="/selinux_version" dev="mmcblk0p2" ino=35 scontext=u:r:kernel:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.384617] init: init second stage started!
    [ 5.416126] init: waitpid failed: No child processes
    [ 5.422500] init: (Loading properties from /default.prop took 0.00s.)
    [ 5.435069] init: (Parsing /init.environ.rc took 0.00s.)
    [ 5.442249] init: (Parsing /init.usb.rc took 0.00s.)
    [ 5.449691] init: (Parsing /init.rom7510board.usb.rc took 0.00s.)
    [ 5.455887] init: (Parsing /init.rom7510board.rc took 0.01s.)
    [ 5.463996] init: (Parsing /init.usb.configfs.rc took 0.00s.)
    [ 5.470886] init: (Parsing /init.zygote32.rc took 0.00s.)
    [ 5.477611] init: (Parsing /init.trace.rc took 0.00s.)
    [ 5.482790] init: (Parsing /init.rc took 0.05s.)
    [ 5.487613] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
    [ 5.498467] init: Starting service 'ueventd'...
    [ 5.503482] init: Waiting for /dev/.coldboot_done...
    [ 5.505391] ueventd: ueventd started!
    [ 5.505486] audit: type=1400 audit(5.489:6): avc: denied { read } for pid=136 comm="ueventd" name="ueventd.rc" dev="mmcblk0p2" ino=40 scontext=u:r:ueventd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.505519] audit: type=1400 audit(5.489:7): avc: denied { open } for pid=136 comm="ueventd" path="/ueventd.rc" dev="mmcblk0p2" ino=40 scontext=u:r:ueventd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.505549] audit: type=1400 audit(5.489:8): avc: denied { getattr } for pid=136 comm="ueventd" path="/ueventd.rc" dev="mmcblk0p2" ino=40 scontext=u:r:ueventd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 5.758523] audit: type=1400 audit(5.749:9): avc: denied { read } for pid=137 comm="ueventd" name="etc" dev="mmcblk0p2" ino=1049 scontext=u:r:ueventd:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 5.841225] ueventd: Coldboot took 0.26s.
    [ 5.849138] init: Waiting for /dev/.coldboot_done took 0.35s.
    [ 5.855480] init: /dev/hw_random not found
    [ 5.870155] audit: type=1400 audit(5.859:10): avc: denied { mounton } for pid=1 comm="init" path="/acct" dev="mmcblk0p2" ino=8193 scontext=u:r:init:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 5.893885] init: write_file: Unable to open '/proc/sys/kernel/hung_task_timeout_secs': No such file or directory
    [ 5.904454] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
    [ 5.915573] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
    [ 5.927217] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
    [ 5.945198] init: /dev/hw_random not found
    [ 5.975997] init: Warning! Service logd needs a SELinux domain defined; please fix!
    [ 5.983784] init: Starting service 'logd'...
    [ 5.989966] audit: type=1400 audit(5.979:11): avc: denied { execute } for pid=143 comm="init" name="logd" dev="mmcblk0p2" ino=253 scontext=u:r:init:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 6.009735] audit: type=1400 audit(5.999:12): avc: denied { execute_no_trans } for pid=143 comm="init" path="/system/bin/logd" dev="mmcblk0p2" ino=253 scontext=u:r:init:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 6.031252] remoteproc1: powering up 55020000.ipu
    [ 6.036132] remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3734820
    [ 6.043157] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [ 6.098281] remoteproc1: remote processor 55020000.ipu is now up
    [ 6.104728] virtio_rpmsg_bus virtio0: rpmsg host is online
    [ 6.107835] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
    [ 6.107997] rpmsg_rpc rpmsg0: probing service dce-callback with src 1024 dst 101
    [ 6.108559] rpmsg_rpc rpmsg0: published functions = 4
    [ 6.108896] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x66
    [ 6.109029] rpmsg_rpc rpmsg1: probing service rpmsg-dce with src 1025 dst 102
    [ 6.109585] rpmsg_rpc rpmsg1: published functions = 9
    [ 6.148804] remoteproc1: registered virtio0 (type 7)
    [ 6.443533] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 6.452366] audit: type=1400 audit(6.439:13): avc: denied { mounton } for pid=1 comm="init" path="/" dev="mmcblk0p2" ino=2 scontext=u:r:init:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 6.473955] audit: type=1400 audit(6.459:14): avc: denied { mounton } for pid=1 comm="init" path="/storage" dev="mmcblk0p2" ino=8197 scontext=u:r:init:s0 tcontext=u:object_r:storage_file:s0 tclass=dir permissive=1
    [ 6.508574] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [ 6.531196] init: (Loading properties from /system/build.prop took 0.01s.)
    [ 6.538249] init: (Loading properties from /vendor/build.prop took 0.00s.)
    [ 6.545267] init: (Loading properties from /factory/factory.prop took 0.00s.)
    [ 6.562467] init: /recovery not specified in fstab
    [ 6.577653] init: Warning! Service vold needs a SELinux domain defined; please fix!
    [ 6.585549] init: Starting service 'vold'...
    [ 6.592771] init: Not bootcharting.
    [ 6.685190] init: Warning! Service exec 0 (/system/bin/tzdatacheck) needs a SELinux domain defined; please fix!
    [ 6.695683] init: Starting service 'exec 0 (/system/bin/tzdatacheck)'...
    [ 6.728038] audit: type=1400 audit(6.719:15): avc: denied { write } for pid=143 comm="logd" name="kmsg" dev="tmpfs" ino=8613 scontext=u:r:init:s0 tcontext=u:object_r:kmsg_device:s0 tclass=chr_file permissive=1
    [ 6.747674] audit: type=1400 audit(6.739:16): avc: denied { sys_nice } for pid=143 comm="logd" capability=23 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
    [ 6.765732] init: Service 'exec 0 (/system/bin/tzdatacheck)' (pid 146) exited with status 0
    [ 6.766266] audit: type=1400 audit(6.759:17): avc: denied { create } for pid=143 comm="logd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_audit_socket permissive=1
    [ 6.766335] audit: type=1400 audit(6.759:18): avc: denied { write } for pid=143 comm="logd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_audit_socket permissive=1
    [ 6.766968] logd.auditd: start
    [ 6.766998] logd.klogd: 6762847091
    [ 6.818123] init: (Loading properties from /data/local.prop took 0.00s.)
    [ 6.830814] random: init: uninitialized urandom read (40 bytes read, 34 bits of entropy available)
    [ 6.878274] type=1400 audit(6.759:22): avc: denied { syslog_read } for pid=143 comm="logd" scontext=u:r:init:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1
    [ 6.907814] type=1400 audit(6.869:23): avc: denied { getopt } for pid=143 comm="logd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_audit_socket permissive=1
    [ 6.970000] init: Warning! Service logd-reinit needs a SELinux domain defined; please fix!
    [ 6.978509] init: Starting service 'logd-reinit'...
    [ 6.984593] init: write_file: Unable to open '/proc/sys/vm/min_free_order_shift': No such file or directory
    [ 6.994580] remoteproc3: failed to load dra7-dsp2-fw.xe66
    [ 7.001344] type=1400 audit(6.989:24): avc: denied { write } for pid=155 comm="logd" name="logd" dev="tmpfs" ino=8828 scontext=u:r:init:s0 tcontext=u:object_r:logd_socket:s0 tclass=sock_file permissive=1
    [ 7.020353] init: Starting service 'healthd'...
    [ 7.021345] logd.daemon: reinit
    [ 7.028262] remoteproc2: failed to load dra7-dsp1-fw.xe66
    [ 7.034633] init: Warning! Service lmkd needs a SELinux domain defined; please fix!
    [ 7.034872] type=1400 audit(7.029:25): avc: denied { entrypoint } for pid=156 comm="init" path="/sbin/healthd" dev="mmcblk0p2" ino=31 scontext=u:r:healthd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.061921] remoteproc0: failed to load dra7-ipu1-fw.xem4
    [ 7.067505] init: Starting service 'lmkd'...
    [ 7.072535] init: Warning! Service servicemanager needs a SELinux domain defined; please fix!
    [ 7.082556] init: Starting service 'servicemanager'...
    [ 7.088404] init: Warning! Service surfaceflinger needs a SELinux domain defined; please fix!
    [ 7.097096] init: Starting service 'surfaceflinger'...
    [ 7.100517] type=1400 audit(7.089:26): avc: denied { read } for pid=156 comm="healthd" path="/sbin/healthd" dev="mmcblk0p2" ino=31 scontext=u:r:healthd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.112004] binder: 156:156 transaction failed 29189, size 0-0
    [ 7.130666] init: Warning! Service pvrsrvinit needs a SELinux domain defined; please fix!
    [ 7.139038] init: Starting service 'pvrsrvinit'...
    [ 7.141134] type=1400 audit(7.129:27): avc: denied { write } for pid=145 comm="vold" name="property_service" dev="tmpfs" ino=6033 scontext=u:r:init:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
    [ 7.142414] type=1400 audit(7.129:28): avc: denied { set_context_mgr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 7.179380] init: cannot find '/system/bin/uim-sysfs', disabling 'uim'
    [ 7.186114] init: Service 'logd-reinit' (pid 155) exited with status 0
    [ 7.193853] init: Warning! Service exec 1 (/system/bin/init.rom7510board.cpuset.sh) needs a SELinux domain defined; please fix!
    [ 7.203650] type=1400 audit(7.179:29): avc: denied { create } for pid=145 comm="vold" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1
    [ 7.203755] type=1400 audit(7.179:30): avc: denied { setopt } for pid=145 comm="vold" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1
    [ 7.203839] type=1400 audit(7.179:31): avc: denied { bind } for pid=145 comm="vold" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1
    [ 7.203917] type=1400 audit(7.179:32): avc: denied { getopt } for pid=145 comm="vold" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1
    [ 7.212293] type=1400 audit(7.199:33): avc: denied { read } for pid=145 comm="vold" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_kobject_uevent_socket permissive=1
    [ 7.219362] type=1400 audit(7.199:34): avc: denied { create } for pid=145 comm="vold" name="disk:179,0" scontext=u:r:init:s0 tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=1
    [ 7.253274] type=1400 audit(7.239:35): avc: denied { module_load } for pid=160 comm="pvrsrvinit" path="/system/lib/modules/pvrsrvkm.ko" dev="mmcblk0p2" ino=1491 scontext=u:r:init:s0 tcontext=u:object_r:unlabeled:s0 tclass=system permissive=1
    [ 7.324605] init: Starting service 'exec 1 (/system/bin/init.rom7510board.cpuset.sh)'...
    [ 7.343565] PVR_K: UM DDK-(4081762) and KM DDK-(4081762) match. [ OK ]
    [ 7.351307] type=1400 audit(7.329:36): avc: denied { write } for pid=160 comm="pvrsrvinit" name="pvrsrvkm" dev="tmpfs" ino=9227 scontext=u:r:init:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1
    [ 7.380049] init: Service 'exec 1 (/system/bin/init.rom7510board.cpuset.sh)' (pid 167) exited with status 0
    [ 7.380203] type=1400 audit(7.329:37): avc: denied { ioctl } for pid=160 comm="pvrsrvinit" path="/dev/pvrsrvkm" dev="tmpfs" ino=9227 ioctlcmd=670d scontext=u:r:init:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1
    [ 7.410500] init: Service 'pvrsrvinit' (pid 160) exited with status 0
    [ 7.417579] init: insmod: open("/system/lib/modules/cmemk.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/galcore.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/pruss_intc.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/pruss.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/rpmsg_pru.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/pru_rproc.ko") failed: No such file or directoryinit: insmod: open("/system/lib/modules/prueth.ko") failed: No such file or directory
    [ 7.473291] file system registered
    [ 7.489386] init: Starting service 'console'...
    [ 7.494741] init: Warning! Service netd needs a SELinux domain defined; please fix!
    [ 7.502468] init: Starting service 'netd'...
    [ 7.507411] init: Warning! Service debuggerd needs a SELinux domain defined; please fix!
    [ 7.515686] init: Starting service 'debuggerd'...
    [ 7.520810] init: cannot find '/system/bin/debuggerd64', disabling 'debuggerd64'
    [ 7.525068] type=1400 audit(7.489:38): avc: denied { getattr } for pid=159 comm="surfaceflinger" path="/dev/dri/card0" dev="tmpfs" ino=8674 scontext=u:r:init:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=1
    [ 7.525155] type=1400 audit(7.499:39): avc: denied { entrypoint } for pid=178 comm="init" path="/system/bin/sh" dev="mmcblk0p2" ino=341 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.526152] type=1400 audit(7.499:40): avc: denied { read } for pid=178 comm="sh" path="/system/bin/linker" dev="mmcblk0p2" ino=247 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.526228] type=1400 audit(7.499:41): avc: denied { read } for pid=178 comm="sh" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 7.526292] type=1400 audit(7.499:42): avc: denied { open } for pid=178 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.526361] type=1400 audit(7.499:43): avc: denied { getattr } for pid=178 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.526422] type=1400 audit(7.499:44): avc: denied { execute } for pid=178 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.526483] type=1400 audit(7.519:45): avc: denied { read } for pid=183 comm="sh" name="getprop" dev="mmcblk0p2" ino=219 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    shell@rom7510:/ $ [ 7.526767] type=1400 audit(7.519:46): avc: denied { execute_no_trans } for pid=183 comm="sh" path="/system/bin/toybox" dev="mmcblk0p2" ino=373 scontext=u:r:shell:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.704289] init: cannot find '/system/bin/rild', disabling 'ril-daemon'
    [ 7.711303] init: Warning! Service drm needs a SELinux domain defined; please fix!
    [ 7.719257] init: Starting service 'drm'...
    [ 7.723997] init: Warning! Service media needs a SELinux domain defined; please fix!
    [ 7.732494] init: Starting service 'media'...
    [ 7.737695] init: Warning! Service installd needs a SELinux domain defined; please fix!
    [ 7.746048] init: Starting service 'installd'...
    [ 7.751111] init: cannot find '/system/bin/install-recovery.sh', disabling 'flash_recovery'
    [ 7.759844] type=1400 audit(7.739:47): avc: denied { create } for pid=186 comm="iptables" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=rawip_socket permissive=1
    [ 7.774941] init: Warning! Service keystore needs a SELinux domain defined; please fix!
    [ 7.783137] init: Starting service 'keystore'...
    [ 7.788201] init: cannot find '/system/bin/lad_dra7xx', disabling 'lad_dra7xx'
    [ 7.795793] init: Warning! Service zygote needs a SELinux domain defined; please fix!
    [ 7.803839] init: Starting service 'zygote'...
    [ 7.809366] init: Warning! Service gatekeeperd needs a SELinux domain defined; please fix!
    [ 7.817919] init: Starting service 'gatekeeperd'...
    [ 7.823448] init: Warning! Service perfprofd needs a SELinux domain defined; please fix!
    [ 7.831903] init: Starting service 'perfprofd'...
    [ 7.832651] type=1400 audit(7.739:48): avc: denied { getopt } for pid=186 comm="iptables" lport=255 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=rawip_socket permissive=1
    [ 7.857009] init: Warning! Service bootanim needs a SELinux domain defined; please fix!
    [ 7.865539] type=1400 audit(7.849:49): avc: denied { call } for pid=159 comm="surfaceflinger" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 7.880529] init: Starting service 'bootanim'...
    [ 7.885800] init: Starting service 'adbd'...
    [ 7.890830] type=1400 audit(7.849:50): avc: denied { transfer } for pid=159 comm="surfaceflinger" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 7.906285] type=1400 audit(7.879:51): avc: denied { entrypoint } for pid=199 comm="init" path="/sbin/adbd" dev="mmcblk0p2" ino=30 scontext=u:r:adbd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 7.925523] type=1400 audit(7.899:52): avc: denied { setopt } for pid=201 comm="iptables" lport=255 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=rawip_socket permissive=1
    [ 8.014100] type=1400 audit(7.999:53): avc: denied { read } for pid=199 comm="adbd" path="/sbin/adbd" dev="mmcblk0p2" ino=30 scontext=u:r:adbd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 8.036961] read descriptors
    [ 8.039863] read strings
    [ 8.048034] init: write_file: Unable to write to '/config/usb_gadget/g1/UDC': No such device
    [ 8.075166] type=1400 audit(8.069:54): avc: denied { read } for pid=191 comm="keystore" name=".metadata" dev="mmcblk0p2" ino=1551 scontext=u:r:init:s0 tcontext=u:object_r:keystore_data_file:s0 tclass=file permissive=1
    [ 8.095573] type=1400 audit(8.069:55): avc: denied { open } for pid=191 comm="keystore" path="/data/misc/keystore/.metadata" dev="mmcblk0p2" ino=1551 scontext=u:r:init:s0 tcontext=u:object_r:keystore_data_file:s0 tclass=file permissive=1
    [ 8.117801] healthd: No charger supplies found
    [ 8.123155] healthd: No battery devices found
    [ 8.151381] type=1400 audit(8.109:56): avc: denied { call } for pid=156 comm="healthd" scontext=u:r:healthd:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 8.178455] type=1400 audit(8.109:57): avc: denied { transfer } for pid=156 comm="healthd" scontext=u:r:healthd:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 8.193692] type=1400 audit(8.109:58): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:healthd:s0 tclass=process permissive=1
    [ 8.231367] random: perfprofd: uninitialized urandom read (40 bytes read, 48 bits of entropy available)
    [ 9.177419] type=1400 audit(9.169:59): avc: denied { write } for pid=188 comm="mediaserver" name="video0" dev="tmpfs" ino=8726 scontext=u:r:init:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=1
    [ 9.214135] type=1400 audit(9.169:60): avc: denied { ioctl } for pid=188 comm="mediaserver" path="/dev/video0" dev="tmpfs" ino=8726 ioctlcmd=5600 scontext=u:r:init:s0 tcontext=u:object_r:video_device:s0 tclass=chr_file permissive=1
    [ 10.099654] type=1400 audit(10.089:61): avc: denied { execute } for pid=192 comm="zygote" path="/data/dalvik-cache/arm/system@framework@boot.oat" dev="mmcblk0p2" ino=1554 scontext=u:r:init:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file permissive=1
    [ 10.272804] type=1400 audit(10.259:62): avc: denied { create } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.290695] type=1400 audit(10.279:63): avc: denied { setopt } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.308959] type=1400 audit(10.279:64): avc: denied { bind } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.325342] type=1400 audit(10.279:65): avc: denied { getattr } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.341288] type=1400 audit(10.279:66): avc: denied { write } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.357061] type=1400 audit(10.279:67): avc: denied { nlmsg_read } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.373248] type=1400 audit(10.279:68): avc: denied { read } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.388909] type=1400 audit(10.279:69): avc: denied { nlmsg_write } for pid=450 comm="ip" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.405829] type=1400 audit(10.279:70): avc: denied { connect } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.422129] type=1400 audit(10.279:71): avc: denied { module_request } for pid=181 comm="netd" kmod="netdev-dummy0" scontext=u:r:init:s0 tcontext=u:r:kernel:s0 tclass=system permissive=1
    [ 10.439627] type=1400 audit(10.299:72): avc: denied { getopt } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_route_socket permissive=1
    [ 10.455478] type=1400 audit(10.299:73): avc: denied { create } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_nflog_socket permissive=1
    [ 10.471347] type=1400 audit(10.299:74): avc: denied { setopt } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_nflog_socket permissive=1
    [ 10.487179] type=1400 audit(10.299:75): avc: denied { bind } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_nflog_socket permissive=1
    [ 10.503093] type=1400 audit(10.299:76): avc: denied { getopt } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_nflog_socket permissive=1
    [ 10.519117] type=1400 audit(10.299:77): avc: denied { create } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 10.535750] type=1400 audit(10.299:78): avc: denied { setopt } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 10.552055] type=1400 audit(10.299:79): avc: denied { bind } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 10.568218] type=1400 audit(10.299:80): avc: denied { write } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 10.584283] type=1400 audit(10.299:81): avc: denied { read } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 10.600468] type=1400 audit(10.299:82): avc: denied { getopt } for pid=181 comm="netd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_netfilter_socket permissive=1
    [ 14.208699] type=1400 audit(14.199:83): avc: denied { write } for pid=188 comm="mediaserver" name="controlC0" dev="tmpfs" ino=8681 scontext=u:r:init:s0 tcontext=u:object_r:audio_device:s0 tclass=chr_file permissive=1
    [ 14.229167] type=1400 audit(14.199:84): avc: denied { ioctl } for pid=188 comm="mediaserver" path="/dev/snd/controlC0" dev="tmpfs" ino=8681 ioctlcmd=5510 scontext=u:r:init:s0 tcontext=u:object_r:audio_device:s0 tclass=chr_file permissive=1
    [ 14.376400] random: nonblocking pool is initialized
    [ 14.668476] capability: warning: `main' uses 32-bit capabilities (legacy support in use)
    [ 15.647979] type=1400 audit(15.639:85): avc: denied { setpcap } for pid=478 comm="main" capability=8 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
    [ 15.708636] type=1400 audit(15.699:86): avc: denied { check_context } for pid=478 comm="main" scontext=u:r:init:s0 tcontext=u:object_r:kernel:s0 tclass=security permissive=1
    [ 15.726813] type=1400 audit(15.699:87): avc: denied { setcurrent } for pid=478 comm="main" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=process permissive=1
    [ 15.747815] type=1400 audit(15.699:88): avc: denied { dyntransition } for pid=478 comm="main" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=process permissive=1
    [ 15.764430] type=1400 audit(15.699:89): avc: denied { read } for pid=478 comm="main" path=2F6465762F6173686D656D2F64616C76696B2D6D61696E207370616365202864656C6574656429 dev="tmpfs" ino=10750 scontext=u:r:system_server:s0 tcontext=u:object_r:init_tmpfs:s0 tclass=file permissive=1
    [ 15.790511] type=1400 audit(15.729:90): avc: denied { getopt } for pid=478 comm="main" path="/dev/socket/zygote" scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
    [ 15.809058] type=1400 audit(15.739:91): avc: denied { write } for pid=478 comm="system_server" path="socket:[9768]" dev="sockfs" ino=9768 scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
    [ 15.873359] type=1400 audit(15.859:92): avc: denied { read } for pid=478 comm="system_server" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:system_server:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 16.038970] type=1400 audit(16.029:93): avc: denied { call } for pid=478 comm="system_server" scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 16.095949] type=1400 audit(16.089:94): avc: denied { execute } for pid=478 comm="system_server" path="/system/lib/libandroid_servers.so" dev="mmcblk0p2" ino=839 scontext=u:r:system_server:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 16.640611] type=1400 audit(16.629:95): avc: denied { transfer } for pid=478 comm="system_server" scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 16.657363] type=1400 audit(16.629:96): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=process permissive=1
    [ 16.723808] type=1400 audit(16.709:97): avc: denied { transfer } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=binder permissive=1
    [ 16.766872] type=1400 audit(16.759:98): avc: denied { read write } for pid=159 comm="Binder_1" path="socket:[11320]" dev="sockfs" ino=11320 scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
    [ 16.887562] type=1400 audit(16.879:99): avc: denied { call } for pid=159 comm=504F5349582074696D65722031 scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=binder permissive=1
    [ 17.693533] type=1400 audit(17.679:100): avc: denied { getattr } for pid=189 comm="installd" path="/data/data/com.android.defcontainer" dev="mmcblk0p2" ino=1604 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=1
    [ 17.717114] type=1400 audit(17.679:101): avc: denied { setattr } for pid=189 comm="installd" name="com.android.defcontainer" dev="mmcblk0p2" ino=1604 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=1
    [ 17.740283] type=1400 audit(17.709:102): avc: denied { getattr } for pid=189 comm="installd" path="/data/data/com.android.defcontainer/lib" dev="mmcblk0p2" ino=1564 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0 tclass=lnk_file permissive=1
    [ 17.763211] type=1400 audit(17.709:103): avc: denied { write } for pid=189 comm="installd" name="com.android.defcontainer" dev="mmcblk0p2" ino=1604 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=1
    [ 17.787175] type=1400 audit(17.709:104): avc: denied { remove_name } for pid=189 comm="installd" name="lib" dev="mmcblk0p2" ino=1564 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=1
    [ 17.807819] type=1400 audit(17.709:105): avc: denied { unlink } for pid=189 comm="installd" name="lib" dev="mmcblk0p2" ino=1564 scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0 tclass=lnk_file permissive=1
    [ 17.828994] type=1400 audit(17.709:106): avc: denied { add_name } for pid=189 comm="installd" name="lib" scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=1
    [ 17.847194] type=1400 audit(17.709:107): avc: denied { create } for pid=189 comm="installd" name="lib" scontext=u:r:init:s0 tcontext=u:object_r:app_data_file:s0 tclass=lnk_file permissive=1
    [ 20.762404] type=1400 audit(20.749:108): avc: denied { getattr } for pid=478 comm="system_server" path="/vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:system_server:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 22.097135] type=1400 audit(22.089:109): avc: denied { write } for pid=157 comm="lmkd" name="oom_score_adj" dev="proc" ino=11345 scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=file permissive=1
    [ 22.168751] type=1400 audit(22.159:110): avc: denied { open } for pid=156 comm="healthd" path="/system/usr/share/zoneinfo/tzdata" dev="mmcblk0p2" ino=1423 scontext=u:r:healthd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 22.169411] healthd: battery l=100 v=0 t=42.4 h=2 st=2 chg=a 1970-01-01 00:00:22.164320296 UTC
    [ 22.945086] lowmemorykiller: lowmem_shrink: convert oom_adj to oom_score_adj:
    [ 22.952309] lowmemorykiller: oom_adj 0 => oom_score_adj 0
    [ 22.957808] lowmemorykiller: oom_adj 1 => oom_score_adj 58
    [ 22.963314] lowmemorykiller: oom_adj 2 => oom_score_adj 117
    [ 22.968923] lowmemorykiller: oom_adj 3 => oom_score_adj 176
    [ 22.974534] lowmemorykiller: oom_adj 9 => oom_score_adj 529
    [ 22.980139] lowmemorykiller: oom_adj 15 => oom_score_adj 1000
    [ 24.476003] net eth0: initializing cpsw version 1.15 (0)
    [ 24.481349] net eth0: initialized cpsw ale version 1.4
    [ 24.487914] net eth0: ALE Table size 1024
    [ 24.493881] libphy: PHY 48485000.mdio:01 not found
    [ 24.498759] net eth0: phy "48485000.mdio:01" not found on slave 0, err -19
    [ 24.588176] net eth0: phy found : id is : 0x4dd072
    [ 24.600514] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 24.765627] type=1400 audit(24.749:111): avc: denied { unlink } for pid=145 comm="vold" name="public:179,1" dev="tmpfs" ino=9217 scontext=u:r:init:s0 tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=1
    [ 24.833106] type=1400 audit(24.799:112): avc: denied { getpgid } for pid=192 comm="main" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=process permissive=1
    [ 24.927339] type=1400 audit(24.819:113): avc: denied { write } for pid=545 comm="sdcard" name="fuse" dev="tmpfs" ino=8625 scontext=u:r:init:s0 tcontext=u:object_r:fuse_device:s0 tclass=chr_file permissive=1
    [ 24.997977] type=1400 audit(24.819:114): avc: denied { dyntransition } for pid=546 comm="main" scontext=u:r:init:s0 tcontext=u:r:shared_relro:s0 tclass=process permissive=1
    [ 25.015065] type=1400 audit(24.849:115): avc: denied { write } for pid=546 comm="der-armeabi-v7a" path="socket:[9768]" dev="sockfs" ino=9768 scontext=u:r:shared_relro:s0 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
    [ 25.038682] audit_log_lost: 6 callbacks suppressed
    [ 25.043568] audit: audit_lost=3 audit_rate_limit=20 audit_backlog_limit=64
    [ 25.051471] type=1400 audit(24.859:116): avc: denied { read } for pid=546 comm="der-armeabi-v7a" name="webview.apk" dev="mmcblk0p2" ino=149 scontext=u:r:shared_relro:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.051892] audit: rate limit exceeded
    [ 25.078651] type=1400 audit(24.859:117): avc: denied { open } for pid=546 comm="der-armeabi-v7a" path="/system/app/webview/webview.apk" dev="mmcblk0p2" ino=149 scontext=u:r:shared_relro:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.111667] type=1400 audit(24.859:118): avc: denied { getattr } for pid=546 comm="der-armeabi-v7a" path="/system/app/webview/webview.apk" dev="mmcblk0p2" ino=149 scontext=u:r:shared_relro:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.145942] type=1400 audit(24.859:119): avc: denied { transition } for pid=572 comm="vold" path="/system/bin/sh" dev="mmcblk0p2" ino=341 scontext=u:r:init:s0 tcontext=u:r:blkid_untrusted:s0 tclass=process permissive=1
    [ 25.166828] type=1400 audit(24.859:120): avc: denied { entrypoint } for pid=572 comm="vold" path="/system/bin/sh" dev="mmcblk0p2" ino=341 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.192370] type=1400 audit(24.859:121): avc: denied { execute } for pid=546 comm="der-armeabi-v7a" path="/system/app/webview/webview.apk" dev="mmcblk0p2" ino=149 scontext=u:r:shared_relro:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.257366] type=1400 audit(24.859:122): avc: denied { write } for pid=572 comm="sh" path="pipe:[12289]" dev="pipefs" ino=12289 scontext=u:r:blkid_untrusted:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
    [ 25.279105] type=1400 audit(24.859:123): avc: denied { read } for pid=572 comm="sh" path="pipe:[6127]" dev="pipefs" ino=6127 scontext=u:r:blkid_untrusted:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
    [ 25.308120] type=1400 audit(24.859:124): avc: denied { rlimitinh } for pid=572 comm="sh" scontext=u:r:init:s0 tcontext=u:r:blkid_untrusted:s0 tclass=process permissive=1
    [ 25.325829] type=1400 audit(24.859:125): avc: denied { siginh } for pid=572 comm="sh" scontext=u:r:init:s0 tcontext=u:r:blkid_untrusted:s0 tclass=process permissive=1
    [ 25.343121] type=1400 audit(24.859:126): avc: denied { noatsecure } for pid=572 comm="sh" scontext=u:r:init:s0 tcontext=u:r:blkid_untrusted:s0 tclass=process permissive=1
    [ 25.359102] type=1400 audit(24.859:127): avc: denied { read } for pid=572 comm="sh" path="/system/bin/linker" dev="mmcblk0p2" ino=247 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.380836] type=1400 audit(24.869:128): avc: denied { read } for pid=572 comm="sh" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 25.401305] type=1400 audit(24.869:129): avc: denied { open } for pid=572 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.423875] type=1400 audit(24.869:130): avc: denied { getattr } for pid=572 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.445083] type=1400 audit(24.869:131): avc: denied { execute } for pid=572 comm="sh" path="/system/lib/libc++.so" dev="mmcblk0p2" ino=863 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.467446] type=1400 audit(24.879:132): avc: denied { execute_no_trans } for pid=572 comm="sh" path="/system/bin/blkid" dev="mmcblk0p2" ino=161 scontext=u:r:blkid_untrusted:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 25.489324] type=1400 audit(24.889:133): avc: denied { dyntransition } for pid=551 comm="main" scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=process permissive=1
    [ 25.508124] type=1400 audit(24.939:134): avc: denied { dyntransition } for pid=574 comm="main" scontext=u:r:init:s0 tcontext=u:r:platform_app:s0:c512,c768 tclass=process permissive=1
    [ 25.525505] type=1400 audit(24.989:135): avc: denied { call } for pid=551 comm="re-initialized>" scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 25.543892] type=1400 audit(24.989:136): avc: denied { call } for pid=574 comm="re-initialized>" scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 25.561377] type=1400 audit(25.029:137): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=process permissive=1
    [ 25.580326] type=1400 audit(25.029:138): avc: denied { transfer } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=binder permissive=1
    [ 25.597989] type=1400 audit(25.029:139): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:platform_app:s0:c512,c768 tclass=process permissive=1
    [ 25.880363] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 25.895854] type=1400 audit(25.889:179): avc: denied { read } for pid=566 comm="ndroid.systemui" path=2F6465762F6173686D656D2F64616C76696B2D6E6F6E206D6F76696E67207370616365202864656C6574656429 dev="tmpfs" ino=10806 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:init_tmpfs:s0 tclass=file permissive=1
    [ 26.049344] type=1400 audit(26.029:180): avc: denied { execute } for pid=566 comm="ndroid.systemui" path="/system/lib/libsoundpool.so" dev="mmcblk0p2" ino=986 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 26.414091] type=1400 audit(26.399:181): avc: denied { setsched } for pid=478 comm="Binder_2" scontext=u:r:system_server:s0 tcontext=u:r:init:s0 tclass=process permissive=1
    [ 26.438426] type=1400 audit(26.429:182): avc: denied { read } for pid=478 comm="AudioService" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:system_server:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 26.529827] type=1400 audit(26.489:183): avc: denied { setattr } for pid=145 comm="vold" name="0" dev="fuse" ino=1 scontext=u:r:init:s0 tcontext=u:object_r:fuse:s0 tclass=dir permissive=1
    [ 26.561110] type=1400 audit(26.549:184): avc: denied { read } for pid=478 comm="HeapTaskDaemon" path=2F6465762F6173686D656D2F64616C76696B2D6D61696E207370616365202864656C6574656429 dev="tmpfs" ino=10750 scontext=u:r:system_server:s0 tcontext=u:object_r:init_tmpfs:s0 tclass=file permissive=1
    [ 26.597205] type=1400 audit(26.589:185): avc: denied { check_context } for pid=708 comm="main" scontext=u:r:init:s0 tcontext=u:object_r:kernel:s0 tclass=security permissive=1
    [ 26.636626] type=1400 audit(26.629:186): avc: denied { dyntransition } for pid=717 comm="main" scontext=u:r:init:s0 tcontext=u:r:radio:s0 tclass=process permissive=1
    [ 26.678346] type=1400 audit(26.669:187): avc: denied { call } for pid=717 comm="re-initialized>" scontext=u:r:radio:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 26.738763] type=1400 audit(26.689:188): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:radio:s0 tclass=process permissive=1
    [ 26.772270] type=1400 audit(26.689:189): avc: denied { transfer } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:radio:s0 tclass=binder permissive=1
    [ 26.789545] type=1400 audit(26.699:190): avc: denied { write } for pid=157 comm="lmkd" name="oom_score_adj" dev="proc" ino=11750 scontext=u:r:init:s0 tcontext=u:r:radio:s0 tclass=file permissive=1
    [ 26.807692] type=1400 audit(26.709:191): avc: denied { getattr } for pid=717 comm="m.android.phone" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 26.831338] type=1400 audit(26.709:192): avc: denied { read } for pid=717 comm="m.android.phone" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 26.854557] type=1400 audit(26.709:193): avc: denied { open } for pid=717 comm="m.android.phone" path="/system/priv-app/TeleService/TeleService.apk" dev="mmcblk0p2" ino=1331 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 26.879374] type=1400 audit(26.719:194): avc: denied { read } for pid=708 comm="putmethod.latin" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 26.919265] type=1400 audit(26.759:195): avc: denied { getattr } for pid=717 comm="m.android.phone" path="/system" dev="mmcblk0p2" ino=39 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 26.939412] type=1400 audit(26.759:196): avc: denied { read } for pid=717 comm="m.android.phone" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 26.963932] type=1400 audit(26.759:197): avc: denied { write } for pid=717 comm="m.android.phone" path="socket:[9768]" dev="sockfs" ino=9768 scontext=u:r:radio:s0 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
    [ 26.989777] type=1400 audit(26.869:198): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=process permissive=1
    [ 27.007486] type=1400 audit(26.899:199): avc: denied { getattr } for pid=551 comm="d.process.media" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 27.045051] type=1400 audit(26.909:200): avc: denied { read } for pid=725 comm="droid.launcher3" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 27.097037] type=1400 audit(26.909:201): avc: denied { open } for pid=725 comm="droid.launcher3" path="/system/priv-app/Launcher3/Launcher3.apk" dev="mmcblk0p2" ino=1303 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 27.231353] type=1400 audit(27.219:202): avc: denied { write } for pid=188 comm="mediaserver" name="rpmsg-dce" dev="tmpfs" ino=6042 scontext=u:r:init:s0 tcontext=u:object_r:rpmsg_device:s0 tclass=chr_file permissive=1
    [ 27.251249] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    [ 27.252249] type=1400 audit(27.239:203): avc: denied { ioctl } for pid=188 comm="mediaserver" path="/dev/rpmsg-dce" dev="tmpfs" ino=6042 ioctlcmd=7201 scontext=u:r:init:s0 tcontext=u:object_r:rpmsg_device:s0 tclass=chr_file permissive=1
    [ 27.282721] type=1400 audit(27.269:204): avc: denied { getattr } for pid=551 comm="MediaScannerSer" path="/sdcard" dev="mmcblk0p2" ino=1494 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 27.362253] type=1400 audit(27.349:205): avc: denied { read } for pid=708 comm="putmethod.latin" name="libjni_latinime.so" dev="mmcblk0p2" ino=97 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 27.418480] type=1400 audit(27.409:206): avc: denied { execute } for pid=708 comm="putmethod.latin" path="/system/lib/libjni_latinime.so" dev="mmcblk0p2" ino=922 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 27.578785] type=1400 audit(27.569:207): avc: denied { read } for pid=717 comm="m.android.phone" path=2F6465762F6173686D656D2F64616C76696B2D6E6F6E206D6F76696E67207370616365202864656C6574656429 dev="tmpfs" ino=10806 scontext=u:r:radio:s0 tcontext=u:object_r:init_tmpfs:s0 tclass=file permissive=1
    [ 27.780317] type=1400 audit(27.769:208): avc: denied { transfer } for pid=566 comm=4E444B204D65646961436F6465635F scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 27.824604] type=1400 audit(27.769:209): avc: denied { call } for pid=188 comm="AudioOut_2" scontext=u:r:init:s0 tcontext=u:r:platform_app:s0:c512,c768 tclass=binder permissive=1
    [ 27.981530] type=1400 audit(27.959:210): avc: denied { getpgid } for pid=192 comm="main" scontext=u:r:init:s0 tcontext=u:r:system_server:s0 tclass=process permissive=1
    [ 28.531939] type=1400 audit(28.519:211): avc: denied { getattr } for pid=767 comm="d.process.acore" path="/system" dev="mmcblk0p2" ino=39 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 28.663990] type=1400 audit(28.609:212): avc: denied { transfer } for pid=717 comm="m.android.phone" scontext=u:r:radio:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 29.039908] type=1400 audit(29.019:213): avc: denied { read write } for pid=159 comm="Binder_1" path="socket:[11935]" dev="sockfs" ino=11935 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
    [ 29.235781] type=1400 audit(29.229:214): avc: denied { setcurrent } for pid=928 comm="main" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=process permissive=1
    [ 29.388588] type=1400 audit(29.379:215): avc: denied { transfer } for pid=725 comm="RenderThread" scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 29.453323] type=1400 audit(29.439:216): avc: denied { dyntransition } for pid=961 comm="main" scontext=u:r:init:s0 tcontext=u:r:system_app:s0 tclass=process permissive=1
    [ 29.517057] type=1400 audit(29.509:217): avc: denied { call } for pid=961 comm="re-initialized>" scontext=u:r:system_app:s0 tcontext=u:r:init:s0 tclass=binder permissive=1
    [ 29.535290] type=1400 audit(29.509:218): avc: denied { getattr } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:system_app:s0 tclass=process permissive=1
    [ 29.551430] type=1400 audit(29.509:219): avc: denied { transfer } for pid=158 comm="servicemanager" scontext=u:r:init:s0 tcontext=u:r:system_app:s0 tclass=binder permissive=1
    [ 29.568299] type=1400 audit(29.509:220): avc: denied { write } for pid=157 comm="lmkd" name="oom_score_adj" dev="proc" ino=12036 scontext=u:r:init:s0 tcontext=u:r:system_app:s0 tclass=file permissive=1
    [ 29.586604] type=1400 audit(29.509:221): avc: denied { call } for pid=188 comm="AudioOut_8" scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=binder permissive=1
    [ 29.626999] type=1400 audit(29.609:222): avc: denied { getattr } for pid=961 comm="ndroid.settings" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:system_app:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 29.667180] type=1400 audit(29.609:223): avc: denied { read } for pid=961 comm="ndroid.settings" path="/system/framework/framework-res.apk" dev="mmcblk0p2" ino=772 scontext=u:r:system_app:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 29.690005] type=1400 audit(29.609:224): avc: denied { open } for pid=961 comm="ndroid.settings" path="/system/priv-app/Settings/Settings.apk" dev="mmcblk0p2" ino=1319 scontext=u:r:system_app:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1
    [ 29.882384] type=1400 audit(29.749:225): avc: denied { read write } for pid=159 comm="Binder_3" path="socket:[12058]" dev="sockfs" ino=12058 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
    [ 30.020273] type=1400 audit(29.829:226): avc: denied { getattr } for pid=961 comm="ndroid.settings" path="/system" dev="mmcblk0p2" ino=39 scontext=u:r:system_app:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 30.046818] type=1400 audit(29.869:227): avc: denied { read } for pid=143 comm="logd.auditd" scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=netlink_audit_socket permissive=1
    [ 30.063868] type=1400 audit(29.909:228): avc: denied { read } for pid=961 comm="ndroid.settings" name="vendor" dev="mmcblk0p2" ino=1493 scontext=u:r:system_app:s0 tcontext=u:object_r:unlabeled:s0 tclass=lnk_file permissive=1
    [ 30.086791] type=1400 audit(29.919:229): avc: denied { use } for pid=725 comm="RenderThread" path="anon_inode:sync_fence" dev="anon_inodefs" ino=5872 scontext=u:r:init:s0 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=fd permissive=1
    [ 30.110669] type=1400 audit(29.949:230): avc: denied { write } for pid=961 comm="ndroid.settings" path="socket:[9768]" dev="sockfs" ino=9768 scontext=u:r:system_app:s0 tcontext=u:r:init:s0 tclass=unix_dgram_socket permissive=1
    [ 30.219981] type=1400 audit(30.209:231): avc: denied { read } for pid=566 comm="ndroid.systemui" scontext=u:r:platform_app:s0:c512,c768 tcontext=u:r:init:s0 tclass=unix_stream_socket permissive=1
    [ 30.942421] type=1400 audit(30.929:232): avc: denied { use } for pid=566 comm="ndroid.systemui" path="anon_inode:sync_fence" dev="anon_inodefs" ino=5872 scontext=u:r:init:s0 tcontext=u:r:platform_app:s0:c512,c768 tclass=fd permissive=1
    [ 31.039384] type=1400 audit(31.029:233): avc: denied { write } for pid=159 comm="Binder_1" name="property_service" dev="tmpfs" ino=6033 scontext=u:r:init:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
    [ 31.175520] init: Service 'bootanim' (pid 198) exited with status 0
    [ 31.438629] type=1400 audit(31.429:234): avc: denied { setpcap } for pid=1006 comm="main" capability=8 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability permissive=1
    [ 32.946623] type=1400 audit(32.939:235): avc: denied { read } for pid=551 comm="MediaScannerSer" name="media" dev="mmcblk0p2" ino=1058 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 32.990540] type=1400 audit(32.959:236): avc: denied { open } for pid=551 comm="MediaScannerSer" path="/system/media" dev="mmcblk0p2" ino=1058 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
    [ 34.610513] type=1400 audit(34.599:237): avc: denied { read } for pid=961 comm="HeapTaskDaemon" path=2F6465762F6173686D656D2F64616C76696B2D6D61696E2073706163652031202864656C6574656429 dev="tmpfs" ino=10751 scontext=u:r:system_app:s0 tcontext=u:object_r:init_tmpfs:s0 tclass=file permissive=1
  • Hello Weijie,

    Could you confirm that your changes to the dts file were "dr_mode", not "or_mode"?

    Regards, 

    Nick

  • Hi

    sorry It's dr_mode

    And i was modify deconfig too
  • Hi

    Do you have any updates ?


    thanks
  • Hello Weijie,

    1) For the USB OTG host negotiation protocol (HNP), the host device needs to have the usb-id pin grounded, and the peripheral device needs to have usb-id pin floating. Is your usb-id pin floating? Here is some background information.

    2) Are you loading the appropriate USB gadget driver? Otherwise, the peripheral will not know how to act when connected to a host. Here is an example of loading a legacy USB gadget driver.

    Regards,

    Nick

  • Hi Nick

    1) About USB hardware circuit is no problem, because the same hardware circuit yocto file system test is no problem.

    2) The way you load the .KO driver does not work with the android platform because the android platform does not have the modprobe command.


    Thanks

  • in current android baseline , we use modprobe from vendor partition to load modules

    modprobe should be available at /vendor/bin/modprobe.

    ex usage: /vendor/bin/modprobe <module.ko>
  • Hi

    really? My system directory does not have modprobe, please confirm that you use the SDK version is ti-processor-sdk-android-am57xx-evm-04.00.00.04?

    my system directory as below:

    1|root@rom7510:/vendor/bin # ls
    pvrsrvctl
    pvrsrvinit


    Thanks
  • this is what i see on my setup
    am57xevm:/vendor/bin # getprop ro.bootimage.build.date
    Wed Feb 21 21:35:39 EST 2018
    am57xevm:/vendor/bin # getprop ro.hardware
    am57xevmboard
    am57xevm:/vendor/bin #
    am57xevm:/vendor/bin # getprop ro.build.flavor
    full_am57xevm-userdebug
    am57xevm:/vendor/bin # ls mod*
    modinfo modprobe

    --
    I can see from device code that modprobe should exist,
    git.omapzoom.org/

    --

    Try the prebuilt images from the release and ensure vendor partition is flashed and have a setup ready before you start experimenting for the USB issue.

    if you are building android locally, do a clean build
  • Android 4.0 SDK:
    has modinfo under /system/bin

    Android 4.2 SDK:
    has modinfo and modprobe under /vendor/bin

    I am also not seeing modprobe in the 4.0 SDK.

    Nick
  • Hi


    As NICK said, the android 4.0 SDK is not modprobe instructions.
    But I can add a busybox tool into the system / bin directory to use the modprobe command.
    So, please tell me about USB specific deconfig configuration, and how to generate the corresponding Ko file.


    Thanks
  • Hi

    Do you have any updates ?


    Thanks
  • Hello Weijie,

    processors.wiki.ti.com/.../USB_General_Guide_Linux_v3.8 includes a section on DRD USB (in Linux) which may be helpful. wiki.tiprocessors.com/.../Sitara_Linux_Add_USB_Ethernet_Gadget_to_Linux_Kernel discusses adding USB gadgets in the Linux kernel.

    Edit: I'm not experienced with insmod (used in the DRD example link above) vs modprobe usage, but it looks like modprobe is more powerful and uses insmod.


    Regards,
    Nick

  • Hi Nick

    The problem is that USB1 is not loaded, As the previous LOG shows, the kernel only loads the 488d0000.usb and does not load the 48890000 node
    So it will prompt the following question when I was insmod g_zero.ko,

    [ 1249.401098] zero 48890000.usb: failed to start zero: -2
    insmod: failed to load g_zero.ko: No such file or directory


    Thanks
  • Hi

    Do you have any updates ?


    Thanks
  • Hello Weijie,

    Praneeth corrected some of the things I said above. In Linux, you need to make sure the USB gadget is loaded. However, he said that in Android, the system should take care of all of that - so as long as you followed the steps at the 6AO.1.0 Application Notes, the expectation is that USB OTG would work automatically without manually loading any gadgets.

    Is your hardware the AM57xx EVM board? If so, you cannot use USB OTG on USB2 unless you make hardware modifications. As seen in the TI_AM572XEVM_REV_A3a.pdf AM57xx EVM schematic, the ID pin to allow OTG functionality is disconnected:

    The AM571x IDK has OTG setup for USB2. the proper way to create the circuitry for USB OTG with the AM57xx processors can be seen in the AM571x IDK Schematic: 

    Note that the AM57xx line of processors do not have dedicated pins to handle USB ID or USB VBUS. These signals are sent to GPIO pins, so you also need to modify the software to tell the processor which GPIOs are the ID and VBUS pins. Note that VUSB_VBUS2 is routed to a PMIC to provide the GPIO_USB2_VBUS_DET signal to the AM57xx.

    Regards, 

    Nick

  • Hi Nick

    Now,I modify init.am57xevmboard.usb.rc from "setprop sys.usb.controller 488d0000.usb" to "setprop sys.usb.controller 48890000.usb".

    The USB can work,but default mode is host ,And need to use the command "echo "device" > /sys/kernel/debug/48890000.usb/mode" to switch to device mode, and after the switch to use the command "echo "host" > /sys/kernel/debug/48890000.usb/mode" can not return to the host mode.

    So, there are other locations that need to be modified to support both device and host mode.

    Thanks

  • Hello Weijie,

    Again, it depends on your hardware. If you are using this board (the AM572x EVM), NONE of the USB port circuits support OTG mode. Please confirm which board you are using.

    Yes, you can manually change the software from Host mode to device mode. But USB OTG has hardware requirements as well.

    In my last post, I discussed the micro USB port which is a client port on the AM572x EVM. Now, let's look at the host port USBs on the AM572x EVM board.

    Note that USB ports P6, P13, and P15 do not have an ID pin. That means those ports cannot negotiate the client/host relationship when they connect (so they cannot do OTG). You will also notice that none of the host USB ports have a VBUS_DET (VBUS detect) like the client port. If you wanted to use those USB ports in device mode, you would want the ports to use VBUS to generate a VBUS detect signal.

    Regards, 

    Nick

  • Hi Nick

    There is no problem with the hardware circuit. I have a connection ID pin and a VBUS detect pin. And in the yocto file system it can automatically switch device mode and host mode.

    Circuits such as attachments.so I think there are other places in the android file system that need to be modified to support automatic switch between host mode and device mode.

    Thanks

  • Hi

    The question is solved,need to modify dts compation from "compatible = "linux,extcon-usb-gpio"; "to "compatible = "ti,palmas-usb-vid"; "

    as below:

    extcon_usb1: tps659038_usb {
    compatible = "ti,palmas-usb-vid";
    ti,enable-vbus-detection;
    ti,enable-id-detection;
    id-gpios = <&gpio7 25 GPIO_ACTIVE_HIGH>;
    vbus-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
    };


    Thanks