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

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

git系列------如何升级fw(测试专用)

發(fā)布時間:2023/12/29 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 git系列------如何升级fw(测试专用) 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

? 最近懷疑bug是由于fw太舊的問題,所以就升級一下fw作為測試

首先git clone下載fw

然后到vendor/qcom/proprietary目錄下做patch,git log找到第一條提交

commit 6e60d7404fd375f9eca2c79a0a0e4ff76ed4cb06
Author: matthew_xuan <Matthew_Xuan@asus.com>
Date: ? Wed Dec 21 15:19:50 2016 +0800


? ? init
? ??
? ? Signed-off-by: matthew_xuan <Matthew_Xuan@asus.com>

然后git format-patch -s efc594e56b60192bd4e6c30871021842319afc62把這條提交之后的提交都給做成patch

然后到fw所在文件夾下的spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom目錄下準(zhǔn)備打patch

結(jié)果

matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom$ git am /media/matt2/aquarius-n-mp-branch-21.40.15-1/vendor/qcom/proprietaryqq/0003-MSM8953-BSP-RIL-add-ASUS-Event-Log-for-RIL-4-4.patch
previous rebase directory /media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/.git/rebase-apply still exists but mbox given.
matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom$ ls
DEADJOE ?proprietary
matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom$ cd proprietary/
matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom/proprietary$ git init
Initialized empty Git repository in /media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom/proprietary/.git/
matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom/proprietary$ ls
android-perf ?csm ? ? ?fastmmi ? kernel-tests ? ? ? ? ? ? mm-camerasdk ?mm-video ? ? ? ?qcril ? ? ? ? ? ? ? qmi-framework ?securemsm ? ? ? ? telephony-apps ? ? ?ultrasound ?wlan
biometrics ? ?data ? ? fm ? ? ? ?llvm-arm-toolchain-ship ?mm-core ? ? ? mm-video-utils ?qcrilOemHook ? ? ? ?qrdplus ? ? ? ?sensors ? ? ? ? ? telephony-fwk ? ? ? vpp
bt ? ? ? ? ? ?diag ? ? ftm ? ? ? mdm-helper ? ? ? ? ? ? ? mm-osal ? ? ? modem-apis ? ? ?qcril-qmi-services ?remotefs ? ? ? SmartCardService ?thermal-engine ? ? ?wfd
cne ? ? ? ? ? display ?gps ? ? ? mm-audio ? ? ? ? ? ? ? ? mm-parser ? ? nqnfc-firmware ?qdssagent ? ? ? ? ? scve ? ? ? ? ? ss-restart ? ? ? ?time-services ? ? ? wigig
common ? ? ? ?fastcv ? ims-ship ?mm-camera ? ? ? ? ? ? ? ?mm-still ? ? ?prebuilt_HY11 ? qmi ? ? ? ? ? ? ? ? SecProtect ? ? ss-services ? ? ? uim_remote_service ?wipower
matthew@matthew:/media/matt2/spf2.0-r05000.1.75484.1/qcom_firmware/LA.UM.5.6/LINUX/android/vendor/qcom/proprietary$ git am /media/matt2/aquarius-n-mp-branch-21.40.15-1/vendor/qcom/proprietaryqq/0003-MSM8953-BSP-RIL-add-ASUS-Event-Log-for-RIL-4-4.patch
Applying: add ASUS Event Log for RIL (4/4)
error: qcril/common/data/qcril_data_netctrl.c: does not exist in index
error: qcril/common/data/qcril_data_req_resp.c: does not exist in index
error: qcril/qcril_qmi/qcril_log.c: does not exist in index
error: qcril/qcril_qmi/qcril_log.h: does not exist in index
Patch failed at 0001 add ASUS Event Log for RIL (4/4)
When you have resolved this problem run "git am --resolved".
If you would prefer to skip this patch, instead run "git am --skip".
To restore the original branch and stop patching run "git am --abort".


很明顯出錯了,原因在于patch里修改的文件的路徑其實和fw這邊的git不是同一個,也就是起始目錄不同,所以只能在

qcom目錄下

git init


git add -A


git commit -s -m "init"

新建git然后打上第一個git log

然后在git apply --reject patch名直接打即可


總結(jié)

以上是生活随笔為你收集整理的git系列------如何升级fw(测试专用)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。