Firmware images and firmware updates

Firmware update images

A firmware update image is nothing more than a standard U-boot uImage file with a kernel and an embedded root filesystem.  An example of a firmware update image can be found here.

There is nothing additional in a firmware update image – no signature, encryption, etc.  Just a simple uImage file.

The mkimage utility (from the uboot-tools package) shows the following for the firmware image (U-boot uImage) referenced above:

$ mkimage -l A356_upgrade_00.10.011_20170221.img 
Image Name: Imogen-X860-I
Created: Tue Feb 21 00:42:01 2017
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6712048 Bytes = 6554.73 kB = 6.40 MB
Load Address: 80008000
Entry Point: 80008000
$

The U-boot uImage file has a 64-byte header, which looks like the following:

$ hexdump -Cv -n 64 A356_upgrade_00.10.011_20170221.img|cut -c-58
00000000 27 05 19 56 9e 83 37 37 58 ab d3 29 00 66 6a f0
00000010 80 00 80 00 80 00 80 00 a1 48 48 d8 05 02 02 00
00000020 49 6d 6f 67 65 6e 2d 58 38 36 30 2d 49 00 00 00
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Immediately after the 64-byte uImage header is the kernel.  The kernel itself is XZ-compressed, so has a small program prepended to it which can decompress the kernel image and start the kernel.

The kernel has an embedded root filesystem (initramfs) which was linked-into the kernel at build time.  The initramfs is a cpio archive, which itself has also been XZ compressed and stored inside the kernel.

Two copies of the firmware (kernel)

As I mentioned in my previous post, there are two separate mtd partitions in the SPI flash used for firmware/kernel images – one is called “kernel0” (in mtd3), the other is “kernel1” (in mtd4).

One of the kernel partitions is “active” (the one that is running), and the other is “inactive”.  When a new firmware update image is installed, it is copied to the “inactive” mtd partition, then it is marked as the “active” image.  On the next boot, u-boot will load the new “active” image and run it.

Identifying active vs inactive kernel images

The last 4-bytes of the 64-byte uImage header are used as a ‘counter/version’.  The kernel image with the largest counter value is the ‘active’ partition.

As an example, here are hexdumps showing the first 64-bytes of my StuartCam’s current “kernel0” (mtd3) and “kernel1” (mtd4) partitions.

# dump kernel0/mtd3 header
$ hexdump -Cv -n 64 /dev/mtd3|cut -c-58
00000000 27 05 19 56 07 8a 66 8d 58 ab d3 29 00 66 6a f0
00000010 80 00 80 00 80 00 80 00 a1 48 48 d8 05 02 02 00
00000020 49 6d 6f 67 65 6e 2d 58 38 36 30 2d 49 00 00 00
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03

# dump kernel1/mtd4 header
$ hexdump -Cv -n 64 /dev/mtd4|cut -c-58
00000000 27 05 19 56 28 8b 40 5b 58 f7 ff 6b 00 66 6a f0
00000010 80 00 80 00 80 00 80 00 e1 59 88 12 05 02 02 00
00000020 49 6d 6f 67 65 6e 2d 58 38 36 30 2d 49 00 00 00
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04

Note that the last 4 bytes of “kernel0” are “00 00 00 03” (counter = 0x00000003) and the last 4 bytes of “kernel1” are “00 00 00 04” (counter = 0x00000004).  Since “kernel1” has a larger counter than “kernel0”, “kernel1” is the ‘active’ partition.

When U-boot starts up (on power-cycle or reboot), it looks at both headers.  In the above example, U-boot will choose to load/run “kernel1”, since it is the ‘active’ parition.

When a new firmware update image is installed, using the above example, it will choose to write the new firmware to the “kernel0” partition (since it is ‘inactive’).  Once the firmware is fully written, the firmware update process will write a new “counter” value to the last 4 bytes of the 64-byte header.  This counter value will be one larger than the currently active partition’s counter value.

So, the next update on this StuartCam will be written to “kernel0”, and the new counter value will be “00 00 00 05” (counter = 0x00000005). On next boot, U-boot will see this as the largest counter, and will boot it instead.

An initial look at the system

Similar products

This camera is manufactured by Tend Insights.  They seem to have several other products, some of which look physically similar to this one.

Looking at the kernel header, I found the string “Imogen-X860-I”.  Googling for that found imogenstudio, which also sells cameras, some of which look physically similar to the Stuart Cam.  Here’s a link to the quick start guide for their CAM+ product, which shows a similar “setup” switch on the back with 3 vertically-oriented LEDs.

The imogenstudio CAM+ product uses an app by iSecurity+, which also seems to sell a camera, and references the name “Seedonk camera”.

The Stuart Cam’s firmware has the string “Seedonk” throughout, and firmware updates for the Stuart Cam come from app.isecurityplus.com/seedonk.

I’ve seen references to other brand (including Belkin) in the firmware.  Here’s a user guide for a Belkin Netcam which looks very similar to the Stuart Cam.

So, it’s unclear who really makes the camera/software.  I suspect that anything we find here on the Stuart Cam could apply to others.

Hardware

The SoC is an infoTMIC IMAPX860 which (according to Linux) is a dual-core ARMv7 CPU.  Linux’s “machine” name for this chip is “iMAPx15”.

I did some Googling for this SoC and found that it’s used in cheapo Android tablets.

The system boots from a 32-megabyte SPI flash chip.  There are 256-megabytes of RAM.

I see an empty space/solder pads that looks like an SD card socket could be added.  Maybe one of the other varieties of this camera includes a memory card slot.

Wifi is provided by a Broadcom (now Cypress) BCM43438 chip (datasheet).  This chip supports 2.4GHz 802.11 b/g/n Wifi, Bluetooth 4.1, and an FM receiver (although I see no indication (so far) that this camera has enabled anything other than Wifi)

The camera module is based on the Micron MT9D111 sensor (datasheet).  The datasheet says it’s 1600×1200 pixels (UXGA).

SPI flash memory layout

Here’s the SPI flash partitioning used by Linux:

0x000000000000-0x000000080000 : "boot"
0x000000080000-0x000000090000 : "oem"
0x000000090000-0x0000000a0000 : "config"
0x0000000a0000-0x000000aa0000 : "kernel0"
0x000000aa0000-0x0000014a0000 : "kernel1"
0x0000014a0000-0x000001520000 : "jffs"
0x000001520000-0x000002000000 : "media"

“boot” is the U-Boot boot loader (used on many embedded systems).

“oem” contains information including the MAC address, and names like “StuartCam”, “Minions”.  Assuming all of these various camera brands out there are all using the same hardware, this may be where the firmware gets customized for each OEM.

“config” contains system settings used by the firmware.

“kernel0” and “kernel1” are the two copies of the firmware (each is a standard U-boot uImage file, containing a kernel with an embedded root filesystem).

There are two copies of the firmware to support firmware upgrades – you boot from the “active” kernel, and a firmware install will overwrite the “inactive” kernel – only marking it as “active” after the install is complete.   I’ll describe the kernel images/firmware update process in more detail in a future post.

“jffs” is a “jffs2-formatted” filesystem mounted as “/mnt/config”.  I don’t see anything stored here currently, but it may be used for user settings.

“media” appears to be empty/unused (about 10-megabytes of free space)

 

Serial port connection and console boot log

As you can see from the following photo, the serial port connection is pretty clearly labeled (GND/RX/TX signals on the 4-pin header in the corner):

The signals are TTL-level (not RS232-level).

After connecting a serial adapter, you’ll see something like the following when you power-on the device (I’ve never configured this device, so a configured one may look a bit different on boot):

__

spl: start
rtcbits_v2: initializing ...
rtcbits: resetflag, 8@0
rtcbits: holdbase, 24@8
rtcbits: batterycap, 8@32
rtcbits: retry_reboot, 8@40
rtcbits: fastboot, 1@48
rtcbits: forceshut, 1@49
rtcbits: sleeping, 1@0
spl: ----------------------------------------
spl: devType:0x4
spl: ----------------------------------------
spl: bdevice_id:0x7
cmd1 intsts=0x104 err!
Card did not respond to voltage select!
MMC: block number 0x8001 exceeds max(0x0)
magic do not match2. 0x83e5b93a
PCLK: 134000000, PS: 2, SCR: 12, Fout: 5153846
board arch is set to: a5pv10
cpu is imapx15
rtcbits: get bits for resetflag: 0x00
boot state(0)
---------------bootst: 0
spl: dramc---DDR V6.0: mDDR support 16:58:51
spl: dramc---
dramc init start
spl: dramc---dram.type found in items, the value is mDDR
spl: dramc---dram.freq found in items, its value is 200
spl: dramc---memory.cl found in items, its value is 3
spl: dramc---dram.count found in items, its value is 1
spl: dramc---dram.width found in items, its value is 32
spl: dramc---dram.capacity found in items, its value is 256
spl: dramc---memory.driver not found in items, use its default value 633764384
spl: dramc---memory.trfc found in items, its value is 64
spl: dramc---memory.tras found in items, its value is 15
spl: dramc---memory.highres not found in items, use its default value 0
spl: dramc---dram.rank_sel 1, dram.count 0, dram.reduce_flag 0
spl: dramc---count width capacity: 0, 3, 5, size 0x100
spl: dramc---rcb: 14 10 2
spl: dramc---ADDR_PHY_PGSR = 0xa
spl: dramc---dramc init succeed and finished
rballoc: 0x1000@0x87808000 allocated for bootstats
rballoc: 0x1000@0x87809000 allocated for devType
spl: dramc---dram.size not found in items, use default value 256
rballoc: 0x1000@0x8780a000 allocated for dramsize
rballoc: 0x1000@0x8780b000 allocated for bootxom
spl: boot item exist: board.disk, flash
PCLK: 134000000, PS: 2, SCR: 12, Fout: 5153846
hash_data
i: type (1)
i: signature (0)
rballoc: 0x4000@0x8780c000 allocated for itemrrtb
spl: jump
rballoc: 0x4000@0x”

