共计 2093 个字符,预计需要花费 6 分钟才能阅读完成。
1.git 分支提取
git clone -b SC60_Android7.1.2_1+8_NO_PMI --single-branch "http://CZKN@202.111.194.162:8088/a/SC60/sc60_android7.1.2"
git clone -b SC60_Android7.1.2_NO_PMI --single-branch "http://CZKN@202.111.194.162:8088/a/SC60/sc60_android7.1.2"
2.openssl 版本问题 openssl-1.0.2g.tar.gz
3.su 的 patch
SC60R02_EnableUserRoot_20200427.patch(包名)
git apply +(门路)
4.camera 的 patch
carmera+291.zip(包名)解压 new 文件夹笼罩到 carmera 文件夹
cp -rf /root/patch/carmera/* /root/sc60_android7.1.2_nopmi/
5.spi 的 patch
diff --git a/kernel/msm-3.18/arch/arm/boot/dts/qcom/msm8953-mtp.dtsi b/kernel/msm-3.18/arch/arm/boot/dts/qcom/msm8953-mtp.dtsi
index 098155867c..4cff4aa8fe 100755
--- a/kernel/msm-3.18/arch/arm/boot/dts/qcom/msm8953-mtp.dtsi
+++ b/kernel/msm-3.18/arch/arm/boot/dts/qcom/msm8953-mtp.dtsi
@@ -13,6 +13,10 @@
#include "msm8953-pinctrl.dtsi"
#include "msm8953-audio-mtp.dtsi"
+
+&spi_6 {
+ status = "ok";
+};
//barnett-> del spi3
//&spi_3 { /* BLSP1 QUP3 */
/* spi-max-frequency = <16000000>;
@@ -335,7 +339,19 @@
gpio-clock {
compatible = "qcom,fct_gpio_clk";
pwm-gpio = <36>;
- };
+ };
+
+ spi@7af6000{
+ status = "ok";
+ spidev0@0 {
+ compatible = "rohm,dh2228fv";
+ reg = <0x0>;
+ spi-max-frequency = <19600000>;
+ #address-cells = <1>;
+ size-cells = <1>;
+ };
+ };
+
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
diff --git a/kernel/msm-3.18/arch/arm64/configs/msmcortex_defconfig b/kernel/msm-3.18/arch/arm64/configs/msmcortex_defconfig
index bf8c6004bf..cb7205149e 100755
--- a/kernel/msm-3.18/arch/arm64/configs/msmcortex_defconfig
+++ b/kernel/msm-3.18/arch/arm64/configs/msmcortex_defconfig
@@ -343,7 +343,7 @@ CONFIG_SLIMBUS_MSM_NGD=y
CONFIG_SOUNDWIRE=y
CONFIG_SPI=y
CONFIG_SPI_QUP=y
-CONFIG_SPI_SPIDEV=m
+CONFIG_SPI_SPIDEV=y
CONFIG_PINCTRL_MSM8952=y
CONFIG_PINCTRL_MSM8937=y
CONFIG_PINCTRL_MSMCOBALT=y
spi.rar(包名) 解压 new 笼罩
cp -rf /root/patch/spi/* /root/sc60_android7.1.2_nopmi/
6.usb 转网口 patch
不能间接合包的三个 003,00010,00011
usb 文件夹 (先挨个 git apply 其余文件)
而后把 usb 的 new 文件夹放到 usb 里
cp -rf /root/patch/usb/* /root/sc60_android7.1.2_nopmi/
7. 编译镜像
7.1 装置 python 环境
7.2 编译好的镜像拿进去
7.3 复制到门路上面 SC60_Android_7.1.2_Unpacking_Tool_20201012\SC60_Android_7.1.2_Unpacking_Tool_20201012\LA.UM.5.6\LINUX\android\out\target\product\msm8953_64
7.4 点击 bulid.bat 分包
7.5 点击 sc60_android7.1_copy_emmc_image.bat 合包
正文完