Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Last active October 6, 2022 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakueikozo/5e06d0c8fff81378939a89719cac2bfc to your computer and use it in GitHub Desktop.
Save bakueikozo/5e06d0c8fff81378939a89719cac2bfc to your computer and use it in GitHub Desktop.
System startup
Uncompress Ok!
U-Boot 2016.11 (Nov 19 2021 - 16:58:50 +0800)gk7205v200
Relocation Offset is: 0372b000
Relocating to 43f2b000, new gd at 43eeaef0, sp at 43eeaed0
PLAT_ZHAF
SPI Nor: Check Flash Memory Controller v100 ... Found
SPI Nor ID Table Version 1.0
SPI Nor(cs 0) ID: 0x20 0x40 0x18
Block:64KB Chip:16MB Name:"XM25QH128CHIQ"
SPI Nor total size: 16MB
NAND: 0 MiB
MMC: Card did not respond to voltage select!
No SD device found !
sdhci: 0
In: serial
Out: serial
Err: serial
Net: eth0
Warning: eth0 (eth0) using random MAC address - e6:4d:9d:86:37:14
Hit any key to stop autoboot: 0
device 0 offset 0x50000, size 0x1b0000
SF: 1769472 bytes @ 0x50000 Read: OK
## Booting kernel from Legacy Image at 41000000 ...
Image Name: Linux-4.9.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1759592 Bytes = 1.7 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.9.37 (xieyan@serverubuntu) (gcc version 6.3.0 (GCC) ) #3 Sat Aug 21 06:15:34 UTC 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Goke GK7205V200 DEMO Board
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9398
Kernel command line: mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/linuxrc mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32412K/37888K available (3642K kernel code, 122K rwdata, 840K rodata, 152K init, 209K bss, 5476K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc2800000 - 0xff800000 ( 976 MB)
lowmem : 0xc0000000 - 0xc2500000 ( 37 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0396d28 (3644 kB)
.init : 0xc046a000 - 0xc0490000 ( 152 kB)
.data : 0xc0490000 - 0xc04ae920 ( 123 kB)
.bss : 0xc04b0000 - 0xc04e4768 ( 210 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=50000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x40008200 - 0x40008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 20, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 21, base_baud = 0) is a PL011 rev2
ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000
ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286d000
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=13 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
loop: module loaded
bsp-sfc bsp_spi_nor.0: SPI Nor ID Table Version 1.2
bsp-sfc bsp_spi_nor.0: The ID: 0x20 isn't in the BP table, Current device can't not protect
bsp-sfc bsp_spi_nor.0: xm25qh128chiq (Chipsize 16 Mbytes, Blocksize 64KiB)
5 cmdlinepart partitions found on MTD device sfc
5 cmdlinepart partitions found on MTD device sfc
Creating 5 MTD partitions on "sfc":
0x000000000000-0x000000050000 : "boot"
0x000000050000-0x000000200000 : "kernel"
0x000000200000-0x000000440000 : "rootfs"
0x000000440000-0x0000004a0000 : "home"
0x0000004a0000-0x000001000000 : "bak"
FEPHY:addr=1, la_am=0x9, ldo_am=0x5, r_tuning=0x25
libphy: femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
femac 10040000.ethernet: using random MAC address 4e:ab:a5:0e:f8:c6
Generic PHY 10041100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10041100.mdio:01, irq=-1)
phy_id=0x20669906, phy_mode=mii
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver rndis_host
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
xhci-hcd xhci-hcd.0.auto: irq 115, io mem 0x10030000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
goke_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
goke_rtc 120e0000.rtc: RTC driver for goke enabled
i2c /dev entries driver
goke-i2c 12060000.i2c: goke-i2c0@100000hz registered
goke-i2c 12061000.i2c: goke-i2c1@100000hz registered
goke-i2c 12062000.i2c: goke-i2c2@100000hz registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode
mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
goke_rtc 120e0000.rtc: hctosys: unable to read the hardware clock
squashfs: SQUASHFS error: Xattrs in filesystem, these will be ignored
squashfs: SQUASHFS error: unable to read xattr id index table
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
devtmpfs: mounted
Freeing unused kernel memory: 152K (c046a000 - c0490000)
This architecture does not have kernel memory protection.
random: linuxrc: uninitialized urandom read (4 bytes read)
[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/ttyAMA1: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
/etc/init.d/S01udev: line 9: udevd: not found
/etc/init.d/S01udev: line 10: udevadm: not found
[RCS]: /etc/init.d/S80network
Press 'q' in 1 seconds to exit: q
root login: root
Password:
Jan 1 08:00:06 login[529]: root login on 'console'
Welcome to Linux.
-sh: nfsroot: not found
~ # cat /proc/version
Linux version 4.9.37 (xieyan@serverubuntu) (gcc version 6.3.0 (GCC) ) #3 Sat Aug 21 06:15:34 UTC 2021
~ #
~ # cat /etc/init.d/S80network
#!/bin/sh
ipaddr=
bootp=
gateway=
netmask=
hostname=
netdev=
autoconf=
for ipinfo in `cat /proc/cmdline`
do
case "$ipinfo" in
ip=*)
for var in ipaddr bootp gateway netmask hostname netdev autoconf
do
eval read $var
done << EOF
`echo "$ipinfo" | sed "s/:/\n/g" | sed "s/^[ ]*$/-/g"`
EOF
ipaddr=`echo "$ipaddr" | cut -d = -f 2`
[ x$ipaddr == x ] && ipaddr=x
;;
esac
done
[ -z "$ipaddr" ] && exit 0
echo " IP: $ipaddr"
echo " BOOTP: $bootp"
echo " GATEWAY: $gateway"
echo " NETMASK: $netmask"
echo "HOSTNAME: $hostname"
echo " NETDEV: $netdev"
echo "AUTOCONF: $autoconf"
if [ x$ipaddr == x- ] ; then
# use DHCP
:
else
cmd="ifconfig $netdev $ipaddr"
[ x$netmask != x- ] && cmd="$cmd netmask $netmask"
eval $cmd
[ x$gateway != x- ] && route add default gw $gateway
fi
ifconfig lo 127.0.0.1
~ # cat /etc/init.d/S01udev
#!/bin/sh
mkdir /dev/pts
mount -t devpts devpts /dev/pts
mkdir -p /dev/snd
mkdir -p /dev/.udev
udevd --daemon
udevadm trigger
~ # cat /etc/init.d/S00devs
#!/bin/sh
mknod /dev/console c 5 1
mknod /dev/ttyAMA0 c 204 64
mknod /dev/ttyAMA1 c 204 65
mknod /dev/ttyS000 c 204 64
mknod /dev/null c 1 3
~ # cat /etc/init.d/rcS
#! /bin/sh
/bin/mount -a
for initscript in /etc/init.d/S[0-9][0-9]*
do
if [ -x $initscript ] ;
then
echo "[RCS]: $initscript"
$initscript
fi
done
mount -t jffs2 /dev/mtdblock3 /home
mount -t jffs2 /dev/mtdblock4 /bak -o ro
mount -t tmpfs tmpfs /tmp
mount -t tmpfs tmpfs /mnt
mount -t tmpfs tmpfs /var
#mount -t tmpfs tmpfs /var
cp /bak/start.sh /tmp
/tmp/start.sh
~ # cat /tmp/start.sh
#!/bin/sh
getHwInfo()
{
grep $1 /bak/hardinfo.bin | awk -F '>' '{print $2}' | awk -F '<' '{print $1}'
}
getHwCfg()
{
grep $1 /bak/hwcfg.ini | awk '{printf $3}'
}
debugCmd()
{
if [ -f $1 ]; then
md5file --verify $1
if [ $? -eq 0 ]; then
echo "Exec $1..."
$1;
else
echo "Invalid customer script: $1"
fi
fi
}
mountBakRW()
{
echo "mounting /bak read & write ..."
mount -o rw,remount /bak
}
mountBakRO()
{
echo "mounting /bak readonly ..."
mount -o ro,remount /bak
}
rmBakFile()
{
if [ -f $1 ]; then
echo "mounting /bak read & write ..."
mount -o rw,remount /bak
echo "rm $1"
rm -f $1
echo "mounting /bak readonly ..."
mount -o ro,remount /bak
fi
}
mkdir -p /tmp/lib
mkdir -p /tmp/drv
mkdir -p /var/run
ulimit -s 256
ulimit -c 0
#check if stop app auto run
read -t 1 -p "Press 'q' in 1 seconds to exit: " q
if [ $? -eq 0 -a "$q" = "q" ]; then exit; fi
kill -9 `ps | grep "telnet" | grep -v grep | awk '{printf $1}'`
#drivers
insmod /bak/drv/gio.ko.lzma
mdev -s
# audio lib
cp /bak/lib/*.lzma /tmp/lib/
lzma -d /tmp/lib/*.lzma
#hzk
cp /bak/hzk16.bin.lzma /tmp
lzma -d /tmp/hzk16.bin.lzma
export PATH="/bak/ap:/:$PATH"
export PATH="/bak/bin:/:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/bak/lib"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/lib"
#run custom init for board OEM
/bak/custom_pre_init.sh
/bak/custom_init.sh
#init sensor
/bak/sensor.sh
insmod /lib/modules/gk7205v200random: fast init done
_wdt.ko.lzma
insmod /lib/modules/gk7205v200_adc.ko.lzma
insmod /bak/drv/exfat.ko.lzma
BOARD_ID=$(getHwInfo BoardType)
#upgrade flash firmware
if [ -f /home/firmware.bin ]; then
mountBakRW
/bak/unpack /home/firmware.bin /tmp
sh -x /tmp/upgrade.sh
rm -f /home/firmware.bin
mountBakRO
fi
# check if file mv from /home to /bak
if [ -f /home/eye.conf -o -f /home/hardinfo.bin -o -f /home/hwcfg.ini -o -f /home/ptz.cfg -o -f /home/image.ini -o -f /home/VOICE.tgz ]; then
if [ -d /bak ]; then
echo "mounting /bak read & write ..."
mountBakRW
mv -f /home/eye.conf /bak/eye.conf
mv -f /home/hardinfo.bin /bak/hardinfo.bin
mv -f /home/hwcfg.ini /bak/hwcfg.ini
mv -f /home/ptz.cfg /bak/ptz.cfg
mv -f /home/image.ini /bak/image.ini
mv -f /home/VOICE.tgz /bak/VOICE.tgz
echo "mounting /bak readonly ..."
mountBakRO
fi
fi
if [ -f /home/SD_CHECK -o -f /home/SD_NOMOUNT ]; then
echo "SD Need Check"
else
#mount SD card
if [ -b /dev/mmcblk0p1 ]; then
mount -t exfat /dev/mmcblk0p1 /mnt || mount -t vfat /dev/mmcblk0p1 /mnt
elif [ -b /dev/mmcblk0 ]; then
mount -t exfat /dev/mmcblk0 /mnt || mount -t vfat /dev/mmcblk0 /mnt
fi
#check record hzq
if [ -x /home/bin/checkRecordfile ]; then
/home/bin/checkRecordfile
elif [ -x /bak/bin/checkRecordfile ]; then
/bak/bin/checkRecordfile
fi
#Upgrade firmware from TF card
if [ -f /mnt/firmware.bin ]; then
mountBakRW
/bak/unpack $BOARD_ID /mnt/firmware.bin /tmp
sh -x /tmp/upgrade.sh
#check upgrade from OTA or factory test
if [ -f /mnt/OTA ]; then
rm /mnt/firmware.bin -f
rm /mnt/OTA -f
else
touch /tmp/upgrading
fi
#mount app partition readonly after upgrade
mountBakRO
fi
#Run debug_cmd.sh
if [ -f "/mnt/debug_cmd.sh" ]; then
mountBakRW
echo "find debug cmd file, wait for cmd running..."
/mnt/debug_cmd.sh
mountBakRO
fi
if [ -f /mnt/FSRW -o -f /mnt/rmid ]; then
#Run facoty_tool.sh for burn id and mv hwcfg, hardinfo, ptz.cfg image.ini
/bak/factory_tool.sh
mountBakRW
fi
fi
#run tees for debug info
/bak/tees -s -v -b 20 -e ps -e 'ifconfig; route -n' -e 'wpa_cli status' -e 'mount' -e 'uptime' -e 'df' -e 'netstat -napt' -e free -a /tmp/closelicamera.log -o /mnt/mmc01/0/ipc.log &
if [ ! -f /bak/eye.conf ]; then
EXTRA_FLAGS='test_max_pos=1'
else
EXTRA_FLAGS='test_max_pos=0'
fi
#init ptz
ptz_mcu=$(getHwCfg ptz_mcu)
has_ptz=$(getHwCfg support_ptz)
if [ "$has_ptz" = "1" ]; then
NO_SLFCK=0
if [ -f /bak/eye.conf ]; then
if [ -f /home/silent_reboot ]; then
rm -f /home/silent_reboot
NO_SLFCK=1;
elif [ $(getHwCfg ptz_no_selfck) -eq 1 ]; then
if [ -f /home/devParam.dat -o $(getHwCfg support_ap_mode) -eq 2 ]; then
NO_SLFCK=1;
fi
fi
fi
if [ "$ptz_mcu" = "1" ]; then
insmod /bak/drv/gkptz-dsa.ko.lzma cfg_file=/bak/ptz.cfg psp_file=/home/psp.dat no_selfck=$NO_SLFCK $EXTRA_FLAGS
elif [ "$ptz_mcu" = "2" ]; then
insmod /bak/drv/gkptz-2823.ko.lzma cfg_file=/bak/ptz.cfg psp_file=/home/psp.dat no_selfck=$NO_SLFCK $EXTRA_FLAGS
else
insmod /bak/drv/gkptz.ko.lzma cfg_file=/bak/ptz.cfg psp_file=/home/psp.dat no_selfck=$NO_SLFCK $EXTRA_FLAGS
fi
#check hwcfg.ini, start ptz auto test if configured
/bak/auto_ptz_test.sh
fi
tar -zxf /bak/VOICE.tgz -C /tmp
if [ -f /bak/ivp_re_allday_f1y2f2m1_640x360.oms.lzma ]; then
unlzma -c /bak/ivp_re_allday_f1y2f2m1_640x360.oms.lzma > /tmp/ivp_re_allday_f1y2f2m1_640x360.oms
fi
echo "CST-8" > /etc/TZ
#wifi or 4G ko insmord
support_4g=$(getHwCfg support_4g)
wifi_type=$(getHwCfg wifi_type)
if [ $support_4g -gt 0 ]; then
#load 4g drv
echo "4g module"
insmod /bak/drv/4G/usbserial.ko.lzma
insmod /bak/drv/4G/usb_wwan.ko.lzma
insmod /bak/drv/4G/option.ko.lzma
else
if [ "$wifi_type" = "7601" ]; then
if [ ! -f /home/etc/Wireless/RT2870STA/MT7601USTA.dat ]; then
mkdir /home/etc/Wireless
mkdir /home/etc/Wireless/RT2870STA
cp /bin/MT7601USTA.dat /home/etc/Wireless/RT2870STA
fi
insmod /bak/drv/mtprealloc.ko.lzma
insmod /bak/drv/mt7601Usta.ko.lzma
else
mountBakRW
idProduct=`cat /sys/bus/usb/devices/1-1/idProduct`
idVendor=`cat /sys/bus/usb/devices/1-1/idVendor`
WIFIDRVS="rtl8188ftv 9083h 8821cu ssv6x5x rdawfmac"
DRVPATH=/bak/drv
if [ "$idVendor" = "2310" -a "$idProduct" = "9086" ]; then
WIFIDRV=9083h
#rmBakFile /bak/drv/8188fu.ko.lzma
elif [ "$idVendor" = "0bda" -a "$idProduct" = "f179" ]; then
WIFIDRV=rtl8188ftv
insmod /bak/drv/rtl8188ftv.ko.lzma
#rmBakFile /bak/drv/9083h.ko.lzma
elif [ "$idVendor" = "0bda" -a "$idProduct" = "c811" ]; then
WIFIDRV=8821cu
elif [ "$idVendor" = "8065" -a "$idProduct" = "6000" ]; then #nan fang
WIFIDRV=ssv6x5x
touch /tmp/ssv6x5x
insmod /bak/drv/ssv6x5x.ko.lzma stacfgpath=/bak/drv/ssv6x5x-wifi.cfg
elif [ "$idVendor" = "1e04" -a "$idProduct" = "8888" ]; then #ziguang
WIFIDRV=rdawfmac
insmod /bak/drv/rdawfmac.ko.lzma
touch /tmp/rdawfmac
fi
if [ -n "$WIFIDRV" ]; then
for w in $WIFIDRVS; do
if [ $w != $WIFIDRV ]; then
if [ $W == "rdawfmac" ]; then
rm -f /bak/drv/rda*
else
rm -f /bak/drv/$w.ko*
fi
fi
done
fi
mountBakRO
fi
fi
mdev -s
sleep 1
ifconfig lo 127.0.0.1
ifconfig ra0 up
ifconfig eth0 up
ifconfig wlan0 up
rsyscall.gk7205v200
/bak/auto_test.sh &
echo 1450 > /sys/class/net/wlan0/mtu
echo 1450 > /sys/class/net/ra0/mtu
echo 1450 > /sys/class/net/eth0/mtu
# no id or filesysreadwrite in sd card, remount rw for factory
if [ ! -f /bak/eye.conf -o -f /mnt/FSRW ]; then
mountBakRW
fi
umount /mnt
#io
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 20 > /proc/sys/vm/dirty_ratio
echo 500 > /proc/sys/vm/dirty_writeback_centisecs
echo 1000 > /proc/sys/vm/dirty_expire_centisecs
#export EC_SERVER_=test
mount /bak/ipc.squashfs /p2pcam -t squashfs -o loop
cp /bak/ca-bundle-add-closeli.crt /tmp/ca-bundle-add-closeli.crt
#Clear script cache
echo 3 > /proc/sys/vm/drop_caches
cd /tmp
(
/p2pcam/ipc
echo -e '[data]\ntime = '`date +%s` > /home/reboot.time
umount /p2pcam
if [ -e /tmp/firmware.bin ]; then
mountBakRW
/bak/unpack $BOARD_ID /tmp/firmware.bin /tmp
sh -x /tmp/upgrade.sh
mountBakRO
elif [ -e /mnt/mmc01/0/firmware.bin ]; then
mountBakRW
/bak/unpack $BOARD_ID /mnt/mmc01/0/firmware.bin /tmp
sh -x /tmp/upgrade.sh
rm /mnt/mmc01/0/firmware.bin
mountBakRO
fi
sync
sleep 1
reboot
)&
~ # cat /bak/custom_pre_init.sh
#!/bin/sh
getHwCfg()
{
grep $1 /bak/hwcfg.ini | awk '{printf $3}'
}
#
#gkmm 0x120C0004 0x1000 #GPIO1_1
gkmm 0x120C0004 0x1001 #LSADC_CH1
#PTZ gpio
gkmm 0x112C0034 0x1000 #P1 GPIO5_7
gkmm 0x112C0030 0x1C00 #P2 GPIO5_6
gkmm 0x112C003C 0x1000 #P3 GPIO6_3
gkmm 0x112C0038 0x1000 #P4 GPIO6_2
gkmm 0x112C0028 0x1004 #T1 GPIO5_4
gkmm 0x120C0014 0x1E02 #T2 GPIO1_5
gkmm 0x112C0068 0x1000 #T3 GPIO6_7
gkmm 0x112C006C 0x1000 #T4 GPIO6_6
#IRCUT
gkmm 0x120C0018 0x1D02 #GPIO1_6
gkmm 0x120C001C 0x1402 #GPIO1_7
#speaker
gkmm 0x120C0010 0x1E02 #GPIO1_4
~ # cat /bak/custom_init.sh
#!/bin/sh
gio -do 45
gio -s 45 1
sleep 2
gio -s 45 0
System startup
Uncompress Ok!
U-Boot 2016.11 (Nov 19 2021 - 16:58:50 +0800)gk7205v200
Relocation Offset is: 0372b000
Relocating to 43f2b000, new gd at 43eeaef0, sp at 43eeaed0
PLAT_ZHAF
SPI Nor: Check Flash Memory Controller v100 ... Found
SPI Nor ID Table Version 1.0
SPI Nor(cs 0) ID: 0x20 0x40 0x18
Block:64KB Chip:16MB Name:"XM25QH128CHIQ"
SPI Nor total size: 16MB
NAND: 0 MiB
MMC: Card did not respond to voltage select!
No SD device found !
sdhci: 0
In: serial
Out: serial
Err: serial
Net: eth0
Warning: eth0 (eth0) using random MAC address - e6:4d:9d:86:37:14
Hit any key to stop autoboot: 0
device 0 offset 0x50000, size 0x1b0000
SF: 1769472 bytes @ 0x50000 Read: OK
## Booting kernel from Legacy Image at 41000000 ...
Image Name: Linux-4.9.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1759592 Bytes = 1.7 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.9.37 (xieyan@serverubuntu) (gcc version 6.3.0 (GCC) ) #3 Sat Aug 21 06:15:34 UTC 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Goke GK7205V200 DEMO Board
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9398
Kernel command line: mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/linuxrc mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32412K/37888K available (3642K kernel code, 122K rwdata, 840K rodata, 152K init, 209K bss, 5476K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc2800000 - 0xff800000 ( 976 MB)
lowmem : 0xc0000000 - 0xc2500000 ( 37 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0396d28 (3644 kB)
.init : 0xc046a000 - 0xc0490000 ( 152 kB)
.data : 0xc0490000 - 0xc04ae920 ( 123 kB)
.bss : 0xc04b0000 - 0xc04e4768 ( 210 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=50000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x40008200 - 0x40008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 20, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 21, base_baud = 0) is a PL011 rev2
ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000
ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286d000
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=13 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
loop: module loaded
bsp-sfc bsp_spi_nor.0: SPI Nor ID Table Version 1.2
bsp-sfc bsp_spi_nor.0: The ID: 0x20 isn't in the BP table, Current device can't not protect
bsp-sfc bsp_spi_nor.0: xm25qh128chiq (Chipsize 16 Mbytes, Blocksize 64KiB)
5 cmdlinepart partitions found on MTD device sfc
5 cmdlinepart partitions found on MTD device sfc
Creating 5 MTD partitions on "sfc":
0x000000000000-0x000000050000 : "boot"
0x000000050000-0x000000200000 : "kernel"
0x000000200000-0x000000440000 : "rootfs"
0x000000440000-0x0000004a0000 : "home"
0x0000004a0000-0x000001000000 : "bak"
FEPHY:addr=1, la_am=0x9, ldo_am=0x5, r_tuning=0x25
libphy: femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
femac 10040000.ethernet: using random MAC address 66:49:c9:83:f5:27
Generic PHY 10041100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10041100.mdio:01, irq=-1)
phy_id=0x20669906, phy_mode=mii
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver rndis_host
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
xhci-hcd xhci-hcd.0.auto: irq 115, io mem 0x10030000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
goke_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
goke_rtc 120e0000.rtc: RTC driver for goke enabled
i2c /dev entries driver
goke-i2c 12060000.i2c: goke-i2c0@100000hz registered
goke-i2c 12061000.i2c: goke-i2c1@100000hz registered
goke-i2c 12062000.i2c: goke-i2c2@100000hz registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode
mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
goke_rtc 120e0000.rtc: hctosys: unable to read the hardware clock
squashfs: SQUASHFS error: Xattrs in filesystem, these will be ignored
squashfs: SQUASHFS error: unable to read xattr id index table
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
devtmpfs: mounted
Freeing unused kernel memory: 152K (c046a000 - c0490000)
This architecture does not have kernel memory protection.
random: linuxrc: uninitialized urandom read (4 bytes read)
[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/ttyAMA1: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
/etc/init.d/S01udev: line 9: udevd: not found
/etc/init.d/S01udev: line 10: udevadm: not found
[RCS]: /etc/init.d/S80network
Press 'q' in 1 seconds to exit: sh: you need to specify whom to kill
gio: loading out-of-tree module taints kernel.
gio driver init successful!
cp: can't stat '/bak/lib/*.lzma': No such file or directory
lzma: /tmp/lib/*.lzma: No such file or directory
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x120C0004: 0x00001000 --> 0x00001001
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C0034: 0x00001000 --> 0x00001000
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C0030: 0x00001C00 --> 0x00001C00
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C003C: 0x00001000 --> 0x00001000
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C0038: 0x00001000 --> 0x00001000
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C0028: 0x00001004 --> 0x00001004
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x120C0014: 0x00001E02 --> 0x00001E02
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C0068: 0x00001000 --> 0x00001000
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x112C006C: 0x00001000 --> 0x00001000
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x120C0018: 0x00001D00 --> 0x00001D02
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x120C001C: 0x00001400 --> 0x00001402
[END]
*** Board tools : ver0.0.1_20121120 ***
[debug]: {/home/devin/vision_release/work/sdk_org/sdk/source/rootfs/regtools/source/utils/cmdshell.c:151}cmdstr:gkmm
0x120C0010: 0x00001E02 --> 0x00001E02
[END]
open success!
gpio_set 8
path = /sys/class/gpio/gpio45/direction
gpio_set out
num=45
path = /sys/class/gpio/gpio45/value
value = 1
gpio_set 1
num=45
path = /sys/class/gpio/gpio45/value
value = 0
gpio_set 0
mem: 37M
cat: can't open '/bak/sensor.cfg': No such file or directory
sinfo detect sensor
sh: 37M: bad number
mmz_start: 0x42500000, mmz_size: 27M
==== online_flag=0, cmos_yuv_flag=1, sensor=gc2053, chip=gk7205v200, board=demo====
==== g_quick_start_flag=0 ====
sysconfig init success!
Module media: init ok
Media Memory Zone Manager
osal 1.0 init success!
gk7205v200_base: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
usb 1-1: new high-speed USB device number 2 using xhci-hcd
load sys.ko OK!
load region.ko OK!
load vgs.ko OK!
load vi.ko OK !
ISP Mod init!
load vpss.ko OK!
gfbg: Unknown symbol unregister_framebuffer (err 0)
gfbg: Unknown symbol framebuffer_alloc (err 0)
gfbg: Unknown symbol register_framebuffer (err 0)
gfbg: Unknown symbol fb_pan_display (err 0)
gfbg: Unknown symbol framebuffer_release (err 0)
insmod: can't insert 'gfbg.ko.lzma': unknown symbol in module, or unknown parameter
load chnl.ko OK!
load vedu.ko OK!
load rc.ko OK!
load venc.ko OK!
load h264e.ko OK!
load h265e.ko OK!
load jpege.ko OK!
load ive.ko OK!
Load sensor_spi.ko OK !
insert audio
load mipi_rx driver successful!
register dev
Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 0)
wtdg init ok. ver=Aug 17 2021, 10:55:06.
lsadc init ok. ver=Aug 17 2021, 10:55:06.
exFAT: Version 1.2.9
tees. build at May 28 2021 11:35:38
listen on port 3201.
sh: 1: unknown operand
initlializing ptz...
Parameters of PTZ driver:
test_max_pos = 0
max_pps = 500
pulse interval: 1000/500 = 2
xchg_dir = 0
hspd_slfck = 60
vspd_slfck = 60
hspd_normal = 60
vspd_normal = 60
hspd_reloc = 30
vspd_reloc = 10
spd_zoom = 3
hmotor_upbound = 520
vmotor_upbound = 120
zmotor_upbound = 130
no_selfck = 0
other_flags = 1312
hmotor_center = 0
vmotor_center = 0
hmotor_border_low = 10
hmotor_border_high = 510
vmotor_border_low = 0
vmotor_border_high = 85
other_flags:
0x0001 --- Return to center when power on
0x0002 --- Z-Motor only
0x0004 --- No self-check
0x0008 --- Ignore position
0x0010 --- Respect spd_slfck
0x0020 --- No posotion-switch detection
motor pins: 47,
46,51,
50,44,
13,55,
54
GK710X gpio ptz(goke timer) device driver[2018.03.12] initialized.
sh: 0: unknown operand
mounting /bak read & write ...
random: fast init done
usbcore: registered new interface driver rtl8188fu
sh: rdawfmac: unknown operand
sh: rdawfmac: unknown operand
sh: rdawfmac: unknown operand
sh: rdawfmac: unknown operand
mounting /bak readonly ...
ifconfig: SIOCGIFFLAGS: No such device
/tmp/start.sh: line 290: can't create /sys/class/net/ra0/mtu: nonexistent directory
start.sh (524): drop_caches: 3
root login: hisi app start
========v2 pthread statck size 131072===
eye id size = 20
GET EYE SER: AJWL2207191010IPIRLY5RI1WM036119, isSupportMotionTrack:0, smartAiMode:0
checkp2pfile over
get_sensor_name_from_file
viType: gc2053
-----magicNumber[0]
gpio69, 4 parts, pinmux reg[0x0]:[0x0], effectValue[0]
gpio4, 4 parts, pinmux reg[0x0]:[0x0], effectValue[0]
gpio12, 4 parts, pinmux reg[0x0]:[0x0], effectValue[0]
gpio70, 4 parts, pinmux reg[0x0]:[0x0], effectValue[0]
gpio14, 4 parts, pinmux reg[0x0]:[0x0], effectValue[1]
gpio15, 4 parts, pinmux reg[0x0]:[0x0], effectValue[1]
gpio45, 4 parts, pinmux reg[0x0]:[0x0], effectValue[0]
gpio56, 4 parts, pinmux reg[0x0]:[0x0], effectValue[1]
----------chazhi
######Get Hardware Info: model:cloudCam, firmware-gpio_name = gpio70,gio.value = 1
ident:aj_ipc_gkh_001
GPIO: RedLgpio_name = gpio14,gio.value = 0
ed[0], BlueLed[0], BoardReset[4]gpio_name = gpio15,gio.value = 0
ptzSupport[1], promptVoice[0]..gpio_name = gpio12,gio.value = 1
.
HVERSION = 1
DEV MODLE:0x100c
DEV SER NUMBER: cloudCam-c43cb027ffbd
P2P ID:
ir[1] wl[0] dual[0] near[1]
GPIO open success. GIO fd = 0
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
/home/client_para.int does not exist, using default parameters!
MAC ADDR: c4:3c:b0:27:ff:bd
=====adjustSysDateFromRTC before = Thu Jan 1 08:00:10 1970
and web_onvif_set_time = 0
=====adjustSysDateFromRTC getUtc = Thu Jan 1 16:00:10 1970
and web_onvif_set_time = 0
=====adjustSysDateFromRTC after = Thu Jan 1 07:59:59 1970
no sd card!
0: Watchdog started... feed interval 15 seconds.
hiSetFeature 6887
[[RSYSTEM]]: rm -rf /tmp/hzk16.bin
<CODEC> DBG:>>>>>>startCodecCore
Encoder parameter: Master channel
streamType = 0x1003
resolution = 0x1038
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 1048576
fps = 8(8)
IFrameInterval = 100
Encoder parameter: Sub channel
streamType = 0x1003
resolution = 0x1009
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 204800
fps = 8(8)
IFrameInterval = 100
init_sensor_type res main: 8, sub: 1
SAMPLE_AUDIO_RegisterVQEModule start ... !
g_enSnsType: 18
SAMPLE_VENC_GetCommVbAttr vb0:1 vb1:2 vb2:3
---------------VI_VPSS_MODE[0]
[SAMPLE_COMM_VI_GetComboAttrBySns]-1975: chip id = 0x72050200
[SAMPLE_COMM_VI_GetMipiLaneMode]-1925: support this chip 72050200
[SAMPLE_COMM_VI_GetMipiLaneMode]-1925: support this chip 72050200
[SAMPLE_COMM_VI_SetMipiAttr]-2201: ============= MipiDev 0, SetMipiAttr enWDRMode: 0
---------------VI_VPSS_MODE[0]
GC2053_SENSOR_1080P_30FPS_LINEAR_MODE
===Galaxycore GC2053_1080P_30FPS_10BIT_LINEAR_Init_OK!===
[[RSYSTEM]]: cp /proc/cpuinfo /tmp/cpuinfo
[SAMPLE_COMM_ISP_Thread]-403: ISP Dev 0 running !
[[RSYSTEM]]: echo "chipId:gk7205v200" >> /tmp/cpuinfo
[[RSYSTEM]]: echo "freq:900M" >> /tmp/cpuinfo
[[RSYSTEM]]: mount --bind /tmp/cpuinfo /proc/cpuinfo
SAMPLE_COMM_VENC_Creat 827 vbr_bitrate:1024
SUPERFRM_REENCODE chn:0
SUPERFRM_REENCODE chn:1
sensor fps from 25.000000 to 8
load_ispparam filepath /tmp/image/Day_level0.xml---------------------
load_ispparam load file error!
ispload_3dnrx filepath /tmp/image/3DNR_X_MANUAL_DEBUG_day_ISO100.txt---------------------
load_ispparam load file error!
init_ispcfg ok!
######351X init successed######
--- track mode = 0.
Ai(0,0) bind to AencChn:0 ok!
ps32VolumeDb=1, level=8
bind adec:0 to ao(0,0) ok
AudioDet Sens: 1
----------------soundDetectInit: sensitivity[20]
hi351xAudioInit complete ...
######351X Audio init successed######
<CODEC> DBG:
Encode demo started.
<CODEC> DBG:Pause object opened
<CODEC> DBG:CAP_BUFFERS=3,CAP_TO_VIDEO_BUF_NUM=2,MAX_VIDEO_CAPTURE_BUFSIZE=3225632
<CODEC> DBG:VIDEO_TO_WRITER_BUF_SIZE_MAIN=524288(1x524288),SUB=262144(1x262144),PS_PACK_BUFFER_LEN=526336
<CODEC> DBG:rendezvousInit =7d7788
<CODEC> DBG:Init rendezvous opened for 6 threads
<CODEC> DBG:Cleanup rendezvous opened for 5 threads
<CODEC> DBG:Priming rendezvous opened for 2 threads
========v2 pthread statck size 32768===
<CODEC> DBG:Writer thread created
========v2 pthread statck size 32768===
<CODEC> DBG:Video thread created
hub->bRunSpeechThread[1] videoOnly[0] stream[0]
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
<CODEC> DBG:motion thread created
<CODEC> DBG:setup codec fertig #####step1
<CODEC> DBG:setup codec fertig #####step2
<VidThrd> DBG:Alloc pDspInitPara->rtpBuf.virtAddr=0xb6597020 [phys=0x0], size=524288 OK
<VidThrd> DBG:Init rtpBuf OK! totalSize=524288,frameSize=1464,frameCnt=358
<VidThrd> DBG:Alloc pDspInitPara->rtpBuf.virtAddr=0x7d7c30 [phys=0x0], size=204800 OK
<VidThrd> DBG:Init subRtpBuf OK! totalSize=204800,frameSize=1464,frameCnt=139
<VidThrd> DBG:Alloc spOutputBuf at 0xb6516008, size=526336 OK
<VidThrd> DBG:MOTION_DETECT buffer allocated at 0x809c60, size=2400
<VidThrd> DBG:MOTION_DETECT sub buffer allocated at 0x80a5f0, size=2400
<VidThrd> DBG:[setup_frame_buff()] buffer allocated at 0xb6495008 length=524288 count=1
<setup_frame_buff_phy()> Not 16-aligned cb->list[0].data=0xb6495008 ### count=1,frame_size=524288
<VidThrd> DBG:[setup_frame_buff()] buffer allocated at 0xb6454008 length=262144 count=1
<setup_frame_buff_phy()> Not 16-aligned cb->list[0].data=0xb6454008 ### count=1,frame_size=262144
<VidThrd> DBG:Capture buffer start!
<VidThrd> DBG:Capture buffer allocated at 0x80c5a0 physical address 0,size=3225632
<VidThrd> DBG:Capture buffer start!
<VidThrd> DBG:Capture buffer allocated at 0x80c5c8 physical address 0,size=3225632
MMZ remain 6360 KB
[motionThrFxn]-964: sample_ivp_smd_start success(0)
<CODEC> DBG:setup codec fertig #####step3
CODEC INIT SUCCESS!
platform [3(0-18A,1-18C,2-16C)] flash uboot version = 0x0
open bio error
cur is xhr+gc2053
Setting brightness level from 50 to 50 (0x32)
Setting contrast level from 50 to 50 (0x32)
Setting saturation level from 50 to 50 (0x32)
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
setChannelOSD_Chinese ============ k = 34
Encoder parameter: Master channel
streamType = 0x1003
resolution = 0x1038
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 1048576
fps = 8(8)
IFrameInterval = 100
Encoder parameter: Master channel
streamType = 0x1003
resolution = 0x1038
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 1048576
fps = 8(8)
IFrameInterval = 100
hi351x_set_enctype bMain[1] enctype[10]
<hi351x_set_enctype> encode type is already 10, bMain[1], return
SetEncoderParam chan[1]
1111 SetEncoderParam chan[1]
hi351x_enc_config bSubStream: 0,is_support_mpeg4: 10,is_support_mpeg4_sub: 1,width: 2304,height: 1296,frame_rate: 8.000000,key_frame_interval: 100,bit_rate: 1048576,rate_type: 0,quant: 0
res 2304, 2304, 1296, 1296, enc 265
hi3518_enc_config:
width = 2304 and height = 1296
bMainChan=1 bCBR=0
bitrate=1024kb framerate=8
#### VeChn[0],framerateSrc = 8
setSubEncoderParam channel[1]
Encoder parameter: Sub channel
streamType = 0x1003
resolution = 0x1009
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 204800
fps = 8(8)
IFrameInterval = 100
hi351x_set_enctype bMain[0] enctype[1]
<hi351x_set_enctype> encode type is already 1, bMain[0], return
SetEncoderParam chan[9]
1111 SetEncoderParam chan[9]
hi351x_enc_config bSubStream: 1,is_support_mpeg4: 10,is_support_mpeg4_sub: 1,width: 640,height: 360,frame_rate: 8.000000,key_frame_interval: 100,bit_rate: 204800,rate_type: 0,quant: 0
res 640, 640, 360, 360, enc 96
hi3518_enc_config:
width = 640 and height = 360
bMainChan=0 bCBR=0
bitrate=200kb framerate=8
#### VeChn[1],framerateSrc = 8
Encoder parameter: Master channel
streamType = 0x1003
resolution = 0x1038
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 1048576
fps = 8(8)
IFrameInterval = 100
hi351x_set_enctype bMain[1] enctype[10]
<hi351x_set_enctype> encode type is already 10, bMain[1], return
<setEncoderParam()> Same encParam! channel=1
setChannelOSD_Chinese ============ k = 34
setSubEncoderParam channel[1]
Encoder parameter: Sub channel
streamType = 0x1003
resolution = 0x1009
quarter = 0x0
BFrameNum = 0x0
bpsType = 0x0
quality = 0x0
bps = 204800
fps = 8(8)
IFrameInterval = 100
hi351x_set_enctype bMain[0] enctype[1]
<hi351x_set_enctype> encode type is already 1, bMain[0], return
<setSubEncoderParam()> Same encParam! channel=1
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
<ConfigEncodevice eth0 entered promiscuous mode
der(1)> Encoder Param have non change!
Entering writer main loop.
####ApplySpeaker on:0
<ConfigEncoder(9)> Encoder Param have non change!
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
sync reboot system time!!!!!!
--------------SONG TOOL INIT------------
befor===uuid[AJWL2207191010IPIRLY5RI1WM036119]===
========v2 pthread statck size 32768===
===============================
ver: 20.0.1.0729
===============================
[[RSYSTEM]]: telnetd &
======ICRCtrlThread start========
set_day_parameters 18
sensor fps from 8.000000 to 125
gc2053_set_day_parameters
set_day_parameters 18
sensor fps from 12.500000 to 125
gc2053_set_day_parameters
Setting brightness level from 50 to 50 (0x32)
Setting contrast level from 50 to 50 (0x32)
Debug====>irCut isReversed 0
RTSP Program, Port=554
========v2 pthread statck size 32768===
lib ctp. v20190625
[[RSYSTEM]]: ifconfig
eth0 Link encap:Ethernet HWaddr 66:49:C9:83:F5:27
UP BROADCAST MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:24
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr C4:3C:B0:27:FF:BD
UP BROADCAST MULTICAST MTU:1450 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
<VidThrd> DBG:Entering main loop.
<VidThrd> DBG:videoEncodeAlgReCreate OK, hEncodeH264[9]=(nil)
<VidThrd> DBG:888 forecIframe[9] 888
create UUID failed so use the default uuid 7d49925b-4fc7-406b-a0ec-!
ONVIF_Initiate if:eth0
========v2 pthread statck size 32768===
<VidThrd> DBG:videoEncodeAlgReCreate OK, hEncodeH264[1]=(nil)
<VidThrd> DBG:888 forecIframe[1] 888
### creatOSDRegion 1401 width:816 height:64 rgnHandle:0 vencGrp:0 layer:3 bgColor:0
### creatOSDRegion 1401 width:272 height:32 rgnHandle:8 vencGrp:1 layer:3 bgColor:0
usb wifi found, vid: 0bda, pid: f179
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
========v2 pthread statck size 32768===
#####IR CUT in Day Mode.
linktest(eth0) = 0
NET INTERFACE is wlan0
[[RSYSTEM]]: echo 3 > /proc/sys/vm/drop_caches
sh (821): drop_caches: 3
Cache clean
set_night_ir_parameters 18
sensor fps from 12.500000 to 8
gc2053_set_night_ir_parameters
Setting brightness level from 50 to 50 (0x32)
Setting contrast level from 50 to 50 (0x32)
Debug====>irCut isReversed 0
sdk version=============================: 1.0.2236
[xml_config_init, 200]
module id:aj_ipc_gkh_001, pro_name:cloudCam, device_type:IPC, app_version:20.0.1.0729, fw_version:20.0.1.0729, sn:AJWL2207191010IPIRLY5RI1WM036119, mac:c43cb027ffbd
set_device_featureset_callback#####IR CUT in Night Mode.
eyeplus_cc_network_cb line(496) cmd(4)=CC_CMD_GET_WIFI_DEVICE_NAME
eyeplus_cc_get_feature_default_value_cb: line(547), type:0x23.
device eth0 left promiscuous mode
closeliInit### cur_wifi_ap:CLOUDCAM_c43cb027ffbd
===getApWpapsk
scmd = setup-hostap.sh wlan0 CLOUDCAM_c43cb027ffbd ; touch /tmp/dhcpd.leases; killall dhcpd; rm -f /var/run/dhcpd.pid
[[RSYSTEM]]: setup-hostap.sh wlan0 CLOUDCAM_c43cb027ffbd ; touch /tmp/dhcpd.leases; killall dhcpd; rm -f /var/run/dhcpd.pid
wifi ap CLOUDCAM_c43cb027ffbd started ...
killall: dhcpd: no process killed
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=0
------ undo startGetViYuvData.
---CC_CMD_QR_START width:640 height:360
ps32VolumeDb=1, level=8
------playSound /tmp/VOICE/Please_configure_camera_by_AP_hotspot_or_scanning_code.wav
####ApplySpeaker on:1
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
/tmp/VOICE/Please_configure_camera_by_AP_hotspot_or_scanning_code.wav, file_type=2, audioType = 102 ext:.wav..
start /tmp/VOICE/Please_configure_camera_by_AP_hotspot_or_scanning_code.wav, file_type=0, audioType = 100..
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
ctp ready to init
CTP Server Started at 8001
setsockopt IP_ADD_MEMBERSHIP failed: No such device
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
####ApplySpeaker on:0
ps32VolumeDb=1, level=8
------playSound /tmp/VOICE/Please_configure_camera_by_AP_hotspot_or_scanning_code.wav over
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
eyeplus_cc_device_cb line(127) cmd(20)=CC_CMD_QR_START, value=640
---CC_CMD_QR_START width:640 height:360
eyeplus_cc_device_cb line(140) cmd(21)=CC_CMD_QR_RELEASE, value=640
goke # help
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
bootvx - Boot vxWorks from an ELF image
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
ddr - ddr training function
dhcp - boot image via network using DHCP/TFTP protocol
dm - Driver model low level access
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
erase - erase FLASH memory
exit - exit script
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fatsize - determine a file's size
flinfo - print FLASH memory information
getinfo - print hardware information
go - start application at address 'addr'
help - print command description/usage
icache - enable or disable instruction cache
iminfo - print header information for application image
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loadx - load binary file over serial line (xmodem mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mii - MII utility commands
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
part - disk partition related commands
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval expression
setvobg - setvobg - set vo backgroud color.
- setvobg [dev color]
sf - SPI flash sub-system
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
startgx - startgx - open graphics layer.
- startgx [layer addr stride x y w h]
startvl - startvl - open video layer.
- startvl [layer addr stride x y w h]
startvo - startvo - open vo device with a certain output interface.
- startvo [dev intftype sync]
stopgx - stopgx - close graphics layer.
- stopgx [layer]
stopvl - stopvl - close video layer.
- stopvl [layer]
stopvo - stopvo - close interface of vo device.
- stopvo [dev]
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
ugzip - Compress gzipfile with hardware IP
usb - USB sub-system
usbboot - boot from USB device
usbtftp - download or upload image using USB protocol
version - print monitor, compiler and linker version
goke #
goke # printenv
arch=arm
baudrate=115200
board=gk7205v200
board_name=gk7205v200
bootargs=mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/linuxrc mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)
bootcmd=sf probe 0;sf read 0x41000000 0x50000 0x1b0000;bootm 0x41000000
bootdelay=0
cpu=armv7
ethact=eth0
soc=gk7205v200
stderr=serial
stdin=serial
stdout=serial
vendor=goke
verify=n
Environment size: 447/65532 bytes
goke # setenv bootargs 'mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/bin/sh mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)'
goke # printenv
arch=arm
baudrate=115200
board=gk7205v200
board_name=gk7205v200
bootargs=mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/bin/sh mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)
bootcmd=sf probe 0;sf read 0x41000000 0x50000 0x1b0000;bootm 0x41000000
bootdelay=0
cpu=armv7
ethact=eth0
soc=gk7205v200
stderr=serial
stdin=serial
stdout=serial
vendor=goke
verify=n
Environment size: 446/65532 bytes
goke # boot
device 0 offset 0x50000, size 0x1b0000
SF: 1769472 bytes @ 0x50000 Read: OK
## Booting kernel from Legacy Image at 41000000 ...
Image Name: Linux-4.9.37
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1759592 Bytes = 1.7 MiB
Load Address: 40008000
Entry Point: 40008000
Loading Kernel Image ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.9.37 (xieyan@serverubuntu) (gcc version 6.3.0 (GCC) ) #3 Sat Aug 21 06:15:34 UTC 2021
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Goke GK7205V200 DEMO Board
Memory policy: Data cache writeback
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9398
Kernel command line: mem=37M console=ttyAMA0,115200n8 root=/dev/mtdblock2 rootfstype=squashfs ro init=/bin/sh mtdparts=sfc:320K(boot),1728K(kernel),2304K(rootfs),384K(home),-(bak)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32412K/37888K available (3642K kernel code, 122K rwdata, 840K rodata, 152K init, 209K bss, 5476K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc2800000 - 0xff800000 ( 976 MB)
lowmem : 0xc0000000 - 0xc2500000 ( 37 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0396d28 (3644 kB)
.init : 0xc046a000 - 0xc0490000 ( 152 kB)
.data : 0xc0490000 - 0xc04ae920 ( 123 kB)
.bss : 0xc04b0000 - 0xc04e4768 ( 210 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:16 nr_irqs:16 16
Gic dist init...
arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
Switching to timer-based delay loop, resolution 20ns
clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=50000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x40008200 - 0x40008258
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
Serial: AMBA PL011 UART driver
12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 20, base_baud = 0) is a PL011 rev2
console [ttyAMA0] enabled
12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 21, base_baud = 0) is a PL011 rev2
ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c286b000
ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00041022
ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c286d000
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
workingset: timestamp_bits=30 max_order=13 bucket_order=0
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
loop: module loaded
bsp-sfc bsp_spi_nor.0: SPI Nor ID Table Version 1.2
bsp-sfc bsp_spi_nor.0: The ID: 0x20 isn't in the BP table, Current device can't not protect
bsp-sfc bsp_spi_nor.0: xm25qh128chiq (Chipsize 16 Mbytes, Blocksize 64KiB)
5 cmdlinepart partitions found on MTD device sfc
5 cmdlinepart partitions found on MTD device sfc
Creating 5 MTD partitions on "sfc":
0x000000000000-0x000000050000 : "boot"
0x000000050000-0x000000200000 : "kernel"
0x000000200000-0x000000440000 : "rootfs"
0x000000440000-0x0000004a0000 : "home"
0x0000004a0000-0x000001000000 : "bak"
FEPHY:addr=1, la_am=0x9, ldo_am=0x5, r_tuning=0x25
libphy: femac_mii_bus: probed
libphy: Fixed MDIO Bus: probed
femac 10040000.ethernet: using random MAC address a2:0f:5c:06:ac:09
Generic PHY 10041100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10041100.mdio:01, irq=-1)
phy_id=0x20669906, phy_mode=mii
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver rndis_host
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
xhci-hcd xhci-hcd.0.auto: irq 115, io mem 0x10030000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
hub 2-0:1.0: USB hub found
hub 2-0:1.0: hub can't support USB3.0
goke_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
goke_rtc 120e0000.rtc: RTC driver for goke enabled
i2c /dev entries driver
goke-i2c 12060000.i2c: goke-i2c0@100000hz registered
goke-i2c 12061000.i2c: goke-i2c1@100000hz registered
goke-i2c 12062000.i2c: goke-i2c2@100000hz registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode
mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy mode
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
goke_rtc 120e0000.rtc: hctosys: unable to read the hardware clock
squashfs: SQUASHFS error: Xattrs in filesystem, these will be ignored
squashfs: SQUASHFS error: unable to read xattr id index table
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
devtmpfs: mounted
Freeing unused kernel memory: 152K (c046a000 - c0490000)
This architecture does not have kernel memory protection.
random: sh: uninitialized urandom read (4 bytes read)
/bin/sh: can't access tty; job control turned off
/ #
/ #
/ # cat /etc/passwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment