代码下载

  • repo init -u gitadmin@gitmirror.spreadtrum.com:android/platform/manifest.git -b sprdroid9.0_trunk
  • repo sync -dcq -j4

代码编译

  • source ./build/envsetup.sh
  • lunch 12
  • kheader
  • make bootimage -j4
  • make systemimage -j4

Android Q

  • cd bsp; source build/envsetup.sh; lunch 2; make headers;make modules
  • cd ${CodeBase}; source build/envsetup.sh; lunch 31;make bootimage -j4 ; cd vendor/sprd/modules/libcamera; mma -j4

烧写kernel & camear动态库

  • sudo ./out/host/linux-x86/bin/fastboot flash boot ./out/target/product/sp9861e_1h10/boot.img
  • adb push ./out/target/product/s9863a1h10/vendor/lib /vendor/lib

adb操作

  • adb root
  • adb remount
  • adb kill-server
  • adb start-server

git操作

  • git blame
  • git show
  • git diff
  • git log
  • git status
  • git checkout
  • git branch -a
  • git gui
  • git push ssh://frank.zhou@10.0.0.160:29418/vendor/sprd/modules/libcamera HEAD:refs/for/9.0_camera_trunk
  • git push ssh://frank.zhou@10.0.0.160:29418/kernel/common HEAD:refs/for/sprdlinux4.4

property

  • raw capture
    adb shell setprop persist.vendor.cam.raw.mode raw
  • test pattern
    adb shell setprop debug.camera.test.mode 1

log capture

  • open kernel log

    • adb shell “echo 7> /proc/sys/kernel/printk”
    • adb shell “cat /proc/sys/kernel/printk”
  • user log
    ~/mk.sh 12 ~/Workspace/log/sharkl3/klog_20190411_01.txt
    adb logcat -c && adb shell logcat -v time | tee ~/Workspace/log/sharkl3/ulog_20190411_01.txt
  • kernel log
    ~/mk.sh 13 ~/Workspace/log/sharkl3/ulog_20190411_01.txt
    adb shell cat /proc/kmsg | tee ~/Workspace/log/sharkl3/klog_20190411_01.txt

关闭selinux

adb shell setenforce 0
adb shell getenforce

关闭zsl

adb shell setprop persist.sys.cam.zsl false
停止/开启cameraserver
adb shell stop cameraserver
adb shell start cameraserver

crash分析

./crash/crash_arm64 -m phys_offset=0x80000000 vmlinux sysdump --cpus 8

关键文件位置

BoardConfig.mk ${codebase}/device/sprd/iwhale2/sp9861e_1h10/BoardConfig.mk
KernelConfig ${codebase}/kernel/arch/arm64/configs/sprd_sharklj1_defconfig
DTS ${codebase}/kernel/arch/arm64/boot/dts/sprd/sharklJ1.dtsi

双摄校准

adb shell setprop persist.vendor.cam.bokeh.dump capdepth

常见问题

  • couldn’t create file: Read-only file system
    adb shell “mount -o rw,remount /mnt/vendor/socko”

持载ssh目录至本地

sudo sshfs -o cache=yes,allow_other frank.zhou@shcompiler.unisoc.com:/home12/frank.zhou /home/local/SPREADTRUM/frank.zhou/Workspace/shcompiler

open debug print

  • adb root
  • adb shell
  • echo -n ‘file isp_core.c +p’ > /sys/kernel/debug/dynamic_debug/control
  • echo -n ‘fille cam_core.c +p’ > /sys/kernel/debug/dynamic_debug/control
  • 清除所有pr_debug输出的log:
    echo -n ‘file *.c -p’ > /sys/kernel/debug/dynamic_debug/control
  • 查看Linux所有线程
    ps -AT | grep zoom

AndroidR

  • open ISP_LOGV打印
    adb shell setprop persist.vendor.cam.mlog.loglevel 555555

