日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

unisoc常用命令集

發布時間:2023/12/8 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 unisoc常用命令集 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

代碼下載

  • 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常用命令集的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。