D:\>adb push z.lib /mnt/extsd
[100%] /mnt/extsd/z.lib
试了一下 adb push 命令 OK, adb pull 命令貌似不行, adb shell 命令直接close.
也支持 adb logcat 命令
D:\>adb logcat
E/zkgui ( 36): readJsonFile /mnt/extsd/EasyUI.cfg fail errno: No such file o
r directory !!!
E/zkgui ( 36): initEasyUICfg ok!
D/zkgui ( 36): mRatio: 2.450000, mMinBrightness: 10, mMaxBrightness: 100, ma
xBrightness: 255, mBrightness: 100
E/zkgui ( 36): readJsonFile zh_CN.json fail errno: No such file or directory
!!!
D/zkgui ( 36): ExecuteThread start...
D/zkgui ( 36): ExecuteThread end...
D/zkgui ( 36): registerActivity name: adActivity OK!
D/zkgui ( 36): registerActivity name: inputtextActivity OK!
D/zkgui ( 36): registerActivity name: mainActivity OK!
D/zkgui ( 36): registerActivity name: musicActivity OK!
D/zkgui ( 36): registerActivity name: qrcodeActivity OK!
D/zkgui ( 36): registerActivity name: tesListActivity OK!
D/zkgui ( 36): registerActivity name: testButtonActivity OK!
D/zkgui ( 36): registerActivity name: testSliderActivity OK!
D/zkgui ( 36): registerActivity name: testTextActivity OK!
D/zkgui ( 36): registerActivity name: testpointerActivity OK!
D/zkgui ( 36): registerActivity name: video2Activity OK!
D/zkgui ( 36): registerActivity name: videoActivity OK!
D/zkgui ( 36): registerActivity name: waveViewActivity OK!
D/zkgui ( 36): registerActivity name: windowActivity OK!
D/zkgui ( 36): registerActivity name: SoftApSettingActivity OK!
D/zkgui ( 36): registerActivity name: UpgradeActivity OK!
D/zkgui ( 36): registerActivity name: WifiSettingActivity OK!
D/zkgui ( 36): registerActivity name: ZKSettingActivity OK!
D/zkgui ( 36): registerActivity name: DeveloperSettingActivity OK!
D/zkgui ( 36): registerActivity name: PowerOffActivity OK!
D/zkgui ( 36): registerActivity name: NetSettingActivity OK!
D/zkgui ( 36): registerActivity name: TouchCalibrationActivity OK!
D/zkgui ( 36): registerActivity name: LanguageSettingActivity OK!
D/zkgui ( 36): registerControl
D/zkgui ( 36): RegisterWindowClass zk_circlebar is OK!
D/zkgui ( 36): RegisterWindowClass zk_button is OK!
D/zkgui ( 36): RegisterWindowClass zk_diagram is OK!
D/zkgui ( 36): RegisterWindowClass zk_videoview is OK!
D/zkgui ( 36): RegisterWindowClass zk_cameraview is OK!
D/zkgui ( 36): RegisterWindowClass zk_digitalclock is OK!
D/zkgui ( 36): RegisterWindowClass zk_seekbar is OK!
D/zkgui ( 36): RegisterWindowClass zk_edittext is OK!
D/zkgui ( 36): RegisterWindowClass zk_checkbox is OK!
D/zkgui ( 36): RegisterWindowClass zk_qrcode is OK!
D/zkgui ( 36): RegisterWindowClass zk_radiogroup is OK!
D/zkgui ( 36): RegisterWindowClass zk_pointer is OK!
D/zkgui ( 36): RegisterWindowClass zk_animview is OK!
D/zkgui ( 36): RegisterWindowClass zk_listview is OK!
D/zkgui ( 36): RegisterWindowClass zk_timer is OK!
D/zkgui ( 36): RegisterWindowClass zk_slidetext is OK!
D/zkgui ( 36): RegisterWindowClass zk_textview is OK!
D/zkgui ( 36): RegisterWindowClass zk_scrollwindow is OK!
D/zkgui ( 36): RegisterWindowClass zk_scrollwindowpage is OK!
D/zkgui ( 36): RegisterWindowClass zk_slidewindow is OK!
D/zkgui ( 36): RegisterWindowClass zk_window is OK!
D/zkgui ( 36): mConnectFD = 10 .
D/zkgui ( 36): isMount checkPath=/mnt/extsd
D/zkgui ( 36): MountMonitor addMountListener pListener: 0x4020840c
D/zkgui ( 36): openUart pFileName = /dev/ttyS2, baudRate = 4098
D/zkgui ( 36): openUart mIsOpen = 1
D/zkgui ( 36): registerGlobalTouchListener
D/zkgui ( 36): registerProtocolDataUpdateListener
D/zkgui ( 36): LoadBitmapFromFile pPath: /system/res/internal/, load Error r
et: -2
D/zkgui ( 36): mSlidePageInfosList.size: 2
D/zkgui ( 36): hideStatusBar
D/zkgui ( 36): registerGlobalTouchListener
D/zkgui ( 36): registerProtocolDataUpdateListener
D/zkgui ( 36): hitIndex: -1
D/zkgui ( 36): MSG_LBUTTONUP needToRoll
D/zkgui ( 36): roll animation end!!!
D/zkgui ( 36): hitIndex: 2
D/zkgui ( 36): MSG_LBUTTONUP needToRoll
D/zkgui ( 36): roll animation end!!!
离线
adb shell mksh, 串口log被关闭了, 屏自带的shell不能cp, 不能cat, 用openwrt编译出来的busybox, 放在SD卡里, 可以运行
厉害啊,果然 adb shell mksh 能进入, 接着弄个 busybox 到 sd 卡试一试.
[2018-12-24 11:32.04] ~
[Administrator.PC-20170510YOBI] ➤ /cygdrive/d/android-sdk/platform-tools/adb.exe shell mksh
zkswe@flythings:/ # /mnt/extsd/busybox ls /
/mnt/extsd/busybox ls /
bin dev init mnt res sys tmp
data etc lib proc sbin system
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ #
zkswe@flythings:/ # clear
clear
mksh: clear: not found
127|zkswe@flythings:/ # cls
cls
mksh: cls: not found
127|zkswe@flythings:/ # /mnt/extsd/busybox clear
/mnt/extsd/busybox clear
zkswe@flythings:/ # /mnt/extsd/busybox dmesg
/mnt/extsd/busybox dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.10.65 (jf@jf) (gcc version 5.2.1 (OpenWrt/Linaro GCC 5.2-2015.11-2 2016-11-07) ) #100 Fri Sep 28 03:03:53 UTC 2018
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: zkswe-z6x, model: Zkswe Z6s platform
[ 0.000000] cma: CMA: reserved 8 MiB at 81800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat c05d5bf0, node_mem_map c05ec000
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8192 pages, LIFO batch:0
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: loglevel=0 initcall_debug=0 lpj=1376256 cma=5m
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Memory: 32MB = 32MB total
[ 0.000000] Memory: 18048k/18048k available, 14720k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc2800000 - 0xff000000 ( 968 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc02b9e34 (2760 kB)
[ 0.000000] .init : 0xc02ba000 - 0xc04ffd7c (2328 kB)
[ 0.000000] .data : 0xc0500000 - 0xc05d64c8 ( 858 kB)
[ 0.000000] .bss : 0xc05d64c8 - 0xc05eb0a4 ( 83 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000150] Calibrating delay loop (skipped) preset value.. 275.25 BogoMIPS (lpj=1376256)
[ 0.000185] pid_max: default: 32768 minimum: 301
[ 0.000576] Mount-cache hash table entries: 512
[ 0.001679] CPU: Testing write buffer coherency: ok
[ 0.002419] Setting up static identity map for 0xc0258cb8 - 0xc0258cf4
[ 0.004863] pinctrl core: initialized pinctrl subsystem
[ 0.006850] NET: Registered protocol family 16
[ 0.009679] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.013229] z6s-pinctrl pio: initialized z6s driver
[ 0.021214] bio: create slab <bio-0> at 0
[ 0.022141] pwm module init!
[ 0.025458] Advanced Linux Sound Architecture Driver Initialized.
[ 0.029175] NET: Registered protocol family 2
[ 0.031093] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.031155] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.031187] TCP: Hash tables configured (established 512 bind 512)
[ 0.031340] TCP: reno registered
[ 0.031377] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.031422] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.031933] NET: Registered protocol family 1
[ 0.481252] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.481805] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.482619] msgmni has been set to 51
[ 0.483551] io scheduler noop registered
[ 0.483672] io scheduler cfq registered (default)
[ 0.538104] uart1: ttyS1 at MMIO 0x1c25400 (irq = 102) is a Z6S
[ 0.538996] uart2: ttyS2 at MMIO 0x1c25800 (irq = 103) is a Z6S
[ 0.541482] spi spi0: master is unqueued, this is deprecated
[ 0.542685] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.544622] 5 zkswepart partitions found on MTD device (null)
[ 0.544658] Creating 5 MTD partitions on "(null)":
[ 0.544692] 0x000000000000-0x000000020000 : "uboot"
[ 0.546140] 0x000000020000-0x000000540000 : "boot"
[ 0.547599] 0x000000540000-0x000000600000 : "data"
[ 0.548894] 0x000000600000-0x000001000000 : "res"
[ 0.550193] 0x000001000000-0x000001000000 : "UDISK"
[ 0.550217] mtd: partition "UDISK" is out of reach -- disabled
[ 0.551891] i2c /dev entries driver
[ 0.553540] z6s-mmc sdc0: Failed getting OCR mask: 0
[ 0.588909] logger: created 128K log 'log_main'
[ 0.590265] spk gpio valid!
[ 0.796851] z6s-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[ 0.796898] z6s-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[ 0.796922] z6s-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[ 0.796945] z6s-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[ 0.796970] zkswe-codec-machine sound.1: ASoC: DAPM unknown pin External Speaker
[ 0.804941] zkswe-codec-machine sound.1: z6s-codec <-> 1c23c00.cpudai0-controller mapping ok
[ 0.805062] zkswe-codec-machine sound.1: ASoC: no sink widget found for MainMic Bias
[ 0.805095] zkswe-codec-machine sound.1: ASoC: Failed to add route External MainMic -> direct -> MainMic Bias
[ 0.805119] zkswe-codec-machine sound.1: ASoC: no source widget found for MainMic Bias
[ 0.805143] zkswe-codec-machine sound.1: ASoC: Failed to add route MainMic Bias -> direct -> MIC1P
[ 0.805166] zkswe-codec-machine sound.1: ASoC: no source widget found for MainMic Bias
[ 0.805191] zkswe-codec-machine sound.1: ASoC: Failed to add route MainMic Bias -> direct -> MIC1N
[ 0.806906] TCP: cubic registered
[ 0.807001] VFP support v0.3: not present
[ 0.810522] usb_serial_number:20080411
[ 0.811117] android_usb gadget: android_usb ready
[ 0.811261] get ctp_power is fail, -22
[ 0.811279] get ctp_power_ldo_vol is fail, -22
[ 0.811300] ctp_fetch_sysconfig_para: ctp_power_io is invalid.
[ 0.937035] sunxi_i2c_do_xfer()945 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x5d)
[ 0.937300] sunxi_i2c_do_xfer()945 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x5d)
[ 0.937523] sunxi_i2c_do_xfer()945 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x5d)
[ 0.937731] sunxi_i2c_do_xfer()945 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x5d)
[ 0.937935] sunxi_i2c_do_xfer()945 - [i2c2] incomplete xfer (status: 0x20, dev addr: 0x5d)
[ 1.056626] <<-GTP-ERROR->> GTP i2c test failed time 1.
[ 1.097122] input: gt9xx as /devices/virtual/input/input0
[ 1.098215] i2c-core: driver [gt9xx] using legacy suspend method
[ 1.098244] i2c-core: driver [gt9xx] using legacy resume method
[ 1.098443] ALSA device list:
[ 1.098472] #0: audiocodec
[ 1.099720] zkswe_init ok!
[ 1.100011] Warning: unable to open an initial console.
[ 1.112550] Freeing unused kernel memory: 2324K (c02ba000 - c04ff000)
[ 1.141891] init: could not import file '/init.zkswe-z6x.rc' from '/etc/init.rc'
[ 1.380326] jffs2: notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 1.402273] android_usb: already disabled
[ 1.436794] adb_open
[ 1.436841] adb_bind_config
[ 6.565733] android_work: sent uevent USB_STATE=CONNECTED
[ 7.063498] android_usb gadget: high-speed config #1: android
[ 7.063916] android_work: sent uevent USB_STATE=CONFIGURED
[ 13.243532] adbd (52): /proc/52/oom_adj is deprecated, please use /proc/52/oom_score_adj instead.
zkswe@flythings:/ #
离线
下载: https://busybox.net/downloads/busybox-1.29.3.tar.bz2
配置下面两项:
CONFIG_STATIC=y
CONFIG_CROSS_COMPILER_PREFIX="arm-linux-"
然后 make, 接着以下操作:
c:\> adb push busybox /mnt/extsd/
c:\> adb shell mksh
#chmod 777 /mnt/extsd/busybox
#/mnt/extsd/busybox ls /
#/mnt/extsd/busybox dmesg
离线
离线
/mnt/extsd/busybox dd if=/dev/mtd/mtd0 of=/mnt/extsd/mtd0.bin
/mnt/extsd/busybox dd if=/dev/mtd/mtd1 of=/mnt/extsd/mtd1.bin
/mnt/extsd/busybox dd if=/dev/mtd/mtd2 of=/mnt/extsd/mtd2.bin
/mnt/extsd/busybox dd if=/dev/mtd/mtd3 of=/mnt/extsd/mtd3.bin
/mnt/extsd/busybox dd if=/dev/mtd/mtd4 of=/mnt/extsd/mtd4.bin
通过上面的指令,可以把 flash 数据备份起来.
zkswe@flythings:/ # /mnt/extsd/busybox ls /mnt/extsd -l
total 18496
d---rwxr-x 2 1000 1023 32768 Jan 1 1980 SY
----rwxr-x 1 1000 1023 2103112 Dec 24 2018 busybox
----rwxr-x 1 1000 1023 131072 Jan 1 00:37 mtd0.bin
----rwxr-x 1 1000 1023 5373952 Jan 1 00:37 mtd1.bin
----rwxr-x 1 1000 1023 786432 Jan 1 00:37 mtd2.bin
----rwxr-x 1 1000 1023 10485760 Jan 1 00:38 mtd3.bin
----rwxr-x 1 1000 1023 0 Jan 1 00:38 mtd4.bin
mksh 原来躲在这里面:
zkswe@flythings:/ # /mnt/extsd/busybox ls /bin -l
/mnt/extsd/busybox ls /bin -l
total 452
-rwxr-xr-x 1 0 0 98797 Sep 26 2018 adbd
lrwxrwxrwx 1 0 0 7 Sep 28 2018 cat -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 chmod -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 chown -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 cp -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 df -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 getprop -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 insmod -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 kill -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 ln -> toolbox
-rwxr-xr-x 1 0 0 12297 Sep 26 2018 logcat
lrwxrwxrwx 1 0 0 7 Sep 28 2018 ls -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 lsmod -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 mkdir -> toolbox
-rwxr-xr-x 1 0 0 225655 Sep 26 2018 mksh
lrwxrwxrwx 1 0 0 7 Sep 28 2018 mount -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 mv -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 printenv -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 ps -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 reboot -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 renice -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 rm -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 rmdir -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 rmmod -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 setprop -> toolbox
lrwxrwxrwx 1 0 0 4 Sep 28 2018 sh -> mksh
lrwxrwxrwx 1 0 0 7 Sep 28 2018 sync -> toolbox
-rwxr-xr-x 1 0 0 53275 Sep 26 2018 toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 top -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 umount -> toolbox
-rwxr-xr-x 1 0 0 49206 Sep 26 2018 vold
-rwxr-xr-x 1 0 0 4095 Sep 27 2018 zkgui
lrwxrwxrwx 1 0 0 7 Sep 28 2018 zkstart -> toolbox
lrwxrwxrwx 1 0 0 7 Sep 28 2018 zkstop -> toolbox
测试电容触摸屏:
/mnt/extsd/busybox cat /dev/input/event1
离线
离线