Created
February 6, 2020 15:13
-
-
Save bakueikozo/cb946adbb2ee83d0a720a5d557c54390 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
U-Boot 2014.04 (Nov 05 2018 - 10:28:14) | |
CPU: XM510 | |
DRAM: 64 MiB | |
MMC: arasan: 0 | |
In: serial | |
Out: serial | |
Err: serial | |
Net: dwmac.20040000 | |
** Bad device mmc 0 ** | |
fs_set_blk_dev 0:0 ret: -1 | |
tfcard not exist | |
Hit any key to stop autoboot: 0 | |
### CRAMFS load complete: 1819196 bytes loaded to 0x81000000 | |
## Booting kernel from Legacy Image at 81000000 ... | |
Image Name: Linux-3.0.101 | |
Image Type: ARM Linux Kernel Image (uncompressed) | |
Data Size: 1819132 Bytes = 1.7 MiB | |
Load Address: 80008000 | |
Entry Point: 80008000 | |
Verifying Checksum ... OK | |
Loading Kernel Image ... OK | |
Starting kernel ... | |
Uncompressing Linux... done, booting the kernel. | |
Linux version 3.0.101 (root@localhost.localdomain) (gcc version 4.9.2 (Buildroot 2014.08) ) #7 Wed Sep 12 14:18:48 CST 2018 | |
CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d | |
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache | |
Machine: xm510 | |
Memory policy: ECC disabled, Data cache writeback | |
timer clock 24000000. | |
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 10668 | |
Kernel command line: mem=42M console=ttyAMA0,115200 root=/dev/mtdblock1 rootfstype=cramfs mtdparts=xm_sfc:256K(boot),3520K(romfs),2048K(user),3072K(app),7488K(conf) | |
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: 42MB = 42MB total | |
Memory: 39200k/39200k available, 3808k reserved, 0K highmem | |
Virtual kernel memory layout: | |
vector : 0xffff0000 - 0xffff1000 ( 4 kB) | |
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) | |
DMA : 0xffc00000 - 0xffe00000 ( 2 MB) | |
vmalloc : 0xc3000000 - 0xfe000000 ( 944 MB) | |
lowmem : 0xc0000000 - 0xc2a00000 ( 42 MB) | |
modules : 0xbf000000 - 0xc0000000 ( 16 MB) | |
.init : 0xc0008000 - 0xc001f000 ( 92 kB) | |
.text : 0xc001f000 - 0xc031d000 (3064 kB) | |
.data : 0xc031e000 - 0xc0331c60 ( 80 kB) | |
.bss : 0xc0331c84 - 0xc0349fcc ( 97 kB) | |
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 | |
NR_IRQS:32 nr_irqs:32 32 | |
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms | |
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328) | |
pid_max: default: 32768 minimum: 301 | |
Mount-cache hash table entries: 512 | |
CPU: Testing write buffer coherency: ok | |
NET: Registered protocol family 16 | |
Serial: AMBA PL011 UART driver | |
uart:0: ttyAMA0 at MMIO 0x10030000 (irq = 0) is a PL011 rev1 | |
console [ttyAMA0] enabled | |
uart:1: ttyAMA1 at MMIO 0x10040000 (irq = 1) is a PL011 rev1 | |
bio: create slab <bio-0> at 0 | |
Switching to clocksource timer1 | |
NET: Registered protocol family 2 | |
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) | |
TCP established hash table entries: 2048 (order: 2, 16384 bytes) | |
TCP bind hash table entries: 2048 (order: 1, 8192 bytes) | |
TCP: Hash tables configured (established 2048 bind 2048) | |
TCP reno registered | |
UDP hash table entries: 256 (order: 0, 4096 bytes) | |
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | |
NET: Registered protocol family 1 | |
RPC: Registered named UNIX socket transport module. | |
RPC: Registered udp transport module. | |
RPC: Registered tcp transport module. | |
RPC: Registered tcp NFSv4.1 backchannel transport module. | |
JFFS2 version 2.2. (NAND) c 2001-2006 Red Hat, Inc. | |
fuse init (API version 7.16) | |
msgmni has been set to 76 | |
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) | |
io scheduler noop registered | |
io scheduler deadline registered (default) | |
io scheduler cfq registered | |
dma-pl330 dmac: Loaded driver for PL330 DMAC-2364208 | |
dma-pl330 dmac: DBUFF-32x8bytes Num_Chans-4 Num_Peri-24 Num_Events-4 | |
uart-pl011 uart:0: no DMA platform data | |
uart-pl011 uart:1: no DMA platform data | |
brd: module loaded | |
XMSFC: flash name:W25Q128BV size:0x1000000 | |
5 cmdlinepart partitions found on MTD device xm_sfc | |
Creating 5 MTD partitions on "xm_sfc": | |
0x000000000000-0x000000040000 : "boot" | |
0x000000040000-0x0000003b0000 : "romfs" | |
0x0000003b0000-0x0000005b0000 : "user" | |
0x0000005b0000-0x0000008b0000 : "app" | |
0x0000008b0000-0x000001000000 : "conf" | |
XMMMAC driver: | |
platform registration... | |
done! | |
eth0 - (dev. name: xmmaceth - id: -1, IRQ #3 | |
IO base addr: 0xc30a0000) | |
XMMMAC MII Bus: probed | |
eth0: PHY ID 0000ffff at 0 IRQ 0 (0:00) | |
eth0: PHY ID 0000ffff at 1 IRQ 0 (0:01) active | |
eth0: PHY ID 0000ffff at 2 IRQ 0 (0:02) | |
eth0: PHY ID 0000ffff at 3 IRQ 0 (0:03) | |
eth0: PHY ID 0000ffff at 4 IRQ 0 (0:04) | |
eth0: PHY ID 0000ffff at 5 IRQ 0 (0:05) | |
eth0: PHY ID 0000ffff at 6 IRQ 0 (0:06) | |
eth0: PHY ID 0000ffff at 7 IRQ 0 (0:07) | |
eth0: PHY ID 0000ffff at 8 IRQ 0 (0:08) | |
eth0: PHY ID 0000ffff at 9 IRQ 0 (0:09) | |
eth0: PHY ID 0000ffff at 10 IRQ 0 (0:0a) | |
eth0: PHY ID 0000ffff at 11 IRQ 0 (0:0b) | |
eth0: PHY ID 0000ffff at 12 IRQ 0 (0:0c) | |
eth0: PHY ID 0000ffff at 13 IRQ 0 (0:0d) | |
eth0: PHY ID 0000ffff at 14 IRQ 0 (0:0e) | |
eth0: PHY ID 0000ffff at 15 IRQ 0 (0:0f) | |
eth0: PHY ID 0000ffff at 16 IRQ 0 (0:10) | |
eth0: PHY ID 0000ffff at 17 IRQ 0 (0:11) | |
eth0: PHY ID 0000ffff at 18 IRQ 0 (0:12) | |
eth0: PHY ID 0000ffff at 19 IRQ 0 (0:13) | |
eth0: PHY ID 0000ffff at 20 IRQ 0 (0:14) | |
eth0: PHY ID 0000ffff at 21 IRQ 0 (0:15) | |
eth0: PHY ID 0000ffff at 22 IRQ 0 (0:16) | |
eth0: PHY ID 0000ffff at 23 IRQ 0 (0:17) | |
eth0: PHY ID 0000ffff at 24 IRQ 0 (0:18) | |
eth0: PHY ID 0000ffff at 25 IRQ 0 (0:19) | |
eth0: PHY ID 0000ffff at 26 IRQ 0 (0:1a) | |
eth0: PHY ID 0000ffff at 27 IRQ 0 (0:1b) | |
eth0: PHY ID 0000ffff at 28 IRQ 0 (0:1c) | |
eth0: PHY ID 0000ffff at 29 IRQ 0 (0:1d) | |
eth0: PHY ID 0000ffff at 30 IRQ 0 (0:1e) | |
eth0: PHY ID 0000ffff at 31 IRQ 0 (0:1f) | |
PPP generic driver version 2.4.2 | |
PPP Deflate Compression module registered | |
PPP BSD Compression module registered | |
TCP cubic registered | |
NET: Registered protocol family 17 | |
Registering the dns_resolver key type | |
registered taskstats version 1 | |
VFS: Mounted root (cramfs filesystem) readonly on device 31:1. | |
Freeing init memory: 92K | |
MEM_START=0x82a00000 MEM_LEN=0x01600000 | |
xm_i2c init is ok! | |
MMZ: init ok start=0x82a00000, size=0x1600000 | |
VI: init ok! [3] buffer in the use! | |
IspKo: ispDev_init start! | |
IspKo: ispDev_init OK! | |
hx280enc: module init - base_port=0x20070000 irq=26 | |
hx280enc: HW at base <0x20070000> with ID <0x82900760> | |
hx280enc: module inserted. Major <0> | |
xm_rtc init is ok! | |
insert audio | |
gpioi2c init ok. | |
1 no ack. | |
1 no ack. | |
1 no ack. | |
no ack. | |
ES8310 initialized | |
acodec init is ok! | |
==== Your input Sensor type is AR0130 ==== | |
[reg] = 0x2000002c,[val]= 0x00000001 | |
[reg] = 0x20000024,[val]= 0x00000c18 | |
[reg] = 0x2000002c,[val]= 0x00000000 | |
Loading modules backported from Linux version v3.13-rc8-0-g7e22e91 | |
Backport generated by backports.git v3.13-rc8-1-0-gae71bd3 | |
Uboot already keep PDN pin low :delay 2 sec. | |
ouput high and delay 2000ms | |
mmc0: driver initialized... IRQ: 25, Base addr 0xc30e0000 | |
arasan_set_clock: | |
new freq 400000 | |
cfg80211: Calling CRDA to update world regulatory domain | |
arasan_set_clock: | |
new freq 50000000 | |
mmc0: queuing unknown CIS tuple 0x80 (41 bytes) | |
mmc0: queuing unknown CIS tuple 0x03 (4 bytes) | |
mmc0: new SDIO card at address 0001 | |
Montage SDIO: Lynx SDIO driver | |
lynx driver rev. = 1015 | |
func info start: | |
WMM support : Yes | |
Host controller aggrgation support type : cpu aggregation | |
Host controller sg support: Yes | |
Host controller SDIO IRQ: 1 | |
card supported clock 50000000 | |
func info end: | |
if_sdio_get_fw_info: dma_base is 0x4c000 | |
Firmware Information: | |
datablock_start = 0x10000 | |
datablock_size = 0x200 | |
datablock_num = 0x80 | |
tx ring ptr = 0x4e1d0 | |
tx buf size = 0x800 | |
tx full flag = 0x0 | |
tx tx_producer = 0x0 | |
tx tx_consumer = 0x0 | |
rx ring ptr (rx_buf_start) = 0x4e9d0 | |
rx_buf_write_ptr = 0x4e9d0 | |
rx_buf_reader_ptr = 0x4e9d0 | |
rx buf size = 0x800 | |
rx_buf_end = 0x4f1d0 | |
rx full flag = 0x0 | |
rx rx_producer = 0x0 | |
rx rx_consumer = 0x0 | |
align size = 0x40 | |
sdio_cksum_enable = 0x0 | |
fast_tx_commit_enable = 0x0 | |
fast_rx_commit_enable = 0x0 | |
SDIO boot from [ROM]! | |
lynx_sdio mmc0:0001:1: Lynx [boot mode] now attached | |
lynx_sdio mmc0:0001:1: if_sdio_get_fw_verion() Lynx ROM version: 0x3 | |
lynx_sdio mmc0:0001:1: 6700s firmware download: Transferred FW: static array, rev: 15033, size: 146548 | |
lynx_sdio_download_fw() 2079 Wait FW boot up 1 sec | |
lynx_sdio mmc0:0001:1: if_sdio_prog_firmware: Firmware lynx/sdio_app_3.img download OK | |
lynx_sdio mmc0:0001:1: if_sdio_prog_firmware: Re-initialize!! | |
if_sdio_get_fw_info: dma_base is 0x34000 | |
Firmware Information: | |
datablock_start = 0x0 | |
datablock_size = 0x200 | |
datablock_num = 0x100 | |
tx ring ptr = 0x34000 | |
tx buf size = 0x4000 | |
tx full flag = 0x0 | |
tx tx_producer = 0x0 | |
tx tx_consumer = 0x0 | |
rx ring ptr (rx_buf_start) = 0x38000 | |
rx_buf_write_ptr = 0x38000 | |
rx_buf_reader_ptr = 0x38000 | |
rx buf size = 0x3000 | |
rx_buf_end = 0x3b000 | |
rx full flag = 0x0 | |
rx rx_producer = 0x0 | |
rx rx_consumer = 0x0 | |
align size = 0x80 | |
sdio_cksum_enable = 0x0 | |
fast_tx_commit_enable = 0x0 | |
fast_rx_commit_enable = 0x0 | |
lynx_sdio mmc0:0001:1: if_sdio_prog_firmware: Firmware lynx/sdio_app_3.img requested | |
if_sdio_probe: Use SDIO RX POLLING mode directly | |
@@@@@@@@ Delay 1 s @@@@@@@@@@ | |
@@@@@@@@ Delay done @@@@@@@@@@ | |
/system/etc/wifi//MAC.txt,file open error. | |
set random mac | |
Set default mac(random):80 05 df 11 a0 05 | |
/data//RF.txt,file open error. | |
MAC Rule:1 | |
FOFS Rule:3 | |
TXVGA Rule:3 | |
lynx_sdio mmc0:0001:1: if_sdio_probe: Test RX OK (lynx_sdio_switch_on) | |
lynx_sdio mmc0:0001:1: if_sdio_probe: RX_Method: 0 | |
cfg80211: wext will not work because kernel was compiled with CONFIG_WIRELESS_EXT=n. Tools using wext interface, like iwconfig will not work. | |
mmc1: driver initialized... IRQ: 24, Base addr 0xc31c0000 | |
arasan_set_clock: | |
new freq 400000arasan_set_clock: | |
new freq 300000arasan_set_clock: | |
new freq 200000arasan_set_clock: | |
new freq 195312 | |
Disable Power-Saving | |
tfcard not exist! | |
xm_wdt init is ok! | |
Auto login as root ... | |
Jan 1 00:00:21 login[505]: root login on 'ttyAMA0' | |
~ # Invalid path for document_root: [/mnt/conf/sdcard/IPC/video/]: (No such file or directory). Make sure that path is either absolute, or it is relative to mongoose executable. | |
Mongoose web server v.5.4 serving [/mnt/conf/sdcard/IPC/video/] on port 8000 | |
19700101-00:00:22:028|os=96, type=00 | |
19700101-00:00:22:028|jfg status init | |
19700101-00:00:22:029|startup, version=1.1.1.245, os=96 | |
19700101-00:00:22:029|xm gpio init | |
19700101-00:00:22:031|wifi dev exist! | |
19700101-00:00:22:031|get wifi info form sdcard! | |
19700101-00:00:22:032|no sdcard! | |
19700101-00:00:22:032|ap mode | |
19700101-00:00:22:032|s_wifiCfg.SSID:DOG-2W-023563 | |
19700101-00:00:22:033|cmd:rm /dev/random | |
19700101-00:00:22:034|cmd:ln -s /dev/urandom /dev/random | |
19700101-00:00:22:036|cmd:mkdir /var/run/hostapd -p | |
19700101-00:00:22:038|cmd:ifconfig eth2 up 192.168.10.1 | |
19700101-00:00:22:040|cmd:hostapd /mnt/conf/hostapd.conf -B | |
Configuration file: /mnt/conf/hostapd.conf | |
rfkill: Cannot open RFKILL control device | |
lynx: lynx_cfg80211_scan_complete_event: status aborted | |
lynx: lynx_cfg80211_change_iface(): ndev=c27a0000, original type=2, new type=3 | |
lynx: lynx_cfg80211_disconnect: reason=4 | |
lynx: wlan disable | |
lynx: lynx_wci_update_vif_cmd(): role=2, skb->len=96, wm_bss data len=92(c18590b0 : c1859054) | |
lynx: lynx_wci_addkey_cmd(): can't find the sta idx | |
lynx: lynx_wci_addkey_cmd(): can't find the sta idx | |
lynx: lynx_wci_addkey_cmd(): can't find the sta idx | |
lynx: lynx_wci_addkey_cmd(): can't find the sta idx | |
Using interface eth2 with hwaddr 30:ff:f6:33:f9:ee and ssid "DOG-2W-023563" | |
lynx: lynx_cfg80211_start_ap(): | |
lynx: lynx_set_auth_type: 0x5 | |
lynx: lynx_set_wpa_version: 2 | |
lynx: lynx_set_key_mgmt: 0xfac02 | |
lynx: lynx_set_wpa_version: 2 | |
lynx: lynx_set_cipher: cipher 0xfac04, ucast 1 | |
lynx: lynx_set_cipher: cipher 0xfac04, ucast 0 | |
lynx_cfg80211_start_ap(): vif->prwise_crypto=0x10, vif->grp_crypto=10 | |
lynx: lynx_wci_update_vif_cmd(): role=2, skb->len=96, wm_bss data len=92(c18592b0 : c1859254) | |
lynx: lynx_cfg80211_start_ap():Set AP/GO channel as 6 | |
lynx: lynx_set_cipher: cipher 0xfac04, ucast 0 | |
19700101-00:00:23:045|cmd:udhcpd -fS /usr/sbin/udhcpd.conf & | |
19700101-00:00:23:047|cmd:route add default gw 192.168.10.1 eth2 & | |
udhcpd (v1.20.2) started | |
19700101-00:00:25:034|wifi mode config init finished! | |
Conductor::Create MEDIAAGT | |
19700101-00:00:25:608|Conductor|Initilize | |
19700101-00:00:25:707|Conductor|EnableLog_w pid:562 | |
19700101-00:00:25:709|Conductor|EnableLog:1 | |
19700101-00:00:25:711|device_lan_init: init, stack size=1544, fd=10 | |
19700101-00:00:25:713|polling: init, stack size=264 | |
19700101-00:00:25:714|polling task start | |
19700101-00:00:25:722|jsd_polling_main start, pid :563 | |
19700101-00:00:25:072|BUILD TIME:Dec 6 2018 11:22:34 | |
i2c_write timeout 0x0 | |
i2c_write timeout 0x0 | |
i2c_write timeout 0x0 | |
i2c_write timeout 0x0 | |
19700101-00:00:26:007|Error[xm_isp.c:156] Not Support This Sensor! | |
ERR: sensor_set_chip not support this sensor! | |
ERR: sensor_set_chip not support this sensor! | |
19700101-00:00:26:007|Error[xm_isp.c:199] Resolution err! | |
19700101-00:00:26:007|Error[xm_isp.c:359] ispSampleMain failed! | |
19700101-00:00:26:007|IspSample Exit! | |
ERR: XM_MPI_ISP_GetWBAttr failed! | |
ERR: Get GammaAttr ERR! | |
ERR: XM_MPI_ISP_GetSaturationAttr inputParamer Err! | |
19700101-00:00:26:007|Error[xm_venc.c:483] XM_MPI_ISP_GetSaturationAttr failed! | |
ERR: XM_MPI_ISP_GetCSCAttr inputParamer Err! | |
19700101-00:00:26:008|Error[xm_venc.c:513] XM_MPI_ISP_GetCSCAttr failed | |
19700101-00:00:26:008|stExpAttr.stAuto.u8Compensation:0 | |
19700101-00:00:26:008|stExpAttr.stAuto.u8Compensation:33 | |
19700101-00:00:26:008|VencChn = 0,enType = 96,enNorm = 0,enSize = 11,enRcMode = 1 | |
19700101-00:00:26:008|enNorm = 0,enPicSize = 11 | |
19700101-00:00:26:009|VencChn = 1,enType = 96,enNorm = 0,enSize = 33,enRcMode = 1 | |
19700101-00:00:26:009|enNorm = 0,enPicSize = 33 | |
19700101-00:00:26:009|VencChn = 2,enType = 26,enNorm = 0,enSize = 33,enRcMode = 0 | |
19700101-00:00:26:010|enNorm = 0,enPicSize = 33 | |
19700101-00:00:26:010|get ao volume:-3 | |
19700101-00:00:26:010|set ao volume:-7 | |
19700101-00:00:26:011|init ntp timer finished | |
19700101-00:00:26:011|jpg_venc_thread start | |
19700101-00:00:26:011|start get audio | |
19700101-00:00:26:011|xm_stream_thread start | |
19700101-00:00:26:012|jpg task running! | |
19700101-00:00:26:014|sdcard init finished! | |
19700101-00:00:26:014|xm vda level:3, thresh:2 | |
19700101-00:00:26:014|md init ok | |
19700101-00:00:26:015|jfg_debug init | |
19700101-00:00:26:015|jfg_debug enable | |
19700101-00:00:26:015|jfg_rtmp264_task running | |
19700101-00:00:26:015|jfg_debug: acceptor created: 25 | |
19700101-00:00:26:015|polling: init, stack size=264 | |
19700101-00:00:26:015|polling task start | |
19700101-00:00:26:016|polling_main start:579 | |
19700101-00:00:26:035|ircut switch to night, adc_value:1! | |
19700101-00:00:26:056|xm vda level:1, thresh:4 | |
ERR: XM_MPI_ISP_GetSaturationAttr inputParamer Err! | |
19700101-00:00:26:056|Error[xm_venc.c:483] XM_MPI_ISP_GetSaturationAttr failed! | |
ERR: XM_MPI_ISP_GetCSCAttr inputParamer Err! | |
19700101-00:00:26:058|Error[xm_venc.c:513] XM_MPI_ISP_GetCSCAttr failed | |
19700101-00:00:26:058|stExpAttr.stAuto.u8Compensation:0 | |
19700101-00:00:26:058|stExpAttr.stAuto.u8Compensation:35 | |
ERR: Get GammaAttr ERR! | |
19700101-00:00:27:018|hostapd is run | |
19700101-00:00:27:019|udhcpd is run | |
~ # ls | |
~ # cd / | |
/ # ls | |
var tmp sbin proc linuxrc home dev bin | |
usr sys root mnt lib etc boot | |
/ # cd etc | |
/etc # ls | |
resolv.conf localtime init.d group | |
passwd inittab hosts fstab | |
/etc # cat passwd | |
root:$1$T15UqswL$lSLp/97g/WJYMrX5eBsVK0:0:0::/root:/bin/sh | |
/etc # cat inittab | |
::sysinit:/etc/init.d/rcS | |
#::askfirst:/bin/sh | |
::respawn:/sbin/getty -L ttyS000 115200 vt100 -n root -I "Auto login as root ..." | |
#::respawn:/sbin/getty -L ttyS000 115200 vt100 | |
::ctrlaltdel:/sbin/reboot | |
::shutdown:/bin/umount -a -r | |
::restart:/sbin/init | |
/etc # cd init.d/ | |
/etc/init.d # ls | |
rcS light_flashes.sh dnode check_app.sh | |
/etc/init.d # cat check_app.sh | |
#!/bin/sh | |
proc_name="camera_app" | |
log_file="/mnt/conf/jfg_msglog.txt" | |
return_file="/mnt/conf/search.txt" | |
light_flashes="/etc/init.d/light_flashes.sh" | |
upgrade_file= | |
ret=0 | |
maxsize=$((1024*1024*3)) | |
find_camera() | |
{ | |
sleep 8 | |
proc_id=`pgrep -f $proc_name` | |
if [ -n "$proc_id" ]; then | |
echo "run $proc_name process successed" >> ${log_file} | |
exit | |
else | |
echo "error: run $proc_name failed." >> ${log_file} | |
return 0 | |
fi | |
} | |
find_loop() | |
{ | |
for loop in 1 2 | |
do | |
find_camera | |
result=$? | |
if [ $result -ne 1 ] | |
then | |
ret=0 | |
continue | |
else | |
ret=1 | |
break | |
fi | |
done | |
} | |
find_upgradefile() | |
{ | |
echo "start find upgrade file" | |
find /mnt/conf -path '*JFG*-App.bin*' > ${return_file} | |
upgrade_file=$(cat ${return_file}) | |
if [ -z ${upgrade_file} ] | |
then | |
echo "no find" | |
return 0 | |
else | |
echo "find successed" | |
fi | |
filesize=`stat -c "%s" ${upgrade_file}` | |
if [ ${filesize} -eq ${maxsize} ] | |
then | |
echo "$filesize = $maxsize" >> ${log_file} | |
return 1 | |
else | |
echo "$filesize != $maxsize" >> ${log_file} | |
return 0 | |
fi | |
} | |
find_loop | |
if [ $ret -ne 1 ] | |
then | |
echo "upgrade......" >> $log_file | |
find_upgradefile | |
result=$? | |
if [ $result -eq 1 ] | |
then | |
${light_flashes}& | |
echo "flash_erashall /dev/mtd3" >> ${log_file} | |
flash_eraseall /dev/mtd3 | |
echo "filashcp ${upgrade_file} /dev/mtd3" >> ${log_file} | |
flashcp $upgrade_file /dev/mtd3 | |
echo "reboot" >> ${log_file} | |
reboot | |
else | |
echo "file error" >> ${log_file} | |
fi | |
fi | |
/etc/init.d # cat /proc/partitions | |
major minor #blocks name | |
31 0 256 mtdblock0 | |
31 1 3520 mtdblock1 | |
31 2 2048 mtdblock2 | |
31 3 3072 mtdblock3 | |
31 4 7488 mtdblock4 | |
/etc/init.d # cd /usr/bin | |
/usr/bin # ls | |
wang.pcmu netinit dvrbox dingdong.pcmu alert.pcmu | |
/usr/bin # ls -la | |
total 43 | |
-rwxr--r-- 1 8151 wang.pcmu | |
lrwxrwxrwx 1 6 netinit -> dvrbox | |
-rwxr-xr-x 1 17036 dvrbox | |
-rwxr--r-- 1 7991 dingdong.pcmu | |
-rwxr--r-- 1 8731 alert.pcmu | |
/usr/bin # cat dingdong.pcmu | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~・~・・・~~・~~~~~~~|wuttuttttuttttttttttstuuuuvvuuuvuuuuvvuuuuuuttutttttttttttssssstssttutttttuuuuuuttttuvvuutsstttuvusssstuvvutssssuvwuttssuvvuttuvvvwvtqprsrstuuuusrstrpqrrqpruvvvvvuvuqptxzz{|zy{|zyuqpoopqrtwxvuwz{|}zvronpquz{xtrpopt|ⅹ釚vooquuqmkknu・・{qotzytonnnmmoy焄・齦zkefkpx{{|~|uu・諶egp・~|pigilq~・弡ynmnkeix}v・襠oy・・eclxojv銓oks~|olu弡vprpkimnt閻襄hnod`iz嵓r皷譛ojiq鄕~vkcfv炅ghn}・ 逸袤粫^ii[Vc蛆沍^[b・獻樶\OMVx骼苞yx\\lz聳~he\[l諍嚏[_jm・・汞s艨鯱:J廠缶<38>U? 座ZF?4<?飢粛36BCN?港塁:3D轢媛・@A=.3?験伍51;EN宵暇窘8-5Kq?・LH;/4b掌害膿4;<9_貴 蕎椹-1?T?・北8-->?雨円<3/0@?芦際1,3As幸Ⅵ畸/).N尚・談4,-8?・郎-,1F?・樗8,-:・⑫ 金=/+/H?・菜5--8i広Ⅲ瞭/,2G?鯵常=2-4`晒・殿.+.@α・宙:..;?街仭2.1E?芦徐;..9`小・両2/2D?・佃5.4Bg ̄・盪028Hε・訟9//9R?・卉403B?⑮析7//;p讐・冂416C?云・1/8S?・擁5-/@?・須:1/9l襲扱防4.2B?梓畳<00:b庄・庸4.1??・囚=31:y輯骸枡503D?梓専@31:[3斡庸5/1??嘘錘?53:Yo恩量815@?柿g=21<\?扱麺826C?嘘吹:/0:Z1・鉾614??飴|:008S?圧吠715D?臼受=0/7O?梓苫915B?浬秣517L?欝登800=?・淦1.5L?・地7/0<s衆・慊4/4J?・惇:23=・渦浄A508R?斡貧7/1??・女=0/7Uo扱北703@?旭受=1/8Q?・芭5.3C彳下狒308P?蔚鍍803??音秕21;R? 鰻緬6/1>?渚A518P?蔚藩704@?唄畳>208O?圧瀞914?饅臆腫>207N?圧苫923>}心音狢529O?鰻卜924?鷯害取?32;R?蔚頒:35A?音眄418O?蔚頒913??桓榲628Jθ碍盃:34??旨E628N?慣背;34>s 心浬歸629M?蔚牌;23>wu骸濺727H?乙坪;34>lt音榮728L?憾輩=55=i5穏敍727H?唄壷<33<_o穏拉739K?慣党<44>m5鎧愬627I?俺党<33=q慎鎧敘848I?感凍=55>lv擬敍737J?涯爪<22<k心穏喩727H?涯仲?65=do桓榮728J?涯蓄=54=`o柑喩738J?涯低>55=e÷擬愽838J?概窓>44=_?柑塋838I?感相>54<]?柑卷948I?感藻?43;Y?敢詫:48F?患旋?54<Y?柑冖:58I?儀柱?65<Y?技藁:47F?涯題>43<[?技侘;58H?儀凧@64<Y?技藁;58I?儀柱?65<Z?胸蕨;69G?係兆@65=[?脅厖;59H?係霜B76<X?戯力;58H?狂廷@65=^?柑冖948F?偽穿A65<Y?戯領:48E?径・76=Z?敢蕨;58E?形x@75=\?敢領:47D?形・85<Z?戯熔:47C?乎・86=Z?戯窯<68E?限xB86>]?脅蕨;58F?形兊86=Y?戯羊<58D蠕幻寵C86=X?胸耀<69F?形・86<U?胸厘<68F?形酊86<V?胸耀<58F?契軣75;S?兄網=79E?蕎疇96<Sλ胸羊<68F萓祁占E86<R?矯耗=79F?郷軛75;Pλ矯盲=68D訐祁吹G96<U?矯殆=79D?諺霤96<T?兄耗=79F羸幻炊F96;Oλ胸耗=78D軈幻蝉G:7=T?矯便=68C兊厳占F97<Rλ矯堀>89E貔幻帥H:7<O?狭富=56@|x舷瀏96;Q?宜媒>78?f?型殘;6:Nλ玄父>68H狢差雪F98=P?矯鞭?77?uu洪敲:8=S?減妃?89C~?絃慄;8=N?傾婦=7:Dt・型瀚<7;M?兄圃?77?b?興柬<8<N?源殆>8:F霖昂象J;8=O?梗赴B88Bl?洪數:7=U?減怖?89Bn?絃槓;6:L?宜妃?99Be?現徑=8;K?校普B98Bv?裟枸=9<M?傾彼B:9?^?舷斂<8:H?弦択C98?e?酸孚@;>O?校披@:9?_?絃慘=9<K?限{C99B]?溝殫>9<M?校符B99B神 産裳O?9:I?梗翌F;:Dt?舷寨<8>R拈瑳柏A;<Fe?浩疚<6=辺写F6A蚰殤鰭鋪H9:@G?・n?3-/;侔⑭澗^9.-4M?崖支J@BGHMq慴懈蠇妖付qI94:K?荻鮎R1+-3D?・緊D5-.7Z讐穏剥H==G槢撓^e\\訶江巖C934??・荏R2**/J?・核E538=O?讃咐l・]蛯ZE=@Q?軍仰R4..1>?・・G5-+0Lo鯵彩P;6:EU賽壁嚴賻毛誑E>;<L?渥曲O3**1K?・㌍>.*,3M?⑯旬M=8:Gf框蜍殷佇津厥;659G?⑫杵G2+*2Q侵・逆=.-2>n?宜費NKKO]qz]NM\榲室辛X:009L?・角?/**4W信・指E4/4?g預梢怖n^bxkRHBADT?旭 戸I3++1K.・・=,(+4R ̄・尺J;69?V挂毛慚・旁掫<35>`?・九;.++2N習┼欣?/+,7f5欝衝L==IUX\i・瀝?析rH801:Vo・欽=-),8^小・錯;105B蠱室弛袍NO]thRLLOmξ橋城?2./7W舟・雇>.+.:i3・菅B87=Kl塋変樂嘖汞mOC<;Ew?臼枝@0-.8[蒐・碕=0-/<s6恩想L==ENYm閭渤數槌奚K=77>er・主>/+.;m尚⑭匙<316Ax?舷・TIGO^mk^\c・顛隻軻846=c2⑮書<0-/<鷦握馨・338F・疹掴芻`cn_RKDCKk?慣説B3.0;n蒐・侍:.+.=?・送A87<Jk渮溶嶐蕨嘛qJ>99Ax3・酒;.+-9v広・肴8-,0??温尼I>?FO_km・殍?駄lA624?偆・・^7,*.=?・・X8/.4E秣左宿樅QOPPOLIM_淌昂司[;0.2A?・・O4+*/??⑬佳]<44;L篷電穆捫跫・I?<>M?・潰7-+/>?・・O4,+1E?旭掲a@;;@Os蛬慵嵋兎尤R>749Kи⑫影M3+*/Aβ・・M5.-5I?況淑・FHKNSSR^鑵盛浩嵳90/5H?・映I1**1G?⑬管L834;N瀁真釆梹miaRG?>E]κ臆栽I4--3J?・瑛D0+,4M?・肱N<8;DU・冪嶢楊林・?97<P?・稽F0++3Ld・歌C1-.7O?涯肖YFCEKU^_cp醯他診淕:329Q?・却B/*,4Pp・斤C4/2<X?蚕排靕TUTRNIIRx?傾設F5//8V±・筋?/+-7R?・航I:57?U睫吐卜壙蝮]KB=>Hl?牡淳C3-.7T°・琴?0,.9V?唄瞬P?<=FUy渾孛亙瞥尠K=77?\?・郊@/+,5T侵・禁?0-0;Y?憾赤XGCELV]]^i衢製焼翦8119R?・欣@/+,5Rp・茎D504>W崑湿酉・^]WPIDDJf?感准E4..6P?・禁?/+-7U2・孜H:7:F]簧摸厰墮憔iM@:;Dh?・死>/,-7[小・濠=0-0<`?憾折PC@CKX_gw誚病妥玲C846?l唇・脂<.+.9_尚⑮至@404?_?蚕敦gSPQQPNLO]疆産芝s?4/1<k少・字</-/;a寝・常C86:Fc拱堵撲樒・VJB>@M蠢恭恵k=0.0<}鹿・酒;/-2?rv卸滝K?=?IZw瞹嶇壁墨穰B:8;J?窺柿^9.-0<・・鮎k=2/4@r?梗冬WKJKMOPV`橫捗 渋嗹>515A?⑱折9.-1??・筑>75:Hp涼粗陽zdb_WNGCHW歔昂舎W<304B?・劃V9/.4D?害孤_C<;@Mj槝緑冫巓肭SG?=BU?亀四Q90/5F?・管O9007G?橋舎kI@@FO]i・拵鋲芭鑞>97<Oй旭渓M6..4G?・喫Q:33:J緜室鼠釋OMNOONP[・遜獣變;439L?・渓K6..6J?旭肯O<67>Q稱唾頻璞id\RJDDK_? 幻蒋L9108M?・稽I4./8M?牡煮T?;=DT}殷孕厥侑斫B<;@V?桶屍H5..7N?・経H601:O?減績`LGGKS[_g{猯殿塚・<77=W?旭砦F4./8P?葦砦K:46>S敍真鳶釛UQONMKMZ賈昌叔・934<W?・菜D4/0;X?牡循K<9;CV舂品熔憑鈿YLE?@Jq?儀睡D501;[?・死A3/2=]?狂捜RC?BJWj驥獰亘斌懆J=9:Cf?鯵所@3.0;_3・処B626@`?讃配bPLMPSTTXg疚曽戚qE957@j´・叙>1.1=i4鯵場D96:E_嫺弾耗褪g]UMHDHT臚燦伺m@503>n寝・飾>2/3>o・憾注J><?I[騫嗷厦碗怏\I?<>J・軍恵k>3/3>・億垣m>416Bq?構比THFIOV[bs誦陛追憬D:7:E鮴完義l=2/3?z4圧遭B86:Eg和紳弁nYTSSPMLPb槐晶昔dB847A・完蟻i=304@・恭呼oE;:>Jc枳彬琳瑕寀XKC@ES瀉左蕊a>415B署・紬<317D豼厳縞sKA@EM]{艟柎量窯聒F=:>L?挟紘Z<205C?屋携Y=55;I貲充斥钁MLNSVWZc櫢秒柁柎@97;J?咳孤W;206F?害己Z>88=L猟暖・vd^ZSMIHM_拂嫉壬V=549J?屋景S:218H?袈射_E>>COg穹嗷參忱癆UH@>EY?厳出Q;328J?憶考P;44;M杼沙倉gMFFLT^jx黶毀鰭・RA;:?S?幹姿M9219M?崖子N<78>P淨神排菶SQSTPNQ\・直身篶=77<P?桶市K923;Qλ偽瞬Q?;<BS輟癖羊熕xi]RJEFMm?纂筑L;55<S?桶遮J934<S?弦赤YE?@HUq瞶墺厰孰粡OE??Ga?係酢J934<U?桶邪J:57>V喟悉綴eOJJMTZ^j・糧堵剱L>9:A^?感醤G824<W?感酢L=9;DZ殍篤耗濶^[WRMKN[詬曽進鏆;68?]?感炊F947?\?減低OB>AJ[騙冩 雙槧蝴^OGCDM{?瑳尼G956>^?涯尖E958A`?蚕泌SGDHN[n鞳湶嗤・痲LA=>Iw?刑田847@j?慣喋D97:Ef梁秦魔^OMOTXXZ`x淮播晩fH<9;Fy?憾悌A637Bxo宜日G<:=Ib挧派隣謾g^UNIGKZ瀁住礁fB848C錞恐慶m@748Cu?梗舞ODADM\痒徭厶孵・JA>BO菘燦蕊iA848C礼郡呼kA86:Gw?柔夜WKHJOX_j・徑鰭令ZF=:>L篩原塞`>537D軅郡糠jC:9=In賄惰累mZUSROMNWn挌?綴ZB97;J?挟絞Z=549G 篩昂舎hG>=AMh殪洋冽琲~eWLFEJ\枦嫉積Y?86;J?挟彩W>76<L稍嫉析mMEDIR`|蛬旁佻凉靃G?>CU攸差笑U>75;K?袈捨X@:9>N衒狙苫・PNORUW\i贅米罵縱B<;?Q?晃粧T>77<L歔差壬\E>=CQ靃綿葉笞f^YSNLLTq崙神庇R?99>P?祁菖Q=78>P畋纂戴\HABHSl聒墫壞掵辣QHBBJb卅室竹N=88=R?係靭O=9:@U枦真肺eOJJMT\eu轎厖摸搨OC=>E^?杭袋L<78>W?弦挿N?;<DX瀚兎儲~^WUTTRQVb誄板 椴・?;<C]ν弦隊K<78?Xп沙爪SC>@HW鰆陵・碪ug[QLIJT・朕阻靆>9:A\ν減隊K=8:BZ埖従庇YIEFLWm諳掫忤梳・OHDENr倭従武K=9:A]ν杭貞L=:<D\彳逝盆_OKLOV]fw轎嗄溶汞MB=?Il?瑳 迫H;79Bc?梗泊K?<?Ib數畔凾q_[YXUQPT_誂巴鳶qK>:<Fm?源縛F:7:Ep?讃満MB?CMb耿侑怡芻・^QJGIT靈曽斥mG<8;Fw?兄罷D:8<Hu?樵漣RIGJQ^p・窖徭壅袿MC?BN鯢住硝jD:7:Fz?玄母F=;?Kn卩塗刹aUQRUVWY_t痂僻黙_I><>K・失祝jD:8;G~?讃絡J@?CNi殤洋巫・g^WOLKO_睫蛋噸_F=:=J鐺珊粛aC;:=K・西弛sNFEIQa・框捶桍纖[MFDIW緤疹帯^E<:=J貽失章_E<<?N匇澱挽・NMOU\ajy諂嗄燐諂JA?DR簀充倉\C;9=L蘰充積_G?>COv嵬瞥恁k^[YWTQRZo淮版勿\G>=@O眦嫉績ZB;:>N翡松蔦bKCCITm窈孛昊蜥wdWNIIN`槁疏否WC<;?Q榁算跡UA;;AR禀疏蕃iPIIMUaw閻湍嶮怙rVICBH[敕松奴T@::?Q畋算泰VC==DT蚓杷黙t[TRTWXY]i騫遼毛釀G?>DW拊室築S@::?R/usr/bin # | |
/usr/bin # ls | |
wang.pcmu netinit dvrbox dingdong.pcmu alert.pcmu | |
/usr/bin # ls -la | |
total 43 | |
-rwxr--r-- 1 8151 wang.pcmu | |
lrwxrwxrwx 1 6 netinit -> dvrbox | |
-rwxr-xr-x 1 17036 dvrbox | |
-rwxr--r-- 1 7991 dingdong.pcmu | |
-rwxr--r-- 1 8731 alert.pcmu | |
/usr/bin # cd .. | |
/usr # ls | |
sbin lib etc bin | |
/usr # cd etc | |
/usr/etc # ls | |
loadpublic loadmod | |
/usr/etc # cd / | |
/ # ls | |
var tmp sbin proc linuxrc home dev bin | |
usr sys root mnt lib etc boot | |
/ # cd mnt | |
/mnt # ls | |
mtd logo conf app | |
/mnt # ls -la | |
total 0 | |
drwxr-xr-x 1 0 mtd | |
drwxr-xr-x 1 0 logo | |
drwxr-xr-x 5 0 conf | |
drwxr-xr-x 3 0 app | |
/mnt # cd logo | |
/mnt/logo # ls | |
/mnt/logo # cd .. | |
/mnt # ls | |
mtd logo conf app | |
/mnt # cd .. | |
/ # ls | |
var tmp sbin proc linuxrc home dev bin | |
usr sys root mnt lib etc boot | |
/ # cd bin | |
/bin # ls | |
zip time ps mesg free chmod | |
wget tftp powertop lsz find cat | |
vi test pmap lsof fgrep busybox | |
uslepp sync ping6 ls false basename | |
uptime stat ping lrz env awk | |
uname smemcap pgrep login egrep ash | |
umount sleep nslookup logger echo adduser | |
udpsvd sh nmeter ln dumpleases addgroup | |
ttysize sed netstat killall dmesg [[ | |
tty rmdir mv kill df [ | |
true rm mpstat iostat date | |
traceroute6 regs mount hush cut | |
traceroute pwdx mknod head cttyhack | |
touch pwd mkfifo grep cp | |
top pstree mkdir fuser clear | |
/bin # busybox | |
BusyBox v1.20.2 (2018-03-20 09:46:54 CST) multi-call binary. | |
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko | |
and others. Licensed under GPLv2. | |
See source distribution for full notice. | |
Usage: busybox [function] [arguments]... | |
or: busybox --list[-full] | |
or: busybox --install [-s] [DIR] | |
or: function [arguments]... | |
BusyBox is a multi-call binary that combines many common Unix | |
utilities into a single executable. Most people will create a | |
link to busybox for each function they wish to use and BusyBox | |
will act like whatever it was invoked as. | |
Currently defined functions: | |
addgroup, adduser, arp, arping, ash, awk, basename, cat, chmod, clear, | |
cp, cttyhack, cut, date, depmod, devmem, df, dhcprelay, dmesg, | |
dumpleases, echo, egrep, env, fgrep, find, flash_eraseall, flashcp, | |
free, fuser, getty, grep, halt, hush, ifconfig, init, insmod, iostat, | |
kill, killall, klogd, linuxrc, ln, logger, login, logread, ls, lsmod, | |
lsof, mdev, mesg, mkdir, mkdosfs, mkfifo, mkfs.vfat, mknod, modinfo, | |
modprobe, mount, mpstat, mv, netstat, nmeter, pgrep, ping, ping6, pmap, | |
poweroff, ps, pwd, reboot, rm, rmdir, rmmod, route, sed, sh, sleep, | |
stat, sync, syslogd, telnetd, tftp, time, top, touch, tty, udhcpc, | |
udhcpd, umount, uname, uptime, usleep, vi, wget | |
/bin # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment