All posts by RSR

간단 NAT Masquerade 설정

eth0 = 인터넷 연결된 것 (connected to the internet)
eth1 = 인터넷 연결할 것 (to connect)

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

 

AMLOGIC S905X SET-TOP BOX T95N M8S 2G/8G (2)

똑같은거 하나 더 샀다(http://blog.lvu.kr/amlogic-s905-set-top-box-t95n-m8s-2g8g/)
같은제품 다른느낌
은 S905라고 샀는데 S905X가 온거같다
한달넘게 걸린 배송에…. 왜샀는지 잊어먹었다……………..

20161114_235014

20161114_235207 20161114_235150

보드 레이아웃이랑 emmc모델이 바뀌었다. 무선랜은 8189etv 를 사용한다. 5Ghz 안된다

GXL:BL1:9ac50e:a1974b;FEAT:ADFC318C;POC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 173440

BL2 Built : 19:41:49, Jun 20 2016. 
gxl ge299011 - xiaobo.gu@droid05

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 1
CPU clk: 1200MHz
DDR3 chl: Rank0+1 @ 528MHz - PASS
DQS-corr enabled
DDR scramble enabled
Rank0: 1024MB(auto)-2T-7
Rank1: 1024MB(auto)-2T-7
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x0000d600
Load bl31 from eMMC, src: 0x00020200, des: 0x10100000, size: 0x00014400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000a8000
NOTICE:  BL3-1: v1.0(debug):c813a61
NOTICE:  BL3-1: Built : 14:39:44, Jun 16 2016
aml log : bl31 normal boot !
[Image: gxl_v1.1.3137-2517a7a 2016-06-24 11:31:11 xing.xu@droid05]
OPS=0x82
6 99 fc 9b a6 67 16 cd f a5 1a 41 [0.417452 Inits done]
secure task start!
high task start!
low task start!
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2015.01 (Aug 11 2016 - 17:47:33)

DRAM:  2 GiB
Relocation Offset is: 76ecb000
register usb cfg[0][1] = 0000000077f5faf0
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
vpp: vpp_init
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC:   aml_priv->desc_buf = 0x0000000073ecb6b0
aml_priv->desc_buf = 0x0000000073ecd9d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: gxl platform: p212 variant: 2g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 2g
      Find match dtb: 1
start dts,buffer=0000000073ed0270,dt_addr=0000000073eda270
parts: 11
00:      logo	0000000002000000 1
01:  recovery	0000000002000000 1
02:       rsv	0000000000800000 1
03:       tee	0000000000800000 1
04:     crypt	0000000002000000 1
05:      misc	0000000002000000 1
06: instaboot	0000000020000000 1
07:      boot	0000000002000000 1
08:    system	0000000040000000 1
09:     cache	0000000020000000 2
10:      data	ffffffffffffffff 4
get_dtb_struct: Get emmc dtb OK!
overide_emmc_partition_table: overide cache 
[mmc_get_partition_table] skip partition cache.
Partition table get from SPL is : 
        name                        offset              size              flag
===================================================================================
   0: bootloader                         0            400000                  0
   1: reserved                     2400000           4000000                  0
   2: cache                        6c00000          20000000                  2
   3: env                         27400000            800000                  0
   4: logo                        28400000           2000000                  1
   5: recovery                    2ac00000           2000000                  1
   6: rsv                         2d400000            800000                  1
   7: tee                         2e400000            800000                  1
   8: crypt                       2f400000           2000000                  1
   9: misc                        31c00000           2000000                  1
  10: instaboot                   34400000          20000000                  1
  11: boot                        54c00000           2000000                  1
  12: system                      57400000          40000000                  1
  13: data                        97c00000         135180000                  4
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000 
In:    serial
Out:   serial
Err:   serial
reboot_mode=cold_boot
hpd_state=0
cvbs performance type = 6, table = 0
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Multi dtb detected
      Multi dtb tool version: v2 .
      Support 2 dtbs.
        aml_dt soc: gxl platform: p212 variant: 2g
        dtb 0 soc: gxl   plat: p212   vari: 1g
        dtb 1 soc: gxl   plat: p212   vari: 2g
      Find match dtb: 1
Net:   dwmac.c9410000
wipe_data=successful
wipe_cache=successful
upgrade_step=2
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]load fb addr from dts
[OSD]failed to get fb addr for logo
[OSD]use default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[CANVAS]addr=0x3d800000 width=3840, height=2160

amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet
gpio: pin GPIOAO_2 (gpio 102) value is 1
get_cpu_id flag_12bit=1
detect sadckey ....
saradc - saradc sub-system

Usage:
saradc saradc open <channel>		- open a SARADC channel
saradc close	- close the SARADC
saradc getval	- get the value in current channel
saradc get_in_range <min> <max>	- return 0 if current value in the range of current channel

Hit Enter or space or Ctrl+C key to stop autoboot -- :  1  0 
Booting...
Unknown command 'unifykey' - try 'help'
Unknown command 'unifykey' - try 'help'
ee_gate_off ...
## Booting Android Image at 0x01080000 ...
reloc_addr =73f50440
copy done
      Amlogic multi-dtb tool
      Single dtb detected
load dtb from 0x1000000 ......
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x01080000, end = 0x020c0770
   Loading Ramdisk to 73dd9000, end 73eb920a ... OK
   Loading Device Tree to 000000001fff3000, end 000000001ffff23d ... OK
signature: 
fdt_instaboot: no instaboot image

Starting kernel ...

uboot time: 2077167 us
[    0.000000@0] Initializing cgroup subsys cpu
[    0.000000@0] Initializing cgroup subsys cpuacct
[    0.000000@0] Linux version 3.14.29 (it01@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #2 SMP PREEMPT Wed Aug 31 15:31:39 CST 2016
[    0.000000@0] CPU: AArch64 Processor [410fd034] revision 4
[    0.000000@0] no prop version_code
[    0.000000@0] bootconsole [earlycon0] enabled
[    0.000000@0] fdt Reserved memory table:
[    0.000000@0]            linux,meson-fb: 0x000000007e000000 - 0x0000000080000000  (32 MiB)
[    0.000000@0]                  linux,di: 0x000000007c200000 - 0x000000007e000000  (30 MiB)
[    0.000000@0] DI: DI reserved memory: created CMA memory pool at 0x000000007c200000, size 30 MiB
[    0.000000@0]             linux,ion-dev: 0x000000007a200000 - 0x000000007c200000  (32 MiB)
[    0.000000@0]               linux,ppmgr: 0x0000000078200000 - 0x000000007a200000  (32 MiB)
[    0.000000@0]        linux,codec_mm_cma: 0x0000000066c00000 - 0x0000000073c00000  (208 MiB)
[    0.000000@0]              linux,picdec: 0x0000000078200000 - 0x0000000078200000  (0 MiB)
[    0.000000@0] Reserved memory: incorrect alignment of CMA region
[    0.000000@0]   linux,codec_mm_reserved: 0x0000000074100000 - 0x0000000078200000  (65 MiB)
[    0.000000@0] fdt Reserved memory total:  402 MiB
[    0.000000@0] cma: Reserved 8 MiB at 66400000
[    0.000000@0] psci: probing function IDs from device-tree
[    0.000000@0] PERCPU: Embedded 12 pages/cpu @ffffffc0740a1000 s19328 r8192 d21632 u49152
[    0.000000@0] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 502232
[    0.000000@0] Kernel command line: rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive androidboot.selinux=enforcing logo=osd1,loaded,0x3d800000,576cvbs maxcpus=4 vout=576cvbs,enable hdmimode=1080p60hz cvbsmode=576cvbs hdmitx= cvbsdrv=0 androidboot.firstboot=0 jtag=apee androidboot.hardware=amlogic mac=c4:2f:ac:93:83:49 androidboot.mac=c4:2f:ac:93:83:49 
[    0.000000@0] logo: osd1
[    0.000000@0] logo: loaded
[    0.000000@0] logo: 0x3d800000
[    0.000000@0] logo: 576cvbs
[    0.000000@0] vout_serve: 576cvbs: 7
[    0.000000@0] vout_serve: enable: 1
[    0.000000@0] logo: get hdmimode: 1080p60hz
[    0.000000@0] logo: get cvbsmode: 576cvbs
[    0.000000@0] tv_vout: cvbs performance line = 0
[    0.000000@0] jtag: jtag select 3
[    0.000000@0] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000@0] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000@0] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000@0] Memory: 1595044K/2044928K available (10492K kernel code, 1141K rwdata, 3836K rodata, 1162K init, 5877K bss, 449884K reserved)
[    0.000000@0] Virtual kernel memory layout:
[    0.000000@0]     vmalloc : 0xffffff8000000000 - 0xffffff8040000000   (  1024 MB)
[    0.000000@0]     vmemmap : 0xffffff8040010000 - 0xffffff8042380000   (    35 MB)
[    0.000000@0]     modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
[    0.000000@0]     memory  : 0xffffffc000000000 - 0xffffffc07e000000   (  2016 MB)
[    0.000000@0]       .init : 0xffffffc001e80000 - 0xffffffc001fa2b80   (  1163 kB)
[    0.000000@0]       .text : 0xffffffc001080000 - 0xffffffc001e7f214   ( 14333 kB)
[    0.000000@0]       .data : 0xffffffc001fa3000 - 0xffffffc0020c0770   (  1142 kB)
[    0.000000@0] PM: Registered nosave memory: [mem 0x01080000-0x01e7efff]
[    0.000000@0] SLUB: HWalign=64, Order=0-1, MinObjects=0, CPUs=4, Nodes=1
[    0.000000@0] arch_multi_cluster:0
[    0.000000@0] Preemptible hierarchical RCU implementation.
[    0.000000@0] 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000@0] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000@0] NR_IRQS:64 nr_irqs:64 0
[    0.000000@0] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000004@0] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns
[    0.008528@0] Console: colour dummy device 80x25
[    0.012871@0] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.023447@0] pid_max: default: 32768 minimum: 301
[    0.028341@0] Security Framework initialized
[    0.032561@0] SELinux:  Initializing.
[    0.036319@0] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.043144@0] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.052807@0] device-tree: Duplicate name in /efusekey, renamed to "key0#1"
[    0.057530@0] device-tree: Duplicate name in /efusekey, renamed to "key1#1"
[    0.064487@0] device-tree: Duplicate name in /efusekey, renamed to "key2#1"
[    0.071493@0] device-tree: Duplicate name in /efusekey, renamed to "key3#1"
[    0.081677@0] Initializing cgroup subsys debug
[    0.082950@0] Initializing cgroup subsys freezer
[    0.087621@0] ftrace: allocating 36230 entries in 142 pages
[    0.135279@0] /cpus/cpu@0: Missing clock-frequency property
[    0.135322@0] /cpus/cpu@1: Missing clock-frequency property
[    0.140901@0] /cpus/cpu@2: Missing clock-frequency property
[    0.146529@0] /cpus/cpu@3: Missing clock-frequency property
[    0.152102@0] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[    0.200493@0] ftrace: Allocated trace_printk buffers
[    0.202791@0] Meson chip version = RevA (21:A - 82:0)
[    0.221120@1] CPU1: Booted secondary processor
[    0.241111@2] CPU2: Booted secondary processor
[    0.261130@3] CPU3: Booted secondary processor
[    0.261223@0] Brought up 4 CPUs
[    0.272197@0] SMP: Total of 4 processors activated.
[    0.285145@0] sched: registering cpufreq notifiers for scale-invariant loads
[    0.286676@0] instabooting: 0
[    0.300031@0] pinctrl core: initialized pinctrl subsystem
[    0.300824@0] regulator-dummy: no parameters
[    0.305056@0] NET: Registered protocol family 16
[    0.310734@0] ramoops: using module parameters
[    0.313914@0] console [pstore-1] enabled
[    0.317231@0] pstore: Registered ramoops as persistent store backend
[    0.323591@0] ramoops: attached 0x100000@0x7300000, ecc: 0/0
[    0.330592@0] aml_vdac_init: module init
[    0.333442@0] register canvas platform driver
[    0.337688@0] register rdma platform driver
[    0.343477@0] vdso: 2 pages (1 code, 1 data) at base ffffffc001fac000
[    0.348305@0] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.355975@0] DMA: preallocated 256 KiB pool for atomic allocations
[    0.362694@0] software IO TLB [mem 0x62000000-0x62400000] (4MB) mapped at [ffffffc062000000-ffffffc0623fffff]
[    0.371566@0] Serial: AMBA PL011 UART driver
[    0.376385@0] aml_i2c version: 20140813
[    0.379942@0] i2c-core: driver [pmu4] using legacy resume method
[    0.385942@0] codec_mm:codec_mm_module_init
[    0.390187@0] aml_watch_point_probe, in
[    0.394168@0] gxbb_mpll_clk: register mpll_clk_out0 success done
[    0.399838@0] gxbb_mpll_clk: register mpll_clk_out1 success done
[    0.405843@0] gxbb_mpll_clk: register mpll_clk_out2 success done
[    0.412070@0] clk_sys: register PLL sys_pll success done
[    0.417223@0] gxl_clk: [ xtal 	] ->clockrate: 24000000Hz
[    0.422562@0] gxl_clk: [ 32Khz 	] ->clockrate: 32000Hz
[    0.427715@0] gxl_clk: [ clk81 	] ->clockrate: 166666666Hz
[    0.433234@0] gxl_clk: [ fixed_pll 	] ->clockrate: 2000000000Hz
[    0.439178@0] gxl_clk: [ fclk_div2 	] ->clockrate: 1000000000Hz
[    0.445134@0] gxl_clk: [ fclk_div3 	] ->clockrate: 666666666Hz
[    0.450989@0] gxl_clk: [ fclk_div4 	] ->clockrate: 500000000Hz
[    0.456858@0] gxl_clk: [ fclk_div5 	] ->clockrate: 400000000Hz
[    0.462714@0] gxl_clk: [ fclk_div7 	] ->clockrate: 285714285Hz
[    0.468607@0] gxl_clk: clock initialization complete
[    0.473773@0] clkmsr: Gxl msr_clk_reg0=ffffff800003a75c,msr_clk_reg2=ffffff800003c764
[    0.483946@0] aml_iomap: amlogic iomap probe done
[    0.486912@0] pinmux-gxl c1109880.pinmux: Init pinux probe!
[    0.492799@0] pinmux-gxl c1109880.pinmux: Probed amlogic pinctrl driver
[    0.499039@0] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xbc)
[    0.506503@0] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xbc)
[    0.514744@0] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xbc)
[    0.522590@0] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xbc)
[    0.533439@0] codec_mm has 2 memory regions
[    0.534850@0] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_cma ok
[    0.542895@0] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_reserved ok
[    0.551536@0] codec_mm has 2 memory regions
[    0.555595@0] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_cma ok
[    0.563610@0] codec_mm codec_mm.19: assigned reserved memory node linux,codec_mm_reserved ok
[    0.574200@0] vpu: driver version: v02
[    0.575880@0] vpu: load vpu_clk: 666667000Hz(7)
[    0.580521@0] vpu: vpu_probe OK
[    0.585709@0] tv_vout: tvout_probe
[    0.586976@0] tv_vout: major number 254 for disp
[    0.591602@0] vout_notify: vout_register_server
[    0.596173@0] tv_vout: register tv module server ok
[    0.601178@0] tv_vout: tvout_probe OK
[    0.605464@0] canvas_probe reg=00000000c8838000,size=400
[    0.610118@0] canvas maped reg_base =ffffff800008e000
[    0.619445@0] rdma_probe
[    0.919648@0] bio: create slab <bio-0> at 0
[    0.920872@0] SCSI subsystem initialized
[    0.922886@0] usbcore: registered new interface driver usbfs
[    0.928007@0] usbcore: registered new interface driver hub
[    0.933581@0] usbcore: registered new device driver usb
[    0.939681@0] i2c-gpio i2c_gpio.38: using pins 172 (SDA) and 173 (SCL)
[    0.945402@0] Linux video capture interface: v2.00
[    0.950268@0] pps_core: LinuxPPS API ver. 1 registered
[    0.955196@0] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.964753@0] PTP clock support registered
[    0.969414@0] hdmitx: system: amhdmitx_init
[    0.972868@0] hdmitx: system: Ver: 2014May6
[    0.977283@0] hdmitx: system: amhdmitx_probe
[    0.981685@0] hdmitx: system: not find match init-data
[    0.986517@0] hdmitx: system: not find match pwr-ctl
[    0.991523@0] hdmitx hpd irq = 89
[    0.995447@0] hdmitx20: Mapped PHY: 0xc0800000
[    0.999303@0] hdmitx20: Mapped PHY: 0xc1104400
[    1.003795@0] hdmitx20: Mapped PHY: 0xc8100000
[    1.008219@0] hdmitx20: Mapped PHY: 0xc8834000
[    1.012679@0] hdmitx20: Mapped PHY: 0xc883a000
[    1.017149@0] hdmitx20: Mapped PHY: 0xc883c000
[    1.021608@0] hdmitx20: Mapped PHY: 0xd0100000
[    1.026067@0] hdmitx20: Mapped PHY: 0xda83a000
[    1.030772@0] avmute set to 1
[    1.033942@0] vout_serve: vout_init_module
[    1.037739@0] tv_vout: tv_set_current_vmode[756]fps_target_mode=7
[    1.043762@0] tv_vout: mode is 7,sync_duration_den=1,sync_duration_num=50
[    1.050569@0] tv_vout: already display in uboot
[    1.055123@0] vout_serve: vinfo mode is: 576cvbs
[    1.059753@0] vout_serve: init mode 576cvbs
[    1.064072@0] vout_serve: create vout attribute OK
[    1.068777@0] vout_serve: meson_vout_probe OK
[    1.073399@0] logo: logo_init
[    1.076422@0] osd_rdma: osd_rdma_init: rmda_table p=0x66441000,op=0x66441000 , v=0xffffff80000a9000
[    1.085768@0] Advanced Linux Sound Architecture Driver Initialized.
[    1.092222@0] Bluetooth: Core ver 2.18
[    1.095451@0] NET: Registered protocol family 31
[    1.099918@0] Bluetooth: HCI device and connection manager initialized
[    1.106666@0] Bluetooth: HCI socket layer initialized
[    1.111556@0] Bluetooth: L2CAP socket layer initialized
[    1.116844@0] Bluetooth: SCO socket layer initialized
[    1.122526@0] cfg80211: Calling CRDA to update world regulatory domain
[    1.128605@0] NetLabel: Initializing
[    1.132029@0] NetLabel:  domain hash size = 128
[    1.136577@0] NetLabel:  protocols = UNLABELED CIPSOv4
[    1.141977@0] NetLabel:  unlabeled traffic allowed by default
[    1.149551@0] Switched to clocksource arch_sys_counter
[    1.202215@0] [amlatvdemod..]aml_atvdemod_init.
[    1.202358@0] NET: Registered protocol family 2
[    1.206260@0] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    1.213330@0] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    1.220261@0] TCP: Hash tables configured (established 16384 bind 16384)
[    1.226983@0] TCP: reno registered
[    1.230180@0] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    1.236402@0] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    1.243434@0] NET: Registered protocol family 1
[    1.247864@0] RPC: Registered named UNIX socket transport module.
[    1.253703@0] RPC: Registered udp transport module.
[    1.258588@0] RPC: Registered tcp transport module.
[    1.263651@0] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.270370@0] aml_wifi wifi.32: [wifi_dev_probe] no power_on_pin2
[    1.276266@0] aml_wifi wifi.32: [wifi_dev_probe] set pwm as 32k output
[    1.283026@0] aml_wifi wifi.32: [wifi_dev_probe] dhd_static_buf setup
[    1.289369@0] Wifi: bcmdhd_init_wlan_mem: bcmdhd_init_wlan_mem: WIFI MEM Allocated
[    1.296951@0] aml_wifi wifi.32: [wifi_dev_probe] interrupt_pin=241
[    1.303269@0] aml_wifi wifi.32: [wifi_dev_probe] irq_num=100, irq_trigger_type=1
[    1.310573@0] aml_wifi wifi.32: [wifi_dev_probe] power_on_pin=240
[    1.316690@0] aml_wifi wifi.32: [wifi_dev_probe] clock_32k_pin=0
[    1.323211@0] aml_wifi wifi.32: [wifi_setup_dt] wifi_setup_dt
[    1.328539@0] aml_wifi wifi.32: [wifi_setup_dt] interrupt_pin(241)
[    1.334737@0] aml_wifi wifi.32: [wifi_setup_dt] power_on_pin(240)
[    1.341254@0] Unpacking initramfs...
[    1.376610@0] Freeing initrd memory: 896K (ffffffc073dd9000 - ffffffc073eb9000)
[    1.383321@0] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.384834@0] audit: initializing netlink subsys (disabled)
[    1.390460@0] audit: type=2000 audit(1.220:1): initialized
[    1.396878@0] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    1.410628@0] VFS: Disk quotas dquot_6.5.2
[    1.410937@0] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.422432@0] NFS: Registering the id_resolver key type
[    1.422520@0] Key type id_resolver registered
[    1.426475@0] Key type id_legacy registered
[    1.430719@0] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.438893@0] fuse init (API version 7.22)
[    1.443043@0] msgmni has been set to 3549
[    1.447780@0] NET: Registered protocol family 38
[    1.451178@0] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.458330@0] io scheduler noop registered
[    1.462613@0] io scheduler deadline registered
[    1.467153@0] io scheduler cfq registered (default)
[    1.530529@0] meson-rng c8834000.rng: hwrng registered
[    1.534416@0] loop: module loaded
[    1.535101@0] zram: Created 1 device(s) ...
[    1.538759@0] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.545528@0] tun: Universal TUN/TAP device driver, 1.6
[    1.549562@0] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    1.560697@0] libphy: stmmac: probed
[    1.560745@0] eth0: PHY ID 01814400 at 8 IRQ POLL (stmmac-0:08) active
[    1.566886@0] PPP generic driver version 2.4.2
[    1.570796@0] PPP BSD Compression module registered
[    1.575436@0] PPP Deflate Compression module registered
[    1.580726@0] PPP MPPE Compression module registered
[    1.585835@0] NET: Registered protocol family 24
[    1.590612@0] usbcore: registered new interface driver asix
[    1.596072@0] usbcore: registered new interface driver ax88179_178a
[    1.602594@0] usbcore: registered new interface driver cdc_ether
[    1.608381@0] usbcore: registered new interface driver net1080
[    1.614261@0] usbcore: registered new interface driver cdc_subset
[    1.620413@0] usbcore: registered new interface driver zaurus
[    1.626325@0] usbcore: registered new interface driver cdc_ncm
[    1.632258@0] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.638613@0] ehci-h20ahb: H20AHB-EHCI Host Controller driver
[    1.644906@0] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.651284@0] usbcore: registered new interface driver cdc_acm
[    1.656637@0] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.665208@0] usbcore: registered new interface driver usb-storage
[    1.671381@0] usbcore: registered new interface driver usbserial
[    1.677962@0] amlogic-new-usb2 d0078000.usb2phy: USB2 phy probe:phy_mem:0xd0078000, iomap phy_base:0xffffff80000ec000
[    1.688327@0] amlogic-new-usb3 d0078080.usb3phy: This phy has no usb port
[    1.694649@0] amlogic-new-usb3 d0078080.usb3phy: USB3 phy probe:phy_mem:0xd0078080, iomap phy_base:0xffffff80000ee080
[    1.706242@0] mousedev: PS/2 mouse device common for all mice
[    1.711688@0] usbcore: registered new interface driver xpad
[    1.716895@0] i2c /dev entries driver
[    1.720764@0] usbcore: registered new interface driver uvcvideo
[    1.726446@0] USB Video Class driver (1.1.1)
[    1.731621@0] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[    1.739343@0] Bluetooth: HCI UART driver ver 2.2
[    1.744050@0] Bluetooth: HCI H4 protocol initialized
[    1.750488@0] @@@@@@@@@@_____2______in dia_init()
[    1.753589@0] ATVR driver - init called!
[    1.757650@0] usbcore: registered new interface driver usbhid
[    1.763472@0] usbhid: USB HID core driver
[    1.767836@0] ashmem: initialized
[    1.770881@0] logger: created 256K log 'log_main'
[    1.775559@0] logger: created 256K log 'log_events'
[    1.780498@0] logger: created 256K log 'log_radio'
[    1.785444@0] logger: created 256K log 'log_system'
[    1.791448@0] meson_uart c81004c0.serial: ==uart0 reg addr = ffffff80000fa4c0
[    1.797188@0] c81004c0.serial: ttyS0 at MMIO 0xc81004c0 (irq = 225, base_baud = 1500000) is a meson_uart
[    1.812215@0] meson_uart c81004c0.serial: ttyS0 use xtal(8M) 24000000 change 0 to 115200
[    1.814843@0] console [ttyS0] enabled
[    1.814843@0] console [ttyS0] enabled
[    1.822218@0] bootconsole [earlycon0] disabled
[    1.822218@0] bootconsole [earlycon0] disabled
[    1.831340@0] meson_uart c11084c0.serial: ==uart1 reg addr = ffffff80000fc4c0
[    1.837888@0] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[    1.848181@0] hdmitx: system: hdmitx_hdcp_init
[    1.851810@0] ESM HLD: Initializing...
[    1.855287@0] ESM HLD: Registering device range 'esm'...
[    1.860567@0] ESM HLD: Device range 'esm' has been registered.
[    1.866482@0] ESM HLD: Creating class /sys/class/elliptic...
[    1.872060@0] ESM HLD: The class /sys/class/elliptic has been created.
[    1.878401@0] ESM HLD: Creating device 'esm'...
[    1.883192@0] ESM HLD: Device 'esm' has been created.
[    1.887888@0] ESM HLD: Done initializing the HLD driver.
INFO:    HDCP22 key read fail!
INFO:    p1d 0
INFO:    pd1 0
[    1.909205@0] aml_vrtc rtc.31: rtc core: registered aml_vrtc as rtc0
[    1.910828@0] secmon has 1 memory regions
[    1.913915@0] secmon: share in base: 0xffffff800010e000, share out base: 0xffffff800011a000
[    1.922333@0] secmon secmon.4: assigned reserved memory node linux,secmon ok
[    1.929141@0] secmon: probe done
[    1.932747@0] storage: storage in base: 0xffffff8001800000
[    1.937767@0] storage: storage out base: 0xffffff8001880000
[    1.943448@0] storage: storage block base: 0xffffff8001900000
[    1.948979@0] storage: probe done!
[    1.953046@0] aml_sd_emmc_probe: line 3556
[    1.956401@0] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[    1.966440@0] aml_sd_emmc_reg_init 1144
[    1.969675@0] get property:                ocr_avail, value:0x00200080
[    1.976063@0] get property:                    f_min, value:400000
[    1.982347@0] get property:                    f_max, value:100000000
[    1.988569@0] get property:             max_req_size, value:0x00020000
[    1.995044@0] get property:                   irq_in, value:3
[    2.000736@0] get property:                  irq_out, value:5
[    2.006565@0] get property:                  gpio_cd, str:
[    2.011865@0] get property:                  pinname, str:sd
[    2.017464@0] get property:                 jtag_pin, str:
[    2.023031@0] get property:                card_type, value:5
[    2.028591@0] get property:                gpio_dat3, str:
[    2.034044@0] sd:pdata->caps = 7
[    2.037213@0] sd:pdata->caps2 = 0
[    2.080792@1] [aml_is_card_insert] card OUT
[    2.080882@0] [aml_is_card_insert] card OUT
[    2.083643@0] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.089295@0] aml_sd_emmc_probe: line 3556
[    2.093720@0] aml_sd_emmc_reg_init 1144
[    2.097167@0] get property:                ocr_avail, value:0x00200080
[    2.103748@0] get property:                    f_min, value:300000
[    2.109715@0] get property:                    f_max, value:100000000
[    2.116090@0] get property:             max_req_size, value:0x00020000
[    2.122699@0] get property:                  pinname, str:emmc
[    2.128339@0] get property:                card_type, value:1
[    2.134048@0] get property:                gpio_dat3, str:
[    2.139464@0] get property:                 hw_reset, str:
[    2.145065@0] emmc:pdata->caps = c0000d47
[    2.148869@0] emmc:pdata->caps2 = 18060
[    2.152679@0] storage 1, boot 1
[    2.155764@0] get_storage_dev return 1
[    2.199579@0] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.199784@0] aml_emmc_hw_reset 1486
[    2.208735@0] aml_sd_emmc_probe: line 3556
[    2.209154@0] aml_sd_emmc_reg_init 1144
[    2.211348@0] get property:                ocr_avail, value:0x00200080
[    2.217698@0] get property:                    f_min, value:400000
[    2.223989@0] get property:                    f_max, value:200000000
[    2.230137@0] get property:             max_req_size, value:0x00020000
[    2.236601@0] get property:                  pinname, str:sdio
[    2.242584@0] get property:                card_type, value:3
[    2.248214@0] sdio:pdata->caps = 7810f
[    2.251869@0] sdio:pdata->caps2 = 0
[    2.267347@1] emmc: BKOPS_EN bit is not set
[    2.274345@1] emmc: try set sd/emmc to DDR mode
[    2.274950@1] emmc: new DDR MMC card at address 0001
[    2.278154@1] emmc: clock 50000000, 8-bit-bus-width
 
[    2.283592@1] mmcblk0: emmc:0001 EMS008 7.20 GiB 
[    2.288047@1] mmcblk0boot0: emmc:0001 EMS008 partition 1 4.00 MiB
[    2.293974@1] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.299792@2] mmcblk0boot1: emmc:0001 EMS008 partition 2 4.00 MiB
[    2.300301@1] ion_dev has 1 memory regions
[    2.310023@2] mmcblk0rpmb: emmc:0001 EMS008 partition 3 512 KiB
[    2.312559@1] fb: osd_init_module
[    2.312757@1] fb: viu vsync irq: 35
[    2.312766@1] meson-fb has 1 memory regions
[    2.312823@1] meson-fb meson-fb.16: assigned reserved memory node linux,meson-fb ok
[    2.312842@1] fb: osd_probe vinfo:ffffffc0020410b8
[    2.312846@1] fb: init fbdev bpp is:32
[    2.343863@2]  mmcblk0: unknown partition table
[    2.347900@1] [mmc_read_partition_tbl] mmc read partition OK!
[    2.352775@1] add_emmc_partition
[    2.356204@1] [mmcblk0p01]           bootloader  offset 0x000000000000, size 0x000000400000 
[    2.361976@0] fb: osd probe OK
[    2.367465@1] ge2d: ge2d_init_module
[    2.370892@1] ge2d: ge2d_dev major:243
[    2.371114@0] [mmcblk0p02]             reserved  offset 0x000002400000, size 0x000004000000 
[    2.371335@0] [mmcblk0p03]                cache  offset 0x000006c00000, size 0x000020000000 
[    2.371506@0] [mmcblk0p04]                  env  offset 0x000027400000, size 0x000000800000 
[    2.371675@0] [mmcblk0p05]                 logo  offset 0x000028400000, size 0x000002000000 
[    2.371851@0] [mmcblk0p06]             recovery  offset 0x00002ac00000, size 0x000002000000 
[    2.372010@0] [mmcblk0p07]                  rsv  offset 0x00002d400000, size 0x000000800000 
[    2.372176@0] [mmcblk0p08]                  tee  offset 0x00002e400000, size 0x000000800000 
[    2.372342@0] [mmcblk0p09]                crypt  offset 0x00002f400000, size 0x000002000000 
[    2.372502@0] [mmcblk0p10]                 misc  offset 0x000031c00000, size 0x000002000000 
[    2.372670@0] [mmcblk0p11]            instaboot  offset 0x000034400000, size 0x000020000000 
[    2.372840@0] [mmcblk0p12]                 boot  offset 0x000054c00000, size 0x000002000000 
[    2.373001@0] [mmcblk0p13]               system  offset 0x000057400000, size 0x000040000000 
[    2.373162@0] [mmcblk0p14]                 data  offset 0x000097c00000, size 0x000135180000 
[    2.373218@0] card key: card_blk_probe.
[    2.373224@0] emmc_key_init:524 emmc key lba_start:0x12020,lba_end:0x12220
[    2.373227@0] emmc key: emmc_key_init:549 ok.
[    2.373489@0] amlmmc_dtb_init: register dtb chardev
[    2.373593@0] amlmmc_dtb_init: register dtb chardev OK
[    2.373593@0] Exit aml_emmc_partition_ops OK.
[    2.513081@1]  mmcblk0boot1: unknown partition table
[    2.513095@0] ge2d: ge2d clock is 400 MHZ
[    2.513101@0] ge2d: ge2d: pdev=ffffffc06246bc00, irq=182, rstc=0xffffffc06265a1c0, clk=ffffffc06243bb00
[    2.513179@0] ge2d: mapped phy: 0xd0160000
[    2.513188@0] ge2d: ge2d start monitor
[    2.538558@2] ge2d: ge2d workqueue monitor start
[    2.539227@1] sysled: module init
[    2.539447@1] sysled: led_gpio = 228
[    2.539449@1] sysled: active_low = 0
[    2.540151@1] aml_led early_suspend init 
[    2.540160@1] sysled: module probed ok
[    2.540980@1] pwmled: module init
[    2.541121@1] codec:Amlogic A/V streaming port init
[    2.541736@1]  mmcblk0boot0: unknown partition table
[    2.542152@1] clear_emmc_wait_flag
[    2.543744@1] codec:get gate demux control ok ffffffc06161c7c0
[    2.543751@1] codec:get gate parser_top control ok ffffffc06161c840
[    2.543756@1] codec:get gate vpu_intr control ok ffffffc06161c8c0
[    2.543763@1] codec:get gate vdec control ok ffffffc06161c940
[    2.544715@1] codec:[tsync_pcr_init]init success.
[    2.544719@1] codec:amvideocap_init_module
[    2.544920@1] codec:amvideocap_probe,amvideocap
[    2.544926@1] codec:use cma buf.
[    2.544928@1] codec:amvideocap_dev_register
[    2.547522@1] amvenc_avc_probe -- reserved memory config fail.
[    2.547529@1] amvenc_avc - cma memory pool size: 40 MB
[    2.547555@1] encode_wq_init.
[    2.547564@1] encode start monitor.
[    2.547660@3] encode workqueue monitor start.
[    2.548311@1] jpegenc module init
[    2.548804@1] codec:picdec_driver_probe called.
[    2.548810@1] picdec has 1 memory regions
[    2.548857@1] codec:picdec_driver_probe done.
[    2.550266@1] codec:create_ge2d_work_queue video task ok
[    2.550806@1] codec:used fix clk for vdec clk source!
[    2.550819@1] codec:register clk_set_setting cpu[33]
[    2.551206@1] vpu_init
[    2.551210@1] The chip is not support hevc encoder
[    2.551217@1] DI: di_module_init ok.
[    2.551227@1] DI: di_module_init: major 236
[    2.551819@1] DI: di_probe
[    2.552047@1] deinterlace has 1 memory regions
[    2.552110@1] deinterlace deinterlace.26: assigned reserved memory node linux,di ok
[    2.552139@1] di_irq:78,timerc_irq:38
[    2.707657@0] rdma_register, rdma_table_addr ffffff8000179000 rdma_table_addr_phy 66448000 reg_buf ffffffc061544000
[    2.717908@0] rdma_register success, handle 1 table_size 8192
[    2.723712@0] DI: di_probe allocate rdma channel 1.
[    2.728381@0] DI: DI hw version 2.
[    2.731771@0] 0x000000db:Y=db,U=0,V=0
[    2.735364@0] 0x000000dc:Y=dc,U=0,V=0
[    2.738986@0] 0x000000dd:Y=dd,U=0,V=0
[    2.742775@0] 0x000000de:Y=de,U=0,V=0
[    2.746231@0] 0x000000df:Y=df,U=0,V=0
[    2.749861@0] 0x000000e0:Y=e0,U=0,V=0
[    2.753476@0] 0x000000e1:Y=e1,U=0,V=0
[    2.757099@0] 0x000000e2:Y=e2,U=0,V=0
[    2.760733@0] 0x000000e3:Y=e3,U=0,V=0
[    2.764485@0] 0x000000f0:Y=f0,U=0,V=0
[    2.767969@0] 0x000000f1:Y=f1,U=0,V=0
[    2.771596@0] 0x000000f2:Y=f2,U=0,V=0
[    2.775211@0] 0x000000f3:Y=f3,U=0,V=0
[    2.778833@0] 0x000000f4:Y=f4,U=0,V=0
[    2.782602@0] 0x000000f5:Y=f5,U=0,V=0
[    2.786079@0] 0x000000f6:Y=f6,U=0,V=0
[    2.789716@0] 0x000000f7:Y=f7,U=0,V=0
[    2.793323@0] 0x000000f8:Y=f8,U=0,V=0
[    2.796946@0] 0x000000f9:Y=f9,U=0,V=0
[    2.800576@0] 0x000000fa:Y=fa,U=0,V=0
[    2.804330@0] 0x000000fb:Y=fb,U=0,V=0
[    2.807814@0] 0x000000fc:Y=fc,U=0,V=0
[    2.811617@0] DI: di_probe here.
[    2.815074@1] efusekeynum: 4
[    2.817482@1] efusekeyname:             mac	offset:     0	size:     6
[    2.823877@1] efusekeyname:          mac_bt	offset:     6	size:     6
[    2.830251@1] efusekeyname:        mac_wifi	offset:    12	size:     6
[    2.836625@1] efusekeyname:            usid	offset:    18	size:    16
[    2.843357@1] efuse efuse.10: probe OK!
[    2.847238@1] key unify config unifykey-num is 14
[    2.851520@1] key unify fact unifykey-num is 14
[    2.855945@1] aml_unifykeys_probe:1202=============unifykey_devno:ea00000
[    2.863002@1] 6unifykey: device unifykeys created ok
[    2.867827@1] 6aml_unifykeys_init done!
[    2.871566@1] PPMGRDRV: warn: ppmgr module init func called
[    2.877227@1] PPMGRDRV: err: ppmgr_driver_probe called
[    2.882174@1] ppmgr has 1 memory regions
[    2.886076@1] PPMGRDRV: info: ppmgr_dev major:233
[    2.891057@1] PPMGRDRV: info: ppmgr_probe done
[    2.897298@1] QBled: qbled Driver init.
[    2.899478@1] amlogic rfkill init
[    2.902339@1] enter bt_probe of_node
[    2.905723@1] not get gpio_en
[    2.908640@1] power on valid level is high
[    2.912974@1] Bluetooth: BlueSleep Mode Driver Ver 1.2
[    2.918343@1] ionvideo-000: V4L2 device registered as video13
[    2.923492@1] ionvid: info: Video Technology Magazine Ion Video
[    2.929340@1] ionvid: info: Capture Board ver 1.0 successfully loaded
[    2.935754@1] audio_dsp: [dsp]register dsp to char divece(257)
[    2.942362@1] amaudio: amaudio: driver amaudio succuess!
[    2.947134@1] amlvid:err: amlvideo_init called
[    2.951006@1] amlvid:err: amlvideo_create_instance called
[    2.956510@1] amlvid:err: v4l2_dev.name=:amlvideo-000
[    2.961707@1] amlvideo-000: V4L2 device registered as video10
[    2.967677@1] vdin_drv_init: major 232
[    2.971368@1] vdin_drv_init: vdin driver init done
[    2.975663@1] tvafe_drv_init: major 231
[    2.979908@1] tvafe: tvafe_init.
[    2.983054@1] hdmirx: hdmirx_init.
[    2.986010@1] ESM HLD: Initializing...
[    2.989728@1] ESM HLD: Registering device range 'esm_rx'...
[    2.995242@1] ESM HLD: Device range 'esm_rx' has been registered.
[    3.001279@1] ESM HLD: Creating class /sys/class/elliptic_rx...
[    3.007286@1] ESM HLD: The class /sys/class/elliptic_rx has been created.
[    3.013876@1] ESM HLD: Creating device 'esm_rx'...
[    3.018776@1] ESM HLD: Device 'esm_rx' has been created.
[    3.023883@1] ESM HLD: Done initializing the HLD driver.
[    3.029522@1] [viuin..]viuin_init_module viuin module init
[    3.035117@1] [viuin..]viuin_probe probe ok.
[    3.038886@1] module init
[    3.041556@1] 
[    3.041556@1]  VECM probe start
[    3.046488@1] aml_vecm_probe: ok
[    3.049762@1] nandphy: storage 1, boot 1
[    3.049762@1] 
[    3.054837@1] nandphy: get_storage_dev return 1
[    3.054837@1] 
[    3.060973@1] aml_nand d0074800.nand: do not init nand
[    3.066559@1] saradc c1108680.saradc: initialized by BL30
[    3.071420@1] saradc c1108680.saradc: calibration start:
[    3.076698@1] saradc c1108680.saradc: nominal=0, value=5
[    3.081968@1] saradc c1108680.saradc: nominal=256, value=251
[    3.087564@1] saradc c1108680.saradc: nominal=512, value=500
[    3.093179@1] saradc c1108680.saradc: nominal=768, value=750
[    3.098777@1] saradc c1108680.saradc: nominal=1023, value=999
[    3.104435@1] saradc c1108680.saradc: calibration end: coef=4202
[    3.110698@1] remote: Driver init
[    3.113771@1] remote: platform_data g_remote_ao_offset=580
[    3.119091@1] remote: platform_data irq =228
[    3.123361@1] remote: set drvdata completed
[    3.127553@1] remote: device_create_file completed 
[    3.132814@1] input: aml_keypad as /devices/meson-remote.12/input/input0
[    3.139418@1] remote: input_register_device completed 
[    3.144336@1] remote: set_remote_mode[74]
[    3.148269@1] remote: remote config major:228
[    3.152950@1] remote: physical address:0x61a46000
[    3.158073@1] gpio-key gpio_keypad.48: gpio_key: 0 name(power) pin()
[    3.163619@1] gpio-key gpio_keypad.48: amlogic_gpio_name_map_num pin 0!::
[    3.170371@1] gpio-key gpio_keypad.48: gpio_key: 0 power(147)
[    3.176051@1] gpio-key gpio_keypad.48: start setup_timer
[    3.181288@1] gpio-key gpio_keypad.48: power key(116) registed.
[    3.187421@1] input: gpio_keypad as /devices/gpio_keypad.48/input/input1
[    3.193987@1] gpio-key gpio_keypad.48: gpio keypad register input device completed.
[    3.201396@1] input input1: gpio keypad major:227
[    3.207601@1] Sensor: lsm303d_init
[    3.209756@1] Sensor: stk8313_init
[    3.212857@1] Sensor: stk831x_init
[    3.216220@1] Sensor: mxc622x_acc_init
[    3.219967@1] Sensor: mxc6255xc_acc_init
[    3.223910@1] Sensor: l3gd20_gyr_init
[    3.228578@1] aml dvb init
[    3.230694@1] Amlogic Demod DVB-T/C DebugIF Init
[    3.234823@1] Amlogic Demod DVB-T/C DebugIF Init ok----------------
[    3.241963@1] jtag: module init
[    3.244083@1] jtag: pinctrl setup apee
[    3.247605@1] jtag: set state 3
efuse_pw_en: 0x3
WARNING! efuse bits is disabled
Enable A53 JTAG to EE
[    3.263067@0] jtag: module probed ok
[    3.263536@1] cpuinfo: probe done
[    3.264687@1] defendkey c8834500.defendkey: defendkey_devno:df00000
[    3.270816@1] defendkey c8834500.defendkey: defendkey: device defendkey created ok
[    3.278249@1] defendkey: driver init
[    3.281582@1] input input1: key 116 up
[    3.286130@1] input: cec_input as /devices/virtual/input/input2
[    3.291458@1] cectx aocec: no hdmirx reg resource
[    3.295778@1] cectx aocec: no hhi reg resource
[    3.300274@1] cectx aocec: can't find hdmirx
[    3.305411@1] cec: wake up flag:0
[    3.308635@1] aml_aes_dma c883e000.aml_aes: Aml AES_dma
[    3.313646@1] aml_tdes_dma c883e000.aml_tdes: Aml TDES_dma
[    3.319078@1] aml_sha_dma c883e000.aml_sha: Aml SHA1/SHA224/SHA256 dma
[    3.325465@1] usbcore: registered new interface driver snd-usb-audio
[    3.332838@1] aml_codec_T9015 c8832000.t9015: aml_T9015_audio_codec_probe
[    3.340786@1] aml_spdif_dai: enterd aml_spdif_play,set_clock:-1,sample_rate=4
[    3.344871@1] aml_spdif_dai: set normal 512 fs /4 fs
[    3.349806@1] aml_audio_hw: IEC958 16bit
[    3.353650@1] hdmitx: audio: aout notify rate 48000
[    3.358477@1] hdmitx: audio: aout notify size 16
[    3.363056@1] hdmitx: audio: aout notify format CT_PCM
[    3.579822@1] aml_snd_card: headphone detection disable=1
[    3.579862@1] aml_snd_card: no spk event delay time set
[    3.585447@1] aml_snd_m8_card aml_m8_snd.47: T9015-audio-hifi <-> I2S.40 mapping ok
[    3.592892@1] aml_snd_m8_card aml_m8_snd.47: dit-hifi <-> SPDIF.41 mapping ok
[    3.599616@1] aml_snd_m8_card aml_m8_snd.47: pcm2bt-pcm <-> PCM.42 mapping ok
[    3.606519@1] aml_snd_m8_card aml_m8_snd.47: ASoC: no source widget found for LOUTL
[    3.614132@1] aml_snd_m8_card aml_m8_snd.47: ASoC: Failed to add route LOUTL -> direct -> Ext Spk
[    3.622897@1] aml_snd_m8_card aml_m8_snd.47: ASoC: no source widget found for LOUTR
[    3.630482@1] aml_snd_m8_card aml_m8_snd.47: ASoC: Failed to add route LOUTR -> direct -> Ext Spk
WARNING: Unimplemented Sip Call: 0x82000035
WARNING: Unimplemented Sip Call: 0x82000035
[    3.751763@1] aml_snd_card: audio use jtag pinmux as i2s output, read val =ffffffff
WARNING: Unimplemented Sip Call: 0x82000036
[    3.764032@1] GACT probability NOT on
[    3.766866@1] Mirror/redirect action on
[    3.770682@1] u32 classifier
[    3.773494@1]     Actions configured
[    3.777035@1] Netfilter messages via NETLINK v0.30.
[    3.781931@1] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    3.788655@1] ctnetlink v0.93: registering with nfnetlink.
[    3.794165@1] xt_time: kernel timezone is -0000
[    3.798085@1] ipip: IPv4 over IPv4 tunneling driver
[    3.803722@1] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.808386@1] arp_tables: (C) 2002 David S. Miller
[    3.813070@1] TCP: cubic registered
[    3.816447@1] Initializing XFRM netlink socket
[    3.821954@1] NET: Registered protocol family 10
[    3.826630@1] mip6: Mobile IPv6
[    3.828550@1] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    3.834295@1] sit: IPv6 over IPv4 tunneling driver
[    3.840491@1] NET: Registered protocol family 17
[    3.843405@1] NET: Registered protocol family 15
[    3.848053@1] Bridge firewalling registered
[    3.852228@1] Bluetooth: RFCOMM TTY layer initialized
[    3.857091@1] Bluetooth: RFCOMM socket layer initialized
[    3.862392@1] Bluetooth: RFCOMM ver 1.11
[    3.866222@1] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.871657@1] Bluetooth: BNEP filters: protocol multicast
[    3.877009@1] Bluetooth: BNEP socket layer initialized
[    3.882117@1] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.888128@1] Bluetooth: HIDP socket layer initialized
[    3.893289@1] l2tp_core: L2TP core driver, V2.0
[    3.897702@1] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[    3.902618@1] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[    3.908333@1] l2tp_netlink: L2TP netlink interface
[    3.913118@1] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[    3.919112@1] l2tp_debugfs: L2TP debugfs support
[    3.923683@1] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[    3.930285@1] NET: Registered protocol family 35
[    3.934865@1] Key type dns_resolver registered
[    3.940954@1] Registering SWP/SWPB emulation handler
[    3.944798@1] regulator-dummy: disabling
[    3.948398@1] aml_vrtc rtc.31: setting system clock to 2015-01-01 00:00:06 UTC (1420070406)
[    3.957445@1] cpufreq-scpi cpufreq-meson.7: enter  cpufreq
[    3.961781@1] cpufreq-scpi cpufreq-meson.7: probe  cpufreq okay
[    3.970704@0] gxbb_pm: enter meson_pm_probe!
[    3.971821@0] gxbb_pm: meson_pm_probe done
[    3.976588@0] cpucore_cooling_register, max_cpu_core_num:4
[    3.996612@0] aml_istbt_dev_ready NULL
[    3.996669[    4.001456@0] meson_uart c81004c0.serial: ttyS0 use xtal(8M) 24000000 change 115200 to 115200
[    4.005029@0] Freeing unused kernel memory: 1160K (ffffffc001e80000 - ffffffc001fa2000)
[    4.029786@2] init: init started!
[    4.184376@2] audit: type=1403 audit(1420070406.730:2): policy loaded auid=4294967295 ses=4294967295
[    4.188347@2] init: (Initializing SELinux non-enforcing took 0.16s.)
[    4.200842@3] init: init second stage started!
[    4.201267@3] init: property_set("ro.boot.selinux", "enforcing" failed
[    4.237753@3] init: waitpid failed: No child processes
[    4.237995@3] init: (Loading properties from /default.prop took 0.00s.)
[    4.245694@3] init: (Parsing /init.environ.rc took 0.00s.)
[    4.249479@3] init: (Parsing /init.usb.rc took 0.00s.)
[    4.255352@3] init: (Parsing init.amlogic.usb.rc took 0.00s.)
[    4.260457@3] init: (Parsing init.amlogic.usb.rc took 0.00s.)
[    4.265738@3] init: (Parsing init.amlogic.board.rc took 0.01s.)
[    4.271860@3] init: (Parsing init.amlogic.usb.rc took 0.00s.)
[    4.277291@3] init: (Parsing init.amlogic.wifi.rc took 0.01s.)
[    4.283156@3] init: could not import file 'init.mtk.rc' from '/init.amlogic.rc'
[    4.290328@3] init: (Parsing /init.amlogic.rc took 0.04s.)
[    4.296131@3] init: (Parsing /init.usb.configfs.rc took 0.00s.)
[    4.301726@3] init: (Parsing /init.zygote32.rc took 0.00s.)
[    4.307220@3] init: (Parsing /init.trace.rc took 0.00s.)
[    4.312412@3] init: (Parsing /init.rc took 0.07s.)
[    4.317335@3] init: SELinux: Could not get canonical path /adb_keys restorecon: No such file or directory.
[    4.326948@3] init: Starting service 'ueventd'...
[    4.333393@1] ueventd: ueventd started!
[    4.948317@1] ueventd: Coldboot took 0.61s.
[    4.958406@3] meson_uart c81004c0.serial: ttyS0 use xtal(8M) 24000000 change 115200 to 115200
[    4.995073@3] [aml_sd_emmc_irq] emmc: warning... data crc, vstat:0xe1ff007a, virqc:3fff
[    4.997253@0] [aml_sd_emmc_irq] @ cmd 18 with ffffffc0614feb10; stop 0, status 4
[    5.004748@0] [aml_host_bus_fsm_show] emmc: err: wait for irq service, bus_fsm:0x8
[    5.012081@0] [mmc_cmd_LBA_show] emmc: cmd 0x12, arg 0x2ba230, operation is in [system] disk!
[    5.020713@1] aml_sd_emmc_data_thread 2614 emmc: cmd:18
[    5.025892@1] [aml_sd_emmc_data_thread] aml_sd_emmc_data_thread() 2630: set 1st retry!
[    5.033791@1] [aml_sd_emmc_data_thread] retry cmd 18 the 10-th time(s)
[    5.040206@1] emmc: retry, rx_phase 0 -> 1
[    5.044276@1] aml_sd_emmc_data_thread : 2561
[    5.048494@1] emmc: req failed (CMD18): -84, retrying...
[    5.056828@0] EXT4-fs (mmcblk0p13): mounted filesystem with ordered data mode. Opts: (null)
[    5.062455@0] fs_mgr: __mount(source=/dev/block/system,target=/system,type=ext4)=0
[    5.070293@0] EXT4-fs (mmcblk0p14): Ignoring removed nomblk_io_submit option
[    5.302562@0] EXT4-fs (mmcblk0p14): recovery complete
[    5.303946@0] EXT4-fs (mmcblk0p14): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=remount-ro
[    5.312876@0] fs_mgr: check_fs(): mount(/dev/block/data,/data,ext4)=0: Success
[    5.364726@2] fs_mgr: check_fs(): unmount(/data) succeeded
[    5.366474@2] fs_mgr: Running /system/bin/e2fsck on /dev/block/data
[    5.377978@0] audit: type=1400 audit(1420070407.920:3): avc:  denied  { search } for  pid=3564 comm="e2fsck" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:fsck:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    5.462375@2] e2fsck: e2fsck 1.42.9 (28-Dec-2013)
[    5.462375@2] 
[    5.463123@2] e2fsck: /dev/block/data: clean, 1489/316992 files, 262281/1266048 blocks
[    5.463123@2] 
[    5.473319@2] EXT4-fs (mmcblk0p14): Ignoring removed nomblk_io_submit option
[    5.484625@2] EXT4-fs (mmcblk0p14): mounted filesystem with ordered data mode. Opts: nodelalloc,nomblk_io_submit,errors=panic
[    5.490943@2] fs_mgr: __mount(source=/dev/block/data,target=/data,type=ext4)=0
[    5.498984@2] EXT4-fs (mmcblk0p3): Ignoring removed nomblk_io_submit option
[    5.516493@2] EXT4-fs (mmcblk0p3): recovery complete
[    5.517287@2] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=remount-ro
[    5.526637@2] fs_mgr: check_fs(): mount(/dev/block/cache,/cache,ext4)=0: Success
[    5.590992@3] fs_mgr: check_fs(): unmount(/cache) succeeded
[    5.591069@3] fs_mgr: Running /system/bin/e2fsck on /dev/block/cache
[    5.619745@3] e2fsck: e2fsck 1.42.9 (28-Dec-2013)
[    5.619745@3] 
[    5.620493@3] e2fsck: /dev/block/cache: clean, 17/32768 files, 4213/131072 blocks
[    5.620493@3] 
[    5.630280@3] EXT4-fs (mmcblk0p3): Ignoring removed nomblk_io_submit option
[    5.640746@3] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: nodelalloc,nomblk_io_submit,errors=panic
[    5.647651@3] fs_mgr: __mount(source=/dev/block/cache,target=/cache,type=ext4)=0
[    5.662001@1] audit: type=1400 audit(1420070408.210:4): avc:  denied  { search } for  pid=3572 comm="mkswap" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    5.698399@3] Adding 511996k swap on /dev/block/zram0.  Priority:-1 extents:1 across:511996k SS
[    5.704751@1] audit: type=1400 audit(1420070408.250:5): avc:  denied  { search } for  pid=3573 comm="make_ext4fs" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:make_ext4fs:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    5.759180@3] EXT4-fs (zram0): mounted filesystem with ordered data mode. Opts: (null)
[    5.771893@2] audit: type=1400 audit(1420070408.320:6): avc:  denied  { search } for  pid=3577 comm="logd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:logd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    5.777653@3] init: /recovery not specified in fstab
[    5.854916@3] logd.auditd: start
[    5.882398@0] type=1400 audit(1420070408.430:7): avc: denied { search } for pid=3584 comm="tzdatacheck" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:tzdatacheck:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    5.923563@3] dig: dig start!
[    6.049344@3] mali-utgard d00c0000.mali: set min pp to default 1
[    6.049757@3] mali-utgard d00c0000.mali: set min clk default to 0
[    6.055850@3] mali-utgard d00c0000.mali: max clk set 5
[    6.060860@3] mali-utgard d00c0000.mali: turbo clk set to 6
[    6.066357@3] mali-utgard d00c0000.mali: default clk set to 2
[    6.075748@2] gpu cooling register okay with err=0
[    6.077205@2] gpu core cooling register okay with err=0
[    6.082683@2] Mali: Mali device driver loaded
[    6.091906@1] random: init urandom read with 69 bits of entropy available
[    6.137217@1] meson_uart c81004c0.serial: ttyS0 use xtal(8M) 24000000 change 115200 to 115200
[    6.138398@3] binder: 3630:3630 transaction failed 29189, size 0-0
[    6.149410@0] amlkey_init() enter!
[    6.149954@0] amlkey_init() storagekey_info.buffer=ffffff8001900000, storagekey_info.size = 40000!
[    6.158785@3] logd.daemon: reinit
[    6.158905@0] type=1400 audit(1420070408.700:8): avc: denied { search } for pid=3632 comm="lmkd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:lmkd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.159841@0] type=1400 audit(1420070408.700:9): avc: denied { search } for pid=3633 comm="servicemanager" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:servicemanager:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.160436@0] type=1400 audit(1420070408.700:10): avc: denied { search } for pid=3629 comm="logd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:logd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.165820@1] emmc_key_read:426, read ok
[    6.168365@1] vfm_map_store:rm default
[    6.168407@1] vfm_map_store:add default decoder ppmgr deinterlace amvideo
[    6.168650@1] init: property 'ro.usb.vendor.string' doesn't exist while expanding '${ro.usb.vendor.string}'
[    6.168664@1] init: cannot expand '${ro.usb.vendor.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/vendor_string'
[    6.168679@1] init: property 'ro.usb.product.string' doesn't exist while expanding '${ro.usb.product.string}'
[    6.168689@1] init: cannot expand '${ro.usb.product.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/product_string'
[    6.168753@1] init: property_set("ro.radio.noril", "true" failed
[    6.170552@1] init: Warning!  Service fd628 needs a SELinux domain defined; please fix!
[    6.172977@0] type=1400 audit(1420070408.720:11): avc: denied { search } for pid=3634 comm="surfaceflinger" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.175150@1] init: property 'ro.usb.vendor.string' doesn't exist while expanding '${ro.usb.vendor.string}'
[    6.175167@1] init: cannot expand '${ro.usb.vendor.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/vendor_string'
[    6.175182@1] init: property 'ro.usb.product.string' doesn't exist while expanding '${ro.usb.product.string}'
[    6.175192@1] init: cannot expand '${ro.usb.product.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/product_string'
[    6.175284@1] init: property 'ro.usb.vendor.string' doesn't exist while expanding '${ro.usb.vendor.string}'
[    6.175295@1] init: cannot expand '${ro.usb.vendor.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/vendor_string'
[    6.175309@1] init: property 'ro.usb.product.string' doesn't exist while expanding '${ro.usb.product.string}'
[    6.175319@1] init: cannot expand '${ro.usb.product.string}' while writing to '/sys/class/android_usb/android0/f_mass_storage/product_string'
[    6.179827@1] init: cannot find '/system/bin/debuggerd64', disabling 'debuggerd64'
[    6.179893@1] init: cannot find '/system/bin/rild', disabling 'ril-daemon'
[    6.186637@1] init: cannot find '/system/bin/install-recovery.sh', disabling 'flash_recovery'
[    6.189407@0] type=1400 audit(1420070408.730:12): avc: denied { search } for pid=3641 comm="mediaserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:mediaserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.196523@1] init: Warning!  Service ddrtest needs a SELinux domain defined; please fix!
[    6.198143@1] init: Warning!  Service suroot needs a SELinux domain defined; please fix!
[    6.200182@1] init: cannot find '/system/bin/tee-supplicant', disabling 'tee_supplicant'
[    6.211824@0] type=1400 audit(1420070408.740:13): avc: denied { execute_no_trans } for pid=3647 comm="init" path="/system/bin/ddrtest.sh" dev="mmcblk0p13" ino=150 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
[    6.212560@0] type=1400 audit(1420070408.750:14): avc: denied { search } for pid=3639 comm="debuggerd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:debuggerd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.213283@0] type=1400 audit(1420070408.760:15): avc: denied { search } for pid=3643 comm="keystore" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:keystore:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.214964@1] init: cannot find '/system/xbin/perfprofd', disabling 'perfprofd'
[    6.222417@1] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[    6.236595@0] type=1400 audit(1420070408.780:16): avc: denied { search } for pid=3646 comm="imageserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:imageserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.240293@0] type=1400 audit(1420070408.790:17): avc: denied { search } for pid=3640 comm="drmserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:drmserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.262602@0] type=1400 audit(1420070408.810:18): avc: denied { search } for pid=3645 comm="pppoe_wrapper" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:pppoe_wrapper:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.263431@0] type=1400 audit(1420070408.810:19): avc: denied { search } for pid=3645 comm="pppoe_wrapper" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:pppoe_wrapper:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.279453@0] type=1400 audit(1420070408.820:20): avc: denied { search } for pid=3643 comm="keystore" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:keystore:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.292994@0] type=1400 audit(1420070408.840:21): avc: denied { search } for pid=3641 comm="mediaserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:mediaserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.294274@0] type=1400 audit(1420070408.840:22): avc: denied { search } for pid=3650 comm="app_process" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.332008@0] warning: `su' uses 32-bit capabilities (legacy support in use)
[    6.336520@0] type=1400 audit(1420070408.880:23): avc: denied { search } for pid=3638 comm="netd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:netd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.339518@0] type=1400 audit(1420070408.880:24): avc: denied { search } for pid=3638 comm="netd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:netd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.383678@1] remote: cur_mode = 0
[    6.383690@1] remote: set_remote_mode[74]
[    6.387751@1] type=1400 audit(1420070408.930:25): avc: denied { search } for pid=3634 comm="surfaceflinger" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.389450@1] type=1400 audit(1420070408.930:26): avc: denied { search } for pid=3640 comm="drmserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:drmserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.432517@1] type=1400 audit(1420070408.980:27): avc: denied { search } for pid=3646 comm="imageserver" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:imageserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.636999@1] type=1400 audit(1420070409.180:28): avc: denied { search } for pid=3663 comm="toolbox" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    6.672763@1] type=1400 audit(1420070409.220:29): avc: denied { read } for pid=3663 comm="toolbox" name="system" dev="tmpfs" ino=8561 scontext=u:r:toolbox:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[    6.673801@1] type=1400 audit(1420070409.220:30): avc: denied { open } for pid=3663 comm="toolbox" path="/dev/block/system" dev="tmpfs" ino=8561 scontext=u:r:toolbox:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[    6.673966@1] type=1400 audit(1420070409.220:31): avc: denied { ioctl } for pid=3663 comm="toolbox" path="/dev/block/system" dev="tmpfs" ino=8561 ioctlcmd=125d scontext=u:r:toolbox:s0 tcontext=u:object_r:block_device:s0 tclass=blk_file permissive=1
[    6.674072@1] type=1400 audit(1420070409.220:32): avc: denied { remount } for pid=3663 comm="toolbox" scontext=u:r:toolbox:s0 tcontext=u:object_r:labeledfs:s0 tclass=filesystem permissive=1
[    6.674205@1] type=1400 audit(1420070409.220:33): avc: denied { setsched } for pid=3663 comm="toolbox" scontext=u:r:toolbox:s0 tcontext=u:r:kernel:s0 tclass=process permissive=1
[    6.720823@2] EXT4-fs (mmcblk0p13): re-mounted. Opts: (null)
[    6.756315@1] type=1400 audit(1420070409.300:34): avc: denied { setattr } for pid=3662 comm="su" name="daemonsu" dev="mmcblk0p13" ino=1655 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
[    6.757002@1] type=1400 audit(1420070409.300:35): avc: denied { setattr } for pid=3662 comm="su" name="su" dev="mmcblk0p13" ino=1816 scontext=u:r:init:s0 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1
[    6.942974@2] type=1400 audit(1420070409.490:36): avc: denied { search } for pid=3632 comm="lmkd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:lmkd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
root@p212:/ # Hello Jten!!!
Hello Jten!!!
Hello Jten!!!
[    6.981040@2] type=1400 audit(1420070409.490:37): avc: denied { search } for pid=3635 comm="systemcontrol" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:system_control:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    7.050901@0] vout_serve: vmode set to 576cvbs
[    7.050939@0] vout_serve: don't set the same mode as current
[    7.058868@0] amhdmitx amhdmitx0: hdmitx20: stop14
[    7.069816@0] amhdmitx amhdmitx0: hdmitx20: stop22
[    7.079709@0] fb: afbc: 1
[    7.080172@0] fb: Frame buffer memory assigned at
[    7.081232@0] fb:  0, phy: 0x000000007e000000, vir:0xffffff8002a80000, size=24576K
[    7.081232@0] 
[    7.090884@0] fb: ---------------clear fb0 memory ffffff8002a80000
[    7.110934@2] EXT4-fs (mmcblk0p13): re-mounted. Opts: (null)
[    7.115331@0] fb: osd[0] canvas.idx =0x40
[    7.115366@0] fb: osd[0] canvas.addr=0x7e000000
[    7.119417@0] fb: osd[0] canvas.width=7680
[    7.123802@0] fb: osd[0] canvas.height=3240
[    7.127633@0] fb: osd[0] frame.width=1920
[    7.131741@0] fb: osd[0] frame.height=1080
[    7.139973@3] healthd: No charger supplies found
[    7.140222@3] healthd: No battery devices found
[    7.187156@1] EXT4-fs (mmcblk0p13): re-mounted. Opts: (null)
[    7.191561@0] fb: afbc: 1
[    7.192195@0] fb: Frame buffer memory assigned at
[    7.194258@0] fb:  1, phy: 0x000000007f800000, vir:0xffffff8004300000, size=1024K
[    7.194258@0] 
[    7.204023@0] fb: fb1 open, logo index:1
[    7.231600@2] type=1400 audit(1420070409.780:38): avc: denied { search } for pid=3701 comm="bootanimation" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:bootanim:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    7.379279@3] fb: osd[1] enable: 0 scale:0x0 (systemcontrol)
[    7.379324@3] fb: osd[0] enable: 1 scale:0x10001 (systemcontrol)
[    7.401941@0] fb: free_scale_switch to fb0, mode: 0x10001
[    7.402268@0] vout_serve: osd0=> x:0,y:0,w:1920,h:1080
[    7.402268@0] osd1=> x:0,y:0,w:18,h:18
[    7.412546@0] fb: current vmode=576cvbs
[    7.423144@0] fb: osd[1] set scale, h_scale: ENABLE, v_scale: ENABLE
[    7.424005@0] fb: osd[1].scaledata: 1920 720 1080 288
[    7.429666@2] fb: osd[1].pandata: 0 0 0 0
[    8.105332@2] type=1400 audit(1420070410.650:39): avc: denied { getattr } for pid=3650 comm="zygote" path="/system" dev="mmcblk0p13" ino=2 scontext=u:r:zygote:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[    9.621896@0] random: nonblocking pool is initialized
[   11.370718@2] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   12.115596@0] request_suspend_state: wakeup (3->0) at 11946044463 (2015-01-01 00:00:14.667208753 UTC)
[   12.119164@0] request_suspend_state,164,old_sleep=0,new_state=0
[   12.475508@2] err chn setting, must be 2, 4, 6 or 8, Rst as def
[   12.475800@2] hdmtix: set audio
[   12.479318@2] hdmitx tx_aud_src = 0
[   12.483700@2] hdmitx aud_n_para = 6144
[   12.486078@2] hdmitx set channel status
[   12.490271@2] hdmitx: audio: Audio Type: PCM
[   12.494196@2] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[   12.500320@2] audio_dsp: last mode 0,now 0
[   12.505446@3] err chn setting, must be 2, 4, 6 or 8, Rst as def
[   12.510264@3] hdmtix: set audio
[   12.513326@3] hdmitx tx_aud_src = 0
[   12.516786@3] hdmitx aud_n_para = 6144
[   12.520565@3] hdmitx set channel status
[   12.524330@3] hdmitx: audio: Audio Type: PCM
[   12.528933@3] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[   12.535321@3] audio_dsp: last mode 0,now 0
[   12.556658@2] err chn setting, must be 2, 4, 6 or 8, Rst as def
[   12.556942@2] hdmtix: set audio
[   12.560087@2] hdmitx tx_aud_src = 0
[   12.563516@2] hdmitx aud_n_para = 6144
[   12.567218@2] hdmitx set channel status
[   12.571288@2] hdmitx: audio: Audio Type: PCM
[   12.575311@2] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[   12.581992@2] audio_dsp: last mode 0,now 0
[   12.586397@2] err chn setting, must be 2, 4, 6 or 8, Rst as def
[   12.591420@2] hdmtix: set audio
[   12.594472@2] hdmitx tx_aud_src = 0
[   12.597937@2] hdmitx aud_n_para = 6144
[   12.601678@2] hdmitx set channel status
[   12.605485@2] hdmitx: audio: Audio Type: PCM
[   12.609777@2] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
[   12.615860@2] audio_dsp: last mode 0,now 0
[   12.825859@0] tv_vout: vout [tv_set_vframe_rate_end_hint] return mode = 7, policy = 1!
[   12.828140@0] tv_vout: not in valid HDMI mode!
[   14.359971@1] CPU2: shutdown
[   16.864563@1] init: cannot execve('/system/bin/gatekeeperd'): Permission denied

root@p212:/ # [   21.490106@1] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   21.491229@0] lowmemorykiller: lowmem_shrink: convert oom_adj to oom_score_adj:
[   21.491238@0] lowmemorykiller: oom_adj 0 => oom_score_adj 0
[   21.491243@0] lowmemorykiller: oom_adj 2 => oom_score_adj 117
[   21.491244@0] lowmemorykiller: oom_adj 4 => oom_score_adj 235
[   21.491246@0] lowmemorykiller: oom_adj 6 => oom_score_adj 352
[   21.491248@0] lowmemorykiller: oom_adj 9 => oom_score_adj 529
[   21.491249@0] lowmemorykiller: oom_adj 15 => oom_score_adj 1000
[   22.391150@0] aml_wifi wifi.32: [usb_power_control] Set WiFi power down !
[   22.392308@0] aml_wifi wifi.32: [wifi_power_ioctl] 6Set usb_sdio wifi power down!

root@p212:/ # [   22.583734@0] type=1400 audit(1420070425.130:40): avc: denied { search } for pid=4170 comm="dhcpcd" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:dhcp:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   22.794379@0] type=1400 audit(1420070425.340:41): avc: denied { search } for pid=4185 comm="sdcard" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:sdcardd:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   22.854686@0] aml_wifi wifi.32: [extern_wifi_set_enable] WIFI  Disable! 240
[   22.994420@0] type=1400 audit(1420070425.540:42): avc: denied { getattr } for pid=4202 comm="ndroid.systemui" path="/system" dev="mmcblk0p13" ino=2 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   23.135393@0] aml_wifi wifi.32: [extern_wifi_set_enable] WIFI  Enable! 240
[   23.370399@2] sdio: new high speed SDIO card at address 0001
[   23.370445@2] sdio: clock 50000000, 4-bit-bus-width
 
