Brillo: RPi 2B(树莓派)使其支持recovery模式

唉,今天失眠了。。。

最近一直在尝试使DUP-EPN8508GS工作在AP模式,但还是以失败告终,有点不甘心啊,过几天再试试看。

先解决开机流程问题吧,以方便后续的调试。按照我最初的想法,系统的启动流程应该是这个样子的(上电开机的case):

  1. 首先 CPU加载并运行bootcode.bin
  2. bootcode.bin加载并运行recovery.elf和fixup.dat
  3. recovery.elf加载recovery7.img和recovery.rfs, 并解析recovery.cmdline将命令行参数传给recovery7.img
  4. 运行recovery7.img进行recovery系统
  5. 在命令行中(接上显示器,keyboard)直接执行reboot命令进入brillo系统
  • SD卡分区(msdos分区表)如下:
分区 名称 大小 类型 说明
/dev/mmcblk0p1 rboot 64MB 主分区 recovery启动分区
/dev/mmcblk0p2 rsystem 256MB 主分区 recovery系统分区
/dev/mmcblk0p3 rdata 256MB 主分区 recovery数据分区
/dev/mmcblk0p4 扩展分区
/dev/mmcblk0p5 boot 64MB 逻辑分区 brillo启动分区
/dev/mmcblk0p6 system 256MB 逻辑分区 brillo系统分区
/dev/mmcblk0p7 data 256MB 逻辑分区 brillo数据分区

这里一定要知道自已经所使用的SD卡对应的是哪一个设备,我使用的是USB读卡器对TF卡进行操作,所以可以使用dmesg进行查看:

[  300.767759] usbcore: registered new interface driver usb-storage
[  300.772061] usbcore: registered new interface driver uas
[  301.766966] scsi 6:0:0:0: Direct-Access     Mass     Storage Device   1.00 PQ: 0 ANSI: 0 CCS
[  301.767159] sd 6:0:0:0: Attached scsi generic sg1 type 0
[  301.969792] sd 6:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[  301.969927] sd 6:0:0:0: [sdb] Write Protect is off
[  301.969928] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  301.970044] sd 6:0:0:0: [sdb] No Caching mode page found
[  301.970046] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  301.974097]  sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 >
[  301.974903] sd 6:0:0:0: [sdb] Attached SCSI removable disk

使用fdisk创建msdos分区表与分区过程如下:

$ sudo fdisk /dev/sdb

Command (m for help): o
Building a new DOS disklabel with disk identifier 0xdd76f847.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p):  
Using default response p
Partition number (1-4, default 1): 
Using default value 1
First sector (2048-15523839, default 2048): 
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15523839, default 15523839): +64M

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): 
Using default response p
Partition number (1-4, default 2): 
Using default value 2
First sector (133120-15523839, default 133120): 
Using default value 133120
Last sector, +sectors or +size{K,M,G} (133120-15523839, default 15523839): +256M

Command (m for help): n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): 
Using default response p
Partition number (1-4, default 3): 
Using default value 3
First sector (657408-15523839, default 657408): 
Using default value 657408
Last sector, +sectors or +size{K,M,G} (657408-15523839, default 15523839): +256M

Command (m for help): n
Partition type:
   p   primary (3 primary, 0 extended, 1 free)
   e   extended
Select (default e): 
Using default response e
Selected partition 4
First sector (1181696-15523839, default 1181696): 
Using default value 1181696
Last sector, +sectors or +size{K,M,G} (1181696-15523839, default 15523839): 
Using default value 15523839

Command (m for help): n
All primary partitions are in use
Adding logical partition 5
First sector (1183744-15523839, default 1183744): 
Using default value 1183744
Last sector, +sectors or +size{K,M,G} (1183744-15523839, default 15523839): +64M

Command (m for help): n
All primary partitions are in use
Adding logical partition 6
First sector (1316864-15523839, default 1316864): 
Using default value 1316864
Last sector, +sectors or +size{K,M,G} (1316864-15523839, default 15523839): +256M

Command (m for help): n
All primary partitions are in use
Adding logical partition 7
First sector (1843200-15523839, default 1843200): 
Using default value 1843200
Last sector, +sectors or +size{K,M,G} (1843200-15523839, default 15523839): +256M

分区表如下:

Command (m for help): p

Disk /dev/sdb: 7948 MB, 7948206080 bytes
245 heads, 62 sectors/track, 1021 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdd76f847

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048      133119       65536   83  Linux
/dev/sdb2          133120      657407      262144   83  Linux
/dev/sdb3          657408     1181695      262144   83  Linux
/dev/sdb4         1181696    15523839     7171072    5  Extended
/dev/sdb5         1183744     1314815       65536   83  Linux
/dev/sdb6         1316864     1841151      262144   83  Linux
/dev/sdb7         1843200     2367487      262144   83  Linux

标记/dev/sdb1 与/dev/sdb5为FAT32分区:

Command (m for help): t
Partition number (1-7): 1
Hex code (type L to list codes): b
Changed system type of partition 1 to b (W95 FAT32)

Command (m for help): t
Partition number (1-7): 5
Hex code (type L to list codes): b
Changed system type of partition 5 to b (W95 FAT32)

Command (m for help): p

Disk /dev/sdb: 7948 MB, 7948206080 bytes
245 heads, 62 sectors/track, 1021 cylinders, total 15523840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdd76f847

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048      133119       65536    b  W95 FAT32
/dev/sdb2          133120      657407      262144   83  Linux
/dev/sdb3          657408     1181695      262144   83  Linux
/dev/sdb4         1181696    15523839     7171072    5  Extended
/dev/sdb5         1183744     1314815       65536    b  W95 FAT32
/dev/sdb6         1316864     1841151      262144   83  Linux
/dev/sdb7         1843200     2367487      262144   83  Linux

保存分区表并退出fdisk命令:

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
  • rboot与boot分区使用mkfs.vfat命令进行格式化:
$ sudo mkfs.vfat -n rboot /dev/sdb1
mkfs.fat 3.0.26 (2014-03-07)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
$ sudo mkfs.vfat -n boot /dev/sdb5
mkfs.fat 3.0.26 (2014-03-07)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows

rboot分区包含bootcode.bin, config.txt, recovery.elf, recovery7.img, recovery.rfs, recovery.cmdline这几个文件

boot分区包含bootcode.bin, config.txt, start.elf, fixup.dat, kernel7.img ramdisk7.img cmdline.txt这几个文件

  • rsystem与system分区通过dd命令写入编译好的system.img并重新设置分区标签:
$ sudo dd if=system.img of=/dev/sdb2
$ sudo tune2fs -L rsystem /dev/sdb2
$ sudo dd if=system.img of=/dev/sdb6
$ sudo tune2fs -L system /dev/sdb6
  • rdata与data分区使用mkfs.ext4命令格式化成ext4文件系统:
$ sudo mkfs.ext4 -L rdata /dev/sdb3
$ sudo mkfs.ext4 -L data /dev/sdb7
  • 代码下载及编译

brillo-m-release以及rpi kernel代码的下载可以参考这篇文档:将系统移植到RPi 2B上

RPi 2B其他与设备相关的文件请从这里下载:device-hzak-rpi-brillo-m8-release-2016-01-03.tar.gz

最终我们需要用到的文件包含:

  1. out/target/product/rpi/rboot/
  2. out/target/product/rpi/boot/
  3. out/target/product/rpi/system.img
  •  刷机方法
