全志R16平台的tinav2.1系统关闭adb_shell的步骤
2017/8/2 10:26
开发板:SC3817R
SDK:tina V2.1
1、原始编译:
rootroot@cm-System-Product-Name:/home/wwt$ tar zxvf tinaV2.1_wyb_20170302_patch_leo_20161102.tar.gz
rootroot@cm-System-Product-Name:/home/wwt$
rootroot@cm-System-Product-Name:/home/wwt$ mv tinaV2.1 close_adb_shell_tinav2.1
rootroot@cm-System-Product-Name:/home/wwt$
rootroot@cm-System-Product-Name:/home/wwt$ cd close_adb_shell_tinav2.1/
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ source build/envsetup.sh
including target/allwinner/tulip-d1/vendorsetup.sh
including target/allwinner/octopus-sch/vendorsetup.sh
including target/allwinner/azalea-perf2/vendorsetup.sh
including target/allwinner/azalea-perf3/vendorsetup.sh
including target/allwinner/octopus-dev/vendorsetup.sh
including target/allwinner/astar-evb/vendorsetup.sh
including target/allwinner/generic/vendorsetup.sh
including target/allwinner/azalea-perf1/vendorsetup.sh
including target/allwinner/astar-parrot/vendorsetup.sh
including target/allwinner/astar-spk/vendorsetup.sh
including target/allwinner/azalea-evb/vendorsetup.sh
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. tulip_d1-tina
2. tulip_d1-dragonboard
3. octopus_sch-tina
4. octopus_sch-dragonboard
5. azalea_perf2-tina
6. azalea_perf2-dragonboard
7. azalea_perf3-tina
8. azalea_perf3-dragonboard
9. octopus_dev-tina
10. octopus_dev-dragonboard
11. astar_evb-tina
12. azalea_perf1-tina
13. azalea_perf1-dragonboard
14. astar_parrot-tina
15. astar_parrot-dragonboard
16. astar_spk-tina
17. astar_spk-dragonboard
18. azalea_evb-tina
19. azalea_evb-dragonboard
Which would you like?14
============================================
PLATFORM_VERSION_CODENAME=Neptune
PLATFORM_VERSION=2.0.0
TARGET_PRODUCT=astar_parrot
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_cpu_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_cpu_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=57513AA3
OUT_DIR=
============================================
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ make -j12
Kernel: arch/arm/boot/zImage is ready
make[5]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1/lichee/linux-3.4'
cmp -s /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/vmlinux /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/vmlinux.debug || { arm-openwrt-linux-muslgnueabi-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/vmlinux /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/vmlinux; arm-openwrt-linux-muslgnueabi-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/vmlinux /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/vmlinux.elf; cp -fpR /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/vmlinux /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/vmlinux.debug; cp -fpR /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/arch/arm/boot//zImage /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/zImage; }
touch /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/linux-3.4.39/.image
make -C ../generic/image compile install TARGET_BUILD=
make[5]: Entering directory `/home/wwt/close_adb_shell_tinav2.1/target/allwinner/generic/image'
make[5]: Nothing to be done for `compile'.
mkdir -p /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/tmp
# Use symbolic permissions to avoid clobbering SUID/SGID/sticky bits
find /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs -type f -not -perm /0100 -not -name 'ssh_host*' -not -name 'shadow' -print0 | xargs -r -0 chmod u+rw,g+r,o+r
find /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs -type f -perm /0100 -print0 | xargs -r -0 chmod u+rwx,g+rx,o+rx
find /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs -type d -print0 | xargs -r -0 chmod u+rwx,o+rx
install -d -m0755 /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs/tmp /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs/overlay
chmod 1777 /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs/tmp
mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n 'ARM OpenWrt Linux-3.4.39' -d /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/zImage /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/astar-parrot-uImage
Image Name: ARM OpenWrt Linux-3.4.39
Created: Thu Jan 1 00:00:00 1970
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3247120 Bytes = 3171.02 kB = 3.10 MB
Load Address: 40008000
Entry Point: 40008000
rm -f /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/boot.img
mkdosfs /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/boot.img -C 4096
mkfs.fat 3.0.27 (2014-11-12)
mcopy -i /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/boot.img /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/astar-parrot-uImage ::uImage
/home/wwt/close_adb_shell_tinav2.1/out/host/bin/mksquashfs4 /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/root.squashfs -nopad -noappend -root-owned -comp xz -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 1
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/root.squashfs,block size 262144.
Pseudo file "/dev" exists in source filesystem "/home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/rootfs/dev".
Ignoring,exclude it (-e/-ef) to override.
[================================================================================================================================================================================================/] 586/586 100%
Exportable Squashfs 4.0 filesystem,xz compressed,data block size 262144
compressed data,compressed Metadata,compressed fragments,no xattrs
duplicates are removed
Filesystem size 6044.99 Kbytes (5.90 Mbytes)
36.40% of uncompressed filesystem size (16605.44 Kbytes)
Inode table size 6720 bytes (6.56 Kbytes)
24.27% of uncompressed inode table size (27687 bytes)
Directory table size 8005 bytes (7.82 Kbytes)
48.69% of uncompressed directory table size (16441 bytes)
Number of duplicate files found 7
Number of inodes 827
Number of files 560
Number of fragments 35
Number of symbolic links 196
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 70
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
dd if=/home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/compile_dir/target/linux-astar-parrot/root.squashfs of=/home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/rootfs.img bs=128k conv=sync
47+1 records in
48+0 records out
6291456 bytes (6.3 MB) copied,0.0103971 s,605 MB/s
( cd /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs md5sum --binary > md5sums )
( cd /home/wwt/close_adb_shell_tinav2.1/out/astar-parrot ; find -maxdepth 1 -type f \! -name 'md5sums' -printf "%P\n" | sort | xargs openssl dgst -sha256 > sha256sums )
make[5]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1/target/allwinner/generic/image'
make[4]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1/target/allwinner/astar-parrot'
make[3]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1/target/allwinner'
make[2]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1'
export MAKEFLAGS= ;make -w -r package/index
make[2]: Entering directory `/home/wwt/close_adb_shell_tinav2.1'
Generating package index...
Signing key has not been configured
make[2]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1'
make[1]: Leaving directory `/home/wwt/close_adb_shell_tinav2.1'
#### make completed successfully (09:40 (mm:ss)) ####
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ pack -d
No kernel param,parse it from astar
copying tools file
copying configs file
image/aultls32.fex
image/aultools.fex
image/boot_package.fex
image/cardscript.fex
image/cardscript_secure.fex
image/cardtool.fex
image/env_burn.cfg
image/env.cfg
image/env_dragonboard.cfg
image/image.cfg
image/image_linux.cfg
image/split_xxxx.fex
image/sunxi.fex
image/sys_config.fex
image/sys_partition_dragonboard.fex
image/sys_partition_dump.fex
image/sys_partition.fex
image/sys_partition_nor.fex
image/sys_partition_private.fex
image/test_config.fex
image/toc0.fex
image/toc1.fex
image/usbtool.fex
image/usbtool_test.fex
/home/wwt/close_adb_shell_tinav2.1
copying boot resource
copying boot file
uart -> card0
packing for tina linux
normal
load file: boot0_spinor.fex ok
load file: u-boot-spinor.fex ok
load file: sunxi_mbr.fex ok
load file: sys_partition.bin ok
load file: boot-resource.fex ok
load file: env.fex ok
load file: boot.fex ok
load file: rootfs.fex ok
this is not a partition key
merge_package ok
/home/wwt/close_adb_shell_tinav2.1/out/host/bin/
/home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/image
Begin Parse sys_partion.fex
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=14000Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=400000Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=600000sys_config.fex Len: 0xf667
config.fex Len: 0x9e4c
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xba6
sunxi.fex Len: 0x9
boot0_nand.fex Len: 0x8000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0xd8000
toc1.fex Len: 0x8
toc0.fex Len: 0x8
fes1.fex Len: 0x3180
full_img.fex Len: 0xe30000
boot_package.fex Len: 0x10
usbtool.fex Len: 0x23000
aultools.fex Len: 0x27c29
aultls32.fex Len: 0x2455d
cardtool.fex Len: 0x11a00
cardscript.fex Len: 0x6ea
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
boot-resource.fex Len: 0x14000
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x400000
Vboot.fex Len: 0x4
rootfs.fex Len: 0x600000
Vrootfs.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------
/home/wwt/close_adb_shell_tinav2.1/out/astar-parrot/tina_astar-parrot_card0.img
pack finish
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
刷机之后是可以连接adb的:
Microsoft Windows [版本 6.1.7600]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>adb shell
BusyBox v1.24.1 () built-in shell (ash)
_____ _ __ _
|_ _||_| ___ _ _ | | |_| ___ _ _ _ _
| | _ | || | | |__ | || || | ||_'_|
| | | || | || _ | |_____||_||_|_||___||_,_|
|_| |_||_|_||_|_| Tina is Based on OpenWrt!
----------------------------------------------
Tina Linux (Neptune,57513AA3)
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
root@TinaLinux:/#
2、关闭ADB SHELL:
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ make menuconfig
Allwinner --->
<*> adb................................................... adb for tina linux
修改为:
< > adb................................................... adb for tina linux
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ make -j12
rootroot@cm-System-Product-Name:/home/wwt/close_adb_shell_tinav2.1$ pack -d
重新刷机之后,确认adb连接不了:
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>adb shell
error: device not found
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>
C:\Users\Administrator>