Flashing OpenIPC camera
Posted on February 1, 2015
Tags: hackhard
1 UART
use a UART cable, find TX and ground on the board.
- White-UART => TX on Cam board
- Black-UART => GND on Cam board
2 Investigate UART serial output
sudo chmod 777 /dev/ttyUSB0
screen /dev/ttyUSB0 115200
# Ctrl+A then \ to exit
SF: Detected XT25F128B
, searchXT25F128B
to find that this uses a 16MB flashCHIP TYPE: RTL8188FU
, keep note this requiresRTL8188FU
driver for wifi
U-Boot SPL 2013.07 (Aug 26 2019 - 16:11:21)
Timer init
CLK stop
PLL init
pll_init:399
pll_cfg.pdiv = 10, pll_cfg.h2div = 5, pll_cfg.h0div = 5, pll_cfg.cdiv = 1, pll_cfg.l2div = 2
fbdiv = 36 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3
cppcr is 02300860
CPM_CPAPCR 0470484d
fbdiv = 38 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3
cppcr is 02500860
CPM_CPMPCR 04a0484d
fbdiv = 50 , refdiv = 1 , fdivq = 2 ,pllod = 1 range = 3
cppcr is 03100860
CPM_CPVPCR 0310086d
cppcr 0x9a773310
apll_freq 864000000
mpll_freq 900000000
vpll_freq = 1200000000
ddr sel mpll, cpu sel apll
ddrfreq 450000000
cclk 864000000
l2clk 432000000
h0clk 180000000
h2clk 180000000
pclk 90000000
CLK init
SDRAM init
sdram init start
ddr_inno_phy_init ..!
phy reg = 0x00000007, CL = 0x00000007
ddr_inno_phy_init ..! 11: 00000004
ddr_inno_phy_init ..! 22: 00000006
ddr_inno_phy_init ..! 33: 00000006
REG_DDR_LMR: 00000210
REG_DDR_LMR: 00000310
REG_DDR_LMR: 00000110
REG_DDR_LMR, MR0: 00d73011
T30_0x5: 00000007
T30_0x15: 0000000c
T30_0x4: 00000000
T30_0x14: 00000002
INNO_TRAINING_CTRL 1: 00000000
INNO_TRAINING_CTRL 2: 000000a1
T30_cc: 00000003
INNO_TRAINING_CTRL 3: 000000a0
T30_118: 0000003c
T30_158: 0000003c
T30_190: 0000001f
T30_194: 0000001c
jz-04 : 0x00000051
jz-08 : 0x000000a0
jz-28 : 0x00000024
DDR PHY init OK
INNO_DQ_WIDTH :00000003
INNO_PLL_FBDIV :00000014
INNO_PLL_PDIV :00000005
INNO_MEM_CFG :00000051
INNO_PLL_CTRL :00000018
INNO_CHANNEL_EN :0000000d
INNO_CWL :00000006
INNO_CL :00000007
DDR Controller init
DDRC_STATUS 0x80000001
DDRC_CFG 0x0a688a40
DDRC_CTRL 0x0000891c
DDRC_LMR 0x00400008
DDRC_DLP 0x00000000
DDRC_TIMING1 0x040e0706
DDRC_TIMING2 0x02150607
DDRC_TIMING3 0x2006051b
DDRC_TIMING4 0x17240031
DDRC_TIMING5 0xff060405
DDRC_TIMING6 0x32150505
DDRC_REFCNT 0x00da5c01
DDRC_MMAP0 0x000020fc
DDRC_MMAP1 0x00002400
DDRC_REMAP1 0x03020100
DDRC_REMAP2 0x07060504
DDRC_REMAP3 0x0b0a0908
DDRC_REMAP4 0x0f0e0d0c
DDRC_REMAP5 0x13121110
DDRC_AUTOSR_EN 0x00000000
sdram init finished
SDRAM init ok
board_init_r
image entry point: 0x80100000
U-Boot 2013.07 (Aug 26 2019 - 16:11:21)
Board: ISVP (Ingenic XBurst T21 SoC)
DRAM: 64 MiB
Top of RAM usable for U-Boot at: 84000000
Reserving 442k for U-Boot at: 83f90000
Reserving 32784k for malloc() at: 81f8c000
Reserving 32 Bytes for Board Info at: 81f8bfe0
Reserving 124 Bytes for Global Data at: 81f8bf64
Reserving 128k for boot params() at: 81f6bf64
Stack Pointer at: 81f6bf48
Now running in RAM - U-Boot at: 83f90000
MMC: msc: 0
the manufacturer 0b
SF: Detected XT25F128B
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Net: cpm_mphyc_rst = 0x01000000 cpm_mphyc = 0x00000000
Jz4775-9161
the manufacturer 0b
SF: Detected XT25F128B
ReadFlashData ret=0
****Enter into Check Update:1 ******
reading ub_boot.bin
** Unable to read file ub_boot.bin **
Can not open File:ub_boot.bin len_read=-1
reading ub_kernel.bin
** Unable to read file ub_kernel.bin **
Can not open File:ub_kernel.bin len_read=-1
reading ub_rootfs.bin
** Unable to read file ub_rootfs.bin **
Can not open File:ub_rootfs.bin len_read=-1
reading ub_userdb.bin
** Unable to read file ub_userdb.bin **
Can not open File:ub_userdb.bin len_read=-1
reading ub_backdb.bin
** Unable to read file ub_backdb.bin **
Can not open File:ub_backdb.bin len_read=-1
reading ub_minkernel.bin
** Unable to read file ub_minkernel.bin **
Can not open File:ub_minkernel.bin len_read=-1
reading ub_minrootfs.bin
** Unable to read file ub_minrootfs.bin **
Can not open File:ub_minrootfs.bin len_read=-1
reading ub_hyspy.bin
** Unable to read file ub_hyspy.bin **
Can not open File:ub_hyspy.bin len_read=-1
reading ub_ajyall.bin
** Unable to read file ub_ajyall.bin **
Can not open File:ub_ajyall.bin len_read=-1
### main_loop: bootcmd="sf probe;sf read 0x80600000 0x40000 0x280000; bootm 0x80600000"
Hit any key to stop autoboot: 1 0
the manufacturer 0b
SF: Detected XT25F128B
--->probe spend 4 ms
SF: 2621440 bytes @ 0x40000 Read: OK
--->read spend 842 ms
## Booting kernel from Legacy Image at 80600000 ...
Image Name: Linux-3.10.14__isvp_turkey_1.0__
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1543816 Bytes = 1.5 MiB
Load Address: 80010000
Entry Point: 803501e0
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14__isvp_turkey_1.0__ (YiYanhong@softSVN) (gcc version 4.7.2 (Ingenic r2.3.3 2016.12) ) #17 PREEMPT Fri Dec 6 09:58:35 CST 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:19884813
[ 0.000000] CPU0 revision is: 00d00100 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] CCLK:864MHz L2CLK:432Mhz H0CLK:225MHz H2CLK:225Mhz PCLK:112Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 00454000 @ 00010000 (usable)
[ 0.000000] memory: 0002c000 @ 00464000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02b00000 @ 00000000 (usable)
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x02afffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x02afffff]
[ 0.000000] Primary instruction cache 16kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00100],sc_jz not support!
[ 0.000000] MIPS secondary cache 64kB, 8-way, linesize 32 bytes.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10922
[ 0.000000] Kernel command line: console=ttyS1,115200n8 mem=43M@0x0 rmem=21M@0x2B00000 init=/linuxrc rootfstype=squashfs root=/dev/mtdblock2 rw mtdparts=jz_sfc:256k(boot),2560k(kernel),9088k(root),320k(syscfg),320k(sysbak),1472k(minikernel),2304k(minirootfs),64k(upgrade),-(appfs)
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 38368k/44032k available (3363k kernel code, 5664k reserved, 1066k data, 176k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:422
clockevents_config_and_register success.
[ 0.000000] [ 0.000032] Calibrating delay loop... 858.52 BogoMIPS (lpj=4292608)
[ 0.037692] pid_max: default: 32768 minimum: 301
[ 0.042698] Mount-cache hash table entries: 512
[ 0.047942] Initializing cgroup subsys debug
[ 0.052208] Initializing cgroup subsys freezer
[ 0.059876] regulator-dummy: no parameters
[ 0.064185] NET: Registered protocol family 16
[ 0.083412] bio: create slab <bio-0> at 0
[ 0.090414] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.095634] usbcore: registered new interface driver usbfs
[ 0.101186] usbcore: registered new interface driver hub
[ 0.106759] usbcore: registered new device driver usb
[ 0.112003] (null): set:280 hold:281 dev=112500000 h=562 l=562
[ 0.118280] (null): set:280 hold:281 dev=112500000 h=562 l=562
[ 0.124432] media: Linux media interface: v0.10
[ 0.129058] Linux video capture interface: v2.00
[ 0.135901] Switching to clocksource jz_clocksource
[ 0.141576] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.146593] cfg80211: Calling CRDA to update world regulatory domain
[ 0.153084] jz-dwc2 jz-dwc2: regulator vbus get error
[ 0.158144] DWC IN OTG MODE
[ 0.310834] sft id =========================off
[ 0.315483] dwc2 dwc2: Keep PHY ON
[ 0.318859] dwc2 dwc2: Using Buffer DMA mode
[ 0.522254] dwc2 dwc2: Core Release: 3.00a
[ 0.526370] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.532741] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.540129] hub 1-0:1.0: USB hub found
[ 0.543966] hub 1-0:1.0: 1 port detected
[ 0.548066] dwc2 dwc2: DWC2 Host Initialized
[ 0.552648] NET: Registered protocol family 2
[ 0.557716] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.564708] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.571114] TCP: Hash tables configured (established 512 bind 512)
[ 0.577417] TCP: reno registered
[ 0.580626] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.586608] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.593265] NET: Registered protocol family 1
[ 0.598052] freq_udelay_jiffys[0].max_num = 10
[ 0.602545] cpufreq udelay loops_per_jiffy
[ 0.606899] 12000 59619 59619
[ 0.610164] 24000 119239 119239
[ 0.613627] 60000 298097 298097
[ 0.617052] 120000 596195 596195
[ 0.620583] 200000 993659 993659
[ 0.624132] 300000 1490488 1490488
[ 0.627836] dwc2 dwc2: ID PIN CHANGED!
[ 0.631680] init DWC as A_HOST
[ 0.634742] 600000 2980977 2980977
[ 0.638418] 792000 3934890 3934890
[ 0.642286] 1008000 5008042 5008042
[ 0.646013] 1200000 5961955 5961955
[ 0.656161] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.662332] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.668284] msgmni has been set to 74
[ 0.674684] io scheduler noop registered
[ 0.678626] io scheduler cfq registered (default)
[ 0.685725] jz-uart.0: ttyS0 at MMIO 0x10030000 (irq = 59) is a uart0
[ 0.692507] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.700693] console [ttyS1] enabled, bootconsole disabled
[ 0.700693] console [ttyS1] enabled, bootconsole disabled
[ 0.717265] brd: module loaded
[ 0.723495] loop: module loaded
[ 0.727595] zram: Created 2 device(s) ...
[ 0.731981] logger: created 256K log 'log_main'
[ 0.737489] jz SADC driver registeres over!
[ 0.743988] jz TCU driver register completed
[ 0.748999] the id code = b4018, the flash name is GD25LQ128C
[ 0.755057] #####unsupport ID is b4018 if the id not be 0x00,the flash can be ok,but the quad mode may be not support!!!!!
[ 0.965849] JZ SFC Controller for SFC channel 0 driver register
[ 0.972046] mtd: jz_sfc: skipping zero sized partition
[ 0.977386] 8 cmdlinepart partitions found on MTD device jz_sfc
[ 0.983541] Creating 8 MTD partitions on "jz_sfc":
[ 0.988501] 0x000000000000-0x000000040000 : "boot"
[ 0.994199] 0x000000040000-0x0000002c0000 : "kernel"
[ 1.000034] 0x0000002c0000-0x000000ba0000 : "root"
[ 1.005759] 0x000000ba0000-0x000000bf0000 : "syscfg"
[ 1.011677] 0x000000bf0000-0x000000c40000 : "sysbak"
[ 1.017549] 0x000000c40000-0x000000db0000 : "minikernel"
[ 1.023823] 0x000000db0000-0x000000ff0000 : "minirootfs"
[ 1.030028] 0x000000ff0000-0x000001000000 : "upgrade"
[ 1.036095] SPI NOR MTD LOAD OK
[ 1.039439] tun: Universal TUN/TAP device driver, 1.6
[ 1.044739] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.051308] Bus Mode Reg after reset: 0x00020101, cnt=0
[ 1.074885] libphy: jz_mii_bus: probed
[ 1.078889] =======>gmacdev = 0x821ea580<================
[ 1.084589] =========>gmacdev->MacBase = 0xb34b0000 DmaBase = 0xb34b1000
[ 1.091643] usb 1-1: new high-speed USB device number 2 using dwc2
[ 1.098671] Bus Mode Reg after reset: 0x00020101, cnt=0
[ 1.105967] jz_mac jz_mac.0: JZ on-chip Ethernet MAC driver, Version 1.0
[ 1.113164] usbcore: registered new interface driver zd1201
[ 1.118931] i2c /dev entries driver
[ 1.123505] TCP: cubic registered
[ 1.126943] NET: Registered protocol family 17
[ 1.132105] soc_vpu probe success,version:1.0.0-03203fd46d
[ 1.138203] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 1.145705] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.158041] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.165867] Freeing unused kernel memory: 176K (80464000 - 80490000)
mdev is ok......
Press q -> ENTER to exit boot procedure?
----enter to upgrade from sdcard----
[ 4.288070] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 4.300853] jzmmc_v1.2 jzmmc_v1.2.0: card inserted, state=0
[ 4.330855] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 5.340834] mmc0: new high speed SDHC card at address 0001
[ 5.354214] mmcblk0: mmc0:0001 SD 14.8 GiB
[ 5.366241] mmcblk0: p1
[ 6.376737] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
syscfg.ini not exist.
mkdir: can't create directory '/var/syscfg': File exists
mkdir: can't create directory '/var/sysbak': File exists
uboot.bin not exist.
kernel.bin not exist.
rootfs.bin not exist.
----leaved to upgrade from sdcard----
rmmod mmcv12 and mmcblock and mmccore
jzmmc_v12 16828 0 - Live 0xc00dd000
mmc_core 99776 1 jzmmc_v12, Live 0xc009b000
Ingenic-uc1_1 login: =========================================================================
RootFS Version:
MTD Version:
=========================================================================
[ 8.036379] jz_codec_register: probe() successful!
[ 8.411279] dma dma0chan24: Channel 24 have been requested.(phy id 7,type 0x06 desc a19d5000)
[ 8.420567] dma dma0chan25: Channel 25 have been requested.(phy id 6,type 0x06 desc a184e000)
[ 8.429982] dma dma0chan26: Channel 26 have been requested.(phy id 5,type 0x04 desc a2794000)
grep: /proc/jz/sinfo/info: No such file or directory
can't get sensor info
[ 9.100236] RTW: module init start
[ 9.106444] RTW: rtl8188fu v5.3.0.1_28034.20180525
[ 9.111499] RTW: build time: Oct 14 2019 16:57:37
[ 9.116425] RTW: rtw_inetaddr_notifier_register
[ 9.121247] RTW:
[ 9.121247] usb_endpoint_descriptor(0):
[ 9.127194] RTW: bLength=7
[ 9.129987] RTW: bDescriptorType=5
[ 9.133589] RTW: bEndpointAddress=81
[ 9.137285] RTW: wMaxPacketSize=512
[ 9.140922] RTW: bInterval=0
[ 9.143898] RTW: RT_usb_endpoint_is_bulk_in = 1
[ 9.148577] RTW:
[ 9.148577] usb_endpoint_descriptor(1):
[ 9.154577] RTW: bLength=7
[ 9.157375] RTW: bDescriptorType=5
[ 9.160941] RTW: bEndpointAddress=2
[ 9.164545] RTW: wMaxPacketSize=512
[ 9.168145] RTW: bInterval=0
[ 9.171148] RTW: RT_usb_endpoint_is_bulk_out = 2
[ 9.175919] RTW:
[ 9.175919] usb_endpoint_descriptor(2):
[ 9.181879] RTW: bLength=7
[ 9.184673] RTW: bDescriptorType=5
[ 9.188184] RTW: bEndpointAddress=3
[ 9.191803] RTW: wMaxPacketSize=512
[ 9.195405] RTW: bInterval=0
[ 9.198377] RTW: RT_usb_endpoint_is_bulk_out = 3
[ 9.203165] RTW: nr_endpoint=3, in_num=1, out_num=2
[ 9.203165]
[ 9.209733] RTW: USB_SPEED_HIGH
[ 9.212997] RTW: CHIP TYPE: RTL8188FU
[ 9.217108] RTW: rtw_hal_config_rftype RF_Type is 0 TotalTxPath is 1
[ 9.223749] RTW: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[ 9.231780] RTW: _ConfigChipOutEP_8188F OutEpQueueSel(0x05), OutEpNumber(2)
[ 9.239057] RTW: EEPROM type is E-FUSE
[ 9.243200] RTW: Boot from EFUSE, Autoload OK !
[ 9.248119] RTW: hal_EfuseSwitchToBank: Efuse switch bank to 0
[ 9.320680] RTW: hal_ReadEFuse_WiFi: data end at address=0x74
[ 9.326787] RTW: HW EFUSE
[ 9.329504] RTW: 0x000: 29 81 00 FC 0B 00 00 00 00 0C 04 4C 10 07 00 00
[ 9.336895] RTW: 0x010: 23 23 23 24 24 24 28 28 28 29 29 03 FF FF FF FF
[ 9.344274] RTW: 0x020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.351649] RTW: 0x030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.359003] RTW: 0x040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.366376] RTW: 0x050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.373749] RTW: 0x060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.381122] RTW: 0x070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.388477] RTW: 0x080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.395849] RTW: 0x090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.403223] RTW: 0x0A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.410576] RTW: 0x0B0: FF FF FF FF FF FF FF FF 20 2B 1A 00 00 00 00 FF
[ 9.417949] RTW: 0x0C0: FF 12 00 10 00 FF 00 FF 00 00 FF FF FF FF FF FF
[ 9.425322] RTW: 0x0D0: DA 0B 79 F1 42 66 40 68 B9 D3 13 13 5B 09 03 52
[ 9.432696] RTW: 0x0E0: 65 61 6C 74 65 6B 09 03 38 30 32 2E 31 31 6E 00
[ 9.440049] RTW: 0x0F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.447422] RTW: 0x100: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.454797] RTW: 0x110: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.462171] RTW: 0x120: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.469525] RTW: 0x130: C1 B6 FF FF FF FF FF FF FF FF 00 11 FF FF FF FF
[ 9.476898] RTW: 0x140: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.484273] RTW: 0x150: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.491647] RTW: 0x160: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.498999] RTW: 0x170: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.506373] RTW: 0x180: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.513747] RTW: 0x190: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.521120] RTW: 0x1A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.528475] RTW: 0x1B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.535849] RTW: 0x1C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.543227] RTW: 0x1D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.550581] RTW: 0x1E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.557957] RTW: 0x1F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
[ 9.565342] RTW: EEPROM VID = 0x bda
[ 9.569034] RTW: EEPROM PID = 0xf179
[ 9.572768] RTW: hal_com_config_channel_plan chplan:0x20
[ 9.578264] RTW: Hal_EfuseParsePowerSavingMode_8188F...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 9.588988] RTW: ### PS params=> power_mgnt(2),usbss_enable(0) ###
[ 9.596762] RTW: kfree Pwr Trim flag:1
[ 9.600642] RTW: bb_gain:2
[ 9.605775] RTW: rtl8188f_FirmwareDownload fw: FW_NIC, size: 20288
[ 9.612209] RTW: rtl8188f_FirmwareDownload: fw_ver=d fw_subver=0000 sig=0x88f1, Month=02, Date=06, Hour=16, Minute=59
[ 9.623194] RTW: rtl8188f_FirmwareDownload(): Shift for fw header!
[ 9.629580] RTW: rtl8188f_FirmwareDownload by IO write!
[ 9.655068] RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00040105
[ 9.664440] RTW: _8051Reset8188: Finish
[ 9.677956] RTW: _FWFreeToGo: Polling FW ready OK! (140, 10ms), REG_MCUFWDL:0x000401c6
[ 9.686175] RTW: rtl8188f_FirmwareDownload: DLFW OK !
[ 9.691418] RTW: rtl8188f_FirmwareDownload success. write_fw:1, 70ms
[ 9.698057] RTW: <=== rtl8188f_FirmwareDownload()
[ 9.704030] RTW: CardDisableRTL8188FU
[ 9.710173] RTW: hal_read_mac_hidden_rpt OK! (1, 0ms), fwdl:1, id:0x19
[ 9.716962] RTW: InitAdapterVariablesByPROM_8188FU(): REPLACEMENT = 0
[ 9.723642] RTW: rtw_hal_read_chip_info in 490 ms
[ 9.728555] RTW: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13
[ 9.736779] RTW: NR_RECVBUFF: 8
[ 9.740037] RTW: MAX_RECVBUF_SZ: 32768
[ 9.744014] RTW: NR_PREALLOC_RECV_SKB: 8
[ 9.748591] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 9.756495] RTW: IQK FW offload:disable
[ 9.760476] RTW: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=12
[ 9.766662] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[ 9.776113] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[ 9.785022] RTW: default power by rate loaded
[ 9.789680] RTW: rtw_macaddr_cfg mac addr:68:b9:d3:13:13:5b
[ 9.795525] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[ 9.805392] RTW: NR_RECVBUFF: 8
[ 9.808654] RTW: MAX_RECVBUF_SZ: 32768
[ 9.812643] RTW: NR_PREALLOC_RECV_SKB: 8
[ 9.817248] RTW: rtw_alloc_macid((null)) if2, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 9.825026] RTW: rtw_drv_add_vir_if if2 mac_addr : 6a:b9:d3:13:13:5b
[ 9.831693] RTW: rtw_wiphy_alloc(phy0)
[ 9.835575] RTW: rtw_wdev_alloc(padapter=c06b8000)
[ 9.840586] RTW: rtw_wiphy_alloc(phy1)
[ 9.844523] RTW: rtw_wdev_alloc(padapter=c072a000)
[ 9.849486] RTW: rtw_wiphy_register(phy0)
[ 9.854251] RTW: rtw_ndev_init(ra0) if1 mac_addr=68:b9:d3:13:13:5b
[ 9.864016] RTW: rtw_ndev_notifier_call(ra0) state:16
[ 9.882446] RTW: rtw_ndev_notifier_call(ra0) state:5
[ 9.887627] RTW: rtw_wiphy_register(phy1)
[ 9.895168] RTW: rtw_ndev_init(ra1) if2 mac_addr=6a:b9:d3:13:13:5b
[ 9.904948] RTW: rtw_ndev_notifier_call(ra1) state:16
[ 9.923382] RTW: rtw_ndev_notifier_call(ra1) state:5
[ 9.931954] usbcore: registered new interface driver rtl8188fu
[ 9.937994] RTW: module init ret=0
ip: SIOCSIFNAME: No such device
[ 9.963100]
[ 9.963100] peripher dev success
[ 10.005306]
[ 10.005306] 20170721 15:58 GM8135S/GM8136S Init Reset Key Driver Success
[ 10.027120]
[ 10.027120] NetLED for rts390xN dev success
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device[ 10.610023] RTW: rtw_ndev_notifier_call(ra0) state:13
[ 10.618630] RTW: _netdev_open(ra0) , bup=0
[ 10.625001] RTW: power-on :REG_SYS_CLKR 0x09=0xfc. REG_CR 0x100=0x3f.
[ 10.631849] RTW: MAC has already power on.
[ 10.636797] RTW: rtl8188f_FirmwareDownload fw: FW_NIC, size: 20288
[ 10.643277] RTW: rtl8188f_FirmwareDownload: fw_ver=d fw_subver=0000 sig=0x88f1, Month=02, Date=06, Hour=16, Minute=59
[ 10.654295] RTW: rtl8188f_FirmwareDownload(): Shift for fw header!
[ 10.660683] RTW: rtl8188f_FirmwareDownload by IO write!
[ 10.686209] RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00040105
[ 10.695566] RTW: _8051Reset8188: Finish
[ 10.709080] RTW: _FWFreeToGo: Polling FW ready OK! (141, 10ms), REG_MCUFWDL:0x000401c6
[ 10.717300] RTW: rtl8188f_FirmwareDownload: DLFW OK !
[ 10.722545] RTW: rtl8188f_FirmwareDownload success. write_fw:1, 70ms
[ 10.729185] RTW: <=== rtl8188f_FirmwareDownload()
[ 10.734169] RTW: fw download ok!
[ 10.745201] RTW: PHY_MACConfig8188F OK!
[ 10.767309] RTW: PHY_BBConfig8188F OK!
[ 11.021156] RTW: PHY_RFConfig8188F OK!
[ 11.029164] RTW: usb_AggSettingRxUpdate: RX Aggregation USB mode, size=20KB, timeout=1024us
[ 11.321714] RTW: rtl8188fu_hal_init in 700ms
[ 11.326144] RTW: rtw_hal_set_macaddr_port ra0- hw port(0) mac_addr =68:b9:d3:13:13:5b
[ 11.334704] RTW: rtw_hal_set_macaddr_port ra1- hw port(1) mac_addr =6a:b9:d3:13:13:5b
[ 11.343678] RTW: rtw_hal_get_macaddr_port ra0- hw port(0) mac_addr =68:b9:d3:13:13:5b
[ 11.351818] RTW: ra0- hw port(0) mac_addr =68:b9:d3:13:13:5b
[ 11.358076] RTW: rtw_hal_get_macaddr_port ra1- hw port(1) mac_addr =6a:b9:d3:13:13:5b
[ 11.366216] RTW: ra1- hw port(1) mac_addr =6a:b9:d3:13:13:5b
[ 11.372300] RTW: [HW_VAR_ENABLE_RX_BAR] 0x6A2=0x500
[ 11.382479] RTW: rtw_rf_get_kfree_tx_gain_offset path:0, ch:6, bb_gain_sel:0, kfree_offset:2
[ 11.391883] RTW: kfree gain_offset 0x55:0x82060 RTW: after :0x8a060
[ 11.399646] RTW: MAC Address = 68:b9:d3:13:13:5b
[ 11.404458] RTW: rtw_start_drv_threads(ra0) start RTW_CMD_THREAD
[ 11.411090] RTW: rtw_cfg80211_init_wiphy:rf_type=0
[ 11.416052] RTW: [HT] HAL Support STBC = 0x01
[ 11.420567] RTW: _netdev_vir_if_open(ra1) , bup=0
[ 11.425506] RTW: rtw_cfg80211_init_wiphy:rf_type=0
[ 11.430461] RTW: [HT] HAL Support STBC = 0x01
[ 11.434996] RTW: _netdev_vir_if_open(ra1) (bup=1) exit
[ 11.440306] RTW: -871x_drv - drv_open, bup=1
[ 11.444822] RTW: cfg80211_rtw_set_power_mgmt(ra0) enabled:1, timeout:-1
[ 11.451728] RTW: rtw_ndev_notifier_call(ra0) state:1
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
[ 11.505482] RTW: cfg80211_rtw_flush_pmksa(ra0)
[ 11.519234] Bus Mode Reg after reset: 0x00020101, cnt=0
Start memory monitor
[ 11.611090] RTW: cfg80211_rtw_scan(ra0)
[ 11.615531] RTW: [HW_VAR_CHECK_TXBUF] no packet in tx packet buffer (0)
TotalFree:26496
[ 11.648341] RTW: ra0 sleep m0=0x00000002, ori reg_0x4d4=0x00000000
Not Insert Sd Card
00:00:13 [wssApp.c main:382] E> wssApp BUILDTIME=2020-06-19T16:00
00:00:13 [wssApp.c main:383] E> Enter into wssApp Process:1
00:00:13 [wssApp.c main:414] E> Start wssApp work
00:00:13 [ajyProtocol/processUpgrade/wdt.c InitWdt:128] E> InitWdt
00:00:13 [libfunUserManager.c fUMG_Init:20] E> 000 size = 76--4000
00:00:13 [libfunUserManager.c fUMG_Init:21] E> enter int fUMG_Init
00:00:13 [libfunUserManager.c fUMG_Init:56] E> open usertext success
00:00:13 [libfunUserManager.c fUMG_Init:58] E> Read user Info:4000,siz:4000,0x93a8f8
00:00:13 [libfunUserManager.c fUMG_Init:71] E> nUserID = 1,name:admin,pos:0
00:00:13 [ajyProtocol/processUpgrade/wdt.c WatchdogOpen:39] E> WatchdogOpen file success:6
00:00:13 [ajyProtocol/processUpgrade/wdt.c WatchdogOpen:46] E> WatchdogOpen success :6
00:00:13 [ajyProtocol/processUpgrade/wdt.c WatchdogOpen:62] E> WatchdogOpen complete value = 2,timeout= 60
00:00:13 [wssApp.c main:435] E> libcurl version = libcurl/7.65.3 mbedTLS/2.14.0 nghttp2/1.35.0
00:00:13 [wssApp.c wssAppStart:147] E> ------------------001 Start wssAppStart -------------------
[3.0|hySyscfg.c|hySysCfgInit,3186] ***********core sdk version [V3.0.0.2-20200609]************
[3.0|hySyscfg.c|iniFileLoad,3070]
[3.0|hySyscfg.c|IniGetHwFuncParams,144] pHwFuncParams: 0100011010000
[3.0|hySyscfg.c|IniGetPtz632MaxStep,827] nMaxPulseNumber_H: 4000
[3.0|hySyscfg.c|IniGetPtz632MaxStep,828] nMaxPulseNumber_V: 1400
[3.0|hySyscfg.c|IniGetDevFactoryMode,174] bFactoryMode: 0
[3.0|hySyscfg.c|IniGetDevFactoryDevParam,196] chModel: K3C
[3.0|hySyscfg.c|IniGetDevFactoryDevParam,197] chVendor: WVC
[3.0|hySyscfg.c|[ 13.261286] RTW: ra0 wakeup m0=0x00000002, ori reg_0x4d4=0x00000002
IniGetDevFactoryDevParam,198] chSerialNum: WVCB42ZBCHT4DZNJ
[3[ 13.271615] RTW: survey done event(23) band:0 for ra0
.0|hySyscfg.c|IniGetDevFactoryP2pParam,231] nEnable: 0
[3.0|hy[ 13.282350] RTW: rtw_indicate_scan_done(ra0)
Syscfg.c|IniGetDevFactoryP2pParam,232] chInitStr:
[3.0|hySyscfg.c|IniGetDevFactoryP2pParam,233] chDid:
[3.0|hySyscfg.c|IniGetDevFactoryP2pParam,234] chApi_License:
[3.0|hySyscfg.c|IniGetDevFactoryP2pParam,235] chCRC_key:
[3.0|hySyscfg.c|IniGetDevFactoryDhcpName,258] pcDhcpName: WVCIPC
[3.0|hySyscfg.c|IniGetDevFactoryDefaultIp,276] pchDefaultIP: 192.168.0.188
[3.0|hySyscfg.c|IniGetFacDdnsAttr,315] chFacServer:
[3.0|hySyscfg.c|IniGetFacDdnsAttr,316] chFacHost:
[3.0|hySyscfg.c|IniGetFacDdnsAttr,317] chUserName:
[3.0|hySyscfg.c|IniGetFacDdnsAttr,318] chPassword:
[3.0|hySyscfg.c|IniGetFacDdnsAttr,319] nFacInterval: 300
[3.0|hySyscfg.c|IniGetFacDdnsAttr,320] nFacPort: 8888
[3.0|hySyscfg.c|IniGetFacDdnsAttr,321] nNetType: 1
[3.0|hySyscfg.c|IniGetMacAddress,349] chMacAddress: 78:A5:DD:48:03:A7
[3.0|hySyscfg.c|IniGetDevName,367] pcDevName: WVCIPC
[3.0|hySyscfg.c|IniGetNetAttr,406] cDHCPFlag: 1
[3.0|hySyscfg.c|IniGetWifiAttr,596] cWiFiEssid:
[3.0|hySyscfg.c|IniGetWifiAttr,597] cWiFiWepKey:
[3.0|hySyscfg.c|IniGetWifiAttr,598] eWiFiSecurityMode: 0
[3.0|hySyscfg.c|IniGetZoneTime,618] pnZoneTime=11
[3.0|hySyscfg.c|IniGetNtpAttr,650] nNTPEnable: 1
[3.0|hySyscfg.c|IniGetNtpAttr,651] nNTPInterval: 1
[3.0|hySyscfg.c|IniGetNtpAttr,652] chNTPServer: pool.ntp.org
[3.0|hySyscfg.c|IniGetHttpAttr,670] nHttpPort=80
[3.0|hySyscfg.c|IniGetPtzParam,926] cSlefDet: 1
[3.0|hySyscfg.c|IniGetPtzParam,927] cMoveHome: 0
[3.0|hySyscfg.c|IniGetPtzParam,928] cAlarmMask: 1
[3.0|hySyscfg.c|IniGetPtzSelfPos,950] pnSelfPos: 9
[3.0|hySyscfg.c|IniGetPtzSysStatus,972] pnPtzSysStatus(start run testing aging): 0
[3.0|hySyscfg.c|IniGetAlarmServer,1192] nEnabled: 0
[3.0|hySyscfg.c|IniGetAlarmServer,1193] chServerType:
[3.0|hySyscfg.c|IniGetAlarmServer,1194] chServersIP:
[3.0|hySyscfg.c|IniGetAlarmServer,1195] chServersPort:
[3.0|hySyscfg.c|IniGetAlarmServer,1196] chUsersName:
[3.0|hySyscfg.c|IniGetAlarmServer,1197] chPassesWord:
[3.0|hySyscfg.c|IniGetAlarmParam,1261] ActionInterval 30
[3.0|hySyscfg.c|IniGetAlarmParam,1262] AlaramTrigType 0
[3.0|hySyscfg.c|IniGetAlarmParam,1263] EnableIOAlarm 0
[3.0|hySyscfg.c|IniGetAlarmParam,1264] IOInputNormalStatus 0
[3.0|hySyscfg.c|IniGetAlarmParam,1265] IOOutputNormalStatus 0
[3.0|hySyscfg.c|IniGetAlarmParam,1266] EnableTempDetect 0
[3.0|hySyscfg.c|IniGetAlarmParam,1267] EnableHumDetect 0
[3.0|hySyscfg.c|IniGetAlarmParam,1268] MinTemp 0
[3.0|hySyscfg.c|IniGetAlarmParam,1269] MaxTemp 35
[3.0|hySyscfg.c|IniGetAlarmParam,1270] MinHum 10
[3.0|hySyscfg.c|IniGetAlarmParam,1271] MaxHum 90
[3.0|hySyscfg.c|IniGetSmtpParam,1497] chHost=
[3.0|hySyscfg.c|IniGetSmtpParam,1498] nPort=21
[3.0|hySyscfg.c|IniGetSmtpParam,1499] nLoginType=0
[3.0|hySyscfg.c|IniGetSmtpParam,1500] nSslType=0
[3.0|hySyscfg.c|IniGetSmtpParam,1501] chUser=
[3.0|hySyscfg.c|IniGetSmtpParam,1502] chPasswd=
[3.0|hySyscfg.c|IniGetSmtpParam,1503] chSubject=alarm
[3.0|hySyscfg.c|IniGetSmtpParam,1504] chSend=
[3.0|hySyscfg.c|IniGetSmtpParam,1505] chReceive1=
[3.0|hySyscfg.c|IniGetSmtpParam,1506] chReceive2=
[3.0|hySyscfg.c|IniGetSmtpParam,1507] chReceive3=
[3.0|hySyscfg.c|IniGetSmtpParam,1508] nTimeInterval=30
[3.0|hySyscfg.c|IniGetSmtpParam,1509] nPicNumber=3
[3.0|hySyscfg.c|IniGetNightVisionCtrlParam,1552] nIrledMode=2
[3.0|hySyscfg.c|IniGetNightVisionCtrlParam,1553] nIrcutMode=2
[3.0|hySyscfg.c|IniGetNightVisionCtrlParam,1554] nIrcutStatus=0
[3.0|hySyscfg.c|IniGetNightVisionCtrlParam,1555] nIrcutSensitivity=20
[3.0|hySyscfg.c|IniGetNightVisionCtrlParam,1556] nIrcutSusTime=2
[3.0|hySyscfg.c|IniGetVideoChnNum,1639] nVideoChnNum :2
[3.0|hySyscfg.c|IniGetVideoEncParam,1719]
[3.0|hySyscfg.c|IniGetVideoEncParam,1756]
[3.0|hySyscfg.c|IniGetVideoEncParam,1768]
[3.0|hySyscfg.c|IniGetVideoEncParam,1780]
[3.0|hySyscfg.c|IniGetVideoEncParam,1832]
[3.0|hySyscfg.c|IniGetVideoEncParam,1908]
[3.0|hySyscfg.c|IniGetAudioEncParam,1951] eFormat: 2
[3.0|hySyscfg.c|IniGetAudioEncParam,1952] nChannelNum: 1
[3.0|hySyscfg.c|IniGetAudioEncParam,1953] nSampleRate: 8000
[3.0|hySyscfg.c|IniGetAudioEncParam,1954] nSampleSize: 16
Get Ajy Url = https://sdc-isc.ajcloud.net/api/v1/cmd/register
[3.0|hySyscfg.c|IniGetPtz485BaudRate,3026] BaudRate /var/syscfg/485baudrate.ini not exist, set default(9600)
[3.0|hySyscfg.c|IniGetPtz485BaudRate,3028] [9600]
00:00:13 [wssApp.c wssAppStart:150] E> ------------------Start wssAppStart lang:en-------------------
00:00:13 [wssApp.c wssAppStart:153] E> 000 CH1 Width:768
00:00:13 [wssApp.c wssAppStart:156] E> chAutoUpgradetime[010000:050000]interval[7200]
[3.0|coreNet.c|coreNetInit,1344]
[3.0|coreNet.c|NetCallSystem,58] 000 NetCallSystem ifconfig eth0 down;sleep 1;ifconfig eth0 hw ether 78:A5:DD:48:03:A7;ifconfig eth0 up;echo 78:A5:DD:48:03:A7 > /var/ethmacaddress;ifconfig eth0 0.0.0.0 errno = 2,nLoop = 0
[ 14.831919] Bus Mode Reg after reset: 0x00020101, cnt=0
[3.0|coreNet.c|NetCallSystem,88] 001 NetCallSystem ifconfig eth0 down;sleep 1;ifconfig eth0 hw ether 78:A5:DD:48:03:A7;ifconfig eth0 up;echo 78:A5:DD:48:03:A7 > /var/ethmacaddress;ifconfig eth0 0.0.0.0 errno = 2,nLoop = 2
[3.0|halWifiHandle.c|hWIFI_GetWpaSupplicantConf,402] ssid= pwd= security=0
Not Found SD card WiFi Conf File
[3.0|halWifiHandle.c|hWIFI_CheckWifiStatus,660] nWifiStatusFlag:[1]
OK
[ 16.314867] RTW: cfg80211_rtw_scan(ra0)
[ 16.319329] RTW: [HW_VAR_CHECK_TXBUF] no packet in tx packet buffer (0)
[ 16.334249] RTW: ra0 sleep m0=0x00000002, ori reg_0x4d4=0x00000000
OK
[3.0|coreNet.c|startNetManagerThread,1243] Start Net manager :0
Call Sem Set
[3.0|SemOper.cpp|SemInit,88] SemInit :0,10
[3.0|libcfAvshm.cpp|InitAvShm,160] 001 Shm Info:1036800,0,0
[3.0|libcfAvshm.cpp|InitAvShm,238] 001.1 Shm Info:0,0,0,1036800
[3.0|libcfAvshm.cpp|InitAvShm,246] 002 Shm Info:1036800,1036768,0,1036800,0,0,0,0
Call Sem Set
[3.0|SemOper.cpp|SemInit,88] SemInit :32769,20
[3.0|libcfAvshm.cpp|InitAvShm,160] 001 Shm Info:165888,0,1
[3.0|libcfAvshm.cpp|InitAvShm,238] 001.1 Shm Info:0,0,0,165888
[3.0|libcfAvshm.cpp|InitAvShm,246] 002 Shm Info:165888,165856,0,165888,0,0,0,0
Call Sem Set
[3.0|SemOper.cpp|SemInit,88] SemInit :65538,100
[3.0|libcfAvshm.cpp|InitAvShm,160] 001 Shm Info:2048,1,0
[3.0|libcfAvshm.cpp|InitAvShm,238] 001.1 Shm Info:0,0,0,2048
[3.0|libcfAvshm.cpp|InitAvShm,246] 002 Shm Info:2048,2016,0,2048,0,0,0,0
00:00:16 [wssApp.c wssAppStart:198] E> Ptz not support
nNTPEnable:1 nNTPInterval:1 chNTPServer:pool.ntp.org
00:00:16 [avCallbackFun.c MdLinkThread:92] E> Enter into MdLinkThread Thread
[3.0|coreNet.c|netManagerThread,1093] Create NetManager Thread :1984091376
001 netCallBack eFunNetLinkageType = 6
00:00:16 [netCallback.c netCallBack:191] E> eFunNetLinkageType=6,status = 2,last Status:255
00:00:16 [netCallback.c netCallBack:245] E> Network status changed:2 Qr Mode:0
001 netCallBack eFunNetLinkageType = 13
00:00:16 [netCallback.c netCallBack:171] E> 001 eth down stop discovery
00:00:16 [netCallback.c netCallBack:173] E> 002 eth down stop discovery
00:00:16 [netCallback.c netCallBack:175] E> 003 eth down stop discovery
00:00:16 [netCallback.c netCallBack:179] E> 004 eth down stop discovery
00:00:16 [funNtp.c fNTP_ReadNtpCfg:227] E> fNTP_ReadNtpCfg = tz_name=America/New_York
00:00:16 [funNtp.c fNTP_ReadNtpCfg:227] E> fNTP_ReadNtpCfg = tz_string=EST5EDT,M3.2.0,M11.1.0
00:00:16 [funNtp.c fNTP_ReadNtpCfg:227] E> fNTP_ReadNtpCfg = tz_utc=UTC(-05:00)
[3.0|coreHardware.c|coreHwInit,856]
snLedOppositeState = 0
[3.0|coreHardware.c|coreHwInit,874] night vision type:1(0100011010000/1)
[3.0|coreHardware.c|coreHwNightVisionCtrlSet,946] ======================================
[3.0|coreHardware.c|StartHWControlThread,431]
[3.0|coreHardware.c|StartHWControlThread,435]
[3.0|gpioAdc_GM.c|getAdcValue_JZ,47] jzAdcInitFlg=0
[3.0|gpioAdc_GM.c|getAdcValue_JZ,51] jzAdcInitFlg=0
[3.0|coreAvStream.c|coreAvInit,59]
[3.0|video.c|videoParamSet,53] eVideoIndex: 0
[3.0|video.c|videoParamSet,54] eEncType: 3
[3.0|video.c|videoParamSet,55] eBrMode: 4
[3.0|video.c|videoParamSet,56] nWidth: 1920
[3.0|video.c|videoParamSet,57] nHeight: 1080
[3.0|video.c|videoParamSet,58] nFps: 15
[3.0|video.c|videoParamSet,59] nGop: 30
[3.0|video.c|videoParamSet,60] nKBps: 1024
[3.0|video.c|videoParamSet,61] bWithAudio: 1
[3.0|video.c|videoParamSet,62] bAutoChangeVideoParamByP2p: 0
[3.0|video.c|videoParamSet,53] eVideoIndex: 1
[3.0|video.c|videoParamSet,54] eEncType: 3
[3.0|video.c|videoParamSet,55] eBrMode: 4
[3.0|video.c|videoParamSet,56] nWidth: 768
[3.0|video.c|videoParamSet,57] nHeight: 432
[3.0|video.c|videoParamSet,58] nFps: 15
[3.0|video.c|videoParamSet,59] nGop: 30
[3.0|video.c|videoParamSet,60] nKBps: 425
[3.0|video.c|videoParamSet,61] bWithAudio: 1
[3.0|video.c|videoParamSet,62] bAutoChangeVideoParamByP2p: 0
[3.0|video.c|sample_sensor_init,1527]
call sample_system_init
read sensortype
chTypeString type = sensor:ov2735b
sensor type = ***ov2735b
***
Sensor Name = ***os02b10***
Sensor Name = ***ps5260***
Sensor Name = ***sc2232h***
Sensor Name = ***ov2735b***
Get Sensor Type = 3
002 sample_system_init
003 sample_system_init
004 sample_system_init
005 sample_system_init
006 sample_system_init :Index:3,Widht,Heighit(1920x1080)
007 sample_system_init
[3.0|[ 17.168376] set sensor gpio as PA-low-10bit
sample-common.c|sample_system_init,369] ret = 0
[ 17.252941] ov2735 chip found @ 0x3c (i2c0)
[3.0|sample-common.c|sample_system_init,376] ret = 0
[3.0|sample-common.c|sample_system_init,383] ret = 0
[3.0|sample-common.c|sample_system_init,39[ 17.401647] vts is 2659
0] ret = 0
[3.0|sample-common.c|sample_system_init,398] ret = 0
[3.0|sample-common.c|sample_system_init,404] ret = 0
[3.0|sample-common.c|sample_system_init,406] ret = 0
[3.0|sample-common.c|sample_system_init,408] ret = 0
[3.0|sample-common.c|sample_system_init,410] ret = 0
[3.0|sample-common.c|sample_system_init,413] ret = 0
[3.0|sample-common.c|sample_system_init,419] ret = 0
[3.0|sample-common.c|sample_system_init,423] ret = 0
[3.0|coreAvStream.c|coreAvInit,76] gs_bSensorInited=1
00:00:17 [wssApp.c wssAppStart:243] E> 001 CH1 Width:768
00:00:17 [wssApp.c wssAppStart:245] E> 002 CH1 Width:768
[3.0|coreAvStream.c|coreAudioDrvParamSet,606] bAudioOutputEnable : 1
[3.0|coreAvStream.c|coreAudioDrvParamSet,607] bAudioInputEnable : 1
[3.0|coreAvStream.c|coreAudioDrvParamSet,608] nAudioOutputVol : 70
[3.0|coreAvStream.c|coreAudioDrvParamSet,609] nAudioInputVol : 70
[3.0|coreAvStream.c|coreAudioDrvParamSet,610] nAudioOutputType : 0
fail to set playback volume
00:00:17 [wssApp.c wssAppStart:254] E> md area right x bottom(704x368),sens:60
[3.0|coreAvStream.c|coreYuvDataStart,291]
00:00:17 [fuZbar.cpp fQr_StartQrRecog:229] E> #####################StartQrRecog##############################
00:00:17 [wssApp.c wssAppStart:286] E> 003 CH1 Width:768,Height:368
[3.0|coreAvStream.c|coreAudioStreamStart,374] g_hAEncodeThread : 1876866288
00:00:17 [wssApp.c wssAppStart:288] E> 004 CH1 Width:768,Height:368
[3.0|coreAvStream.c|coreAudioPlayInit,472]
[3.0|audio.c|audio_play_init,736]
00:00:17 [fuZbar.cpp do_qr_thread:194] E> start qr thread g_bQrThreadExitFlag:0
000 audio_aec_start_Thread printf aigain value = 12
001 audio_aec_start_Thread printf aigain value = 12
002 audio_aec_start_Thread printf aigain value = 1
coreNetSearchWifiList
pSWiFiList->nCount = 8,0
[ 17.630898] codec_set_device: set device: speaker...
[3.0|audio.c|StartBeepThread,1122]
[3.0|SemOper.cpp|SemInit,88] SemInit :0,10
[3.0|libcfAvshm.cpp|InitAvShm,160] 001 Shm Info:0,0,0
[3.0|libcfAvshm.cpp|InitAvShm,246] 002 Shm Info:1036800,1036768,0,0,0,0,0,0
[3.0|SemOper.cpp|SemInit,88] SemInit :65538,100
[3.0|libcfAvshm.cpp|InitAvShm,160] 001 Shm Info:0,1,0
[3.0|libcfAvshm.cpp|InitAvShm,246] 002 Shm Info:2048,2016,0,0,0,0,0,0
00:00:17 [libFnAvRecorder.cpp fAVR_StartAVRecorder:389] E> 001 fAVR_StartAVRecorder :0
00:00:17 [libFnAvRecorder.cpp fAVR_StartAVRecorder:400] E> 004 fAVR_StartAVRecorder
00:00:17 [wssApp.c wssAppStart:301] E> 004 CH1 Width:768,Height:368
00:00:17 [Server/libFnRtsp.cpp fRTP_StartRtspServer:69] E> Call fRTP_StartRtspServer :1
The xml stream file path = /etc/streamingserver.xml
00:00:17 [Server/libFnRtsp.cpp fRTP_StartRtspServer:156] E> 001 fRTP_StartRtspServer
select_startevents size = 1024
qtsserver initialize
[3.0|audio.c|AudioBeepThread,1074]
00:00:17 [ajyProtocol/avStore/sdManager.c SdManagerThread:325] E> SdManagerThread :-1
http proxt tunnel map
new setdefault rtsp port
New set default rtsp port
new attirbue data
new attirbue data
new attirbue data
AddThreads = 2
osthread os pthread_create fThreadID==1808020720
osthread os pthread_create fThreadID==1808000240
start idle task
osthread os pthread_create fThreadID==1807979760
osthread os pthread_create fThreadID==1807959280
[ 17.850868] codec_set_device: set device: MIC...
003 audio_aec_start_Thread printf aigain value = 12
004 audio_aec_start_Thread printf aigain value = 12
IMP_AI_EnableHpf
[ 17.981934] RTW: ra0 wakeup m0=0x00000002, ori reg_0x4d4=0x00000002
[ 17.998505] RTW: survey done event(17) band:0 for ra0
[ 18.017891] RTW: rtw_indicate_scan_done(ra0)
Enable NS
coreNetSoftApStart
[3.0|coreNet.c|NetCallSystem,58] 000 NetCallSystem wpa_cli -ira0 disconnect;/etc/net_sh/softap_stop.sh;/etc/net_sh/net_exit.sh;/etc/net_sh/softap_start.sh "WVCB42ZBCHT4DZNJ" errno = 10,nLoop = 0
00:00:18 [ajyProtocol/avStore/sdManager.c SdManagerThread:361] E> insmod mmc_block.ko file
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = sensor_ov2735b_t21 9640 0 - Live 0xc07b0000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = NetLED_drv 1552 0 - Live 0xc079e000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = reset_drv 2244 0 - Live 0xc0797000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = peripher_drv 2910 0 - Live 0xc0790000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardI[ 18.808785] mmcblk0: mmc0:0001 SD 14.8 GiB
nsmoded:303] E> chReadStr = rtl8188 1702738 0 - Live 0xc04d6000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = audio 73090 2 - Live 0xc0279000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = tx_isp_t21 679010 1 sensor_ov2735b_t21, Live 0xc01a3000 (O)
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = jzmmc_v12 16828 0 - Live 0xc00dd000
[ 18.849874] mmcblk0: p1
00:00:18 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = mmc_core 99776 1 jzmmc_v12, Live 0xc009b000
avcodec_receive_packet failed:-11
00:00:18 [avCallbackFun.c AudioStreamCallbackFun:349] E> Aduio Data Rencode Failed
new fattributes
new fattributes
new setdefault rtsp port
New set default rtsp port
new attirbue data
new attirbue data
new attirbue data
init modules
QtssLive Initialize = 4
SetAccessFileName 0x9cf0b0,size = 8
open file object
open file object
Call access file initialize
start task new
Call Get EventContext
Call Get EventContext
00:00:18 [Server/libFnRtsp.cpp fRTP_StartRtspServer:162] E> 002 fRTP_StartRtspServer
00:00:18 [Server/libFnRtsp.cpp fRTP_StartRtspServer:164] E> 003 fRTP_StartRtspServer
lighttpd/1.4.52 - a light and fast webserver
Event Handlers:
+ select (generic)
+ poll (Unix)
+ epoll (Linux)
- /dev/poll (Solaris)
- eventports (Solaris)
- kqueue (FreeBSD)
- libev (generic)
Network handler:
+ linux-sendfile
- freebsd-sendfile
- darwin-sendfile
- solaris-sendfilev
+ writev
+ write
+ mmap support
Features:
- IPv6 support
- zlib support
- bzip2 support
+ crypt support
- SSL support
- PCRE support
- MySQL support
- PgSQL support
- DBI support
- Kerberos support
- LDAP support
- PAM support
- memcached support
- FAM support
- LUA support
- xml support
- SQLite support
- GDBM support
00:00:18 [HYDiscoverSvr.c fDSR_StartDiscoverySvr:283] E> Start Discovery server
00:00:18 [AJYDiscoverSvr.c fASR_StartDiscoverySvr:243] E> Start Discovery server
00:00:18 [fnPriProtocol.c priHySdkInit:1922] E> init hysdk----
00:00:18 [fnPriProtocol.c priHySdkInit:1926] E> hySdk V00000003
00:00:18 [fnPriProtocol.c priHySdkInit:1939] E> init hysdk succees! ----
hySysCfgGet()->cHwFuncParams[E_HW_PTZ_ZOOM_INDEX] = 0
000 WebServerThread
001 WebServerThread
001 server_main
00:00:19 [AJYDiscoverSvr.c CreateBroadcastSocket:73] E> setsockopt SO_BINDTODEVICE success
00:00:19 [fnPriProtocol.c initTcpSocket:73] E> listen port 65000
00:00:19 [fnPriProtocol.c initTcpSocket:106] E> OK
002 server_main
003 server_main
003 server_main
004 server_main
005 server_main
006 server_main
009 server_main
010 server_main
011 server_main
012 server_main
013 server_main
014 server_main
014.1 server_main
014.2 server_main
014.3 server_main
014.4 server_main
014.5 server_main
014.6 server_main
014.7 server_main
014.8 server_main
014.9 server_main
014.9 server_main
015 servermain
016 servermain
017 servermain
018 servermain
OK
[softap_stop.sh]----------------
ash: you need to specify whom to kill
ash: you need to specify whom to kill
ash: you need to specify whom to kill
[ 19.467806] RTW: rtw_ndev_notifier_call(ra0) state:9
[ 19.477619] RTW: netdev_close(ra0) , bup=1
[ 19.482036] RTW: (2)871x_drv - drv_close, bup=1, hw_init_completed=_TRUE
[ 19.490126] RTW: rtw_hal_set_bssid ra0- hw port -0 BSSID: 00:00:00:00:00:00
[ 19.497696] RTW: rtw_cfg80211_indicate_disconnect(ra0)
[ 19.508776] RTW: rtw_reset_securitypriv(ra0) - End to Disconnect
[ 19.515310] RTW: rtw_free_assoc_resources-ra0 tgt_network MacAddress=00:00:00:00:00:00 ssid=
[ 19.524294] RTW: free disconnecting network of scanned_queue failed due to pwlan== NULL
[ 19.524294]
[ 19.534319] RTW: -871x_drv - drv_close, bup=1
[ 19.542606] RTW: rtw_ndev_notifier_call(ra0) state:2
00:00:19 [ajyProtocol/avStore/sdManager.c MMCCardInsmoded:303] E> chReadStr = mmc_block 26528 0 - Live 0xc07c3000
00:00:19 [ajyProtocol/avStore/sdManager.c SdManagerThread:405] E> Get HotPlug message :0,87,2048
00:00:19 [ajyProtocol/avStore/sdManager.c SdManagerThread:405] E> Get HotPlug message :87,102,1961
00:00:19 [ajyProtocol/avStore/sdManager.c SdManagerThread:405] E> Get HotPlug message :189,244,1859
00:00:19 [ajyProtocol/avStore/sdManager.c SdManagerThread:405] E> Get HotPlug message :433,270,1615
00:00:19 [ajyProtocol/avStore/sdManager.c SdManagerThread:405] E> Get HotPlug message :703,100,1345
00:00:20 [AJYDiscoverSvr.c AJDiscoverSvrThread:163] E> Enter into AjDiscover svr Thread
***Start ProcessHotplugMessage***
add@/module/mmc_block
ACTION=add
DEVPATH=/module/mmc_block
SUBSYSTEM=module
SEQNUM=513
add@/devices/virtual/bdi/179:0
ACTION=add
DEVPATH=/devices/virtual/bdi/179:0
SUBSYSTEM=bdi
SEQNUM=514
add@/devices/platform/jzmmc_v1.2.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0
ACTION=add
DEVPATH=/devices/platform/jzmmc_v1.2.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0
SUBSYSTEM=block
MAJOR=179
MINOR=0
DEVNAME=mmcblk0
DEVTYPE=disk
NPARTS=1
SEQNUM=515
add@/devices/platform/jzmmc_v1.2.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
ACTION=add
DEVPATH=/devices/platform/jzmmc_v1.2.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p1
SUBSYSTEM=block
MAJOR=179
MINOR=1
DEVNAME=mmcblk0p1
DEVTYPE=partition
PARTN=1
SEQNUM=516
add@/bus/mmc/drivers/mmcblk
ACTION=add
DEVPATH=/bus/mmc/drivers/mmcblk
SUBSYSTEM=drivers
SEQNUM=517
***End ProcessHotplugMessage***
00:00:20 [ajyProtocol/avStore/sdManager.c ProcessAddDeviceMessage:127] E> ProcessAddDeviceMessage disk
00:00:20 [ajyProtocol/a[ 20.326871] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
vStore/sdManager.c ProcessAddDeviceMessage:133] E> ProcessAddDeviceMessage partition
00:00:20 [ajyProtocol/avStore/sdManager.c ProcessAddDeviceMessage:149] E> mount tf Card:/dev/mmcblk0p1
[3.0|coreHardware.c|ircutPolling,263] eRetDayNight = 1
[3.0|halGpioHandle.c|hGPIO_ControlIrcut,251] Call IRCut Open
Input nMode =1 [0:Close 2:Auto Other:Error]
[ 21.048650] RTW: rtw_ndev_notifier_call(ra0) state:13
[ 21.060964] RTW: _netdev_open(ra0) , bup=1
[ 21.075340] RTW: -871x_drv - drv_open, bup=1
[ 21.079822] RTW: cfg80211_rtw_set_power_mgmt(ra0) enabled:1, timeout:-1
[ 21.096957] RTW: rtw_ndev_notifier_call(ra0) state:1
open file error :2!
00:00:21 [ajyProtocol/avStore/sdManager.c SendTfcardConfigRequest:700] E> SendTfcardConfigRequest not send,Url Len:0,wssConnect:0
ash: you need to specify whom to kill
ash: you need to specify whom to kill
ash: you need to specify whom to kill
[ 21.988308] RTW: rtw_ndev_notifier_call(ra0) state:9
[ 22.009432] RTW: netdev_close(ra0) , bup=1
[ 22.018364] RTW: (2)871x_drv - drv_close, bup=1, hw_init_completed=_TRUE
[ 22.034449] RTW: rtw_hal_set_bssid ra0- hw port -0 BSSID: 00:00:00:00:00:00
[ 22.043028] RTW: rtw_cfg80211_indicate_disconnect(ra0)
[ 22.048392] RTW: rtw_reset_securitypriv(ra0) - End to Disconnect
[ 22.066268] RTW: rtw_free_assoc_resources-ra0 tgt_network MacAddress=00:00:00:00:00:00 ssid=
[ 22.086838] RTW: free disconnecting network of scanned_queue failed due to pwlan== NULL
[ 22.086838]
[ 22.108118] RTW: -871x_drv - drv_close, bup=1
[ 22.116960] RTW: rtw_ndev_notifier_call(ra0) state:2
[softap_start.sh]----------------
ash: you need to specify whom to kill
ash: you need to specify whom to kill
ash: you need to specify whom to kill
ash: you need to specify whom to kill
ash: you need to specify whom to kill
[ 24.836114] RTW: rtw_ndev_notifier_call(ra0) state:13
[ 24.841510] RTW: _netdev_open(ra0) , bup=1
[ 24.845928] RTW: -871x_drv - drv_open, bup=1
[ 24.850415] RTW: cfg80211_rtw_set_power_mgmt(ra0) enabled:1, timeout:-1
[ 24.857598] RTW: rtw_ndev_notifier_call(ra0) state:1
Configuration file: /var/hostapd.conf
[ 25.709613] RTW: cfg80211_rtw_change_iface(ra0) type=3, hw_port:0
[ 25.723611] RTW: cfg80211_rtw_change_iface(ra0) call netdev_open
[ 25.742342] RTW: _netdev_open(ra0) , bup=1
[ 25.750939] RTW: -871x_drv - drv_open, bup=1
[ 25.755369] RTW: cfg80211_rtw_change_iface(ra0) old_iftype=2, new_iftype=3
[ 25.780901] RTW: rtw_release_macid(ra0) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[ 25.788536] RTW: rtw_alloc_macid(ra0) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:0
[ 25.800917] RTW: rtw_hal_set_macaddr_port ra0- hw port(0) mac_addr =68:b9:d3:13:13:5b
[ 25.822091] RTW: #### hw_var_set_opmode() -4639 hw_port(0) mode = 3 ####
[ 25.833816] RTW: cfg80211_rtw_change_iface(ra0) ret:0
rfkill: Cannot open RFKILL control device
nl80211: Could not re-add multicast membership for vendor events[ 25.845469] RTW: +cfg80211_rtw_del_station(ra0) mac= (null)
: -2 (No such file or directory)
[ 25.857961] RTW: flush all sta, and cam_entry
[ 25.864149] RTW: rtw_sta_flush(ra0)
[ 25.867850] RTW: issue_deauth to ff:ff:ff:ff:ff:ff
[ 25.890427] RTW: +cfg80211_rtw_del_station(ra0) mac=ff:ff:ff:ff:ff:ff
[ 25.901964] RTW: free sta macaddr =ff:ff:ff:ff:ff:ff
[ 25.921110] RTW: cfg80211_rtw_del_key(ra0) key_index=0, addr= (null)
[ 25.942825] RTW: cfg80211_rtw_del_key(ra0) key_index=1, addr= (null)
[ 25.959747] RTW: cfg80211_rtw_del_key(ra0) key_index=2, addr= (null)
[ 25.980227] RTW: cfg80211_rtw_del_key(ra0) key_index=3, addr= (null)
Using interface ra0 with hwaddr 68:b9:d3[ 25.998012] RTW: cfg80211_rtw_start_ap(ra0) hidden_ssid:0, auth_type:5
:13:13:5b and ssid "WVCB42ZBCHT4DZNJ"
[ 26.022110] RTW: rtw_add_beacon beacon_head_len=67, beacon_tail_len=9
[ 26.033423] RTW: rtw_check_beacon_data, len=52
[ 26.039152] RTW: rtw_hal_set_bssid ra0- hw port -0 BSSID: 68:b9:d3:13:13:5b
[ 26.047302] RTW: rtw_ap_chbw_decision(ra0) ld_sta_num:0, lg_sta_num0, ap_num:0, mesh_num:0
[ 26.056075] RTW: rtw_ap_chbw_decision(ra0) req: 0,-1,-1
[ 26.062824] RTW: rtw_ap_chbw_decision(ra0) dec: 3,0,0
[ 26.068703] RTW: HW_VAR_BASIC_RATE: 0x15f->0x15f->0x15f
[ 26.078867] RTW: rtw_get_sta_tx_nss: 1 SS
[ 26.083166] RTW: rtw_get_sta_rx_nss: 1 SS
[ 26.087314] RTW: STA - MAC_ID:0, Tx - 1 SS, Rx - 1 SS
[ 26.092660] RTW: STA - MAC_ID:0, SM_PS 3
[ 26.101048] RTW: ra0 BMC Init Tx rate - CCK_11M
[ 26.124596] RTW: rtw_cfg80211_indicate_connect(ra0)
[ 26.142419] RTW: assoc success
[ 26.149824] RTW: rtw_ndev_notifier_call(ra0) state:4
[ 26.155412] RTW: cfg80211_rtw_change_bss(ra0)
[ 26.160074] RTW: rtw_ndev_notifier_call(ra0) state:4
[ 26.176138] RTW: cfg80211_rtw_set_mac_acl(ra0) acl_policy:0, entry_num:0
[ 26.189836] RTW: rtw_set_macaddr_acl(ra0) p=1, mode=1
ra0: interface state UNINITIALIZED->ENABLED
ra0: AP-ENABLED
[3.0|coreNet.c|NetCallSystem,88] 001 NetCallSystem wpa_cli -ira0 disconnect;/etc/net_sh/softap_stop.sh;/etc/net_sh/net_exit.sh;/etc/net_sh/softap_start.sh "WVCB42ZBCHT4DZNJ" errno = 2,nLoop = 8
softap ssid= WVCB42ZBCHT4DZNJ
udhcpd (v1.22.1) started
00:00:27 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:28 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:29 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:31 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:35 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:37 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:38 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
00:00:39 [softapCfgNet.c startSoftApConifgThread:357] E> select timeout :2
3 Inside OpenIPC shell
3.1 flashing new config
mount
ls /dev
#should output mmcblk0p1
3.2 Prepping sdcard
- Go to https://openipc.org/cameras/vendors/ingenic/socs/t21
- Type and size of flash memory chip: NOR 16M <– we found this from the UART output
- Firmware: Lite
- Network Interface: Camera only has Wireless network
- SD Card Slot: Camera has an SD card slot
- Generate Installation Guide and download *.bin file
- Format SD card to FAT16 and create 1 partition with LESS than 2GB size.
- mount SDcard then drag-n-drop your *.bin file into your SDcard
3.3 U-boot flashing
- White-UART => TX on Cam board
- Black-UART => GND on Cam board
- Green-UART => RX on Cam board
sudo chmod 777 /dev/ttyUSB0
screen /dev/ttyUSB0 115200
# Ctrl+A then \ to exit
- Send Ctrl+C to Cam to start U-boot
- Put water bottle on keyboard Ctrl, hands both connecting UART to CAM, and a finger prepared to press C
the website generated instructions you follow looks a bit like
# Enter commands line by line! Do not copy and paste multiple lines at once!
setenv ipaddr 192.168.1.10; setenv serverip 192.168.1.254
mw.b 0x80600000 0xff 0x1000000
fatload mmc 0:1 0x80600000 openipc-t21-lite-16mb.bin
sf probe 0; sf lock 0;
sf erase 0x0 0x1000000; sf write 0x80600000 0x0 0x1000000
reset
After flashing, your cam will enter a bootloop, you have to enter u-boot again and send:
You do this since your cam uses 16MB flash which you checked in the intro.
run setnor16m
4 Installing network driver on openIPC via sysupgrade
- Go to https://github.com/OpenIPC/wiki/blob/master/en/adding-wifi-driver.md
- Follow the instructions to clone the firmware, then to build it
- If you get a toolchain error when building it could be a glibc version error. Your linux may be too old so try to build it on a different linux.
- The output should be a uImage and rootfs file.
- Our original Cam showed
RTL8188FU
so that is the driver we need
BR2_PACKAGE_RTL8188FU_OPENIPC
4.1 Connecting cam to your network and sysupgrade
login to openIPC shell
#OPTION 1:
soc=$(fw_printenv -n soc)
sysupgrade --kernel=/mnt/mmcblk0p1/uImage.${soc} --rootfs=/mnt/mmcblk0p1/rootfs.squashfs.${soc} --force_ver -z
#OPTION 2: (just run 1 command and write directly the image and rootfs name)
sysupgrade --kernel=/mnt/mmcblk0p1/uImage.t21 --rootfs=/mnt/mmcblk0p1/rootfs.squashfs.t21 --force_ver -z
4.2 Connecting cam to your network
fw_setenv wlanssid YourNetworkSSID
fw_setenv wlanpass YourNetworkPassword
5 Auto config wifi by dragging file to root
5.1 First demo
- This just demos if it can modify a file because if it fails and corrupts your wifi config, you would lose access to your wireless camera
cd /usr/bin
touch configure_wifi.sh
chmod +x /usr/bin/configure_wifi.sh
#!/bin/sh
SD_MOUNT_POINT="/mnt/mmcblk0p1"
WIFI_CONFIG_FILE="$SD_MOUNT_POINT/wifi.conf"
WPA_SUPPLICANT_CONF="/tmp/wpa_supplicantB.conf"
if [ -f "$WIFI_CONFIG_FILE" ]; then
. "$WIFI_CONFIG_FILE"
echo "thePASSWORD" > "$WPA_SUPPLICANT_CONF"
else
# Fallback to environment variables if the file does not exist
HELLO="hi"
fi
cd /mnt/mmcblk0p1
touch wifi.conf
SSID="demo"
PASSWORD="demo"
modify /etc/network/interfaces.d/wlan0
vi /etc/network/interfaces.d/wlan0
iface wlan0 inet dhcp
pre-up /usr/bin/configure_wifi.sh
pre-up wpa_passphrase "$(fw_printenv -n wlanssid)" "$(fw_printenv -n wlanpass)" > /tmp/wpa_supplica
pre-up sed -i 's/#psk.*/scan_ssid=1/g' /tmp/wpa_supplicant.conf
pre-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
post-down killall -q wpa_supplicant
iface wlan0 inet dhcp
pre-up wpa_passphrase "$(fw_printenv -n wlanssid)" "$(fw_printenv -n wlanpass)" > /tmp/wpa_supplicant.conf
pre-up sed -i 's/#psk.*/scan_ssid=1/g' /tmp/wpa_supplicant.conf
pre-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
post-down killall -q wpa_supplicant
5.2 Real deal
cd /usr/bin
touch configure_wifi.sh
chmod +x /usr/bin/configure_wifi.sh
#!/bin/sh
SD_MOUNT_POINT="/mnt/mmcblk0p1"
WIFI_CONFIG_FILE="$SD_MOUNT_POINT/wifi.conf"
WPA_SUPPLICANT_CONF="/tmp/wpa_supplicant.conf"
if [ -f "$WIFI_CONFIG_FILE" ]; then
. "$WIFI_CONFIG_FILE"
wpa_passphrase "$SSID" "$PASSWORD" > "$WPA_SUPPLICANT_CONF"
sed -i 's/#psk.*/scan_ssid=1/g' "$WPA_SUPPLICANT_CONF"
else
# Fallback to environment variables if the file does not exist
SSID=$(fw_printenv -n wlanssid)
PASSWORD=$(fw_printenv -n wlanpass)
wpa_passphrase "$SSID" "$PASSWORD" > "$WPA_SUPPLICANT_CONF"
sed -i 's/#psk.*/scan_ssid=1/g' "$WPA_SUPPLICANT_CONF"
fi
cd /mnt/mmcblk0p1
touch wifi.conf
SSID="demo"
PASSWORD="demo"
modify /etc/network/interfaces.d/wlan0
vi /etc/network/interfaces.d/wlan0
iface wlan0 inet dhcp
pre-up /usr/bin/configure_wifi.sh
pre-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
post-down killall -q wpa_supplicant
iface wlan0 inet dhcp
pre-up wpa_passphrase "$(fw_printenv -n wlanssid)" "$(fw_printenv -n wlanpass)" > /tmp/wpa_supplicant.conf
pre-up sed -i 's/#psk.*/scan_ssid=1/g' /tmp/wpa_supplicant.conf
pre-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
post-down killall -q wpa_supplicant