unisoc常用命令集相关推荐

  1. MySql常用命令集Mysql常用命令showdatabases;显示数据库createdatab

    MySql 常用命令集 Mysql常用命令 show databases; 显示数据库 create database name; 创建数据库 use databasename; 选择数据库 drop ...

  2. Redis常用命令集

    Redis常用命令集 1)连接操作命令 quit:关闭连接(connection) auth:简单密码认证 help cmd: 查看cmd帮助,例如:help quit 2)持久化 save:将数据同 ...

  3. 命令集matlab,Matlab常用命令集2

    Matlab常用命令集: O o ode1 非Stiff 微分方程变步长解算器 ode15s Stiff 微分方程变步长解算器 ode23t 适度Stiff 微分方程解算器 ode23tb Stiff ...

  4. redis 清空db下_Redis常用命令集,清空redis缓存数据库

    清空数据库: flushdb   // 清除当前数据库的所有keys flushall    // 清除所有数据库的所有keys Redis常用命令集,清空redis缓存数据库 1)连接操作命令qui ...

  5. Linux命令集(Linux常用命令集--CD指令篇)

    Linux命令集(Linux常用命令--CD指令篇) Linux常用命令集(CD指令篇) 1.CD(change directory) Linux常用命令集(CD指令篇) 如下为笔者总结出在linux ...

  6. xp,win7,win2003,win2008常用命令集

    虽然有时用鼠标点几下,也不费事,但如果你习惯使用键盘后,你就会发现用鼠标简直是在浪费时间,其实这也是为什么那些linux怪杰不喜欢windows的原因. 开始"运行"输入命令集 m ...

  7. mysql_mariadb实用常用命令集等2018_LCF

    mysql 和mariadb都是同一作者开发的,所以很多命令基本相通,以及其它数据库,命令很多基本相似. 下面是自己花了不少时间整理出来的常用和实用的命令,希望能对大家有所帮助. 一.查看篇 1) 查 ...

  8. Windows常用命令集

    winver*********检查windows版本 wmimgmt.msc****打开windows管理体系结构(wmi) wupdmgr********windows更新程序 w脚本******* ...

  9. Linux常用命令集

    命令格式:命令 参数 对象 参数: 长格式 --help 短格式 -h 对象:要处理的对象,目录,用户等 1.帮助命令 man 命令名(用于查看命令的使用与参数) 命令名 --help(用于查看命令的 ...

最新文章

  1. java面试-死锁产生、定位、修复
  2. Hive表联合查询语句参考
  3. 海量数据处理 - 10亿个数中找出最大的10000个数(top K)
  4. oracle table 函数使用
  5. 台积电2nm工艺有望2023年风险试产 次年大规模投产
  6. git untracked working tree files would be overwritten by merge
  7. ps用计算机,教你用photoshop绘制计算器
  8. 单片机牛人的学习经历
  9. 任正非:华为留不住人才是我的痛!
  10. linux下删除空白行命令
  11. L - Evenly Separated Strings
  12. 2022年第五届全国青少年人工智能创新挑战赛
  13. WIN2003 装不上mssql2000
  14. matlab学位论文绘图美化工具_MATLAB绘图美化超全超实用教程
  15. java Base64加密解密中文乱码处理
  16. TexturePacker导入unity后图片还是显示成整图
  17. 抽拉式服务器显示器拆卸,显示器底座怎么拆卸
  18. ML之SSL:Semi-Supervised Learning半监督学习的简介、应用、经典案例之详细攻略
  19. ZOJ 3810 A Volcanic Island(四色定理模板)
  20. android APP内显示PDF文件

热门文章

  1. c语言disp函数_disp 在matlab中是什么意思
  2. 优化问题---梯度、方向导数、法线
  3. m4v格式如何转换mp4?分享m4v转换mp4的方法
  4. MIT计算机科学录取分数线,美国麻省理工学院分数线 美国麻省理工学院录取要求...
  5. C/C++ 语言 const 关键字
  6. 爱普生连续供墨系统故障排除方法
  7. Javascript或HTML代码该怎么进行压缩美化?
  8. 2020年R2移动式压力容器充装多少分及格及R2移动式压力容器充装考试申请表
  9. 【Numpy】多维度切片截取
  10. (目标检测)①数据集的建立(拍摄收集、数据集标注)