$ sudo mount /dev/sdb1 /mnt/
$ sudo cp out/target/product/rpi/rboot/* /mnt/
$ sudo umount /mnt/
$ sudo mount /dev/sdb5 /mnt/
$ sudo cp out/target/product/rpi/boot/* /mnt/
$ sudo umount /mnt/
$ sudo dd if=out/target/product/rpi/system.img of=/dev/sdb2
$ sudo tune2fs -L rsystem /dev/sdb2
$ sudo dd if=out/target/product/rpi/system.img of=/dev/sdb6
$ sudo tune2fs -L system /dev/sdb6
$ sync

将TF卡插入到RPi 2B的卡槽,准备第一次的开机。开机之后首先进入的是recovery的系统,进行reboot重启之后就可以进入Brillo系统了。

NOTE:

  1. recovery系统所使用的ramdisk并非是ramdisk-recovery.img, 而是ramdisk.img
  2. rboot中没有使用config.txt, 如果使用,请检查config.txt有没有指定initramfs,指定的名字可能需要跟recovery系统需要用到的initramdisk文件名称一致
  3. adb的连接是通过网络进行的,IP地址可以通过avahi-browser -a -r得到。连接命令如adb connect 10.0.0.10
  4. Brillo shell中的ls可以带color参数,很实用:alias ls=’ls –color=auto’

附一份Brillo系统的开机log

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.14-v7+ (hzak@B85PRO) (gcc version 4.9.x-google 20150123 (prerelease) (GCC) ) #7 SMP Thu Dec 31 08:37:18 EST 2015
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: BCM2709
[    0.000000] cma: Reserved 8 MiB at 0x3c400000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 249856
[    0.000000] free_area_init_node: node 0, pgdat 80c95cc0, node_mem_map bbb6c000
[    0.000000]   Normal zone: 2196 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 249856 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (101480->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 11 pages/cpu @bcedb000 s20864 r0 d24192 u45056
[    0.000000] pcpu-alloc: s20864 r0 d24192 u45056 alloc=11*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 247660
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1392 bcm2708_fb.fbheight=868 bcm2709.boardrev=0xa21041 bcm2709.serial=0x9fb4d8bb smsc95xx.macaddr=B8:27:EB:B4:D8:BB bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 noinitrd rootwait init=/init elevator=deadline androidboot.hardware=rpi androidboot.selinux=permissive androidboot.disk.boot=/dev/block/mmcblk0p5 androidboot.disk.system=/dev/block/mmcblk0p6 androidboot.disk.data=/dev/block/mmcblk0p7
[    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: 967784K/999424K available (8758K kernel code, 633K rwdata, 1440K rodata, 1024K init, 799K bss, 23448K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xbd800000 - 0xff000000   (1048 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbd000000   ( 976 MB)
[    0.000000]       .text : 0x80008000 - 0x80af5980   (11191 kB)
[    0.000000]       .init : 0x80b00000 - 0x80c00000   (1024 kB)
[    0.000000]       .data : 0x80c00000 - 0x80c9e688   ( 634 kB)
[    0.000000]        .bss : 0x80c9e688 - 0x80d6633c   ( 800 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:608
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000012] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000035] Switching to timer-based delay loop, resolution 52ns
[    0.000316] Console: colour dummy device 80x30
[    0.001296] console [tty1] enabled
[    0.001351] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001420] pid_max: default: 32768 minimum: 301
[    0.001580] Security Framework initialized
[    0.001641] SELinux:  Initializing.
[    0.001741] SELinux:  Starting in permissive mode
[    0.001989] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002038] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003456] Initializing cgroup subsys blkio
[    0.003526] Initializing cgroup subsys memory
[    0.003584] Initializing cgroup subsys devices
[    0.003635] Initializing cgroup subsys freezer
[    0.003681] Initializing cgroup subsys debug
[    0.003778] CPU: Testing write buffer coherency: ok
[    0.003883] ftrace: allocating 23653 entries in 70 pages
[    0.061407] missing device node for CPU 0
[    0.061484] missing device node for CPU 1
[    0.061513] missing device node for CPU 2
[    0.061542] missing device node for CPU 3
[    0.061581] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.061616] [bcm2709_smp_prepare_cpus] enter
[    0.061782] Setting up static identity map for 0x100000 - 0x100058
[    0.064317] [bcm2709_boot_secondary] cpu:1 started (0) 18
[    0.064695] [bcm2709_secondary_init] enter cpu:1
[    0.064761] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.065413] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.065700] [bcm2709_secondary_init] enter cpu:2
[    0.065738] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.066367] [bcm2709_boot_secondary] cpu:3 started (0) 17
[    0.066622] [bcm2709_secondary_init] enter cpu:3
[    0.066657] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.066751] Brought up 4 CPUs
[    0.066834] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.066864] CPU: All CPU(s) started in HYP mode.
[    0.066892] CPU: Virtualization extensions available.
[    0.067909] devtmpfs: initialized
[    0.088154] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.088734] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.089905] pinctrl core: initialized pinctrl subsystem
[    0.090837] NET: Registered protocol family 16
[    0.096808] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.098296] bcm2709.uart_clock = 3000000
[    0.098366] of_platform_populate failed: -22
[    0.100606] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.100660] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.100705] VDSO is not a valid ELF object!
[    0.100903] Serial: AMBA PL011 UART driver
[    0.101077] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.621617] console [ttyAMA0] enabled
[    0.625963] bcm2835-mbox bcm2835-mbox: mailbox enabled
[    0.696736] bcm2708-dmaengine bcm2708-dmaengine: DMA legacy API manager at f3007000, dmachans=0x7f35
[    0.705993] bcm2708-dmaengine bcm2708-dmaengine: failed to get irq for DMA channel 13
[    0.713854] bcm2708-dmaengine bcm2708-dmaengine: Initialized 8 DMA channels (+ 1 legacy)
[    0.723093] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    0.730433] bcm2708-dmaengine bcm2708-dmaengine: dma_debug:0
[    0.736763] SCSI subsystem initialized
[    0.740960] usbcore: registered new interface driver usbfs
[    0.746559] usbcore: registered new interface driver hub
[    0.752018] usbcore: registered new device driver usb
[    0.757755] raspberrypi-firmware raspberrypi-firmware.0: Attached to firmware from 2015-12-08 14:38
[    0.794248] cfg80211: Calling CRDA to update world regulatory domain
[    0.802066] Switched to clocksource arch_sys_counter
[    0.880256] FS-Cache: Loaded
[    0.883666] CacheFiles: Loaded
[    0.903049] NET: Registered protocol family 2
[    0.908795] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.916052] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.922719] TCP: Hash tables configured (established 8192 bind 8192)
[    0.929226] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.935242] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.941981] NET: Registered protocol family 1
[    0.946849] RPC: Registered named UNIX socket transport module.
[    0.952823] RPC: Registered udp transport module.
[    0.957541] RPC: Registered tcp transport module.
[    0.962276] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.969278] Trying to unpack rootfs image as initramfs...
[    1.056763] Freeing initrd memory: 920K (bcf0a000 - bcff0000)
[    1.063579] bcm2708_gpio: bcm2708_gpio_probe 80c27008
[    1.071009] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.077463] audit: initializing netlink subsys (disabled)
[    1.082980] audit: type=2000 audit(0.839:1): initialized
[    1.107720] FS-Cache: Netfs 'nfs' registered for caching
[    1.114377] NFS: Registering the id_resolver key type
[    1.119543] Key type id_resolver registered
[    1.123774] Key type id_legacy registered
[    1.129568] SELinux:  Registering netfilter hooks
[    1.132361] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    1.139997] io scheduler noop registered
[    1.143979] io scheduler deadline registered (default)
[    1.149465] io scheduler cfq registered
[    1.155109] BCM2708FB: allocated DMA memory fc800000
[    1.160136] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.186334] Console: switching to colour frame buffer device 174x54
[    1.205476] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[    1.213865] vc-cma: Videocore CMA driver
[    1.217874] vc-cma: vc_cma_base      = 0x00000000
[    1.222690] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.228180] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.234007] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.261041] brd: module loaded
[    1.274369] loop: module loaded
[    1.278781] vchiq: vchiq_init_state: slot_zero = 0xbc880000, is_master = 0
[    1.287613] Loading iSCSI transport class v2.0-870.
[    1.293664] usbcore: registered new interface driver rtl8192cu
[    1.299720] usbcore: registered new interface driver asix
[    1.305341] usbcore: registered new interface driver ax88179_178a
[    1.311624] usbcore: registered new interface driver cdc_ether
[    1.317671] usbcore: registered new interface driver smsc95xx
[    1.323648] usbcore: registered new interface driver net1080
[    1.329494] usbcore: registered new interface driver cdc_subset
[    1.335632] usbcore: registered new interface driver zaurus
[    1.341441] usbcore: registered new interface driver cdc_ncm
[    1.350789] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.560571] Core Release: 2.80a
[    1.567335] Setting default values for core params
[    1.575733] Finished setting default values for core params
[    1.785297] Using Buffer DMA mode
[    1.792158] Periodic Transfer Interrupt Enhancement - disabled
[    1.801538] Multiprocessor Interrupt Enhancement - disabled
[    1.810668] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.818591] Dedicated Tx FIFOs mode
[    1.826053] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbc814000 dma = 0xfc814000 len=9024
[    1.839687] FIQ FSM acceleration enabled for :
[    1.839687] Non-periodic Split Transactions
[    1.839687] Periodic Split Transactions
[    1.839687] High-Speed Isochronous Endpoints
[    1.871076] dwc_otg: Microframe scheduler enabled
[    1.871158] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x805b22e0
[    1.880743] WARN::hcd_init_fiq:413: FIQ ASM at 0x805b2650 length 36
[    1.890641] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbd89a000
[    1.900278] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.908843] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.919788] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.928974] Init: Port Power? op_state=1
[    1.936559] Init: Power Port (0)
[    1.943694] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.954130] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.964995] usb usb1: Product: DWC OTG Controller
[    1.973334] usb usb1: Manufacturer: Linux 4.1.14-v7+ dwc_otg_hcd
[    1.983018] usb usb1: SerialNumber: bcm2708_usb
[    1.992476] hub 1-0:1.0: USB hub found
[    1.999939] hub 1-0:1.0: 1 port detected
[    2.008208] dwc_otg: FIQ enabled
[    2.008221] dwc_otg: NAK holdoff enabled
[    2.008232] dwc_otg: FIQ split-transaction FSM enabled
[    2.008270] Module dwc_common_port init
[    2.008630] usbcore: registered new interface driver usb-storage
[    2.018689] mousedev: PS/2 mouse device common for all mice
[    2.028812] bcm2835-cpufreq: min=600000 max=900000
[    2.037697] sdhci: Secure Digital Host Controller Interface driver
[    2.047632] sdhci: Copyright(c) Pierre Ossman
[    2.056042] mmc-bcm2835 mmc-bcm2835.0: mmc_debug:0 mmc_debug2:0
[    2.065711] mmc-bcm2835 mmc-bcm2835.0: DMA channels allocated
[    2.112412] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.121995] hidraw: raw HID events driver (C) Jiri Kosina
[    2.134644] usbcore: registered new interface driver usbhid
[    2.143916] usbhid: USB HID core driver
[    2.151771] ashmem: initialized
[    2.159290] nf_conntrack version 0.5.0 (15264 buckets, 61056 max)
[    2.170844] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.180076] Initializing XFRM netlink socket
[    2.189588] NET: Registered protocol family 10
[    2.199553] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    2.201126] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.205157] mmc0: new high speed SDHC card at address aaaa
[    2.209132] mmcblk0: mmc0:aaaa SU08G 7.40 GiB 
[    2.228560]  mmcblk0: p1 p2 p3 p4 < p5 p6 p7 >
[    2.247756] Indeed it is in host mode hprt0 = 00021501
[    2.247897] sit: IPv6 over IPv4 tunneling driver
[    2.249094] NET: Registered protocol family 17
[    2.249282] Key type dns_resolver registered
[    2.250006] Registering SWP/SWPB emulation handler
[    2.251354] registered taskstats version 1
[    2.251655] vc-sm: Videocore shared memory driver
[    2.251668] [vc_sm_connected_init]: start
[    2.252631] [vc_sm_connected_init]: end - returning 0
[    2.326270] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
[    2.339764] init: init first stage started!
[    2.357852] SELinux: 2048 avtab hash slots, 6078 rules.
[    2.366138] SELinux: 2048 avtab hash slots, 6078 rules.
[    2.366196] SELinux:  1 users, 2 roles, 619 types, 0 bools, 1 sens, 1024 cats
[    2.366219] SELinux:  56 classes, 6078 rules
[    2.369653] SELinux:  Completing initialization.
[    2.369674] SELinux:  Setting up existing superblocks.
[    2.419756] audit: type=1403 audit(2.169:2): policy loaded auid=4294967295 ses=4294967295
[    2.433612] init: (Initializing SELinux non-enforcing took 0.09s.)
[    2.454828] init: init second stage started!
[    2.479584] init: Running restorecon...
[    2.502157] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.512916] Indeed it is in host mode hprt0 = 00001101
[    2.527281] init: waitpid failed: No child processes
[    2.536704] init: (Loading properties from /default.prop took 0.00s.)
[    2.549319] init: property 'ro.zygote' doesn't exist while expanding '/init.${ro.zygote}.rc'
[    2.561989] init: /init.rc: 11: error while expanding import
[    2.575925] init: /init.environ.rc: 10: export requires 2 arguments
[    2.586440] init: /init.environ.rc: 11: export requires 2 arguments
[    2.596838] init: (Parsing /init.environ.rc took 0.02s.)
[    2.608076] init: (Parsing /init.usb.rc took 0.00s.)
[    2.617478] init: (Parsing /init.rpi.rc took 0.00s.)
[    2.626545] init: could not import file '/init.usb.configfs.rc' from '/init.rc': No such file or directory
[    2.640413] init: (Parsing /init.rc took 0.09s.)
[    2.650309] init: Starting service 'ueventd'...
[    2.660032] init: Waiting for /dev/.coldboot_done...
[    2.665163] ueventd: ueventd started!
[    2.722555] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.733486] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.745691] audit: type=1400 audit(2.499:3): avc:  denied  { write } for  pid=23 comm="kdevtmpfs" name="001" dev="devtmpfs" ino=6255 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
[    2.773094] audit: type=1400 audit(2.529:4): avc:  denied  { mknod } for  pid=23 comm="kdevtmpfs" capability=27  scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=capability permissive=1
[    2.799420] audit: type=1400 audit(2.549:5): avc:  denied  { add_name } for  pid=23 comm="kdevtmpfs" name="002" scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
[    2.826362] audit: type=1400 audit(2.579:6): avc:  denied  { create } for  pid=23 comm="kdevtmpfs" name="002" scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
[    2.854372] audit: type=1400 audit(2.609:7): avc:  denied  { setattr } for  pid=23 comm="kdevtmpfs" name="002" dev="devtmpfs" ino=8217 scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
[    2.885809] hub 1-1:1.0: USB hub found
[    2.895560] hub 1-1:1.0: 5 ports detected
[    2.988059] ueventd: Coldboot took 0.31s.
[    2.991048] init: Waiting for /dev/.coldboot_done took 0.33s.
[    2.991328] init: Failed to read from /dev/hw_random: No such device
[    3.109173] init: write_file: Unable to open '/proc/sys/kernel/sched_compat_yield': No such file or directory
[    3.127067] init: write_file: Unable to write to '/dev/cpuctl/cpu.shares': Invalid argument
[    3.148628] init: write_file: Unable to open '/proc/sys/abi/swp': No such file or directory
[    3.162529] init: Failed to read from /dev/hw_random: No such device
[    3.194013] FAT-fs (mmcblk0p5): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    3.202136] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.221081] fs_mgr: __mount(source=/dev/block/by-name/boot,target=/boot,type=vfat)=0
[    3.250523] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: barrier=1,discard
[    3.265009] fs_mgr: __mount(source=/dev/block/by-name/system,target=/system,type=ext4)=0
[    3.279557] EXT4-fs (mmcblk0p7): Ignoring removed nomblk_io_submit option
[    3.312539] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.324875] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.343468] smsc95xx v1.0.4
[    3.402192] EXT4-fs (mmcblk0p7): recovery complete
[    3.414357] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit
[    3.430892] fs_mgr: check_fs(): mount(/dev/block/by-name/data,/data,ext4)=0: Success
[    3.448282] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:b4:d8:bb
[    3.486223] fs_mgr: check_fs(): unmount(/data) succeeded
[    3.501049] fs_mgr: Not running /system/bin/e2fsck on /dev/block/by-name/data (executable not in system image)
[    3.537473] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: barrier=1,noauto_da_alloc,discard
[    3.542126] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    3.570049] fs_mgr: __mount(source=/dev/block/by-name/data,target=/data,type=ext4)=0
[    3.587944] init: (Parsing /system/etc/init/apmanager.rc took 0.00s.)
[    3.600937] init: (Parsing /system/etc/init/avahi-daemon.rc took 0.00s.)
[    3.614284] init: (Parsing /system/etc/init/brillo.rc took 0.00s.)
[    3.626824] init: (Parsing /system/etc/init/crash_reporter.rc took 0.00s.)
[    3.639561] init: (Parsing /system/etc/init/debuggerd.rc took 0.00s.)
[    3.651753] init: (Parsing /system/etc/init/firewalld.rc took 0.00s.)
[    3.659235] usb 1-1.2: New USB device found, idVendor=046d, idProduct=c52b
[    3.659248] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.659257] usb 1-1.2: Product: USB Receiver
[    3.659266] usb 1-1.2: Manufacturer: Logitech
[    3.703908] init: (Parsing /system/etc/init/keystore.rc took 0.00s.)
[    3.704014] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C52B.0001/input/input0
[    3.732402] init: (Parsing /system/etc/init/logcatd.rc took 0.00s.)
[    3.744398] init: (Parsing /system/etc/init/logd.rc took 0.00s.)
[    3.756035] init: (Parsing /system/etc/init/mediaserver.rc took 0.00s.)
[    3.768248] init: (Parsing /system/etc/init/metrics_collector.rc took 0.00s.)
[    3.774903] hid-generic 0003:046D:C52B.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input0
[    3.790914] input: Logitech USB Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:046D:C52B.0002/input/input1
[    3.815351] init: (Parsing /system/etc/init/metricsd.rc took 0.00s.)
[    3.828039] init: (Parsing /system/etc/init/nativepowerman.rc took 0.00s.)
[    3.841146] init: (Parsing /system/etc/init/perfprofd.rc took 0.00s.)
[    3.845816] audit: type=1400 audit(3.599:8): avc:  denied  { create } for  pid=23 comm="kdevtmpfs" name="usb" scontext=u:r:kernel:s0 tcontext=u:object_r:device:s0 tclass=dir permissive=1
[    3.848741] hid-generic 0003:046D:C52B.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input1
[    3.870938] hid-generic 0003:046D:C52B.0003: hiddev0,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-bcm2708_usb-1.2/input2
[    3.918661] init: (Parsing /system/etc/init/sensorservice.rc took 0.00s.)
[    3.932815] init: (Parsing /system/etc/init/servicemanager.rc took 0.00s.)
[    3.946897] init: (Parsing /system/etc/init/shill.rc took 0.00s.)
[    3.952113] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[    3.952123] cfg80211: Restoring regulatory settings
[    3.952135] cfg80211: Kicking the queue
[    3.952153] cfg80211: Calling CRDA to update world regulatory domain
[    3.962116] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[    3.984731] init: (Parsing /system/etc/init/tlsdated.rc took 0.00s.)
[    3.998052] init: (Parsing /system/etc/init/update_engine.rc took 0.00s.)
[    4.011741] init: (Parsing /system/etc/init/weaved.rc took 0.00s.)
[    4.024729] init: (Parsing /system/etc/init/webservd.rc took 0.00s.)
[    4.039951] init: Starting service 'logd'...
[    4.052265] init: SELinux: Could not set context for /cache:  Read-only file system
[    4.063889] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=8176
[    4.063903] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.063914] usb 1-1.4: Product: 802.11n WLAN Adapter
[    4.063923] usb 1-1.4: Manufacturer: Realtek
[    4.063932] usb 1-1.4: SerialNumber: ############
[    4.068065] rtl8192cu: Chip version 0x10
[    4.124144] random: nonblocking pool is initialized
[    4.146154] init: (Loading properties from /system/build.prop took 0.00s.)
[    4.158399] init: (Loading properties from /vendor/build.prop took 0.00s.)
[    4.162444] rtl8192cu: MAC address: xx:xx:xx:xx:xx:xx
[    4.162467] rtl8192cu: Board Type 0
[    4.162675] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[    4.162694] cfg80211: Updating information on frequency 2412 MHz with regulatory rule:
[    4.162703] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162710] cfg80211: Updating information on frequency 2417 MHz with regulatory rule:
[    4.162717] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162723] cfg80211: Updating information on frequency 2422 MHz with regulatory rule:
[    4.162732] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162737] cfg80211: Updating information on frequency 2427 MHz with regulatory rule:
[    4.162745] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162750] cfg80211: Updating information on frequency 2432 MHz with regulatory rule:
[    4.162757] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162763] cfg80211: Updating information on frequency 2437 MHz with regulatory rule:
[    4.162770] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162776] cfg80211: Updating information on frequency 2442 MHz with regulatory rule:
[    4.162783] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162789] cfg80211: Updating information on frequency 2447 MHz with regulatory rule:
[    4.162796] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162801] cfg80211: Updating information on frequency 2452 MHz with regulatory rule:
[    4.162809] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162814] cfg80211: Updating information on frequency 2457 MHz with regulatory rule:
[    4.162821] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162827] cfg80211: Updating information on frequency 2462 MHz with regulatory rule:
[    4.162834] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A mBi, 2000 mBm)
[    4.162839] cfg80211: Disabling freq 2467 MHz as custom regd has no rule that fits it
[    4.162844] cfg80211: Disabling freq 2472 MHz as custom regd has no rule that fits it
[    4.162848] cfg80211: Disabling freq 2484 MHz as custom regd has no rule that fits it
[    4.162987] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[    4.164154] cfg80211: Ignoring regulatory request set by core since the driver uses its own custom regulatory domain
[    4.165837] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[    4.173208] usb 1-1.4: Direct firmware load for rtlwifi/rtl8192cufw_TMSC.bin failed with error -2
[    4.173220] usb 1-1.4: Falling back to user helper
[    4.234713] init: (Loading properties from /factory/factory.prop took 0.00s.)
[    4.247370] init: /recovery not specified in fstab
[    4.258244] init: do_start: Service vold not found
[    4.286821] init: Not bootcharting.
[    4.303796] logd.auditd: start
[    4.312047] logd.klogd: 4069935727
[    4.390768] init: cannot find '/system/bin/tzdatacheck' (No such file or directory), disabling 'exec 1 (/system/bin/tzdatacheck)'
[    4.428976] init: (Loading properties from /data/local.prop took 0.00s.)
[    4.442336] init: Starting service 'logd-reinit'...
[    4.455009] init: write_file: Unable to open '/proc/sys/vm/min_free_order_shift': No such file or directory
[    4.473687] init: cannot find '/sbin/healthd' (No such file or directory), disabling 'healthd'
[    4.488277] usb 1-1.4: Direct firmware load for rtlwifi/rtl8192cufw.bin failed with error -2
[    4.489427] init: Starting service 'wifi-setup'...
[    4.491373] init: Starting service 'dbus'...
[    4.493957] init: Starting service 'servicemanager'...
[    4.496456] logd.daemon: reinit
[    4.496674] init: Starting service 'initnetwork'...
[    4.499133] init: Starting service 'firewall-setup'...
[    4.501620] init: Service 'logd-reinit' (pid 85) exited with status 0
[    4.501863] init: Starting service 'console'...
[    4.504279] init: cannot find '/system/bin/update_verifier' (No such file or directory), disabling 'exec 2 (/system/bin/update_verifier)'
[    4.504438] init: cannot find '/system/bin/install-recovery.sh' (No such file or directory), disabling 'flash_recovery'
[    4.505236] init: Starting service 'avahi-daemon'...
[    4.507263] init: Starting service 'debuggerd'...
[    4.511258] init: Starting service 'keystore'...
[    4.514068] init: Starting service 'media'...
[    4.516002] init: Starting service 'nativepowerman'...
[    4.517818] init: Starting service 'sensorservice'...
[    4.519966] init: Starting service 'wpa_supplicant'...
[    4.541112] init: Starting service 'crash_reporter'...
[    4.543544] init: Starting service 'crash_sender'...
[    4.546231] init: Starting service 'metricscollector'...
[    4.548449] init: Starting service 'metricsd'...
[    4.586089] init: Starting service 'perfprofd'...
[    4.588172] init: Starting service 'tlsdated'...
[    4.590382] init: Starting service 'update_engine'...
[    4.594374] init: Starting service 'weaved'...
[    4.596902] init: Starting service 'webservd'...
[    4.607074] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[    4.607239] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[    4.607367] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[    4.607518] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[    4.607639] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[    4.607835] init: Starting service 'adbd'...
[    4.610490] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[    4.610625] init: write_file: Unable to open '/sys/class/android_usb/android0/idVendor': No such file or directory
[    4.610720] init: write_file: Unable to open '/sys/class/android_usb/android0/idProduct': No such file or directory
[    4.610815] init: write_file: Unable to open '/sys/class/android_usb/android0/functions': No such file or directory
[    4.611070] init: write_file: Unable to open '/sys/class/android_usb/android0/enable': No such file or directory
[    4.621370] type=1400 audit(4.369:9): avc: denied { search } for pid=111 comm="adbd" name="cpu" dev="sysfs" ino=32 scontext=u:r:adbd:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=dir permissive=1
[    4.623265] type=1400 audit(4.369:10): avc: denied { read } for pid=111 comm="adbd" name="online" dev="sysfs" ino=34 scontext=u:r:adbd:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    4.625417] type=1400 audit(4.369:11): avc: denied { open } for pid=111 comm="adbd" path="/sys/devices/system/cpu/online" dev="sysfs" ino=34 scontext=u:r:adbd:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    4.625860] type=1400 audit(4.369:12): avc: denied { getattr } for pid=111 comm="adbd" path="/sys/devices/system/cpu/online" dev="sysfs" ino=34 scontext=u:r:adbd:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    4.847118] type=1400 audit(4.599:13): avc: denied { read } for pid=102 comm="wifi_init" name="psched" dev="proc" ino=4026534758 scontext=u:r:wifi_setup:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
[    4.849624] type=1400 audit(4.599:14): avc: denied { open } for pid=102 comm="wifi_init" path="/proc/102/net/psched" dev="proc" ino=4026534758 scontext=u:r:wifi_setup:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
[    4.850010] type=1400 audit(4.599:15): avc: denied { getattr } for pid=102 comm="wifi_init" path="/proc/102/net/psched" dev="proc" ino=4026534758 scontext=u:r:wifi_setup:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
[    4.850251] type=1400 audit(4.599:16): avc: denied { create } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    4.850473] type=1400 audit(4.599:17): avc: denied { setopt } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    4.850694] type=1400 audit(4.599:18): avc: denied { bind } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    4.850938] type=1400 audit(4.599:19): avc: denied { getattr } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    4.851144] type=1400 audit(4.599:20): avc: denied { write } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    4.851513] type=1400 audit(4.599:21): avc: denied { read } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    5.316400] usb 1-1.4: Falling back to user helper
[    5.320159] rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin
[    5.320166] rtlwifi: Firmware rtlwifi/rtl8192cufw_TMSC.bin not available
[    5.390134] type=1400 audit(1451196894.219:22): avc: denied { search } for pid=91 comm="sh" name="cpu" dev="sysfs" ino=32 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=dir permissive=1
[    5.436892] type=1400 audit(1451196894.219:23): avc: denied { read } for pid=91 comm="sh" name="online" dev="sysfs" ino=34 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    5.437182] type=1400 audit(1451196894.219:24): avc: denied { open } for pid=91 comm="sh" path="/sys/devices/system/cpu/online" dev="sysfs" ino=34 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    5.437454] type=1400 audit(1451196894.219:25): avc: denied { getattr } for pid=91 comm="sh" path="/sys/devices/system/cpu/online" dev="sysfs" ino=34 scontext=u:r:shell:s0 tcontext=u:object_r:sysfs_devices_system_cpu:s0 tclass=file permissive=1
[    5.742358] type=1400 audit(1451196894.569:26): avc: denied { read } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    5.779439] rtl8192cu: MAC auto ON okay!
[    5.861836] rtl8192cu: Tx queue select: 0x05
[    6.484534] capability: warning: `wpa_supplicant' uses 32-bit capabilities (legacy support in use)
[    6.615770] init: Service 'crash_reporter' (pid 99) exited with status 0
[    6.655913] type=1400 audit(1451196894.569:27): avc: denied { create } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    6.700529] type=1400 audit(1451196894.569:28): avc: denied { setopt } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    6.740490] type=1400 audit(1451196894.569:29): avc: denied { bind } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    6.779734] type=1400 audit(1451196894.569:30): avc: denied { getattr } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    6.818847] type=1400 audit(1451196894.569:31): avc: denied { write } for pid=102 comm="wifi_init" scontext=u:r:wifi_setup:s0 tcontext=u:r:wifi_setup:s0 tclass=netlink_socket permissive=1
[    6.857772] type=1400 audit(1451196894.569:32): avc: denied { read } for pid=102 comm="wifi_init" name="index" dev="sysfs" ino=8736 scontext=u:r:wifi_setup:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
[    6.898748] type=1400 audit(1451196895.339:33): avc: denied { write } for pid=133 comm="metricsd" name="tasks" dev="cgroup" ino=5 scontext=u:r:metricsd:s0 tcontext=u:object_r:cgroup:s0 tclass=file permissive=1
[    6.940216] type=1400 audit(1451196895.339:34): avc: denied { open } for pid=133 comm="metricsd" path="/dev/cpuctl/tasks" dev="cgroup" ino=5 scontext=u:r:metricsd:s0 tcontext=u:object_r:cgroup:s0 tclass=file permissive=1
[    7.096739] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[    7.650378] rtl8192c_common:_rtl92c_fw_free_to_go():<0-0> Polling FW ready fail!! REG_MCUFWDL:0x00000006 .
[    7.650412] rtl8192c_common:rtl92c_download_fw():<0-0> Firmware is not ready to run!
[    8.160461] init: avc:  denied  { set } for property=debug.atrace.tags.enableflags pid=95 uid=1013 gid=1005 scontext=u:r:mediaserver:s0 tcontext=u:object_r:debug_prop:s0 tclass=property_service permissive=1
[    9.041113] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    9.056462] cfg80211: Restoring regulatory settings
[    9.056490] cfg80211: Kicking the queue
[    9.056518] cfg80211: Calling CRDA to update world regulatory domain
[    9.111952] init: Starting service 'apmanager'...
[    9.127378] init: Service 'wifi-setup' (pid 86) exited with status 0
[    9.144660] init: Starting service 'shill'...
[    9.428901] init: Starting service 'firewalld'...
[    9.443770] init: Service 'firewall-setup' (pid 90) exited with status 0
[    9.846866] init: Service 'initnetwork' (pid 89) exited with status 0
[    9.946291] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    9.962261] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.128235] nl80211_set_interface: set interface ...
[   11.557893] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   11.574637] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   12.222126] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   12.222165] cfg80211: Restoring regulatory settings
[   12.222186] cfg80211: Kicking the queue
[   12.222209] cfg80211: Calling CRDA to update world regulatory domain
[   15.402120] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   15.402156] cfg80211: Restoring regulatory settings
[   15.402176] cfg80211: Kicking the queue
[   15.402199] cfg80211: Calling CRDA to update world regulatory domain
[   18.562115] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   18.562152] cfg80211: Restoring regulatory settings
[   18.562173] cfg80211: Kicking the queue
[   18.562195] cfg80211: Calling CRDA to update world regulatory domain
[   21.722110] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   21.722146] cfg80211: Restoring regulatory settings
[   21.722165] cfg80211: Kicking the queue
[   21.722188] cfg80211: Calling CRDA to update world regulatory domain
[   24.882109] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   24.882144] cfg80211: Restoring regulatory settings
[   24.882164] cfg80211: Kicking the queue
[   24.882186] cfg80211: Calling CRDA to update world regulatory domain
[   28.042104] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   28.042142] cfg80211: Restoring regulatory settings
[   28.042163] cfg80211: Kicking the queue
[   28.042184] cfg80211: Calling CRDA to update world regulatory domain
[   31.202109] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   31.202142] cfg80211: Restoring regulatory settings
[   31.202160] cfg80211: Kicking the queue
[   31.202256] cfg80211: Calling CRDA to update world regulatory domain
[   34.362119] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   34.362157] cfg80211: Restoring regulatory settings
[   34.362176] cfg80211: Kicking the queue
[   34.362199] cfg80211: Calling CRDA to update world regulatory domain
[   37.522138] cfg80211: Timeout while waiting for CRDA to reply, restoring regulatory settings
[   37.522172] cfg80211: Restoring regulatory settings
[   37.522192] cfg80211: Kicking the queue
[   37.522215] cfg80211: Exceeded CRDA call max attempts. Not calling CRDA
[   97.532126] cfg80211: Verifying active interfaces after reg change
[  154.954093] init: Untracked pid 168 exited with status 1
[  205.834138] init: Untracked pid 170 exited with status 1
[  297.034093] init: Untracked pid 172 exited with status 1
[  468.074133] init: Untracked pid 178 exited with status 1
[  799.274045] init: Untracked pid 186 exited with status 1
[ 1037.040728] smsc95xx 1-1.1:1.0 eth0: link down
[ 1038.619309] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[ 1040.292288] smsc95xx 1-1.1:1.0 eth0: device_set_wakeup_enable error -17

评论

2 Comments on "Brillo: RPi 2B(树莓派)使其支持recovery模式"

提醒我
avatar

trackback

[…] Pi 2B开机过程分析 Brillo: 使用gdb调试native进程 Brillo: RPi 2B(树莓派)使其支持recovery模式 Android: 超级好用的adb forward命令 Brillo: brillo-m10-dev @ RPi 3B – […]

trackback

[…] 参考这篇文档:->@<- […]

wpDiscuz