U-Boot 2009.08 (Jul 27 2016 - 16:58:07)
Shanghai InfoTM Microelectronics Co., Ltd.

Memory type: DDRII 128 MB
rballoc: 0x1000@0x87814000 allocated for rtcbits
rtcbits_v2: initializing ...
rtcbits: resetflag, 8@0
rtcbits: holdbase, 24@8
rtcbits: batterycap, 8@32
rtcbits: retry_reboot, 8@40
rtcbits: fastboot, 1@48
rtcbits: forceshut, 1@49
rtcbits: sleeping, 1@0
rbget item_mem = 8780c000
IR led is not opened 
$$$$$$$$$$$$$$$$$LED ON$$$$$$$$$$$$$$$$$$$$$$$$$
board arch is set to: a5pv10
cpu is imapx15
env_relocate[228] offset = 0x0
*** Warning - bad CRC or NAND, using default environment

Console devices(i/o/e): serial, serial, serial
rtcbits: get bits for resetflag: 0x00
---------------bootst: 0
rtcbits: get bits for resetflag: 0x00
bootst exist: 0
---------------bootst: 0
Hit any key to stop autoboot: 0 
keys.fastboot not exist
 display_logo screenDeviceType:1, burn_status:1, timest:1074
 display_logo no for begin, timest:1078
rballoc: 0x1000@0x87815000 allocated for rclk
rballoc: 0x1000@0x87816000 allocated for rfpsx1000
rballoc: 0x1000@0x87817000 allocated for div2
rballoc: shared owner (rclk) 0x1000@0x87815000
rballoc: shared owner (rfpsx1000) 0x1000@0x87816000
rballoc: shared owner (div2) 0x1000@0x87817000
rballoc: 0x1000@0x87818000 allocated for ubootlogo
rtcbits: get bits for resetflag: 0x00
bootst exist: 0
---------------bootst: 0
cmd1 intsts=0x104 err!
Card did not respond to voltage select!
assign device(mmc1) failed (-17)
cmd1 intsts=0x104 err!
Card did not respond to voltage select!
assign device(mmc1) failed (-17)
No media_src for seperate images detected
batt_main() 
batt_item_init() run 
PMU_NULL 
batt_item.batt_v_start = 3450 
charger_pwron = 0, charger_enable = 0 
PMU isn't AXP202, AXP202_MODE_NULL 
CPU IS IMAPX15 NEW V2.1
batt_item_init() end 
rtcbits: get bits for resetflag: 0x00
bootst exist: 0
---------------bootst: 0
pmu.model is exist, but not set the pmu supported
only for debug, or system error
begain infotm_check_recovery
keys.recovery not exist
PCLK: 134000000, PS: 2, SCR: 2, Fout: 22333333
warning: not spi boot
xom=2
boottype == 0
bootl from NORMAL.
fetch kernel0@0xa0000 ...
PCLK: 134000000, PS: 2, SCR: 2, Fout: 22333333
warning: not spi boot
xom=2
3268ms
line:248,bootl->board.disk item_equal flash,is spi
 BOOT CMD: bootm 80007fc0
## Booting kernel from Legacy Image at 80007fc0 ...
 Image Name: Imogen-X860-I
 Image Type: ARM Linux Kernel Image (uncompressed)
 Data Size: 8753448 Bytes = 8.3 MB
 Load Address: 80008000
 Entry Point: 80008000
 Loading Kernel Image ... OK
OK

Starting kernel ...

‡ÂÜÖ•ÊÖ¬áÊÁÑÁƒ§ÁƒßÑ܉§áÊbBooting Linux on physical CPU 0x0
Linux version 3.10.0-InfoTMIC+ (qa1@localhost.localdomain) (gcc version 4.7.3 (Buildroot 2014.02-git) ) #262 SMP PREEMPT Tue Aug 9 11:40:00 CST 2016
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=50c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: iMAPx15
cma: CMA: reserved 64 MiB at 8b800000
Memory policy: ECC disabled, Data cache writealloc
items length: 8015
pmm reserved size=0MB
Set cpu case to: 0
PERCPU: Embedded 7 pages/cpu @c0c87000 s8064 r8192 d12416 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64770
Kernel command line: console=ttyAMA3,115200 vmalloc=304M androidboot.platform=imapx800 mem=255M androidboot.serialno=iMAPbxxxxxxx rootfstype=cramfs root=/dev/ram0 androidboot.hardware=Q8v30
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: 255MB = 255MB total
Memory: 182364k/182364k available, 78756k reserved, 0K highmem
Virtual kernel memory layout:
 vector : 0xffff0000 - 0xffff1000 ( 4 kB)
 fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
 vmalloc : 0xd0000000 - 0xff000000 ( 752 MB)
 lowmem : 0xc0000000 - 0xcff00000 ( 255 MB)
 pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
 modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
 .text : 0xc0008000 - 0xc032ec08 (3228 kB)
 .init : 0xc032f000 - 0xc09d3f80 (6804 kB)
 .data : 0xc09d4000 - 0xc0a2eb80 ( 363 kB)
 .bss : 0xc0a2f2f8 - 0xc0a7f65c ( 321 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:512
3imapx: timer-ca5 registered
Got cmn-timer rate: 94000000
common timer is disabled. 1
3imapx: timer-cmn registered.
sched_clock: 32 bits at 200 Hz, resolution 5000000ns, wraps every 4294967291ms
Console: colour dummy device 80x30
Calibrating delay loop... 373.55 BogoMIPS (lpj=933888)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
start_kernel -> rest_init jiff:ffff15a7, timest:0-35000
kernel_init ->kernel_init_freeable , jiff:ffff15a7, timest:0-35000
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
common timer is disabled. 0
common timer is disabled. 1
Setting up static identity map for 0xc02764b0 - 0xc02764fc
do_one_initcall[1] fn:0xc0332b91, jiff:ffff15a7, timest:0-35000, diff:0
boot secondaty
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (749.15 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
kernel_init_freeable -> do_basic_setup jiff:ffff15af, timest:0-75000
devtmpfs: initialized
do_initcall_level[0], cnt=4
regulator-dummy: no parameters
NET: Registered protocol family 16
do_initcall_level[1], cnt=22
DMA: preallocated 2048 KiB pool for atomic coherent allocations
do_initcall_level[2], cnt=11
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x72730000, Cache size: 262144 B
imapx15_init_devices no changer. jiff:ffff15bb, timest:0-135000, cnt:35
platform_add_devices Device[0]:imap-gpio
platform_add_devices Device[34]:display
imapx15_init_gpio: ngpio = 137
hw-breakpoint: found 2 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
put pl011_init to thread., jiff:ffff15bd, timest:0-145000
Serial: AMBA PL011 UART driver
tty_register_driver entry. timest: jiffis:ffff15bd
tty_register_driver done. timest: jiffis:ffff15bd
imapx15_gpiochip_probe: in
pl011_probe entry. jiff:ffff15bd, timest:0-145000
imap-uart.0: ttyAMA0 at MMIO 0x20800000 (irq = 53) is a PL011 rev0
imapx15_gpiochip_probe: done!
pl011_probe finsish. jiff:ffff15bd(dif:0), timest:0-145000
pl011_probe entry. jiff:ffff15bd, timest:0-145000
imapx800 emif init. 
imapx800 emif init done. 
imap-uart.1: ttyAMA1 at MMIO 0x20801000 (irq = 54) is a PL011 rev0
imapx_i2c_probe-channel : 0 
pl011_probe finsish. jiff:ffff15bd(dif:0), timest:0-145000
pl011_probe entry. jiff:ffff15bd, timest:0-145000
imap-uart.2: ttyAMA2 at MMIO 0x20802000 (irq = 55) is a PL011 rev0
imapx_i2c_probe-channel : 1 
pl011_probe finsish. jiff:ffff15bd(dif:0), timest:0-145000
pl011_probe entry. jiff:ffff15bd, timest:0-145000
imap-uart.3: ttyAMA3 at MMIO 0x20803000 (irq = 56) is a PL011 rev0
imapx_i2c_probe-channel : 2 
imapx_i2c_probe-channel : 3 
imapx_i2c_probe-channel : 4 
imapx_i2c_probe-channel : 5 
do_initcall_level[3], cnt=11
do_one_initcall[58] fn:0xc0335a11, jiff:ffff15d4, timest:0-260000, diff:110
bio: create slab <bio-0> at 0
dma-pl330 dma-pl330: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330: DBUFF-128x8bytes Num_Chans-7 Num_Peri-24 Num_Events-12
do_one_initcall[69] fn:0xc033b819, jiff:ffff15e5, timest:0-345000, diff:85
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pmu is not axp202!
****** tps65910_i2c_init run ! ******
tps65910_i2c_init: pmu model is not exist
****** tps65910_init run ! ******
tps65910_init: pmu model is not exist
Advanced Linux Sound Architecture Driver Initialized.
------------[ cut here ]------------
WARNING: at net/wireless/reg.c:434 0xc0341b6d()
db.txt is empty, you should update it...
Modules linked in:
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.10.0-InfoTMIC+ #262
Function entered at [<c0010535>] from [<c000ebd7>]
Function entered at [<c000ebd7>] from [<c001b34b>]
Function entered at [<c001b34b>] from [<c001b3b5>]
Function entered at [<c001b3b5>] from [<c0341b6d>]
Function entered at [<c0341b6d>] from [<c0341ae7>]
Function entered at [<c0341ae7>] from [<c000853f>]
Function entered at [<c000853f>] from [<c032f62d>]
Function entered at [<c032f62d>] from [<c032f6f5>]
Function entered at [<c032f6f5>] from [<c026f76d>]
Function entered at [<c026f76d>] from [<c000c73d>]
---[ end trace d3dace0ff1fbca50 ]---
cfg80211: Calling CRDA to update world regulatory domain
imap-ssp imap-ssp.0: ARM PL022 driver, device ID: 0x00041022
pl022: mapped registers from 0x20500000 to d001c000
DMA_ADDR_ALIGN addr 0xcba01000, 0x8ba01000
imap-ssp imap-ssp.0: setup for DMA on RX dma0chan1, TX dma0chan0
imap-ssp imap-ssp.0: !!!!!!!!!!!! pl022_probe: probe OK
imap-ssp imap-ssp.1: ARM PL022 driver, device ID: 0x00041022
pl022: mapped registers from 0x20501000 to d001e000
imap-ssp imap-ssp.1: !!!!!!!!!!!! pl022_probe: probe OK
do_initcall_level[4], cnt=50
Switching to clocksource timer-ca5
tty_register_driver entry. timest: jiffis:ffff15ec
tty_register_driver done. timest: jiffis:ffff15f1
dwc_otg_init_entry sleep
console [ttyAMA3] enabled
pl011_probe finsish. jiff:ffff162a(dif:6d), timest:0-688436
pl011_init_entry jiff:ffff162b(6e), timest:0-694025, diff:549
dwc_otg_init_entry awake
dwc_otg: version 2.92a 15-NOV-2010
Core Release: 2.93a
Setting default values for core params
==== dma_enable is 1 dma_desc_enable is 1 ==== 
Using Descriptor DMA mode
Periodic Transfer Interrupt Enhancement - disabled
OTG VER PARAM: 1, OTG VER FLAG: 1
Dedicated Tx FIFOs mode
dwc_otg_driver_init jiff:ffff19ab, timest:5-170516, diff:264
do_one_initcall[118] fn:0xc033ec51, jiff:ffff19ac, timest:5-175960, diff:4775
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
initrd_end=0, initrd_start=0, __initramfs_start=c0346f98, __initramfs_size=68a23c
do_one_initcall[124] fn:0xc03309b9, jiff:ffff1df0, timest:10-635613, diff:5400
do_initcall_level[5], cnt=18
CPU PMU: probing PMU on CPU 0
hw perfevents: enabled with ARMv7 Cortex-A5 PMU driver, 3 counters available
iMAP PWM Driver Init.
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
NTFS driver 2.1.30 [Flags: R/O].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 484
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
tty_register_driver entry. timest: jiffis:ffff1e00
tty_register_driver done. timest: jiffis:ffff1e01
tty_register_driver entry. timest: jiffis:ffff1e01
tty_register_driver done. timest: jiffis:ffff1e02
uart-pl011 imap-uart.0: no DMA platform data
uart-pl011 imap-uart.1: no DMA platform data
uart-pl011 imap-uart.2: no DMA platform data
uart-pl011 imap-uart.3: no DMA platform data
brd: module loaded
loop: module loaded
m25p80 spi0.0: found w25q256, expected mx25l12805d
m25p80 spi0.0: w25q256 (32768 Kbytes)
Creating 7 MTD partitions on "spi0.0":
0x000000000000-0x000000080000 : "boot"
0x000000080000-0x000000090000 : "oem"
0x000000090000-0x0000000a0000 : "config"
0x0000000a0000-0x000000aa0000 : "kernel0"
0x000000aa0000-0x0000014a0000 : "kernel1"
0x0000014a0000-0x000001520000 : "jffs"
0x000001520000-0x000002000000 : "media"
do_one_initcall[221] fn:0xc033d219, jiff:ffff1e18, timest:10-839955, diff:57
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
imap-ehci imap-ehci: Infotm Ehci Controller
imap-ehci imap-ehci: new USB bus registered, assigned bus number 1
imap-ehci imap-ehci: irq 160, io mem 0x27001000
imap-ehci imap-ehci: USB 2.0 started, EHCI 1.00
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: Infotm Ehci Controller
usb usb1: Manufacturer: Linux 3.10.0-InfoTMIC+ ehci_hcd
usb usb1: SerialNumber: imap-ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
do_one_initcall[223] fn:0xc033d465, jiff:ffff1e28, timest:10-915184, diff:68
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
imap-ohci imap-ohci: Infotm Ohci Controller
imap-ohci imap-ohci: new USB bus registered, assigned bus number 2
imap-ohci imap-ohci: irq 161, io mem 0x27000000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: Infotm Ohci Controller
usb usb2: Manufacturer: Linux 3.10.0-InfoTMIC+ ohci_hcd
usb usb2: SerialNumber: imap-ohci
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
do_one_initcall[224] fn:0xc033d4c1, jiff:ffff1e3e, timest:11-29812, diff:108
tty_register_driver entry. timest: jiffis:ffff1e40
tty_register_driver done. timest: jiffis:ffff1e41
i2c /dev entries driver
uvcvideo: Unable to create debugfs directory
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
tty_register_driver entry. timest: jiffis:ffff1e45
tty_register_driver done. timest: jiffis:ffff1e46
zram: Created 1 device(s) ...
Init Infotm ION driver v2014.02.08
infotm ion creat No.0 heap: c0a16a24, type=0
infotm ion creat No.1 heap: c0a16a40, type=4
ION device create OK!
Infotm ION driver v2014.02.08 register done!
pwm_regulator_probe: id=1
pwm1: 900 <--> 1390 mV at 1388 mV 
Synopsys Designware Multimedia Card Interface Driver
imap-mmc1 imap-mmc1.1: Using internal DMA controller.
imap-mmc1 imap-mmc1.1: Version ID is 241a
imap-mmc1 imap-mmc1.1: DW MMC controller at irq 163, 32 bit host data width, 512 deep fifo
mmc0: no vmmc regulator found
mmc_host mmc0: Bus speed (slot 0) = 96000000Hz (slot req 400000Hz, actual 400000HZ div = 120)
imap-mmc1 imap-mmc1.1: 1 slots initialized
imap-mmc1 imap-mmc1.2: Using internal DMA controller.
imap-mmc1 imap-mmc1.2: Version ID is 241a
imap-mmc1 imap-mmc1.2: DW MMC controller at irq 164, 32 bit host data width, 512 deep fifo
mmc1: no vmmc regulator found
mmc_host mmc1: Bus speed (slot 0) = 96000000Hz (slot req 400000Hz, actual 400000HZ div = 120)
imap-mmc1 imap-mmc1.2: 1 slots initialized
imap-mmc1 imap-mmc1.2: Internal DMAC interrupt fix enabled.
do_one_initcall[252] fn:0xc033e371, jiff:ffff1e66, timest:11-229645, diff:123
items driver (c) 2009, 2014 InfoTM
put imapx_rtc_init to thread.
pcf8563 probe error,hw rtc is imapx
pcf8563-rtc: probe of pcf8563-rtc failed with error -1
venc probe
venc get clock real_rate -> 278437500(set to 280000000) 
fr1023: Codec dirver is fr1023.

hpdetect: maybe need another mode
gpio type wifi power, gpio_index is 58
do not config wifi.reset in board.itms
iMAP_RTC: +++imapx_rtc_probe: probe=c09fbcd8+++
imap-rtc imap-rtc: rtc core: registered imap-rtc as rtc0
sensor infomation: 
exist: 1
name : mt9d111
ctrl_bus: i2c
 interface : camif
face: front
pw_iovdd: 
pw_dvdd: 
bus_chn: 1
pdown_pin: 135
reset_pin: 134
orientation: 270
addr: 0
mclk: 0
Let's ignore regulor check process
==========> I am in The Drive of mt9d111 <==========
~~~~~~~~~~ camif driver in mt9d111 probe end ok
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
camif driver power off rear sensor
==============> i am in The Init of drinver for mt9d111 <===============
 mt9d111 read id
[mt9d111] Sensor ID[0x00]:0x1519
camif sensor1 not exist
do_one_initcall[273] fn:0xc033ef75, jiff:ffff1e84, timest:11-378772, diff:83
imapx_dvfs:failed to connect dc1 rail
imapx_dvfs:imapx_dvfs_init error -22
CPU frequency gain from item: -200.-9999
CPU scaling frequency: 24.0
soc-audio soc-audio: ASoC: machine fr1023 should use snd_soc_register_card()
fr1023_codec_init: reg=90, val=2
fr1023_codec_init: reg=c0, val=b
fr1023_codec_init: reg=e0, val=de
fr1023_codec_init: reg=110, val=22
fr1023_codec_init: reg=120, val=0
fr1023_codec_init: reg=130, val=f
fr1023_codec_init: reg=150, val=0
fr1023_codec_init: reg=160, val=7f
fr1023_codec_init: reg=230, val=9
imapx-i2s imapx-i2s.0: Entered imapx_i2s_probe
soc-audio soc-audio: fr1023_dai <-> imapx-i2s.0 mapping ok
do_one_initcall[281] fn:0xc033f425, jiff:ffff1e94, timest:11-456529, diff:56
Key type dns_resolver registered
do_initcall_level[6], cnt=165
VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1
++ imapx15_init_pm ++
wifi_usb_rfkill_init
wifi_usb_rfkill_init done
wifi_usb_rfkill_probe
wifi_set_power set blocked=1
BRCM USB MODULE RESET LOW!!file system registered
android_usb gadget: Mass Storage Function, version: 2009/09/11
android_usb gadget: Number of LUNs=1
 lun0: LUN: removable file: (no medium)
android_usb gadget: android_usb ready
imap-rtc imap-rtc: setting system clock to 2007-01-01 00:00:23 UTC (1167609623)
--->mmc_sdio_get_max_clock:24000000n
mmc_host mmc1: Bus speed (slot 0) = 96000000Hz (slot req 24000000Hz, actual 24000000HZ div = 2)
mmc1: new SDIO card at address 0001
do_one_initcall[302] fn:0xc033d7ed, jiff:ffff1ea5, timest:1167609623-522241, diff:-621492508
item adc.model Not exist
ALSA device list:
 #0: fr1023
do_initcall_level[7], cnt=20
kernel_init_freeable -> do_basic_setup done. jiff:ffff1ea8, timest:1167609623-539439
Warning: unable to open an initial console.
set ramdisk flash type
ramdisk spi flash
ramdisk /init exist!
kernel_init_freeable -> load_default_modules done. jiff:ffff1eab, timest:1167609623-556687
Freeing unused kernel memory: 6800K (c032f000 - c09d3000)
ramdisk_execute_command:/init
run_init_process: /init
0:HOME=/
1:TERM=linux
uart_open: tty->index=3
uart_open: tty->index=3
uart_open: tty->index=3
init: begin start only avsvr/ on lpddr
enable_32k_rtc init.
enable_32k_rtc 
do_one_initcall[310] fn:0xbf802001, jiff:ffff1ed3, timest:1167609623-753670, diff:106
^^^^^ g_structOEMINFO.ucInited = 1
 bbbbbbbb
param_verify_countrycode_ushort cc=101 109
==== build_NET: Registered protocol family 17
SSID =====> OEM MAC=XX:XX:XX:XX:XX:XX
ssid=StuartCamF2B4
 calling param_filter_systemmodel: StuartCam, Minions, A356=X860+2010
pbrand=StuartCam, partner=Minions, mist=A356=X860+2010
Update SystemModel=Imogen-X860-I
dhd_module_init: in
======== bcm_wlan_set_plat_data ========
GPIO(WL_HOST_WAKE) = GPIO23
------------[ cut here ]------------
WARNING: at drivers/gpio/gpiolib.c:160 0xc0119049()
autorequest GPIO-23
Modules linked in: bcmdhd(+) af_packet enable_32k_rtc
CPU: 0 PID: 720 Comm: insmod Tainted: G W 3.10.0-InfoTMIC+ #262
Function entered at [<c0010535>] from [<c000ebd7>]
Function entered at [<c000ebd7>] from [<c001b34b>]
Function entered at [<c001b34b>] from [<c001b3b5>]
Function entered at [<c001b3b5>] from [<c0119049>]
Function entered at [<c0119049>] from [<c01193bb>]
Function entered at [<c01193bb>] from [<bf8352a7>]
Function entered at [<bf8352a7>] from [<bf8176dd>]
Function entered at [<bf8176dd>] from [<bf87304d>]
Function entered at [<bf87304d>] from [<c000853f>]
Function entered at [<c000853f>] from [<c004597f>]
Function entered at [<c004597f>] from [<c0045bd7>]
Function entered at [<c0045bd7>] from [<c000c681>]
---[ end trace d3dace0ff1fbca52 ]---
host_oob_irq: 264
host_oob_irq_flags=0x414
dhd_wifi_platform_load: Enter
Power-up adapter 'DHD generic adapter'
wifi_platform_set_power = 1
======== PULL WL_REG_ON HIGH! ========
bcm_wlan_set_power: wifi_power 0
wifi_platform_bus_enumerate device present 1
======== Card detection to detect SDIO card! ========
bcmsdh_register: register client driver
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
bus num (host idx)=1, slot num (rca)=1
found adapter info 'DHD generic adapter'
sdioh_attach: set sd_f2_blocksize 128
dhdsdio_probe : no mutex held. set lock
F1 signature read @0x18000000=0x1530a9a6
F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x0 pkg:0x3
DHD: dongle ram size is set to 524288(orig 524288) at 0x0
wifi_platform_get_mac_addr
======== bcm_wlan_get_mac_address ========
Host Mac: XX:XX:XX:XX:XX:XX
####### Get Customer Host Mac ###### = XX:XX:XX:XX:XX:XX
dhd_conf_set_chiprev: chip=0xa9a6, chiprev=0
^^^^^^^^^^^^^^^^^^conf->dpc_cpucore=0
dhd_conf_set_conf_path_by_nv_path: config_path=/etc/firmware/config.txt
dhd_conf_read_config: Ignore config file /etc/firmware/config.txt
wl_create_event_handler(): thread:wl_event_handler:2d6 started
tsk Enter, tsk = 0xc906147c
dhd_attach(): thread:dhd_watchdog_thread:2da started
dhd_attach(): thread:dhd_dpc:2db started
dhd_dpc_thread: set dpc_cpucore 0 from config.txt
dhd_attach(): thread:dhd_rxf:2dc started
dhd_deferred_work_init: work queue initialized 
Dongle Host Driver, version 1.201.59.6 (r506368)
Compiled in drivers/net/wireless/bcmdhd on Jul 27 2016 at 18:00:09
Register interface [wlan0] MAC: XX:XX:XX:XX:XX:XX

dhdsdio_probe : the lock is released.
dhd_module_init: Exit err=0
do_one_initcall[312] fn:0xbf873001, jiff:ffff1f5c, timest:1167609624-437638, diff:580
dhd_open: Enter cb016800
^^^^^^^^^^^^^^^^^^conf->dpc_cpucore=0
dhd_conf_read_config: Ignore config file /etc/firmware/config.txt
dhd_conf_set_fw_name_by_chip: firmware_path=/etc/firmware/fw_bcm43438a0.bin
dhdsdio_download_firmware: set use_rxchain 0
dhdsdio_download_firmware: set txglomsize 40
sdioh_set_mode: set txglom_mode to multi-desc
Final fw_path=/etc/firmware/fw_bcm43438a0.bin
Final nv_path=/etc/firmware/nvram.txt
Final conf_path=/etc/firmware/config.txt
NVRAM version: AP6212_NVRAM_V1.0_20140603
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
bcmsdh_oob_intr_register: Enter
bcmsdh_oob_intr_register: HW_OOB enabled
bcmsdh_oob_intr_register OOB irq=264 flags=414
bcmsdh_oob_intr_register: enable_irq_wake
bcmsdh_oob_intr_register: enable_irq_wake failed with -6
dhd_conf_set_fw_int_cmd: set WLC_SET_BAND 142 0
dhd_preinit_ioctls: Set tcpack_sup_mode 0
wifi_platform_get_mac_addr
======== bcm_wlan_get_mac_address ========
Host Mac: XX:XX:XX:XX:XX:XX
####### Get Customer Host Mac ###### = XX:XX:XX:XX:XX:XX
Firmware up: op_mode=0x0005, MAC=XX:XX:XX:XX:XX:XX
dhd_conf_set_country: set country CN, revision 0
dhd_conf_set_fw_string_struct_cmd: set country
Country code: CN (CN/0)
dhd_conf_set_fw_string_cmd: set roam_off 1
Firmware version = wl0: Jul 18 2014 18:24:48 version 7.10.226.54.x2 (A0 Station) FWID 01-2faae407
 Driver: 1.201.59.6 (r506368)
 Firmware: wl0: Jul 18 2014 18:24:48 version 7.10.226.54.x2 (A0 Station) FWID 01-2faae407 
dhd_txglom_enable: enable 0
dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0
dhd_conf_set_txglom_params: txglom_bucket_size=0
dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0, bus_txglom=0
dhd_conf_set_txglom_params: tx_in_rx=1, tx_max_offset=0
dhd_conf_set_disable_proptx: set disable_proptx 0
dhd_wlfc_hostreorder_init(): successful bdcv2 tlv signaling, 64
dhd_open: Exit ret=0
ifconfig: SIOCGIFFLAGS: No such device
my_watch_dog[747]: my_watch_dog started...
my_watch_dog[747]: my_watch_dog selfcheck thread started...
av_server timest:1167609627-9967uart_open: tty->index=3
14
v_server[748]: " ^uart_close: (3) called
^^^^/opt/ipnc/avserver_x15.bin starting.........."
Jan 1 00:00:27 v_server[748camif driver run here:imapx_camif_open
]: " ^^^^^/opt/ipnc/avserver_x15.bin starting.........."
OSA_ipcShmOpen shmat hndl ptr:0xb6cca000. key:99123458, size:52
OSA_ipcShmOpen shmat hndl ptr:0xb6cc9000. key:99123461, size:1692
[I] SHMcamif driver power off rear sensor
-(ipc_shm.c:46) init sys ipc share mem, size:1692, key:99123461
OSA_ipcShmOpen ==============> i am in The Init of drinver for mt9d111 <===============
shmat hndl ptr:0xb6cc800 mt9d111 init
0. key:99123460, size:25 mt9d111 init end, reg=000C,isp-driver-1207-1218-2AB-liupan-initial
92
[I] SHM-(cfg_shm.c:3--------------------------
0) init sys config share mem, size:2592, key:99123460
[I] SHM-(cfg_shm.c:49) cfg_shm_loadDefCfg file /mnt/config/sportdv_sysenv.cfg not found!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ load_default ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ load_default ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ load_default ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
idx=0, width=1280, height=720
idx=1, width=1280, height=720
idx=2, width=1280, height=720
idx=3, width=320, height=176
idx=4, width=320, height=176
[I] SHM-(cfg_shm.c:121) product type(default): IP CAMERA
[I] VID-(cfg_shm.c:431) Disable strm-playback
[I] VID-(cfg_shm.c:431) Enable strm-preview
[I] VID-(cfg_shm.c:431) Enable strm-storage
[I] VID-(cfg_shm.c:431) Disable strm-motiondetetc
 bitrate=1200, 1885, 921600
[I] VID-(cfg_shm.c:546) cfg_shm_setVideoStrmResolutionFramerateBitrate resolution:1->wid:1280, hei:720, bitrate:1930240, fps:20
 bitrate=1200, 1542, 921600
[I] VID-(cfg_shm.c:546) cfg_shm_setVideoStrmResolutionFramerateBitrate resolution:1->wid:1280, hei:720, bitrate:1579008, fps:15
avserver usage: /opt/ipnc/avserver_x15.bin [enable_preview] [pipelineid] [Sensor/ISP resolution(0=720p, 1=1080p)] [ENCODE resolution(0=720p, 1=1080p, 2=vga)]
[I] PIP-(av_osa_msg.c:102) msg init done, total free msg buffer 128
[I] SHM-(cfg_shm.c:178) cfg_shm_is_Q3 Is NOT apollo.
[I] PIP-(av_osa_pipeline.c:24) av_osa_pipeline_init, sensor type 1
[I] SHM-(cfg_shm.c:121) product type(default): IP CAMERA
active pipelineCnt=1, 1
[I] VID-(av_video_capture.c:59) Enable video capture, current status(-1)
[I] VID-(av_fake_input.c:322) Disable ISP, current status(-1)
[I] VID-(av_avi_input.c:105) Disable AVI input, current status(-1)
[I] VID-(av_jpg_input.c:64) Disable JPEG input
[I] BUF-(buffer_interface.c:57) init total 8 buffer handler
[I] VID-(av_video_server.c:128) all active pipeine(num = 1): 
[I] VID-(av_video_server.c:132) pipeline ipc
[I] VID-(av_video_server.c:142) task cap
[I] VID-(av_video_server.c:142) task pp
[I] VID-(av_video_server.c:142) task enc
[I] VID-(av_video_server.c:142) task jpgenc
[I] VID-(av_video_server.c:142) task stm
[I] VID-(av_video_server.c:142) task video_detect
[I] V4L-(v4l2_interface.fsize->index = 0, ARRAY_SIZE(mt9d111_win_sizes) = 2
c:327) 
Support format:width = 800, height = 600

[I] V4L-(v4l2_interfacfsize->index = 1, ARRAY_SIZE(mt9d111_win_sizes) = 2
e.c:336) 1.
{
pixelforwidth = 1280, height = 720
mat = 'NV12',
descriptifsize->index = 2, ARRAY_SIZE(mt9d111_win_sizes) = 2
on = 'YUV 4:2:0'
 }
[mt9d111] mt9d111_try_mbus_fmt
[mt9d111] mt9d111_s_mbus_fmt
mf->width = 1600, mf->height = 912
here 1
 mt9d111 ovfmt 
--------------------------
 mt9d111 wsize 
--------------------------
camif Outfmt: win(1600, 912)
camif Infmt: win(1600, 912)
camif driver v4l2 payload = 2188800:
camif driver :set code size: x = 1600, y= 912
camif camif_queue_setup
Enter new_ion_alloc_2 allocName: "v4l2"
new_ion_alloc2...fdData.fd = 5
[I] SHM-(kmem_alloc.c:166) ion[1]-v4l2, sz=13132800, v=0xb5841000, p=0x8bb00000. tol:c86400, timest:1167609629-990776
[E] VID-(v4l2_interface.c:399) v4l2 init end. timest:1167609630-6745, diff(1996)
camif driver run here:camif_start_streaming
[E] VID-(v4l2_interface.c:459) v4l2 start end. timest:1167609630-25540, diff(18)
[I] VID-(encoder/av_video_encode.c:1197) video_encode_init
[I] VID-(av_video_capture.c:43) video_capture_create: sensor width=1600, height=912
[I] VID-(encoder/av_enc_dll.c:46) trying to load enc dll lib8270enc.so
 ppppppp streamIndex=0, sInfo->width=1280, sInfo->height=720, alloc buffer size=1382400
Enter new_ion_alloc_2 allocName: "pp_stream"
[I] VID-(encoder/av_video_burst.c:186) burst_encode_create
av server loop
[E] VID-(av_video_capture.c:285) video_capture_procdata start. timest:1167609630-28355, (Mon Jan 1 00:00:30 2007
)
H264EncInit#
H264EncInit: ->H264Init
H264Init_2
H264Init_2 EWLInit
H264Init_2 EWLcalloc
H264Init_2 H264SeqParameterSetimapx_camif_irq_handler[1] jiff:ffff23c6, timest:1167609630-89013.
Init
H264Init_2 SetParameter
H264Init_2 H264InitRc
H264Init_2 EncAsicControllerInit
H264Init_2 EncAsicMemAlloc_2
kmem alc, buffer:f0118
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 9
new_ion_alloc2...fdData.fd = 4
[I] SHM-(kmem_alloc.c:166) ion[3]-pp_stream, sz=1382400, v=0xb2cdf000, p=0x8c800000. tol:eb8c00, timest:1167609630-36847
 ppppppp streamIndex=1, sInfo->width=1280, sInfo->height=720, alloc buffer size=1382400
Enter new_ion_alloc_2 allocName: "pp_stream"
new_ion_alloc2...fdData.fd = 7
[I] SHM-(kmem_alloc.c:166) ion[4]-pp_stream, sz=1382400, v=0xb2aac000, p=0x8cb00000. tol:100a400, timest:1167609630-41844
 ppppppp streamIndex=2, sInfo->width=1280, sInfo->height=720, alloc buffer size=1382400
Enter new_ion_alloc_2 allocName: "pp_stream"
[I] SHM-(kmem_alloc.cimapx_camif_irq_handler[2] jiff:ffff23d6, timest:1167609630-168984.
:166) ion[5]-alc_alloc_2, sz=921600, v=0xb2bfe000, p=0x8ca00000. tol:115bc00, timest:1167609630-42294
after kmem alc, buffer vir:b2bfe000, phy:8ca00000
kmem alc, buffer:f0190
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 11
[I] SHM-(kmem_alloc.c:166) ion[5]-pp_stream, sz=1382400, v=0xb295a000, p=0x8cd00000. tol:115bc00, timest:1167609630-46242
Enter new_ion_alloc_2 allocName: "burst_enc"
 ppppppp streamIndex=3, sInfo->width=320, sInfo->height=176, alloc buffer size=1382400
new_ion_alloc2...fdData.fd = 12
new_ion_alloc2...fdData.fd = 10
[I] SHM-(kmem_alloc.c:166) ion[7]-alc_alloc_2, sz=460800, v=0xb28e9000, p=0x8ba80000. tol:128c400, timest:1167609630-51503
after kmem alc, buffer vir:b28e9000, phy:8ba80000
kmem alc, buffer:f0154
Enter new_ion_alloc_2 allocName: "alc_alloimapx_camif_irq_handler[3] jiff:ffff23e6, timest:1167609630-248954.
c_2"
[I] SHM-(kmem_alloc.c:166) ion[7]-burst_enc, sz=786432, v=0xb2829000, p=0x8cf00000. tol:128c400, timest:1167609630-51739
[I] VID-(encoder/av_video_burst.c:50) buffer enc: vir 0xb2829000, phy 0x8cf00000, size 786432
[I] VID-(encoder/av_video_burst.c:196) burst_encode_start
Enter new_ion_alloc_2 allocName: "pp_stream"
new_ion_alloc2...fdData.fd = 14
[I] SHM-(kmem_alloc.c:166) ion[8]-alc_alloc_2, sz=921600, v=0xb2748000, p=0x8d000000. tol:136d400, timest:1167609630-56882
after kmem alc, buffer vir:b2748000, phy:8d000000
kmem alc, buffer:f01cc
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 15
[I] SHM-(kmem_alloc.c:166) ion[9]-alc_alloc_2, sz=460800, v=0xb26d7000, p=0x8c980000. tol:13ddc00, timest:1167609630-59414
after kmem alc, buffer vir:b26d7000, phy:8c980000
kmem alcimapx_camif_irq_handler[4] jiff:ffff23f6, timest:1167609630-328927.
, buffer:f02c0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 16
[I] SHM-(kmem_alloc.c:166) ion[10]-alc_alloc_2, sz=184, v=0xb3022000, p=0x8ba2b000. tol:13ddcb8, timest:1167609630-60654
after kmem alc, buffer vir:b3022000, phy:8ba2b000
kmem alc, buffer:f0208
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 17
[I] SHM-(kmem_alloc.c:166) ion[11]-alc_alloc_2, sz=48256, v=0xb26cb000, p=0x8ba40000. tol:13e9938, timest:1167609630-62233
after kmem alc, buffer vir:b26cb000, phy:8ba40000
H264Init_2 init VUI
H264Init_2 OK
H264EncInit: ->H264Init ret:0
Encode fd: 4 12 14 15 16 17 0 0
H264EncInit: OK
new_ion_alloc2...fdData.fd = 8
[I] SHM-(kmem_alloc.c:166) ion[12]-pp_stream, sz=1382400, v=0xb2579000, p=0x8d100000. tol:153b138, timest:1167609630-66471
 imapx_camif_irq_handler[5] jiff:ffff2406, timest:1167609630-408899.
 ppppppp streamIndex=4, sInfo->width=320, sInfo->height=176, alloc buffer size=1382400
Enter new_ion_alloc_2 allocName: "pp_stream"
new_ion_alloc2...fdData.fd = 18
[I] SHM-(kmem_alloc.c:166) ion[13]-pp_stream, sz=1382400, v=0xb2427000, p=0x8d300000. tol:168c938, timest:1167609630-71278
Enter new_ion_alloc_2 allocName: "pp_disp"
new_ion_alloc2...fdData.fd = 19
[I] SHM-(kmem_alloc.c:166) ion[14]-pp_disp, sz=2097152, v=0xb2227000, p=0x8d500000. tol:188c938, timest:1167609630-76203uart_open: tty->index=3

Enter new_ion_alloc_2 uart_close: (3) called
allocName: "pp_disp"
new_ion_alloc2...fdData.fd = 20
[I] SHM-(kmem_alloc.c:166) ion[15]-pp_disp, sz=2097152, v=0xb2027000, p=0x8d700000. tol:1a8c938, timest:1167609630-83663
PP_DWLReadAsicID open:/dev/vdec_g1
[I] VID-(av_video_pp.c:259) video_pp_create timest:imapx_camif_irq_handler[6] jiff:ffff2416, timest:1167609630-488875.
57
infolog[748]: "stream(0) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1930240bps , gopLen 20\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQuart_open: tty->index=3
pDelta=0, fixedIntraQp=4uart_close: (3) called
7\n"
[I] VID-(av_video_capture.c:347) Capture tsk: data Ready! timest:1167609630-102368
Jan 1 00:00:30 infolog[748]: "stream(0) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1930240bps , gopLen 20\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
video process resolution [320 176][-1291882764]
Could not sem_init EINVAL: 22
Could not sem_init ENOSPC: 28
Could not sem_init EPERM: 1
[E] VID-(encoder/av_video_encode.c:236) H264EncSetCodingCtrl 1: 1
H264EncInit#
H264EncInit: ->H264Init
H264Init_2
H264Init_imapx_camif_irq_handler[7] jiff:ffff2426, timest:1167609630-568847.
2 EWLInit
H264Init_2 EWLcalloc
H264Init_2 H264SeqParameterSetInit
H264Init_2 SetParameter
H264Init_2 H264InitRc
H264Init_2 EncAsicControllerInit
H264Init_2 EncAsicMemAlloc_2
kmem alc, buffer:f4e78
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 24
[I] SHM-(kmem_alloc.c:166) ion[16]-alc_alloc_2, sz=921600, v=0xb1744000, p=0x8d900000. tol:1b6d938, timest:1167609630-480693
after kmem alc, buffer vir:b1744000, phy:8d900000
kmem alc, buffer:f4ef0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 25
[I] SHM-(kmem_alloc.c:166) ion[17]-alc_alloc_2, sz=460800, v=0xb16d3000, p=0x8cc80000. tol:1bde138, timest:1167609630-483188
after kmem alc, buffer vir:b16d3000, phy:8cc80000
kmem alc, buffer:f4eb4
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
[DWL PPimapx_camif_irq_handler[8] jiff:ffff2436, timest:1167609630-648819.
] pp hard ware time use 17ms
new_ion_alloc2...fdData.fd = 23
[DWL PP] pp hard ware time use 11ms
 ************change Sensitivity: -1 -> 3
[I] SHM-(kmem_alloc.c:166) ion[18]-alc_alloc_2, sz=921600, v=0xb15f2000, p=0x8da00000. tol:1cbf138, timest:1167609630-499981
after kmem alc, buffer vir:b15f2000, phy:8da00000
kmem alc, buffer:f4f2c
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 26
[I] SHM-(kmem_alloc.c:166) ion[19]-alc_alloc_2, sz=460800, v=0xb1581000, p=0x8ce80000. tol:1d2f938, timest:1167609630-509599
after kmem alc, buffer vir:b1581000, phy:8ce80000
kmem alc, buffer:f5020
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 27
[I] SHM-(kmem_alloc.c:166) ion[20]-alc_alloc_2, sz=184, v=0xb1580000, p=0x8ba2c000. tol:1d2f9f0, timest:1167609630-51imapx_camif_irq_handler[9] jiff:ffff2446, timest:1167609630-728791.
0812
after kmem alc, buffer vir:b1580000, phy:8ba2c000
kmem alc, buffer:f4f68
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 28
[I] SHM-(kmem_alloc.c:166) ion[21]-alc_alloc_2, sz=48256, v=0xb1574000, p=0x8ba50000. tol:1d3b670, timest:1167609630-511971
after kmem alc, buffer vir:b1574000, phy:8ba50000
H264Init_2 init VUI
H264Init_2 OK
H264EncInit: ->H264Init ret:0
Encode fd: 24 25 23 26 27 28 0 0
H264EncInit: OK
infolog[748]: "stream(1) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1579008bps , gopLen 15\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
Jan 1 00:00:30 infolog[748]: "stream(1) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1579008bps , gopLen 15\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
[DWL PP] pp hard ware time use 17ms
[E] VID-(encoder/av_video_encode.c:236) H264EncSetCodingCtrl 1: 1
H264EncInit#
H264EncInit: ->H264Init
H264Init_2
H264Init_2 EWLInit
H264Init_2 EWLcalloc
H264Init_2 H264SeqParameterSetInit
H264Init_2 SetParameter
H264Init_2 H264InitRc
H264Init_2 EncAsicControllerInit
H264Init_2 EncAsicMemAlloc_2
kmem alc, buffer:107ac8
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 30
[I] SHM-(kmem_alloc.c:166) ion[22]-alc_alloc_2, sz=921600, v=0xb1492000, p=0x8db00000. tol:1e1c670, timest:1167609630-524918
after kmem alc, buffer vir:b1492000, phy:8db00000
kmem alc, buffer:107b40
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 31
[I] SHM-(kmem_alloc.c:166) ion[23]-alc_alloc_2, sz=460800, v=0xb1421000, p=0x8d280000. tol:1e8ce70, timest:1167609630-527427
after kmem alc, buffer vir:b1421000, phy:8d280000
kmem alc, buffer:107b04
Enter new_ion_alloc_2 allocName: "alc_allocuart_open: tty->index=3
_2"
[DWL PP] pp hard wauart_close: (3) called
re time use 10ms
new_ion_alloc2...fdData.fd = 32
[I] SHM-(kmem_alloc.c:166) ion[24]-alc_alloc_2, sz=921600, v=0xb1340000, p=0x8dc00000uart_open: tty->index=3
. tol:1f6de70, timest:11uart_close: (3) called
67609630-531933
[DWL PP] pp hard ware time use 16ms
after kmem alc, buffer vir:b1340000, phy:8dc00000
kmem alc, buffer:107b7c
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 33
[I] SHM-(kmem_alloc.c:166) ion[25]-alc_alloc_2, sz=460800, v=0xb12cf000, p=0x8d480000. tol:1fde670, timest:1167609630-896865
after kmem alc, buffer vir:b12cf000, phy:8d480000
kmem alc, buffer:107c70
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 34
[I] SHM-(kmem_alloc.c:166) ion[26]-alc_alloc_2, sz=184, v=0xb12ce000, p=0x8ba2d000. tol:1fde728, timest:1167609630-898034
after kmem alc, buffer vir:b12ce000, phy:8ba2d000
kmem alc, buffer:107bb8
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 35
[I] SHM-(kmem_alloc.c:166) ion[27]-alc_alloc_2, sz=48256, v=0xb12c2000, p=0x8ba60000. tol:1fea3a8, timest:1167609630-899139
after kmem alc, buffer vir:b12c2000, phy:8ba60000
H264Init_2 init VUI
H264Init_2 OK
H264EncInit: ->H264Init ret:0
Encode fd: 30 31 32 33 34 35 0 0
H264EncInit: OK
infolog[748]: "stream(2) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1536000bps , gopLen 30\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
[DWL PP] pp hard ware time use 9ms
Jan 1 00:00:30 infolog[748]: "stream(2) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1536000bps , gopLen 30\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
[E] VID-(encoder/av_video_encode.c:236) H264EncSetCodingCtrl 1: 1
H264EncInit#
H264EncInit: ->H264Init
H264Init_2
H264Init_2 EWLInit
H264Init_2 EWLcalloc
H264Init_2 H264SeqParameterSetInit
H264Init_2 SetParameter
H264Init_2 H264InitRc
H264Init_2 EncAsicControllerInit
H264Init_2 EncAsicMemAlloc_2
kmem alc, buffer:118328
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 37
[I] SHM-(kmem_alloc.c:166) ion[28]-alc_alloc_2, sz=56320, v=0xb12b3000, p=0x8ba70000. tol:1ff7fa8, timest:1167609630-910077
after kmem alc, buffer vir:b12b3000, phy:8ba70000
kmem alc, buffer:1183a0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 38
[I] SHM-(kmem_alloc.c:166) ion[29]-alc_alloc_2, sz=28160, v=0xb12ac000, p=0x8baf8000. tol:1ffeda8, timest:1167609630-911327
after kmem alc, buffer vir:b12ac000, phy:8baf8000
kmem alc, buffer:118364
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 39
[I] SHM-(kmem_alloc.c:166) ion[30]-alc_alloc_2, sz=56320, v=0xb129e000, p=0x8c790000. tol:200c9a8, timest:1167609630-912985
after kmem alc, buffer vir:b129e000, phy:8c790000
kmem alc, buffer:1183dc
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 40
[I] SHM-(kmem_alloc.c:166) ion[31]-alc_alloc_2, sz=28160, v=0xb1297000, p=0x8c788000. tol:20137a8, timest:1167609630-914177
after kmem alc, buffer vir:b1297000, phy:8c788000
kmem alc, buffer:1184d0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 41
[I] SHM-(kmem_alloc.c:166) ion[32]-alc_alloc_2, sz=48, v=0xb1296000, p=0x8ba2e000. tol:20137d8, timest:1167609630-915274
after kmem alc, buffer vir:b1296000, phy:8ba2e000
kmem alc, buffer:118418
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 42
[I] SHM-(kmem_alloc.c:166) ion[33]-alc_alloc_2, sz=48256, v=0xb128a000, p=0x8c7a0000. tol:201f458, timest:1167609630-916613
after kmem alc, buffer vir:b128a000, phy:8c7a0000
H264Init_2 init VUI
H264Init_2 OK
H264EncInit: ->H264Init ret:0
Encode fd: 37 38 39 40 41 42 0 0
H264EncInit: OK
infolog[748]: "stream(3) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 245760bps , gopLen 5\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
Jan 1 00:00:30 infolog[748]: "stream(3) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 245760bps , gopLen 5\n"uart_open: tty->index=3
 "\t picRc 1, mbRc 0, piuart_close: (3) called
cSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
[E] VID-(encoder/av_video_encode.c:236) H264EncSetCodingCtrl 1: 1
[DWL PP] pp hard ware time use 15ms
H264EncInit#
H264EncInit: ->H264Init
H264Init_2
H264Init_2 EWLInit
H264Init_2 EWLcalloc
H264Init_2 H264SeqParameterSetInit
H264Init_2 SetParameter
H264Init_2 H264InitRc
H264Init_2 EncAsicControllerInit
H264Init_2 EncAsicMemAlloc_2
kmem alc, buffer:119038
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 44
[I] SHM-(kmem_alloc.c:166) ion[34]-alc_alloc_2, sz=56320, v=0xb127b000, p=0x8c7b0000. tol:202d058, timest:1167609631-264351
after kmem alc, buffer vir:b127b000, phy:8c7b0000
kmem alc, buffer:1190b0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 45
[I] SHM-(kmem_alloc.c:166) ion[35]-alc_alloc_2, sz=28160, v=0xb1274000, p=0x8c7c0000. tol:2033e58, timest:1167609631-265500
after kmem alc, buffer vir:b1274000, phy:8c7c0000
kmem alc, buffer:119074
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 46
[I] SHM-(kmem_alloc.c:166) ion[36]-alc_alloc_2, sz=56320, v=0xb1266000, p=0x8c7d0000. tol:2041a58, timest:1167609631-266567
after kmem alc, buffer vir:b1266000, phy:8c7d0000
kmem alc, buffer:1190ec
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 47
[I] SHM-(kmem_alloc.c:166) ion[37]-alc_alloc_2, sz=28160, v=0xb125f000, p=0x8c7c8000. tol:2048858, timest:1167609631-267605
after kmem alc, buffer vir:b125f000, phy:8c7c8000
kmem alc, buffer:1191e0
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 48
[I] SHM-(kmem_alloc.c:166) ion[38]-alc_alloc_2, sz=48, v=0xb125e000, p=0x8ba2f000. tol:2048888, timest:1167609631-268746
after kmem alc, buffer vir:b125e000, phy:8ba2f000
kmem alc, buffer:119128
Enter new_ion_alloc_2 allocName: "alc_alloc_2"
new_ion_alloc2...fdData.fd = 49
[I] SHM-(kmem_alloc.c:166) ion[39]-alc_alloc_2, sz=48256, v=0xb1252000, p=0x8c7e0000. tol:2054508, timest:1167609631-269935
after kmem alc, buffer vir:b1252000, phy:8c7e0000
H264Init_2 init VUI
H264Init_2 OK
H264EncInit: ->H264Init ret:0
Encode fd: 44 45 46 47 48 49 0 0
H264EncInit: OK
infolog[748]: "stream(4) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 245760bps , gopLen 5\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
Jan 1 00:00:31 infolog[748]: "stream(4) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 245760bps , gopLen 5\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16800000, intraQpDelta=0, fixedIntraQp=47\n"
[DWL PP] pp hard ware time use 12ms
[E] VID-(encoder/av_video_encode.c:236) H264EncSetCodingCtrl 1: 1
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 50
[I] SHM-(kmem_alloc.c:166) ion[40]-encode, sz=786432, v=0xb1192000, p=0x8dd00000. tol:2114508, timest:1167609631-282711
[I] VID-(encoder/av_video_encode.c:211) buffer enc[0]: vir 0xb1192000, phy 0x8dd00000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 51
[I] SHM-(kmem_alloc.c:166) ion[41]-encode, sz=786432, v=0xb10d2000, p=0x8de00000. tol:21d4508, timest:1167609631-286189
[I] VID-(encoder/av_video_encode.c:211) buffer enc[1]: vir 0xb10d2000, phy 0x8de00000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
[DWL PP] pp hard ware time use 18ms
new_ion_alloc2...fdData.fd = 52
[I] SHM-(kmem_alloc.c:166) ion[42]-encode, sz=786432, v=0xb1012000, p=0x8df00000. tol:2294508, timest:1167609631-296640
[I] VID-(encoder/av_video_encode.c:211) buffer enc[2]: vir 0xb1012000, phy 0x8df00000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 53
[I] SHM-(kmem_alloc.c:166) ion[43]-encode, sz=786432, v=0xb0f52000, p=0x8e000000. tol:2354508, timest:1167609631-301886
[I] VID-(encoder/av_video_encode.c:211) buffer enc[3]: vir 0xb0f52000, phy 0x8e000000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 54
[I] SHM-(kmem_alloc.c:166) ion[44]-encode, sz=786432, v=0xb0e92000, p=0x8e100000. tol:2414508, timest:1167609631-304659
[DWL PP] pp hard ware time use 10ms
[I] VID-(encoder/av_video_encode.c:211) buffer enc[4]: vir 0xb0e92000, phy 0x8e100000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 55
[I] SHM-(kmem_alloc.c:166) ion[45]-encode, sz=786432, v=0xb0dd2000, p=0x8e200000. tol:24d4508, timest:1167609631-308035
[DWL PP] pp hard ware time use 16ms
[I] VID-(encoder/av_video_encode.c:211) buffer enc[5]: vir 0xb0dd2000, phy 0x8e200000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 56
[I] SHM-(kmem_alloc.c:166) ion[46]-encode, sz=786432, v=0xb0d12000, p=0x8e300000. tol:2594508, timest:1167609631-647009
[I] VID-(encoder/av_video_encode.c:211) buffer enc[6]: vir 0xb0d12000, phy 0x8e300000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 57
[I] SHM-(kmem_alloc.c:166) ion[47]-encode, sz=786432, v=0xb0c52000, p=0x8e400000. tol:2654508, timest:1167609631-650926
[I] VID-(encoder/av_video_encode.c:211) buffer enc[7]: vir 0xb0c52000, phy 0x8e400000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
new_ion_alloc2...fdData.fd = 58
[I] SHM-(kmem_alloc.c:166) ion[48]-encode, sz=786432, v=0xb0b92000, p=0x8e500000. tol:2714508, timest:1167609631-653856
[I] VID-(encoder/av_video_encode.c:211) buffer enc[8]: vir 0xb0b92000, phy 0x8e500000, size 786432
Enter new_ion_alloc_2 allocName: "encode"
[DWL PP] pp hard ware time use 12ms
new_ion_alloc2...fdData.fd = 59
[I] SHM-(kmem_alloc.c:166) ion[49]-encode, sz=786432, v=0xb0ad2000, p=0x8e600000. tol:27d4508, timest:1167609631-657265
[I] VID-(encoder/av_video_encode.c:211) buffer enc[9]: vir 0xb0ad2000, phy 0x8e600000, size 786432
[I] VID-(encoder/av_video_encode.c:987) video_encode_create timest:1630, time:1167609631-657456
[I] VID-(encoder/av_video_encode.c:993) video_encode_start
[I] VID-(encoder/av_video_encode.c:1006) video_encode_start -> video_stream_procVideoHead
[I] COM-(info_log.c:271) data dump:(len=38,cnt=1)
 [I] COM-(info_log.c:291) 
 00 00 00 01 27 64 e0 1f ac 1a d0 0a 00 b7 42 00 
 00 03 00 02 00 00 03 00 28 1e 20 f5 00 00 00 01 
 28 ee 07 49 22 40 
stream(0): 00 00 00 01 67
[I] VID-(encoder/av_video_encode.c:1006) video_encode_start -> video_stream_procVideoHead
[I] COM-(info_log.c:271) data dump:(len=38,cnt=2)
 [DWL PP] pp hard ware time use 15ms
[I] COM-(info_log.c:291) 
 00 00 00 01 27 64 e0 1f ac 1a d0 0a 00 b7 42 00 
 00 03 00 02 00 00 03 00 1e 1e 20 f5 00 00 00 01 
 28 ee 07 49 22 40 
stream(1): 00 00 00 01 67
[DWL PP] pp hard ware time use 9ms
[I] VID-(encoder/av_video_encode.c:1006) video_encode_start -> video_stream_procVideoHead
[I] COM-(info_log.c:271) data dump:(len=38,cnt=3)
 [I] COM-(info_log.c:291) 
 00 00 00 01 27 64 e0 1f ac 1a d0 0a 00 b7 42 00 
 00 03 00 02 00 00 03 00 3c 1e 20 f5 00 00 00 01 
 28 ee 02 12 48 90 
stream(2): 00 00 00 01 67
[DWL PP] pp hard ware time use 15ms
[I] VID-(encoder/av_video_encode.c:1006) video_encode_start -> video_stream_procVideoHead
[I] COM-(info_log.c:271) data dump:(len=36,cnt=4)
 [I] COM-(info_log.c:291) 
 00 00 00 01 27 4d e0 1f 8d 68 14 17 a1 00 00 03 
 00 01 00 00 03 00 05 0f 10 7a 80 00 00 00 01 28 
 ee 06 49 20 
stream(3): 00 00 00 01 67
[DWL PP] pp hard ware time use 9ms
[I] VID-(encoder/av_video_encode.c:1006) video_encode_start -> video_stream_procVideoHead
[I] COM-(info_log.c:271) data dump:(len=36,cnt=5)
 [I] COM-(info_log.c:291) 
 00 00 00 01 27 4d e0 1f 8d 68 14 17 a1 00 00 03 
 00 01 00 00 03 00 05 0f 10 7a 80 00 00 00 01 28 
 ee 06 49 20 
stream(4): 00 00 00 01 67
[I] VID-(encoder/av_video_encode.c:1018) video_encode_start done
[DWL PP] pp hard ware time use 16ms
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=0, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=0, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=0, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=0, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=0, width=1280, height=720......................
Line=146, media_type=1, codec=3, res=13, key1=17830186, key2=17830187, iShmSize=5767168, iMaxFrameSize=512000
[DWL PP] pp hard ware time use 10ms
[DWL PP] pp hard ware time use 17ms
[DWL PP] pp hard ware time use 13ms
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=1, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=1, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=1, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=1, width=1280, height=720......................
~~~~~~~~~~~~~~~~~~VE_VideoShmInit, ShmProfileID=1, width=1280, height=720......................
Line=146, media_type=1, codec=3, res=13, key1=17840186, key2=17840287, iShmSize=3670016, iMaxFrameSize=512000
[DWL PP] pp hard ware time use 17ms
[DWL PP] pp hard ware time use 10ms
 @@@@@@@ resolution changed! 0-->720, keyframe=1, size=19537
[DWL PP] pp hard ware time use 17ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 17ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 16ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 16ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 18ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 20ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 16ms
[DWL PP] pp hard ware time use 10ms
audio_init_signal start
Line=247, media_type=0, codec=1, key1=54617402, key2=54617503, iShmSize=280000, iMaxFrameSize=4096
Line=247, media_type=0, codec=2, key1=54647402, key2=54647803, iShmSize=140000, iMaxFrameSize=8000
Line=247, media_type=0, codec=2, key1=54637402, key2=54637703, iShmSize=140000, iMaxFrameSize=640
----------alsa_read_init------
audioEng[759]: "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
audioEng[759]: imapx-i2s imapx-i2s.0: mclkdiv = 29, bitclkdiv = 119
"The init values are:"
audioEng[759]: "format = Signed 16 bit Little Endian"
audioEng[759]: "channels = 2"
audioEng[759]: "framerate = 8000"
audioEng[759]: "samples per frame = 320"
audioEng[759]: "++++++++++++++++++++++++++++++++++++++++++++++++++++++"
snd_pcm_hw_params_alloc
snd_pcm_hw_params_any
snd_pcm_hw_params_set_access 3
snd_pcm_hw_params_set_format 2
snd_pcm_hw_params_set_channels 2
snd_pcm_hw_params_set_rate_near, 8000
snd_pcm_hw_params_set_period_size_near, 320
snd_pcm_hw_params_set_buffer_size_near, 2560
 alsa_set_param: before snd_pcm_hw_params.....
 alsa_set_param: end of snd_pcm_hw_params.....
[DWL PP] pp hard ware time use 15ms
audioEng[759]: "rate=8000, frames=320, channels=2, buffer_frames=2560\n"
audioEng[759]: "@@@@@ audio_capture_thread running....\n"
max audio frame size=1280
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
[DWL PP] pp hard ware time use 15ms
[DWL PP] pp hard ware time use 9ms
run cmd: /etc/init.d/S01logging
Starting logging: OK
run cmd: /etc/init.d/S20urandom
Initializing random number generator... done.
run cmd: /etc/init.d/S40network
[DWL PP] pp hard ware time use 16ms
Starting network...
run cmd: /etc/init.d/S60network
Mon Jan 1 00:00:34 UTC 2007
run cmd: /etc/init.d/S80dhcp-relay
run cmd: /etc/init.d/S80dhcp-server
run cmd: /etc/init.d/S80mali
insmod: can't insert '/usr/lib/modules/mali.ko': No such file or directory
bin dev etc home init ko lib lib32 libexec linuxrc media mnt opt package proc root run sbin sys system tmp usr var
Settings for eth0:
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
No data available
Cannot get device settings: No such device
Cannot get wake-on-lan settings: No such device
Cannot get message level: No such device
Cannot get link status: No such device
bin dev etc home init ko lib lib32 libexec linuxrc media mnt opt package proc root run sbin sys system tuart_open: tty->index=3
mp usr var
end rcs 
Mon Jan 1 00:00:34 UTC 2007
uart_open: tty->index=3
# Successfully initialized wpa_supplicant
rfkill: WLAN soft blocked
rfkill: WLAN soft blocked
ls: /proc//task/: No such file or directory
US/Pacific
goahead buildtime Aug 9 2016 11:39:12
@@@@@ send_thread running....
Usage: cameng [-nv/-na ...]
 -nv---no video
 -na---no audio
 -co---command only(no video/audio/motion/stream)
uiBrandName=-2(StuartCam) uiProductName=A356 usButtonNumber=2 usCountryCode=US usLedsNumber=3 usSensorID=1(2010), partner=65534(Minions), upg=356
o_display=StuartCam o_serverip=ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ usFlicker=2

CamEng[905]: "**************************************************************"
CamEng[905]: "* *"
CamEng[905]: "* VERSION: 00.10.006 *"
CamEng[905]: "* BUILD: 11:38******ledInfo.imapCamengPid = 905*******
:57 Aug 9 2016 *"
CamEng[905]: "* *"
CamEng[905]: "**************************************************************"
init libcur................
 bitrate=1200, 1885, 921600
 bitrate=1200, 1542, 921600
^^^^^^^^^^^^^^^^^ g_encParam.ve[1].ulSuppRes = 0x2000
^^^^^^^^^^^^^^^^^ g_encParam.ve[1].ulSuppRes = 0x2044
OSA_ipcShmOpen shmat hndl ptr:0xb6c47000. key:99123458, size:52
OSA_ipcShmOpen shmat hndl ptr:0xb6c46000. key:99123458, size:52
av server rcv mbx[0] from 12. status:256, id:903
 IPC_MSG_CMD_AV_SET_FLIP~~~~set flip: 1
 ~~~~~v4l2_Flip set value=0
Record_Init: vProfile=0, aProfile=1, ucAudioEnable=1, ucVideoEnable=1
clear all mp4 files from FS
CamEng[905]: "@@@@@ STICK_thread running...."
^^^^^^^^^^^init_broadcastClient 256
bottom 22,sumpin=3-------
Now,input pin 53 has set to gpiochip already.
Now,input pin 54 has set to gpiochip already.
Now,input pin 106 has set to gpiochip already.
motion_action kkkk=0, i=0
listen at: 0.0.0.0/9595
CamEng[905]: "@@@@@ SSTREAM_SendTread running...."
CamEng[905]: "+++++++++++++++++++++++++++++++Camera Engine Service Start up, socket=7"
CamEng[905]: "@@@@@ eventhandle_thread running....threadindex=0"
CamEng[905]: "@@@@@@@@@ MD_thread running\n"
CamEng[905]: "@@@@@ check_networkThread running....\n"
 WiFi Module AP6212
 wan_if=
*******go here, set NetWorkTypeForceChange to 1
 g_nwState.ucOperationMode=3
!!!!!!!!!!!!!!!!!!!!! switch network
CamEng[905]: "!!!!!!!!!!!!!!!!!!!!! switching network, ucOperationMode=3\n"
killall: udhcpc: no process killed
***************** check_switchNetwork 2325
------------------check_startPingThread 2661
CamEng[905]: "!!!!!!!!!!!!!!!!!!!!!!!!!!!! ping thread start......"
udhcpc: option -h NAME is deprecated, use -x hostname:NAME
udhcpc (v1.21.1) started
CamEng[905]: "##################################### switch to wireless\n"
g_nwState.ucForceWork=18, ucNetWorkTypeForceChange=1, ucNetWorkType=2, ucBakNetWorkType=2
line:2936, time: 1167609639
pthread_join-0 time: 1167609639
Sending discover...
g_structOEMINFO.usLedsNumber = 3-------------------->
3 led****************************************************************
:CamEng[905]: " 0 !!!! g_ucSystemState = ENUM_SYS_STATE_SETUP2RUN \n"
CamEng[905]: "Switch to SetupMode.........."
av server rcv mbx[1] from 12. status:256, id:902
 ^^^^v4l2_ColorFx:1
LIGHTING CHANGE: yes: 979 (scaled 1000)
*************** lighting change detected ********************
*************** DELETING bgData! ********************
CamEng[905]: "@@@@@ Record_Thread running..."
 ^^^^^^^^^^^^init aacData->samplesInput 1024 aacData->maxBytesOutput 768
 ^^^^^ default audio encType: 4
MP4FileAACInit: timeScale=8000, duration=1024, audioType=64
Sending discover...
LIGHTING CHANGE: yes: 796 (scaled 1000)
*************** lighting change detected ********************
*************** DELETING bgData! ********************
CamEng[905]: " 5 !!!! g_ucSystemState = ENUM_SYS_STATE_SETUP \n"
audioEng[759]: "playback thread!!!!!!!"
SPEEX_PREPROCESS_GET_AGC_LEVEL:8000.000000
SPEEX_PREPROCESS_SET_AGC_LEVEL:32768.000000
warning: The VAD has been replaced by a hack pending a complete rewrite
newest frame.............. uiPos=52, uiSeq=0
Sending discover...

# CamEng[905]: " 3 !!!! g_ucSystemState=ENUM_SYS_STATE_SWITCHING2SETUP \n"
CamEng[905]: "Switch to SetupMode.........."
infolog[748]: "change bitRate from 1930240 to 1579287"
infolog[748]: "stream(0) set rate control: \n" "\t qp -1 (32-34) \n" "\t bitrate 1579287bps , gopLen 20\n" "\t picRc 1, mbRc 0, picSkip 0, hrd 0, cpbSize 16793600, intraQpDelta=0, fixedIntraQp=47\n"
Sending discover...
Sending discover...
CamEng[905]: " 5 !!!! g_ucSystemState = ENUM_SYS_STATE_SETUP \n"
Sending discover...

# ifconCamEng[905]: " 3 !!!! g_ucSystemState=ENUM_SYS_STATE_SWITCHING2SETUP \n"
CamEng[905]: "Switch to SetupMode.........."
fig
lo Link encap:Local Loopback 
 inet addr:127.0.0.1 Mask:255.0.0.0
 UP LOOPBACK RUNNING MTU:65536 Metric:1
 RX packets:12 errors:0 dropped:0 overruns:0 frame:0
 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:0 
 RX bytes:912 (912.0 B) TX bytes:912 (912.0 B)

wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX 
 UP BROADCAST MULTICAST MTU:1500 Metric:1
 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000 
 RX bytes:0 (0.0 B) TX bytes:1962 (1.9 KiB)

# addr1:, ping1:www.yahoo.com
CamEng[905]: "!!!!!!!!!! refresh ping address to www.yahoo.com"
CamEng[905]: "!!!!!!!!!! gateway address is NONE"

# 
# CamEng[905]: "!!!!!!!!!!!!!!!!!!!!!!!!!!!! exit ping thread"
pthread_join-1 time: 1167609661
line:2939, time: 1167609661
network_id=-1
line:2945, time: 1167609661
line:2954, time: 1167609661
tttttttttttttttttttttttttttttttttttttttttttttttttttt sulLastSetWifiTime=0, time(NULL)=1167609661
=========== This is a hidden ssid(), iMatch=3 ============
====> SSID=, MAC=, SEC=
OK
OK
OK
OK
OK

# 
# 
#