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编译好的镜像拿出来
image.png
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分包
image.png
7.5 点击sc60_android7.1_copy_emmc_image.bat合包
image.png


恒不动
105 声望15 粉丝