[   23.378289@2] [sdio_reinit] finish
[   23.378887@2] aml_wifi wifi.32: [wifi_power_ioctl] Set sdio wifi power up!
[   23.485591@2] RTL871X: module init start
[   23.485635@2] RTL871X: rtl8189es v4.3.18.2_17395.20160422
[   23.490948@2] ######platform_wifi_power_on: 
[   23.493499@2] aml_wifi wifi.32: [extern_wifi_set_enable] WIFI  Disable! 240
[   23.510742@3] type=1400 audit(1420070426.050:43): avc: denied { search } for pid=4063 comm="Binder_1" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:mediaserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   23.567678@1] avc open
[   23.567721@1] amvenc_avc  check CMA pool sucess, max instance: 2.
[   23.570587@1] allocating phys 0x74100000, size 18432k, wq:ffffffc062466c00.
[   23.577438@1] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc062466c00.
[   23.588117@1] avc release, wq:ffffffc062466c00
[   23.591762@1] remove  encode_work_queue ffffffc062466c00 sucess, _destroy_encode_work_queue line 4107.
[   23.604359@1] ionvid: info: ionvideo open
[   23.800385@1] ionvid: info: ionvideo_stop_generating!!!!
[   23.800461@1] ionvid: info: ionvideo release
[   23.812692@1] ionvid: info: ionvideo open
[   24.009616@1] ionvid: info: ionvideo_stop_generating!!!!
[   24.009638@2] aml_wifi wifi.32: [extern_wifi_set_enable] WIFI  Enable! 240
[   24.016551@1] ionvid: info: ionvideo release
[   24.029251@0] ionvid: info: ionvideo open
[   24.219685@0] ionvid: info: ionvideo_stop_generating!!!!
[   24.219796@0] ionvid: info: ionvideo release
[   24.228945@2] ionvid: info: ionvideo open
[   24.419686@1] ionvid: info: ionvideo_stop_generating!!!!
[   24.419803@1] ionvid: info: ionvideo release
[   24.429002@1] ionvid: info: ionvideo open
[   24.519672@2] sdio_reset_comm():
[   24.541619@2] [sdio_reinit] finish
[   24.542038@2] RTL871X: CHIP TYPE: RTL8188E
[   24.543686@2] RTL871X: rtw_hal_config_rftype RF_Type is 3 TotalTxPath is 1 
[   24.550432@2] RTL871X: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_K_CUT_1T1R_RomVer(0)
[   24.558659@2] RTL871X: EEPROM type is E-FUSE
[   24.562816@2] RTL871X: =>_CardEnable
[   24.573930@2] RTL871X: SetHwReg8188E: bMacPwrCtrlOn=1
[   24.573979@2] RTL871X: <=_CardEnable
[   24.577009@2] RTL871X: _ReadPROMContent: 9346CR=0x20, Boot from EFUSE, Autoload OK
[   24.584734@2] RTL871X: =>_InitPowerOn_8188ES
[   24.588671@2] RTL871X: =>_CardEnable
[   24.592214@2] RTL871X: =>_CardEnable bMacPwrCtrlOn == _TRUE do nothing !!
[   24.598880@2] RTL871X: <=_CardEnable
[   24.602691@2] RTL871X: <=_InitPowerOn_8188ES
[   24.606783@2] bFWReady == _FALSE call reset 8051...
[   24.611864@2] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[   24.620252@0] ionvid: info: ionvideo_stop_generating!!!!
[   24.623290@0] ionvid: info: ionvideo release
[   24.634751@2] RTL871X: efuse_read_phymap_from_txpktbuf bcnhead:0
[   24.635744@2] RTL871X: efuse_read_phymap_from_txpktbuf len:162, lenbak:162, aaa:162, aaabak:162
[   24.636264@0] ionvid: info: ionvideo open
[   24.652653@2] RTL871X: efuse_read_phymap_from_txpktbuf read count:160
[   24.654262@2] RTL871X: EEPROM ID=0x8129
[   24.657917@2] RTL871X: Hal_ReadPowerSavingMode88E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[   24.668653@2] RTL871X: ### PS params=>  power_mgnt(0),usbss_enable(0) ###
[   24.674730@2] RTL871X: ======= Path 0, Channel 1 =======
[   24.680001@2] RTL871X: Index24G_CCK_Base[0][1] = 0x2a
[   24.685788@2] RTL871X: Index24G_BW40_Base[0][1] = 0x2c
[   24.690976@2] RTL871X: ======= Path 0, Channel 2 =======
[   24.695533@2] RTL871X: Index24G_CCK_Base[0][2] = 0x2a
[   24.700400@2] RTL871X: Index24G_BW40_Base[0][2] = 0x2c
[   24.706358@2] RTL871X: ======= Path 0, Channel 3 =======
[   24.710767@2] RTL871X: Index24G_CCK_Base[0][3] = 0x29
[   24.715733@2] RTL871X: Index24G_BW40_Base[0][3] = 0x2c
[   24.720976@2] RTL871X: ======= Path 0, Channel 4 =======
[   24.725960@2] RTL871X: Index24G_CCK_Base[0][4] = 0x29
[   24.731707@2] RTL871X: Index24G_BW40_Base[0][4] = 0x2c
[   24.736366@2] RTL871X: ======= Path 0, Channel 5 =======
[   24.741870@2] RTL871X: Index24G_CCK_Base[0][5] = 0x29
[   24.746336@2] RTL871X: Index24G_BW40_Base[0][5] = 0x2c
[   24.751454@2] RTL871X: ======= Path 0, Channel 6 =======
[   24.756734@2] RTL871X: Index24G_CCK_Base[0][6] = 0x29
[   24.761932@2] RTL871X: Index24G_BW40_Base[0][6] = 0x2b
[   24.766780@2] RTL871X: ======= Path 0, Channel 7 =======
[   24.772331@2] RTL871X: Index24G_CCK_Base[0][7] = 0x29
[   24.777119@2] RTL871X: Index24G_BW40_Base[0][7] = 0x2b
[   24.782178@2] RTL871X: ======= Path 0, Channel 8 =======
[   24.788440@2] RTL871X: Index24G_CCK_Base[0][8] = 0x29
[   24.793009@2] RTL871X: Index24G_BW40_Base[0][8] = 0x2b
[   24.797662@2] RTL871X: ======= Path 0, Channel 9 =======
[   24.802805@2] RTL871X: Index24G_CCK_Base[0][9] = 0x28
[   24.807721@2] RTL871X: Index24G_BW40_Base[0][9] = 0x2b
[   24.813500@2] RTL871X: ======= Path 0, Channel 10 =======
[   24.818269@2] RTL871X: Index24G_CCK_Base[0][10] = 0x28
[   24.823586@2] RTL871X: Index24G_BW40_Base[0][10] = 0x2b
[   24.828522@2] RTL871X: ======= Path 0, Channel 11 =======
[   24.829694@0] ionvid: info: ionvideo_stop_generating!!!!
[   24.829739@0] ionvid: info: ionvideo release
[   24.835065@0] ionvid: info: ionvideo open
[   24.848031@2] RTL871X: Index24G_CCK_Base[0][11] = 0x28
[   24.852682@2] RTL871X: Index24G_BW40_Base[0][11] = 0x2b
[   24.857686@2] RTL871X: ======= Path 0, Channel 12 =======
[   24.863251@2] RTL871X: Index24G_CCK_Base[0][12] = 0x28
[   24.868283@2] RTL871X: Index24G_BW40_Base[0][12] = 0x2b
[   24.873352@2] RTL871X: ======= Path 0, Channel 13 =======
[   24.879070@2] RTL871X: Index24G_CCK_Base[0][13] = 0x28
[   24.884277@2] RTL871X: Index24G_BW40_Base[0][13] = 0x2b
[   24.889307@2] RTL871X: ======= Path 0, Channel 14 =======
[   24.894397@2] RTL871X: Index24G_CCK_Base[0][14] = 0x28
[   24.909622@2] RTL871X: Index24G_BW40_Base[0][14] = 0x2b
[   24.909670@2] RTL871X: ======= TxCount 0 =======
[   24.913784@2] RTL871X: CCK_24G_Diff[0][0]= 0
[   24.918011@2] RTL871X: OFDM_24G_Diff[0][0]= -1
[   24.931135@2] RTL871X: BW20_24G_Diff[0][0]= 0
[   24.931179@2] RTL871X: BW40_24G_Diff[0][0]= 0
[   24.934197@2] RTL871X: EEPROMRegulatory = 0x0
[   24.938518@2] RTL871X: mlmepriv.ChannelPlan = 0x08
[   24.943318@2] RTL871X: CrystalCap: 0x12
[   24.947047@2] RTL871X: EEPROM Customer ID: 0x 0
[   24.952284@2] RTL871X: Board Type: 0x 0
[   24.955329@2] RTL871X: ThermalMeter = 0x1a
[   24.960190@2] RTL871X: pHalData->EEPROMRFGainVal=0
[   24.964147@2] RTL871X: Hal_ReadRFGainOffset => EEPRORFGainOffset = 0x00,EEPROMRFGainVal=0x00,thermal_offset:0x00 
[   24.974463@2] RTL871X: <==== ReadAdapterInfo8188ES in 400 ms
[   24.982326@2] RTL871X: Hal_ChannelPlanToRegulation ChannelPlan:0x08,Regulation(2_4G/5G):0x03,0x03
[   24.988921@2] RTL871X: init_channel_set ChannelPlan ID 8 Chan num:14  
[   24.996886@2] RTL871X: rtw_alloc_macid((null)) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:1
[   25.005290@1] RTL871X: rtw_register_early_suspend
[   25.007532@1] RTL871X: rtw_macaddr_cfg mac addr:28:f3:66:dd:5f:47
[   25.014233@1] RTL871X: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[   25.024242@1] RTL871X: Hal_ChannelPlanToRegulation ChannelPlan:0x08,Regulation(2_4G/5G):0x03,0x03
[   25.030279@0] ionvid: info: ionvideo_stop_generating!!!!
[   25.030376@0] ionvid: info: ionvideo release
[   25.040120@2] ionvid: info: ionvideo open
[   25.045619@1] RTL871X: init_channel_set ChannelPlan ID 8 Chan num:14  
[   25.051544@1] RTL871X: rtw_alloc_macid((null)) if2, hwaddr:ff:ff:ff:ff:ff:ff macid:1
[   25.058708@1] RTL871X: rtw_wiphy_alloc(phy0)
[   25.062743@1] RTL871X: rtw_wdev_alloc(padapter=ffffff80078c1000)
[   25.068710@1] RTL871X: rtw_wiphy_alloc(phy1)
[   25.073074@1] RTL871X: rtw_wdev_alloc(padapter=ffffff8007a79000)
[   25.078839@1] RTL871X: rtw_wiphy_register(phy0)
[   25.083438@1] RTL871X: Register RTW cfg80211 vendor cmd(0x67) interface 
[   25.103268@1] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=28:f3:66:dd:5f:47
[   25.117236@0] RTL871X: rtw_wiphy_register(phy1)
[   25.117283@0] RTL871X: Register RTW cfg80211 vendor cmd(0x67) interface 
[   25.123909@3] type=1400 audit(1420070427.670:44): avc: denied { search } for pid=3634 comm="surfaceflinger" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   25.139085@1] RTL871X: rtw_ndev_init(p2p0) if2 mac_addr=2a:f3:66:dd:5f:47
[   25.149159@2] RTL871X: module init ret=0
[   25.239618@2] ionvid: info: ionvideo_stop_generating!!!!
[   25.239706@2] ionvid: info: ionvideo release
[   25.248001@2] ionvid: info: ionvideo open
[   25.440179@2] ionvid: info: ionvideo_stop_generating!!!!
[   25.440276@2] ionvid: info: ionvideo release
[   25.450043@2] ionvid: info: ionvideo open
[   25.638730@0] type=1400 audit(1420070428.180:45): avc: denied { search } for pid=4553 comm="wpa_supplicant" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:wpa:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   25.659697@2] ionvid: info: ionvideo_stop_generating!!!!
[   25.659780@2] ionvid: info: ionvideo release
[   25.666032@2] ionvid: info: ionvideo open
[   25.837051@3] RTL871X: +871x_drv - if2_open, bup=0
[   25.837094@3] RTL871X: +871x_drv - drv_open, bup=0
[   25.848318@3] RTL871X: +rtl8188es_hal_init
[   25.848562@3] RTL871X: FW does not exit before power on!!
[   25.859623@2] ionvid: info: ionvideo_stop_generating!!!!
[   25.859727@3] RTL871X: =>_InitPowerOn_8188ES
[   25.859750@2] ionvid: info: ionvideo release
[   25.869500@2] ionvid: info: ionvideo open
[   25.875375@3] RTL871X: =>_CardEnable
[   25.875423@3] RTL871X: =>_CardEnable bMacPwrCtrlOn == _TRUE do nothing !!
[   25.889634@3] RTL871X: <=_CardEnable
[   25.894783@3] RTL871X: <=_InitPowerOn_8188ES
[   25.895098@3] RTL871X: PowerOnCheck: val_mix:0x0000063f, res:0x0000063f
[   25.900143@3] RTL871X: PowerOnCheck: 0x100 the result of cmd52 and cmd53 is the same.
[   25.912567@3] RTL871X: PowerOnCheck: 0x1B8 test Pass.
[   25.912779@3] RTL871X: Power on ok!
[   25.917855@3] RTL871X: _init_available_page_threshold(): Enable Tx FIFO Page Threshold H:0x7777,N:0x7777,L:0x7c7c
[   25.927117@3] RTL871X: rtl8188e_FirmwareDownload fw:NIC, size: 15028
[   25.933256@3] RTL871X: rtl8188e_FirmwareDownload: fw_ver=17 fw_subver=0000 sig=0x88e1, Month=15, Date=19, Hour=94, Minute=3a
[   26.069637@2] ionvid: info: ionvideo_stop_generating!!!!
[   26.069761@2] ionvid: info: ionvideo release
[   26.078537@1] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00030005
[   26.085094@2] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[   26.088638@2] RTL871X: _FWFreeToGo: Polling FW ready OK! (1, 0ms), REG_MCUFWDL:0x000300c6
[   26.096823@2] RTL871X: FWDL success. write_fw:1, 150ms
[   26.360114@2] ==> rtl8188e_iol_efuse_patch 
[   26.391235@2] RTL871X: HalDetectPwrDownMode(): PDN=0
[   26.391279@2] RTL871X: Set RF Chip ID to RF_6052 and RF type to 3.
[   26.408249@2] RTL871X: pDM_Odm TxPowerTrackControl = 1
[   26.530879@3] avc open
[   26.530931@3] allocating phys 0x74100000, size 18432k, wq:ffffffc062b79000.
[   26.534554@3] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc062b79000.
[   26.538582@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   26.551945@3] avc release, wq:ffffffc062b79000
[   26.556416@3] remove  encode_work_queue ffffffc062b79000 sucess, _destroy_encode_work_queue line 4107.
[   26.619794@2] RTL871X: DISABLE_BB_RF=0
[   26.619825@2] RTL871X: IS_HARDWARE_TYPE_8188ES=1
[   26.622543@2] RTL871X: -rtl8188es_hal_init
[   26.626546@2] RTL871X: rtl8188es_hal_init in 780ms
[   26.632540@2] RTL871X: wlan0Port-0  set opmode = 2
[   26.637979@2] RTL871X: Using the default RF gain.
[   26.640735@2] RTL871X: MAC Address = 28:f3:66:dd:5f:47
[   26.645999@2] RTL871X: start rtl8188es_xmit_thread
[   26.650592@2] RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
[   26.655786@2] RTL871X: [HT] HAL Support STBC = 0x01
[   26.661690@2] RTL871X: +871x_drv - if2_open, bup=0
[   26.665501@2] RTL871X: start rtl8188es_xmit_thread
[   26.670174@2] RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
[   26.675364@2] RTL871X: [HT] HAL Support STBC = 0x01
[   26.683817@2] RTL871X: -871x_drv - if2_open, bup=1
[   26.684943@2] RTL871X: -871x_drv - drv_open, bup=1
[   26.689710@2] RTL871X: -871x_drv - if2_open, bup=1
[   26.695051@2] RTL871X: cfg80211_rtw_set_power_mgmt(p2p0) enabled:0, timeout:-1
[   26.701962@2] IPv6: ADDRCONF(NETDEV_UP): p2p0: link is not ready
[   26.780443@2] RTL871X: cfg80211_rtw_flush_pmksa(p2p0)
[   26.839392@2] RTL871X: +871x_drv - drv_open, bup=1
[   26.839453@2] RTL871X: -871x_drv - drv_open, bup=1
[   26.844550@2] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:0, timeout:-1
[   26.850671@2] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   26.893258@1] avc open
[   26.893318@1] allocating phys 0x74100000, size 18432k, wq:ffffffc0616a1400.
[   26.896920@1] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc0616a1400.
[   26.901208@0] RTL871X: cfg80211_rtw_flush_pmksa(wlan0)
[   26.913034@1] avc release, wq:ffffffc0616a1400
[   26.916445@1] remove  encode_work_queue ffffffc0616a1400 sucess, _destroy_encode_work_queue line 4107.
[   27.000522@0] RTL871X: rtw_android_priv_cmd: Android private cmd "BTCOEXSCAN-STOP" on wlan0
[   27.004767@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-STOP" on wlan0
[   27.013231@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-ADD 3" on wlan0
[   27.020940@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-START" on wlan0
[   27.028726@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-STOP" on wlan0
[   27.036579@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-REMOVE 2" on wlan0
[   27.045920@0] RTL871X: rtw_android_priv_cmd: Android private cmd "RXFILTER-START" on wlan0
[   27.055918@0] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[   27.073773@2] RTL871X: rtw_android_priv_cmd: Android private cmd "SETSUSPENDMODE 0" on wlan0
[   27.076567@2] RTL871X: Unknown PRIVATE command SETSUSPENDMODE 0 - ignored
[   27.088169@1] RTL871X: cfg80211_rtw_scan(wlan0)
[   27.088239@1] RTL871X: rtw_cfg80211_set_probe_req_wpsp2pie(wlan0) listen channel - country:XX, class:81, ch:6
[   27.099232@2] RTL871X: SetHwReg8188E:(HW_VAR_CHECK_TXBUF)TXBUF Empty(1) in 0 ms
[   27.338152@2] avc open
[   27.338216@2] allocating phys 0x74100000, size 18432k, wq:ffffffc062beb800.
[   27.341904@2] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc062beb800.
[   27.356147@2] avc release, wq:ffffffc062beb800
[   27.356245@2] remove  encode_work_queue ffffffc062beb800 sucess, _destroy_encode_work_queue line 4107.
[   27.626314@0] avc open
[   27.626369@0] allocating phys 0x74100000, size 18432k, wq:ffffffc0374a7400.
[   27.630076@0] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc0374a7400.
[   27.641008@0] avc release, wq:ffffffc0374a7400
[   27.644922@0] remove  encode_work_queue ffffffc0374a7400 sucess, _destroy_encode_work_queue line 4107.
[   27.673894@3] avc open
[   27.673974@3] allocating phys 0x74100000, size 18432k, wq:ffffffc0358da000.
[   27.678693@3] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc0358da000.
[   27.690254@3] avc release, wq:ffffffc0358da000
[   27.692099@3] remove  encode_work_queue ffffffc0358da000 sucess, _destroy_encode_work_queue line 4107.
[   28.011263@0] avc open
[   28.011346@0] allocating phys 0x74100000, size 18432k, wq:ffffffc05fd8fc00.
[   28.015265@0] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc05fd8fc00.
[   28.026690@0] avc release, wq:ffffffc05fd8fc00
[   28.029738@0] remove  encode_work_queue ffffffc05fd8fc00 sucess, _destroy_encode_work_queue line 4107.
[   28.330873@3] avc open
[   28.330954@3] allocating phys 0x74100000, size 18432k, wq:ffffffc05f4dd800.
[   28.334540@3] amvenc_avc  memory config sucess, buff start:0x74100000, size is 0x1200000, wq:ffffffc05f4dd800.
[   28.344764@3] avc release, wq:ffffffc05f4dd800
[   28.349186@3] remove  encode_work_queue ffffffc05f4dd800 sucess, _destroy_encode_work_queue line 4107.
[   28.503174@0] RTL871X: survey done event(32) band:0 for wlan0
[   28.503485@0] RTL871X: rtw_indicate_scan_done(wlan0)
[   29.122713@2] type=1400 audit(1420070431.670:46): avc: denied { search } for pid=3634 comm="surfaceflinger" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.684428@1] init: Warning!  Service preinstall needs a SELinux domain defined; please fix!
[   29.688434@0] type=1400 audit(1420070432.230:47): avc: denied { execute_no_trans } for pid=4835 comm="init" path="/system/bin/preinstall.sh" dev="mmcblk0p13" ino=269 scontext=u:r:init:s0 tcontext=u:object_r:system_file:s0 tclass=file permissive=1
[   29.728128@0] type=1400 audit(1420070432.260:48): avc: denied { read } for pid=4837 comm="xargs" path="pipe:[14511]" dev="pipefs" ino=14511 scontext=u:r:toolbox:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
[   29.742696@0] type=1400 audit(1420070432.260:49): avc: denied { write } for pid=4837 comm="xargs" path="pipe:[14512]" dev="pipefs" ino=14512 scontext=u:r:toolbox:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
[   29.761336@3] type=1400 audit(1420070432.260:52): avc: denied { search } for pid=4836 comm="find" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.779948@2] type=1400 audit(1420070432.260:51): avc: denied { search } for pid=4837 comm="xargs" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.789751@1] init: Warning!  Service preinstall needs a SELinux domain defined; please fix!
[   29.833221@2] type=1400 audit(1420070432.260:50): avc: denied { search } for pid=4839 comm="wc" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.846474@2] type=1400 audit(1420070432.270:53): avc: denied { getattr } for pid=4837 comm="xargs" path="pipe:[14511]" dev="pipefs" ino=14511 scontext=u:r:toolbox:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
[   29.865883@2] type=1400 audit(1420070432.290:54): avc: denied { getattr } for pid=4836 comm="find" path="/system" dev="mmcblk0p13" ino=2 scontext=u:r:toolbox:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.885195@2] type=1400 audit(1420070432.290:55): avc: denied { ioctl } for pid=4842 comm="xargs" path="pipe:[14512]" dev="pipefs" ino=14512 ioctlcmd=5413 scontext=u:r:toolbox:s0 tcontext=u:r:init:s0 tclass=fifo_file permissive=1
[   29.904994@2] type=1400 audit(1420070432.360:56): avc: denied { search } for pid=4844 comm="usbtestpm" name="/" dev="mmcblk0p13" ino=2 scontext=u:r:usbpm:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   29.946342@0] dig: isBootCompleted:1!
[   29.947575@0] dig: setDataRoCount count:0!
[   30.522569@1] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   30.522627@1] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[   30.531674@2] xhci-hcd xhci-hcd.0.auto: irq 62, io mem 0xc9000000
[   30.539974@1] hub 1-0:1.0: USB hub found
[   30.540329@1] hub 1-0:1.0: 2 ports detected
[   30.544639@1] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[   30.550081@1] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[   30.560516@1] hub 2-0:1.0: USB hub found
[   30.561741@1] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)
[   30.572531@1] file system registered
[   30.583300@1] ffs_data_put(): freeing
[   30.591859@1] ffs_data_put(): freeing
[   31.596254@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   31.732163@2] type=1400 audit(1420070434.280:57): avc: denied { getattr } for pid=4993 comm="ogic.otaupgrade" path="/system" dev="mmcblk0p13" ino=2 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   32.155168@2] type=1400 audit(1420070434.700:58): avc: denied { getattr } for pid=5055 comm="m.android.phone" path="/system" dev="mmcblk0p13" ino=2 scontext=u:r:radio:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=1
[   32.623525@0] alarm lock suspend
[   32.832682@1] alarm lock suspend
[   34.423621@1] CPU2: shutdown
[   35.123615@1] alarm lock suspend
[   36.223815@1] CPU3: shutdown
[   36.708670@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   37.479550@0] alarm lock suspend

root@p212:/ # [   37.832543@0] CPU1: shutdown

root@p212:/ # cat /proc/cpuinfo
Processor	: AArch64 Processor rev 4 (aarch64)
processor	: 0
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 wp half thumb fastmult vfp edsp neon vfpv3 tlsi vfpv4 idiva idivt 
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

Hardware	: Amlogic
Serial		: 210a8200411aa50fcd1667a69bfc9906
root@p212:/ # 
root@p212:/ # [   41.857618@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   44.483472@0] CPU1: shutdown
[   47.001074@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied
[   47.543594@0] alarm lock suspend

root@p212:/ # 
root@p212:/ # cat /proc/meminfo
MemTotal:        1818284 kB
MemFree:          566564 kB
MemAvailable:    1395592 kB
Buffers:           14936 kB
Cached:           815816 kB
SwapCached:            0 kB
Active:           234004 kB
Inactive:         791464 kB
Active(anon):     194724 kB
Inactive(anon):      292 kB
Active(file):      39280 kB
Inactive(file):   791172 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:        511996 kB
SwapFree:         511996 kB
Dirty:                44 kB
Writeback:             0 kB
AnonPages:        194696 kB
Mapped:           142664 kB
Shmem:               320 kB
Slab:              43980 kB
SReclaimable:      18796 kB
SUnreclaim:        25184 kB
KernelStack:        9872 kB
PageTables:        13528 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1421136 kB
Committed_AS:   20767440 kB
VmallocTotal:    1048576 kB
VmallocUsed:       93508 kB
VmallocChunk:     867652 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
root@p212:/ # [   51.978600@0] alarm lock suspend
[   52.095587@0] init: cannot execve('/system/bin/gatekeeperd'): Permission denied

 

절전모드 실험

bl30 get wakeup sources!
process command 00000006
bl30 enter suspend!
cpu clk suspend rate 1416000000
suspend_counter: 1
Enter ddr suspend
first time suspend
ddr suspend time: 1886us
store restore gp0 pll
process command 00000001
CEC cfg:0x002f
set vddee to 0x035cmv
089 kern log_addr:0x04
rx stat:00, tx stat:00
ping_cec_ll_tx:TX_ERROR
Set cec log_addr:0x04, ADDR0:14

exit_reason:0x02                                                                                                                                                                                                                               
set vddee to 0x03e8mv                                                                                                                                                                                                                          
set vcck to 0x0460mv                                                                                                                                                                                                                           
store restore gp0 pll                                                                                                                                                                                                                          
Enter ddr resume                                                                                                                                                                                                                               
ddr resume time: 437us                                                                                                                                                                                                                         
cfg15 3b00000                                                                                                                                                                                                                                  
cfg15 23b00000                                                                                                                                                                                                                                 
[ 2665.160714@0] cgxbb_pm: late_resume: call handlers                                                                                                                                                                                          
[ 2665.160714@0] gxbb_pm: late_resume: done

 

OTA

http://198.11.176.47:9090/Authentication/Auth?mac=c4:2f:xx:xx:xx (뭔지모르겠다 fals만)
http://fota4.adups.cn/ota/detectdown/detectSchedule.do?key=4908000000C7A285F71174B8F71C953DD4C310BE26C8B2C96684CE15BF24CCB4993E81C814B93197F0B631C7B34BEA2ACFA59139D5971FA86490BE9621DC9204F97E98EA9535D3C312BC2DCEB3C26480C412BE2DCEB3C26480D851E77AC3ED8D38DCD843FE6788E68A27D9914CB323D0B2D6659ECC04E1679BF19920DF8C1FA87E93F0916989C71BB72EC7BAC16D89C71BB72EC7A58B30DB8847FC6497EC966982CD04FC7292E69927D5C314A027D0B2DE35C09076F7679BBED565969047FA6091F19300C98E47B33ACFA59435DE9957EF709BBE9D3AEFAB71A8659BF09738C58A4BE179C3B2C16680DD13BE27C6A58E31C28D4BE179C3BAC861E8DA14A027DAD7CD0C81A16FCC58A6DC9D3A9DAB71D143CBDBC96480CE10D1788AEB9D26968E4EEF6398EC8A398DBF4FE27899EA9B0789CE17D648C8ADC872D49B54E7749BD78124D5C340E16FD8E5913AD79B50FE6597ED8C69F1934EE17097E0D72482CF10A167CCB2CA6E86D012A026D1CEB01781C768A125CEB2CE6488CD13B4628DE68A7BC49B51FA3A95E68127969A47F87E9DE68B3DDE984DCB6F8ABEB516FFA67DCF7A92EC9F3DD3A152BC26CCDC886681CC7DFE25CFB1A715DD924DE97E9DDC9F2CDCA152BC26CCA58E31C28D4BE179BDEC9C318DCF15
뭔가 key로 잔뜩 넘기고 리스폰으로 밑에거 받는다

{"flag":{"LUrl":"no","isInner":0,"isupgrade":1,"displayApp":0,"rand":"753583693","updateStep":0,"DUrl":"http://hwfotadown.mayitek.com/ota/","mid":"20161124072514ed8503","connfreq":"2940"},"status":1000,"version":"{\"fullNote\":\"0\",\"isAlwaysInstallNotifyFlag\":\"0\",\"onlyDownloadForceFlag\":\"0\",\"versionName\":\"T5X10004\",\"forceFlag\":0,\"notifyCancelable\":0,\"forceEndTime\":\"24\",\"notifyFlag\":0,\"filesize\":199207924,\"deltaurl\":\"http://hwfotadown.mayitek.com/ota/root_data02_2/sunvell/905X_6.0_T5X1/MBOX/en-US/other/T5X10004/T5X10002-T5X100041474901550870.zip\",\"forceWifiFlag\":1,\"fullCode\":\"0\",\"deltaId\":\"881620\",\"noPopWin\":0,\"releasenotes\":\"[{\\\"country\\\":\\\"en\\\",\\\"content\\\":\\\"<div style='font-size:15px;color:#FFFFFF;'><span style='word-break:break-all'>Version number:&nbsp;T5X10004<\\/span><br/>Version size:&nbsp;189.98&nbsp;MB<br/>Release date:&nbsp;2016-09-26<\\/div><br/><div style='font-size:15px;color:#FFFFFF'>1.Google,KODI.<br />\\n2.<span style='line-height:1.5;'>Please&nbsp;do&nbsp;factory&nbsp;reset&nbsp;when&nbsp;the&nbsp;OTA&nbsp;updates&nbsp;finished.<\\/span><\\/div>\\\"},{\\\"country\\\":\\\"zh_CN\\\",\\\"content\\\":\\\"<div style='font-size:15px;color:#FFFFFF;'><span style='word-break:break-all'>版本号:T5X10004<\\/span><br/>版本大小:189.98&nbsp;MB<br/>发布日期:2016-09-26<\\/div><br/><div style='font-size:15px;color:#FFFFFF'>1.优化系统<br />\\n2.修复错误<br />\\n<br />\\n选择【立即安装】,设备将重启并进入升级模式,整个过程需花费几分钟时间,请您在此期间不要作任何操作,以免造成升级失败。<\\/div>\\\"}]\",\"forceStartTime\":\"0\",\"fullSize\":0,\"fullPath\":\"http://hwfotadown.mayitek.com/ota/0\",\"installNotifyFlag\":\"0\"}"}

어딘가쯤에 URL이 존재,
http://hwfotadown.mayitek.com/ota/root_data02_2/sunvell/905X_6.0_T5X1/MBOX/en-US/other/T5X10004/T5X10002-T5X100041474901550870.zip

boot.img
bootloader.img
dtb.img
recovery.img
이런게 들어있고  변경된 diff 파일들이 존재하는듯

Armbian(Debian for ARM)

기존에 했던 방법으로 armbian 이 부팅이 되지 않는다.

https://forum.armbian.com/index.php/topic/2419-armbian-for-amlogic-s905-and-s905x/
https://github.com/150balbes/Amlogic_s905-kernel/tree/S905X
https://yadi.sk/d/srrtn6kpnsKz2/Linux/ARMBIAN

Armbian_5.24_Amlogic-s905x_Debian_jessie_3.14.29_20161125.img.xz 이걸 플래싱하고
u-boot에서 같은방법으로 debian 부팅이 가능했다. (boot arg는 root=/dev/mmcblk0p2 로 바뀐듯하다)

Benchmark

root@amlogic-s905x:~# openssl speed md5 sha256
Doing md5 for 3s on 16 size blocks: 1668528 md5's in 3.01s
Doing md5 for 3s on 64 size blocks: 1414753 md5's in 3.01s
Doing md5 for 3s on 256 size blocks: 960605 md5's in 3.01s
Doing md5 for 3s on 1024 size blocks: 419427 md5's in 3.01s
Doing md5 for 3s on 8192 size blocks: 67246 md5's in 3.01s
Doing sha256 for 3s on 16 size blocks: 1669871 sha256's in 3.00s
Doing sha256 for 3s on 64 size blocks: 1054648 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 500826 sha256's in 3.01s
Doing sha256 for 3s on 1024 size blocks: 162068 sha256's in 3.01s
Doing sha256 for 3s on 8192 size blocks: 22158 sha256's in 3.01s
OpenSSL 1.0.1t  3 May 2016
built on: Fri Sep 23 18:26:35 2016
options:bn(64,64) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr) 
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -g -O2 -fstack-protel
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               8869.25k    30081.13k    81699.30k   142688.79k   183016.36k
sha256            8905.98k    22499.16k    42595.17k    55135.43k    60305.10k
root@amlogic-s905x:~# openssl speed rsa1024
Doing 1024 bit private rsa's for 10s: 2990 1024 bit private RSA's in 10.01s
Doing 1024 bit public rsa's for 10s: 59515 1024 bit public RSA's in 10.00s
OpenSSL 1.0.1t  3 May 2016
built on: Fri Sep 23 18:26:35 2016
options:bn(64,64) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr) 
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -g -O2 -fstack-protel
                  sign    verify    sign/s verify/s
rsa 1024 bits 0.003348s 0.000168s    298.7   5951.5

속도가 소폭 하락하였다


2년만에 업데이트 !

심심해서 DTB 건들어서 EMMC에 Linux 올렸다.

/dev/reserved에 MPT 파티션 테이블이 존재하는데 이걸 수정했더니 부팅하면서 다시 덮어쓰는것을 발견하였다;
U-boot을 분석해보니 U-boot에 하드코드된 (u-boot/drivers/mmc/emmc_partitions.c) emmc_partition_table을 먼저 불러오고 이후에 DTB에 정의되어있는 파티션을 더해서
/dev/reserved에다가 저장하고 있었다.
emmc_partition_table은 기본적으로 boot, reserved,cache,env 가 정의되어있다.

추출한 DTB를 DTS로 바꿔서 다른 안드로이드에서 필요한 파티션들을 정리하고 fat로 bootfs를, ext4로 rootfs를 만들었지만…
uboot에서 fat을 못읽어와서 kernel, initrd, dtb, rootfs로 파티셔닝 하였다.

dtc -I dtb -O dts -o 2g.dts extracted_2g.dtb
dtc -I dts -O dtb -o out.dtb mod_2g.dts

위 명령어로 큰 문제없이 dtb수정이 가능하였다.

뭐가 문제인지  linux 부팅상태에서 dd를 이용하여 kernel, initrd, dtb를 라이팅하였는데 적용이 되지 않아 uboot에서 store명령어를 이용하여 라이팅하였다.

최종 파티션
[ 5.106611@2] [mmcblk0p01] bootloader offset 0x000000000000, size 0x000000400000
[ 5.106854@2] [mmcblk0p02] reserved offset 0x000002400000, size 0x000004000000
[ 5.107075@2] [mmcblk0p03] cache offset 0x000006c00000, size 0x000000000000
[ 5.107270@2] [mmcblk0p04] env offset 0x000007400000, size 0x000000800000
[ 5.107475@2] [mmcblk0p05] kernel offset 0x000008400000, size 0x000002000000
[ 5.107676@2] [mmcblk0p06] initrd offset 0x00000ac00000, size 0x000002000000
[ 5.107882@2] [mmcblk0p07] dtb offset 0x00000d400000, size 0x000000200000
[ 5.108073@2] [mmcblk0p08] rootfs offset 0x00000de00000, size 0x0001bef80000

EMMC에 fs와 모든것을 올렸지만 IO 속도가 기대이하여서 dd 로 간단히 속도를 측정해 보았다

EUDAR EMMC의 경우 Read 71MB/s정도 나왔으며
삼성 128GB Evo Plus  microSD 의 경우 22MB/s 정도 나왔다. (이제품 노트북에 연결했을때 120MB/s 정도 나왔던거로 기억한다)
기타 다른 microSD의 경우도 20~22MB/s정도 나오는것으로 확인되며 인터페이스에서 병목이 생기는것으로 추정된다.
이제 굴러다니는 읽기 140MB/s나오는 32GB EMMC가 있긴한데 칩오프를해서…. 리볼링을해서…..

근데 여기 Linux올려서 뭐하려고 했었던거지?..

[LOTS] 스크린 링크 동글

옛날에 이런 물건이 있었더랬지…
베가 R3랑 S5만 그거도 전용앱이 있어야 되는거같은데… 난 그런거 없으니까 일단 뜯고본다.
kakaotalk_20161006_230624160 kakaotalk_20161006_230622858ee

UART 찾는건 기본 baudrate는 115200이다

아래는 부트로그

Linux version 3.0.15-01927-gf9a14bd (p50177@bs217) (gcc version 4.5.1 (Broadcom-2708) ) #1 PREEMPT Wed Aug 15 05:01:02 KST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: BCM2708
cma: CMA: reserved 16 MiB at 08000000
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 36576
Kernel command line: console=ttybcm0,115200 mtdparts=bcm2708_nand:128k(loader),14m(fw_kernel),4m(nvram),44m(system),-(ota_storage)
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 144MB = 144MB total
Memory: 121872k/121872k available, 25584k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc9800000 - 0xe8000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xc9000000   ( 144 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc036e000   (3480 kB)
      .text : 0xc036e000 - 0xc072e37c   (3841 kB)
      .data : 0xc0730000 - 0xc074c9e0   ( 115 kB)
       .bss : 0xc074ca04 - 0xc0794848   ( 288 kB)
Preemptible hierarchical RCU implementation.
NR_IRQS:85
timer_set_mode: unhandled mode:1
Console: colour dummy device 80x30
Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: enabled with v6 PMU driver, 3 counters available
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 768 KiB pool for atomic coherent allocations
bcm2708_pcni_gpio: bcm2708_pcni_gpio_probe c0736550
wlan reset!
usb path is wlan!
usb otgID Host
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
mailbox: Broadcom VideoCore Mailbox driver
bcm2708_vcio: mailbox at f200b880
bcm_power: Broadcom power driver
bcm2708_mini_uart: ttybcm0 at MMIO 0x20215000 (irq = 29) is a BCM_MINIUART
bcm2708_mini_uart: registered console - rc 0
console [ttybcm0] enabled
bcm2708_mini_uart: located device
bio: create slab <bio-0> at 0
Switching to clocksource timer0_clk
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
bcm2708_dma: DMA manager at c9800000
: registered virtual buttonsbits @480c0000 via MBOX f200b8a0
input: bcm2708_vcbuttons as /devices/platform/bcm2708_vcbuttons/input/input0
: registered ledbits @480c1000 through MBOX f200b8a0
: registered gpiobits @480c2000 through MBOX f200b8a0
[bcm2708_smi_probe] SMI start=20600000 end=20600fff
allocated channel 2 with irq 77
SMI DMA CBs c80c3000 handle 480C3000 DMA2 c9800200 DMA IRQ 77
msgmni has been set to 270
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
BSC: Driver initialized
Sky WFD GPIO Driver: 1.00
vc-mem: Videocore memory driver
vc-mem: mm_vc_mem_phys_addr = 0x00000000
mem_size is 256
vc-mem: mm_vc_mem_size      = 0x10000000 (256 MiB)
vc-mem: mm_vc_mem_base      = 0x00000000 (0 MiB)
brd: module loaded
vchiq: vchiq_init_state: slot_zero = 0xc8000000, is_master = 0
[bcm2708_nand_probe]: probe=c0736a60
[bcm2708_nand_probe] GPIO start=20200000 end=20200fff
[bcm2708_nand_probe]: NAND init done
ONFI flash detected
NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 0 at 0x000000000000
Bad eraseblock 986 at 0x000007b40000
Bad eraseblock 987 at 0x000007b60000
5 cmdlinepart partitions found on MTD device bcm2708_nand
Creating 5 MTD partitions on "bcm2708_nand":
0x000000000000-0x000000020000 : "loader"
0x000000020000-0x000000e20000 : "fw_kernel"
0x000000e20000-0x000001220000 : "nvram"
0x000001220000-0x000003e20000 : "system"
0x000003e20000-0x000008000000 : "ota_storage"
mousedev: PS/2 mouse device common for all mice
bcm2708 watchdog, heartbeat=10 sec (nowayout=0)
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
allocated channel 3 with irq 78
mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
mmc0: BCM2708 SDHC host at 0x20300000 DMA 3 IRQ 78
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
vc-fb: Videocore framebuffer driver
[I] vc_fb_connected_init: start
[I] vc_fb_connected_init: end (ret=0)
vc-sm: Videocore shared memory driver
[vc_sm_connected_init]: start
[vc_sm_connected_init]: end - returning 0
Warning: unable to open an initial console.
Freeing init memory: 3480K
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: max. sequence number:       148
UBI: attached mtd3 to ubi0
UBI: MTD device name:            "system"
UBI: MTD device size:            44 MiB
UBI: number of good PEBs:        352
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    256
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 352
UBI: number of PEBs reserved for bad PEB handling: 3
UBI: max/mean erase counter: 2/0
UBI: image sequence number:  1144542126
UBI: background thread "ubi_bgt0d" started, PID 47
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   43094016 bytes (42084 KiB, 41 MiB, 334 LEBs)
UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  0 bytes (0 KiB)
Starting logging: OK
Populating  using udev: udevd[72]: starting version 182
done
Initializing random number generator... done.
Starting network...
result=1
/etc/init.d/dhcp-server not yet configured! - Aborting...
HFilesys: vc_hostfs is deprecated. Please use stdio
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
dwc_otg: version 2.90b 6-MAY-2010 (platform bus)
Core Release: 2.80a                     
Setting default values for core params                                                               
Finished setting default values for core params                                                      
c99c0008 -> 1                                                                                        
Using Buffer DMA mode                                                                                
Periodic Transfer Interrupt Enhancement - disabled
Multiprocessor Interrupt Enhancement - disabled
dwc_otg bcm2708_usb: DWC OTG Controller 
dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
dwc_otg bcm2708_usb: irq 75, io mem 0x00000000
Init: Port Power? op_state=1
Init: Power Port (0)
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 3.0.15-01927-gf9a14bd dwc_otg_hcd
usb usb1: SerialNumber: bcm2708_usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb 1-1: new high speed USB device number 2 using dwc_otg
usb 1-1: New USB device found, idVendor=0a5c, idProduct=bd17
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Remote Download Wireless Adapter
usb 1-1: Manufacturer: Broadcom
usb 1-1: SerialNumber: 000000000001
bcm_rpc_up: waiting to be connected
bcm_rpc_buf_recv_mgn_high: Recvd:3 Version: 0x61e0900
State: 3 Session:105
bcm_rpc_buf_recv_mgn_high: Reason: 0 Dongle Version: 0x61e0900
bcm_rpc_buf_recv_mgn_high: Connected!
eth0: Broadcom BCMa8e4 802.11 Wireless Controller 6.30.9 (TOB) (r347267 BCMINT)
usbcore: registered new interface driver dbus_usbdev
start WFD Init Early!
UBI: attaching mtd2 to ubi1
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: max. sequence number:       14
UBI: attached mtd2 to ubi1
UBI: MTD device name:            "nvram"
UBI: MTD device size:            4 MiB
UBI: number of good PEBs:        32
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    256
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             9
UBI: total number of reserved PEBs: 23
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 2/1
UBI: image sequence number:  -281321412
UBI: background thread "ubi_bgt1d" started, PID 119
UBI device number 1, total 32 LEBs (4128768 bytes, 3.9 MiB), available 9 LEBs (1161216 bytes, 1.1 MiB), LEB size 129024 bytes (126.0 KiB)
ubi Attach result!!! for Nvm  : 0
UBIFS: mounted UBI device 1, volume 0, name "skyNvm"
UBIFS: mounted read-only
UBIFS: file system size:   1161216 bytes (1134 KiB, 1 MiB, 9 LEBs)
UBIFS: journal size:       903169 bytes (882 KiB, 0 MiB, 5 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  54846 bytes (53 KiB)
ubi mount  : 0
nv wlan mac 0:f:e4:2:b8:bb
nv wlan mac ok!
end WFD Init Early!
WFD NVM Access Ready!
mac addr 0:f:e4:2:b8:bb
pin code 20729850
serial number C6F245838564

You are now cooking with FLAMES
      Feel the HEAT!


Please press Enter to activate this console. 
Available sky-gpio_dev

엔터를 누르면

BCM2835
bcm2835 login:

가 뜨는데 그냥 root 하면 민망하게도 로그인이 된다 ;; 비밀번호 필요없음

아래는 간단한 시스템 정보들

# cat /proc/cpuinfo 
Processor       : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 795.44
Features        : swp half thumb fastmult vfp edsp java 
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2708
Revision        : 0000
Serial          : 0000000000000000

# cat /proc/meminfo 
MemTotal:         141736 kB
MemFree:          109672 kB
Buffers:               0 kB
Cached:            18092 kB
SwapCached:            0 kB
Active:             4168 kB
Inactive:          15804 kB
Active(anon):       1900 kB
Inactive(anon):       24 kB
Active(file):       2268 kB
Inactive(file):    15780 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:          1896 kB
Mapped:             1784 kB
Shmem:                44 kB
Slab:               5948 kB
SReclaimable:       2768 kB
SUnreclaim:         3180 kB
KernelStack:         416 kB
PageTables:          284 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       70868 kB
Committed_AS:      49444 kB
VmallocTotal:     499712 kB
VmallocUsed:        1704 kB
VmallocChunk:     494924 kB

# uname -a
Linux bcm2835 3.0.15-01927-gf9a14bd #1 PREEMPT Wed Aug 15 05:01:02 KST 2012 armv6l GNU/Linux

# mount
rootfs on / type rootfs (rw)
none on /dev type devtmpfs (rw,relatime,size=60936k,nr_inodes=15234,mode=755)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
ubi0:rootfs on / type ubifs (rw,relatime)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,size=60936k,nr_inodes=15234,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
none on /tmp type tmpfs (rw,relatime)
none on /tmp type tmpfs (rw,relatime)
ubi1:skyNvm on /nvm type ubifs (ro,relatime)

# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00020000 00020000 "loader"
mtd1: 00e00000 00020000 "fw_kernel"
mtd2: 00400000 00020000 "nvram"
mtd3: 02c00000 00020000 "system"
mtd4: 041e0000 00020000 "ota_storage"

# ps
PID USER COMMAND
 1 root {init} /bin/busybox sh /init
 2 root [kthreadd]
 3 root [ksoftirqd/0]
 4 root [kworker/0:0]
 5 root [kworker/u:0]
 6 root [khelper]
 7 root [netns]
 8 root [kworker/0:1]
 9 root [sync_supers]
 10 root [bdi-default]
 11 root [kblockd]
 12 root [kswapd0]
 13 root [fsnotify_mark]
 14 root [kworker/u:1]
 19 root [VCHIQ-0]
 20 root [VCHIQr-0]
 21 root [VCHIQs-0]
 22 root [VCHIQl-0]
 23 root [VCHIQh-0]
 24 root [mtdblock0]
 25 root [mtdblock1]
 26 root [mtdblock2]
 27 root [mtdblock3]
 28 root [mtdblock4]
 29 root [kpsmoused]
 30 root [SMIO]
 47 root [ubi_bgt0d]
 50 root [ubifs_bgt0_0]
 54 root {linuxrc} init
 67 root /sbin/syslogd -m 0
 69 root /sbin/klogd
 72 root /lib/udev/udevd -d
 94 root /opt/vc/sbin/vcfiled
 103 root [khubd]
 106 root /lib/udev/udevd -d
 107 root /lib/udev/udevd -d
 108 root [DWC Notificatio]
 109 root [dwc_otg]
 119 root [ubi_bgt1d]
 132 root {exe} ash ./runWFD_App.sh
 133 root /sbin/getty -L tty0 115200 vt102
 135 root a1_process_manager
 136 root df_wfd_procedure
 138 root sh -c top -d 1
 139 root top -d 1
 158 root [flush-ubifs_0_0]
 159 root {init_ttyser0} /bin/sh /etc/init.d/init_ttyser0
 163 root -sh
 186 root ps

잠깐 보니까 MAC으로 vega 모델 아니니 팅궈내는거 같은데…
어떻게 가지고 놀아볼까…?

vmware-modconfig on linux kernel 4.6 or above

최근 커널버전을 업데이트후 vmware 실행시 modconfig가 잘안되서 찾아봄
아래는 해당 에러로그

/usr/src/linux-headers-4.6.0-0.bpo.1-common/arch/x86/include/asm/current.h:17:17: warning: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast
 #define current get_current()
                 ^
/tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.c:1165:37: note: in expansion of macro ‘current’
    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
                                     ^
In file included from /tmp/modconfig-XSGuvk/vmmon-only/./include/compat_page.h:23:0,
                 from /tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.c:32:
/usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/mm.h:1288:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.c:1165:13: error: too many arguments to function ‘get_user_pages’
    retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
             ^
In file included from /tmp/modconfig-XSGuvk/vmmon-only/./include/compat_page.h:23:0,
                 from /tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.c:32:
/usr/src/linux-headers-4.6.0-0.bpo.1-common/include/linux/mm.h:1288:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/usr/src/linux-headers-4.6.0-0.bpo.1-common/scripts/Makefile.build:296: recipe for target '/tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.o' failed
make[4]: *** [/tmp/modconfig-XSGuvk/vmmon-only/linux/hostif.o] Error 1

Virtual machine monitor랑 Virtual ethernet모듈이 컴파일중 오류나는것으로 확인
찾아보니 kernel 4.6이후부터 호출 인자가 좀 바꼈나봄
/usr/lib/vmware/modules/source여기에 커널모듈 소스들이 존재함
가서 tar로 vmmon이랑 vmnet을 잘 풀고 ..

diff --git a/vmmon-only/linux/hostif.c b/vmmon-only/linux/hostif.c
--- a/vmmon-only/linux/hostif.c
+++ b/vmmon-only/linux/hostif.c
@@ -1162,8 +1162,13 @@
int retval;

down_read(&current->mm->mmap_sem);
- retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
- numPages, 0, 0, ppages, NULL);
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
+ retval = get_user_pages((unsigned long)uvAddr,
+ numPages, 0, 0, ppages, NULL);
+ #else
+ retval = get_user_pages(current, current->mm, (unsigned long)uvAddr,
+ numPages, 0, 0, ppages, NULL);
+ #endif
up_read(&current->mm->mmap_sem);
return retval != numPages;
diff --git a/vmnet-only/userif.c b/vmnet-only/userif.c
--- a/vmnet-only/userif.c	2016-04-22 19:19:36.852205070 -0700
+++ b/vmnet-only/userif.c	2016-04-22 19:21:26.317845433 -0700
@@ -113,8 +113,12 @@
int retval;
down_read(&current->mm->mmap_sem);
- retval = get_user_pages(current, current->mm, addr,
-	1, 1, 0, &page, NULL);
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
+ retval = get_user_pages(addr, 1, 1, 0, &page, NULL);
+ #else
+ retval = get_user_pages(current, current->mm, addr,
+ 1, 1, 0, &page, NULL);
+ #endif
up_read(&current->mm->mmap_sem);
if (retval != 1) {

를 적용시켜주고 다시 잘 묶은뒤
vmware-modconfig –console –install-all
뙇!

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                    done
   VMware Authentication Daemon                                        done
   Shared Memory Available                                             done

잘된다

KERNEL – 4.6-rc1 Released – OK with Latest VMware, Breaks NVIDIA – and a Possible Fix..

Amlogic S905 Set-top box T95N M8S 2G/8G

최근에 리눅스 머신 구매를 고려하던중 ODROID C2 와 같은 MCU인 Amlogic S905를 사용한 셑탑박스를 구매 하였다 (http://www.aliexpress.com/item/New-T95N-Mini-M8S-Pro-m8spro-Android-5-1-TV-Box-S905-Quad-Core-Bluetooth-Wifi/32670305568.html?spm=2114.13010608.0.97.YhH49H 무려 35$)
배송은 알리를 통해 1주일 걸렸고 상세 스펙은 다음과 같다.

CPU: Amlogic S905 quad-core cortex-A53 frequency 2.0G
GPU: Mali-450 5-Core GPU
RAM: 2GB DDR3
ROM: 8GB eMMC Flash 5.0 (Read 80MB/s above, Write 20MB/s above)
OS: Android 5.1
KODI: 16.0 Pre-installed and Play Well
Support 4kx2k H.265 Hardware Video Decode and 4Kx2K Output
Bluetooth 4.0
Ethernet: 10/100M,  RJ-45

더 저렴한 제품(RAM 1G)이나 좀더 비싼제품 (Giga Ethernet)이 있었지만 그냥 대충 싼게….
ODROID C2와 비교했을때
C2는 아답터, EMMC, 리모컨, HDMI케이블, 케이스 별매 지만
(각 6,600, 21,600원, 4,800원, 4,400원 , 5,400원 VAT별도, tot :4만5천 정도)
USB 슬롯 4개, Gigabit ethernet, 좀더 거대한 방열판, GPOI 포트와 커뮤니티의 지원이 비교적(?) 활발한 장점을 가지고 있다(하지만 가격이 깡패다 C2살 돈이면 셋탑 두개사고 국밥한그릇 먹을수 있다)

e480721d87b0270bee2950924e7f735b

1

받아보니 크기가 생각외로 매우 작았다.
어댑터가 EU 플러그라 그런지 조금 많이 헐겁다. 쓰기 굉장히 불안하게 생겼다 (왠지 쓰다보면 폭발할듯)
다행인지 USB포트를 통해 전원공급이 가능하였다(USB A male to USB A male 케이블 쓰면 된다)
더불어 샤오미 보조배터리 하나면 ODROID에서 6만원에 파는 UPS3을 대신할수있다. 가격도 싸고 용량도 크다

UART

켜보지도 않고 분해를 진행하였으며 목표했던 UART 단자를 찾았다(친절하게 프린팅 감사)

5f6206a15a5b11d863f0dd97e3814415cb7244b6c6cf70ccc9e9b2ed565589de

UART를 찍어보면 아래와 같은 로그가 나온다 (115200bd, 안드로이드 부팅로그 제외)

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;
TE: 270602
no sdio debug board detected 

BL2 Built : 13:55:05, Jan 28 2016. 
gxb g3625dd5 - xiaobo.gu@droid05

Board ID = 1
set vcck to 1100 mv
set vddee to 1000 mv
CPU clk: 1536MHz
DDR channel setting: DDR0 Rank0+1 diff
DDR0: 1024MB(auto) @ 912MHz(2T)-13
DDR1: 1024MB(auto) @ 912MHz(2T)-13
DataBus test pass!
AddrBus test pass!
Load fip header from eMMC, src: 0x0000c000, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010000, des: 0x01000000, size: 0x0000a9b0
Sending bl30...........................................OK. 
Run bl30...
Load bl301 from eMMC, src: 0x0001c000, des: 0x01000000, size: 0x00001c20
Wait bl30...Done
Sending bl301........OK. 
Run bl301...
Load bl31 from eMMC, src: 0x00020000, des: 0x10100000, size: 0x00012130


--- UART initialized after reboot ---
[Reset cause: unknown]
[Image: unknown, amlogic_v1.1.3054-53e549c 2016-03-31 20:40:25 xing.xu@droid05]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef be ad de d f0 aLoad bl33 from eMMC, src: 0x00034000, des: 0x01000000, size: 0x0009fd60
d ba ef be ad de not ES chip
efuse init ops = 13
efuse init hdcp = c, cf9=7
[0.401121 Inits done]
secure task start!
high task start!
low task start!
NOTICE:  BL3-1: v1.0(debug):4c66217
NOTICE:  BL3-1: Built : 17:13:36, Jan 28 2016
INFO:    BL3-1: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x1000000
INFO:    BL3-1: Next image spsr = 0x3c9


U-Boot 2015.01-ga9e9562-dirty (May 26 2016 - 20:33:11)

DRAM:  2 GiB
Relocation Offset is: 76ed3000
register usb cfg[0][1] = 0000000077f62120
register usb cfg[0][2] = 0000000077f62140
register usb cfg[2][0] = 0000000077f62160
vpu detect type: 5
vpu clk_level = 7
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=8, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC:   aml_priv->desc_buf = 0x0000000073ec3770
aml_priv->desc_buf = 0x0000000073ec5900
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
[mmc_init] mmc init success
mmc read lba=0x14000, blocks=0x400
      Amlogic multi-dtb tool
      Single dtb detected
start dts,buffer=0000000073ec7ff0,dt_addr=0000000073ec7ff0
parts: 11
00:      logo	0000000002000000 1
01:  recovery	0000000002000000 1
02:       rsv	0000000000800000 1
03:       tee	0000000000800000 1
04:     crypt	0000000002000000 1
05:      misc	0000000002000000 1
06: instaboot	0000000020000000 1
07:      boot	0000000002000000 1
08:    system	0000000040000000 1
09:     cache	0000000020000000 2
10:      data	ffffffffffffffff 4
get_dtb_struct: Get emmc dtb OK!
overide_emmc_partition_table: overide cache 
[mmc_get_partition_table] skip partition cache.
Partition table get from SPL is : 
        name                        offset              size              flag
===================================================================================
   0: bootloader                         0            400000                  0
   1: reserved                     2400000           4000000                  0
   2: cache                        6c00000          20000000                  2
   3: env                         27400000            800000                  0
   4: logo                        28400000           2000000                  1
   5: recovery                    2ac00000           2000000                  1
   6: rsv                         2d400000            800000                  1
   7: tee                         2e400000            800000                  1
   8: crypt                       2f400000           2000000                  1
   9: misc                        31c00000           2000000                  1
  10: instaboot                   34400000          20000000                  1
  11: boot                        54c00000           2000000                  1
  12: system                      57400000          40000000                  1
  13: data                        97c00000         136500000                  4
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000 
In:    serial
Out:   serial
Err:   serial
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Single dtb detected
Net:   Meson_Ethernet
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode=cold_boot
hpd_state=0
[CANVAS]addr=0x3f800000 width=3840, height=2160

Not find '576cvbs' mapped VIC
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L504:key[usid] not programed yet
[KM]Error:f[key_manage_query_size]L504:key[deviceid] not programed yet
gpio: pin GPIOAO_3 (gpio 122) value is 1
saradc - saradc sub-system

Usage:
saradc saradc open <channel>		- open a SARADC channel
saradc close	- close the SARADC
saradc getval	- get the value in current channel
saradc get_in_range <min> <max>	- return 0 if current value in the range of current channel

Enter USB burn
Try connect time out 701, 700, 640
Hit any key to stop autoboot:  1  0 
Booting...
Unknown command 'unifykey' - try 'help'
Unknown command 'unifykey' - try 'help'
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
      Amlogic multi-dtb tool
      Single dtb detected
ee_gate_off ...
## Booting Android Image at 0x01080000 ...
reloc_addr =73f481c0
copy done
      Amlogic multi-dtb tool
      Single dtb detected
load dtb from 0x1000000 ......
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x01080000, end = 0x01f00fb8
   Loading Ramdisk to 73c2c000, end 73ec1388 ... OK
   Loading Device Tree to 000000001fff4000, end 000000001ffff0ab ... OK
signature: 
fdt_instaboot: get header err

Starting kernel ...

uboot time: 2541079 us

부팅 도중 키입력을 하게되면 u-boot 쉘로 빠지게 된다.

baudrate=115200
bootargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.mem_address=0x20000000 ramoops.mem_size=0x
100000 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive logo=osd1,loaded,0x3f800000,576cvbs hdmimode=1080p60hz cvbsmode=57
6cvbs hdmitx= androidboot.firstboot=0 mac=c4:2f:ad:XX:XX:XX
androidboot.mac=c4:2f:ad:XX:XX:XX
bootcmd=run storeboot
bootdelay=1
bootmode_check=get_rebootmode; echo reboot_mode=${reboot_mode};if test ${reboot_mode} = factory_reset; then defenv_reserv aml_dt;setenv upgrade_step 2; save;fi;
bootup_offset=0x1080240
bootup_size=0x3f4c8
cmdline_keys=if keyman init 0x1234; then if keyman read usid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.serialno=${usid};fi;if keyman read mac ${loadaddr} str; then setenv bootargs ${bootargs} mac=${mac} androidboot.mac=${mac};fi;if keyman read deviceid ${loadaddr} str; then setenv bootargs ${bootargs} androidboot.deviceid=${deviceid};fi;fi;
cvbsmode=576cvbs
display_bpp=16
display_color_bg=0
display_color_fg=0xffff
display_color_index=16
display_height=576
display_layer=osd1
display_width=720
dtb_mem_addr=0x1000000
edid.crcvalue=0xe2070000
ethact=Meson_Ethernet
ethaddr=00:15:18:01:81:31
factory_reset_poweroff_protect=echo wipe_data=${wipe_data}; echo wipe_cache=${wipe_cache};if test ${wipe_data} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi; if test ${wipe_cache} = failed; then run init_display; run storeargs;if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;fi; 
fb_addr=0x3f800000
fb_height=1080
fb_width=1920
fdt_high=0x20000000
firstboot=0
gatewayip=10.18.9.1
hdmimode=1080p60hz
hostname=arm_gxbb
identifyWaitTime=750
init_display=hdmitx hpd;osd open;osd clear;vout output ${outputmode};imgread pic logo bootup $loadaddr;bmp display $bootup_offset;bmp scale
initargs=rootfstype=ramfs init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xc81004c0 ramoops.mem_address=0x20000000 ramoops.mem_size=0x100000 ramoops.record_size=0x8000 ramoops.console_size=0x4000 androidboot.selinux=permissive
ipaddr=10.18.9.97
irremote_update=if irkey 0xe31cfb04 0xb748fb04 2500000; then echo read irkey ok!; if itest ${irkey_value} == 0xe31cfb04; then run update;else if itest ${irkey_value} == 0xb748fb04; then run update;\fi;fi;fi;
loadaddr=1080000
mac=c4:2f:ad:xx:xx:xx
netmask=255.255.255.0
outputmode=576cvbs
preboot=run factory_reset_poweroff_protect;run upgrade_check;run bootmode_check;run init_display;run storeargs;run upgrade_key;run upgrade_sadckey;run switch_b
ootmode;
reboot_mode=cold_boot
recovery_from_flash=if imgread kernel recovery ${loadaddr}; then wipeisb; bootm ${loadaddr}; fi recovery_from_sdcard=if fatload mmc 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload mmc 0 ${loadaddr} recovery.img; then if fatload mmc 0
 ${dtb_mem_addr} dtb.img; then echo sd dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;
recovery_from_udisk=if fatload usb 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload usb 0 ${loadaddr} recovery.img; then if fatload usb 0 
${dtb_mem_addr} dtb.img; then echo udisk dtb.img loaded; fi;wipeisb; bootm ${loadaddr};fi;
sdc_burning=sdc_burn ${sdcburncfg}
sdcburncfg=aml_sdc_burn.ini
serverip=10.18.9.113
set=environment variables
stderr=serial
stdin=serial
stdout=serial
storeargs=setenv bootargs ${initargs} logo=${display_layer},loaded,${fb_addr},${outputmode} hdmimode=${hdmimode} cvbsmode=${cvbsmode} hdmitx=${cecconfig} andro
idboot.firstboot=${firstboot}; run cmdline_keys;
storeboot=echo Booting...; if unifykey get usid; then  setenv bootargs ${bootargs} androidboot.serialno=${usid};fi;if unifykey get mac; then setenv bootargs ${
bootargs} mac=${ethaddr};fi;if imgread kernel boot ${loadaddr}; then store dtb read $dtb_mem_addr; bootm ${loadaddr}; fi;run update;
switch_bootmode=get_rebootmode;if test ${reboot_mode} = factory_reset; then run recovery_from_flash;else if test ${reboot_mode} = update; then run update;else 
if test ${reboot_mode} = cold_boot; then run try_auto_burn; fi;fi;fi;
try_auto_burn=update 700 750;
update=run usb_burning; run sdc_burning; if mmcinfo; then run recovery_from_sdcard;fi;if usb start 0; then run recovery_from_udisk;fi;run recovery_from_flash;
upgrade_check=echo upgrade_step=${upgrade_step}; if itest ${upgrade_step} == 3; then run init_display; run storeargs; run update;else if itest ${upgrade_step} 
== 1; then defenv_reserv; setenv upgrade_step 2; saveenv;fi;fi;
upgrade_key=if gpio input GPIOAO_3; then echo detect upgrade key; run update;fi;
upgrade_sadckey=saradc open 0; if saradc get_in_range 0 0x50; then sleep 1; if saradc get_in_range 0 0x50; then echo update by key...; run update; fi;fi;
upgrade_step=2
usb_burning=update 1000
wipe_cache=successful
wipe_data=successful

u-boot이  bootcmd 커맨드를 자동으로 실행되어 storeboot을 실행하게 되고 여기서 bootargs 를 설정하고, dtb를 읽고, 커널 읽고 bootm 을 통해 android를 부팅하는것을  확인할 수 있다.

안드로이드 부팅하면 root쉘이 자동으로 떠있다.
EMMC가 mmcblk0 으로 잡혀있고 mSD가 mmcblk1로 잡힌다
혹시 모를 상황에 대비해 전체 덤프 뜨고 c2용 armbian을 올렸….는데 부팅이 안된다. AHHHHH

Recovery / Debrick

인터넷 뒤적뒤적하니
http://forum.androidgadget.co.uk/showthread.php?tid=139
http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s802/eny-acemax-ott/20156-help-ott-m8-bad-flash-recovery-using-shorted-nand-pins
이런 저런 신공으로 NAND에 호작질하여 복구한 것을 발견했는데….. 내가 구매한건 보드 레이아웃이 완전 다르다…….
데이터 시트를 보니 RCY가 0이 아니고, 2가 아닌경우 또는 모든 부팅 디바이스가 감지되지 않으면  USB Boot 으로 빠진다.4아마 NAND 쇼트 시키는거도 NAND 감지 못하게해서 USB Boot으로 빠지게 하는것으로 추정하고 eMMC 죽일 각오하고(데이터 시트에 따르면, 어차피 죽어도 SD 카드로는 부팅가능ㅋ) eMMC 주변의 핀들을 쇼트 시켰더니 컴퓨터에 idVendor=1b8e, idProduct=c003로 인식되었다.

tsopKakaoTalk_20160710_205008262NC랑 IO부분이랑 쇼트하면서 전원넣으면 된다.  (사진은 180도 돌아가있다, NC는 Not Connected 인데 이상하게 GND에 연결되어있다) 불꽃놀이 이스터에그 보고싶으면 Vcc, Vss 쇼트하면 된다
정상적인 입출력을 방해해서 NAND 또는 eMMC 통신을 막는것으로 추정된다

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:800;SD:800;USB:8;
usb 1-2: Manufacturer: Amlogic
usb 1-2: USB disconnect, device number 12
usb 1-2: new high-speed USB device number 13 using xhci_hcd
usb 1-2: New USB device found, idVendor=1b8e, idProduct=c003
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: GX-CHIP

이후 윈도우에서 AMLOGIC_TOOL_setup_v2.0.5.15로 원본 펌웨어 플래싱하면된다
아래는 셀러를 통해 받은 오리지널 펌웨어 (AML BURN IMAGE 형식인듯?)
https://mega.nz/#F!5gMHBSyZ!MklQLG9LSnRzu8f5T9rqBw

이제 맘껏 죽여도 된다 (BL0을 건들수 있을진 모르겠지만 BL0 건들면 이방법도 답없을듯..)

ARMBIAN

이번엔 armbian을 eMMC가 아닌 SD카드에 구웠다. (dd명령어 이용)
두개의 파티션이 존재하며 파티션의 시작은 1049kB부터이다

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  68.2MB  67.1MB  primary  fat16        lba
 2      68.2MB  1768MB  1700MB  primary  ext4

1번째 파티션에 부팅관련 이미지들, 2번째 파티션에는 Rootfs가 존재한다
이를 u-boot을 통해 부팅시키기 위해서 u-boot shell 에 접근하여 아래와 같이 타이핑(복붙안됨 아니 되는데 setenv 따로 fatload 따로 booti 따로 해줘야된다, 귀찮..)

setenv bootargs "root=/dev/mmcblk1p2 rootwait rootflags=data=writeback rw console=ttyS0,115200n8 fsck.repair=yes "
setenv loadaddr "0x1080000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"

fatload mmc 0:1 ${initrd_loadaddr} uInitrd
fatload mmc 0:1 ${loadaddr} zImage

booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

우왕ㅋ 부팅 잘됨 ㅋ굳

이걸 영구히 eMMC에 넣어줄려니까 자꾸 BOOT 쪽이 깨져서 플래싱하는 경우가 생긴다
확인해보니 eMMC의 경우 파티션 영역이 부트영역에 저장되어있다 GPT, MBR 이런게 아니라 MPT(MMC Partition Table)라고

240:0000h: 4D 50 54 00 30 31 2E 30 30 2E 30 30 00 00 00 00  MPT.01.00.00.... 
240:0010h: 0E 00 00 00 CA 70 F2 DE 62 6F 6F 74 6C 6F 61 64  ....ÊpòÞbootload 
240:0020h: 65 72 00 00 00 00 00 00 00 00 40 00 00 00 00 00  er........@..... 
240:0030h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 
240:0040h: 72 65 73 65 72 76 65 64 00 00 00 00 00 00 00 00  reserved........ 
240:0050h: 00 00 00 04 00 00 00 00 00 00 40 02 00 00 00 00  ..........@..... 
240:0060h: 00 00 00 00 00 00 00 00 63 61 63 68 65 00 00 00  ........cache... 
240:0070h: 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00  ........... .... 
240:0080h: 00 00 C0 06 00 00 00 00 02 00 00 00 00 00 00 00  ..À............. 
240:0090h: 65 6E 76 00 00 00 00 00 00 00 00 00 00 00 00 00  env............. 
240:00A0h: 00 00 80 00 00 00 00 00 00 00 40 27 00 00 00 00  ..€.......@'.... 
240:00B0h: 00 00 00 00 00 00 00 00 6C 6F 67 6F 00 00 00 00  ........logo.... 
240:00C0h: 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00  ................ 
240:00D0h: 00 00 40 28 00 00 00 00 01 00 00 00 00 00 00 00  ..@(............ 
240:00E0h: 72 65 63 6F 76 65 72 79 00 00 00 00 00 00 00 00  recovery........ 
240:00F0h: 00 00 00 02 00 00 00 00 00 00 C0 2A 00 00 00 00  ..........À*.... 
240:0100h: 01 00 00 00 00 00 00 00 72 73 76 00 00 00 00 00  ........rsv..... 
240:0110h: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00  ..........€..... 
240:0120h: 00 00 40 2D 00 00 00 00 01 00 00 00 00 00 00 00  ..@-............ 
240:0130h: 74 65 65 00 00 00 00 00 00 00 00 00 00 00 00 00  tee............. 
240:0140h: 00 00 80 00 00 00 00 00 00 00 40 2E 00 00 00 00  ..€.......@..... 
240:0150h: 01 00 00 00 00 00 00 00 63 72 79 70 74 00 00 00  ........crypt... 
240:0160h: 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00  ................ 
240:0170h: 00 00 40 2F 00 00 00 00 01 00 00 00 00 00 00 00  ..@/............ 
240:0180h: 6D 69 73 63 00 00 00 00 00 00 00 00 00 00 00 00  misc............ 
240:0190h: 00 00 00 02 00 00 00 00 00 00 C0 31 00 00 00 00  ..........À1.... 
240:01A0h: 01 00 00 00 00 00 00 00 69 6E 73 74 61 62 6F 6F  ........instaboo 
240:01B0h: 74 00 00 00 00 00 00 00 00 00 00 20 00 00 00 00  t.......... .... 
240:01C0h: 00 00 40 34 00 00 00 00 01 00 00 00 00 00 00 00  ..@4............ 
240:01D0h: 62 6F 6F 74 00 00 00 00 00 00 00 00 00 00 00 00  boot............ 
240:01E0h: 00 00 00 02 00 00 00 00 00 00 C0 54 00 00 00 00  ..........ÀT.... 
240:01F0h: 01 00 00 00 00 00 00 00 73 79 73 74 65 6D 00 00  ........system.. 
240:0200h: 00 00 00 00 00 00 00 00 00 00 00 40 00 00 00 00  ...........@.... 
240:0210h: 00 00 40 57 00 00 00 00 01 00 00 00 00 00 00 00  ..@W............ 
240:0220h: 64 61 74 61 00 00 00 00 00 00 00 00 00 00 00 00  data............ 
240:0230h: 00 00 50 36 01 00 00 00 00 00 C0 97 00 00 00 00  ..P6......À—.... 
240:0240h: 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 
240:0250h: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 

관련 코드는 AML u-boot source의 include/emmc_partitions.h, drivers/mmc/emmc_partitions.c 에 존재한다
적당히 저부분 수정 샥샥 해주고 부팅하니까 적용은 되는데 SPL 영역의 데이터와 다르다면서 다음 부팅에서는 다시 복원해버린다 -_-;
MPT부분 싹 날리고 부팅하니…… 안된다 부팅이 ….. u-boot 진입은 되는데 아예 파티션을 못찾는듯(SPL에서 복구하면 되잖아?)

U-boot Compile

linux-3.14-buildroot-pkg-201605-release-v1.2.pdf 9페이지 보면 툴체인 잘 구성하라고 나와있다

CodeSourcery.tar.gz
gnutools.tar.gz
gcc-linaro-aarch64-none-elf-4.8-2013.11_linux. tar

잘 받아서 잘 구성해주자.
$ tar zxf CodeSourcery.tar.gz -C /opt
$ tar zxf gnutools.tar.gz -C /opt
$ tar xf gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar -C /opt
$ export PATH=$PATH: /opt/gnutools/arc2.3-p0/elf32-4.2.1/bin: /opt/CodeSourcery/Sourcery_G++_Lite/bin:/opt/CodeSourcery/Sourcery_G+ +_Lite/arm-none-eabi/bin:/opt/CodeSourcery/Sourcery_G+ +_Lite/arm-none-linux-gnueabi/bin:/opt/gcc-linaro-aarch64-none-elf-4.8-2013.11_li nux/bin/

u-boot 소스는 여기 uboot-2016-05-04-1fdf4683a5.tar.gz
make gxb_p200_v1_config 해주면 컴파일 잘된다.
잘 안되면 arch/arm/cpu/armv8/gxb/firmware/scp_task/Makefile 부터는 크로스 컴파일러를 CodeSourcery에 있는 컴파일러를 사용하게 지정해주면 된다.
mmcblk0에 fip/gxb/u-boot.bin을 올려주고 reboot을 하면 나의 uboot으로 부팅이 된다.

gxb_p200_v1#version

U-Boot 2015.01 (Jul 21 2016 - 00:29:14)
aarch64-none-elf-gcc (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 4.9.2 20140904 (prerelease)
GNU ld (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) 2.24.0.20140829 Linaro 2014.09

근데 여기서 다시 재부팅하면……….. 부팅이 안된다.

GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:0;READ:0;CHK:0;
no sdio debug board detected 
TE: 146530

BL2 Built : 14:28:17, Apr  6 2016. 
gxb g61d9570 - xiaobo.gu@droid05

set vcck to 1100 mv
set vddee to 1000 mv
Board ID = 1
CPU clk: 1536MHz
DDR chl: Rank0+1 same @ 912MHz
DDR0: 1024MB(auto)-2T-13
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c000, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010000, des: 0x01000000, size: 0x0000d460
Sending bl30......................................................OK. 
Run bl30...
Load bl31 from eMMC, src: 0x00020000, des: 0x101b0000, size: 0x00013140
l30: check_permit, count is 1
bl30: check_permit: ok!
efuse_pw_en: 0x3
ERROR! efuse license bits isLoad bl33 from eMMC, src: 0x00034000, des: 0x01000000, size: 0x000a1c00
 disabled
[Image: gxb_v1.1.3108-26b6c29 2016-04-27 18:35:06 xing.xu@droid05]
efuse_setup() 223: OPS=0x13
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: ef be ad de d f0 ad ba ef be ad de not ES chip
[0.257359 Inits done]
secure task start!
high task start!
low task start!

low task start! 찍고 멈춰버린다. 로그를 보면 bl30이 제대로 올라가지 않은것으로 확인된다.(안올렸다!)

부트로더가지고 이것저것 하는거 지쳐서 그냥 microSD 카드에 OS넣고 부팅하기로 하였다.
uboot에서 아래의 명령어를 입력하면 microSD카드로 자동부팅하게된다

setenv sd_bootargs "root=/dev/mmcblk1p2 rootwait rootflags=data=writeback rw console=ttyS0,115200n8 fsck.repair=yes "
setenv loadaddr "0x1080000"
setenv dtb_mem_addr "0x1000000"
setenv initrd_loadaddr "0x13000000"

setenv sdboot "echo SD Booting.....; fatload mmc 0:1 ${initrd_loadaddr} uInitrd; fatload mmc 0:1 ${loadaddr} zImage; setenv bootargs ${sd_bootargs} ; booti ${loadaddr} ${initrd_loadaddr} ${dtb_mem_addr}"
setenv bootcmd "run sdboot"

gxb_p200_v1#env save 
Saving Environment to aml-storage...
mmc env offset: 0x27400000 
Writing to MMC(1)... done
gxb_p200_v1#reboot 

 

근데 부팅할때마다 MAC이 바뀐다…

 


번외
bl2  Trusted Boot Firmware BL2
bl30  SCP Firmware BL3-0
bl301  SCP Firmware BL3-0-1
bl31  EL3 Runtime Firmware BL3-1
bl32  Secure Payload BL3-2 (Trusted OS)
bl33  Non-Trusted Firmware BL3-3

root@odroidc2:~# openssl speed md5 sha256
Doing md5 for 3s on 16 size blocks: 1766192 md5's in 3.00s
Doing md5 for 3s on 64 size blocks: 1534685 md5's in 3.00s
Doing md5 for 3s on 256 size blocks: 1041115 md5's in 3.00s
Doing md5 for 3s on 1024 size blocks: 454482 md5's in 3.00s
Doing md5 for 3s on 8192 size blocks: 72737 md5's in 2.99s
Doing sha256 for 3s on 16 size blocks: 1804421 sha256's in 3.00s
Doing sha256 for 3s on 64 size blocks: 1139236 sha256's in 3.00s
Doing sha256 for 3s on 256 size blocks: 540779 sha256's in 3.00s
Doing sha256 for 3s on 1024 size blocks: 174950 sha256's in 3.00s
Doing sha256 for 3s on 8192 size blocks: 23918 sha256's in 2.99s
OpenSSL 1.0.1t  3 May 2016
built on: Thu May 19 04:59:52 2016
options:bn(64,64) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr) 
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -
g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wa,--noexecstack -Wall
The 'numbers' are in 1000s of bytes per second processed.
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
md5               9419.69k    32739.95k    88841.81k   155129.86k   199284.78k
sha256            9623.58k    24303.70k    46146.47k    59716.27k    65530.52k
root@odroidc2:~# openssl speed rsa1024
Doing 1024 bit private rsa's for 10s: 3226 1024 bit private RSA's in 10.00s
Doing 1024 bit public rsa's for 10s: 63910 1024 bit public RSA's in 9.99s
OpenSSL 1.0.1t 3 May 2016
built on: Thu May 19 04:59:52 2016
options:bn(64,64) rc4(ptr,char) des(idx,cisc,16,int) aes(partial) blowfish(ptr) 
compiler: gcc -I. -I.. -I../include -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -
g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wa,--noexecstack -Wall
 sign verify sign/s verify/s
rsa 1024 bits 0.003100s 0.000156s 322.6 6397.4

 

 


작성중 (업데이트 될거야 언젠간)