高通fastmmi
高通方案,芯片SC60
高通工厂测试程序
可以参考其中的代码做,厂测应用程序
fastmmi 代码路径:
vendor/qcom/proprietary/commonsys/fastmmi
QCOM FFBM启动流程
FFBM Fast Factory Boot Mode 快速工厂测试开机模式
msm8953_64/SC60
FFBM Fast Factory Boot Mode
bootloader系统启动时,进入FFBM模式相关代码
去掉开机进入ffbm模式的相关代码
bootable/bootloader/lk/app/aboot/aboot.c
system/core/init/init.cpp
diff --git a/system/core/init/init.cpp b/system/core/init/init.cpp
index 23ba57f160..ef1c0bc697 100644
--- a/system/core/init/init.cpp
+++ b/system/core/init/init.cpp
@@ -360,6 +360,9 @@ static void import_kernel_nv(const std::string& key, const std::string& value, b
if (key == "qemu") {
strlcpy(qemu, value.c_str(), sizeof(qemu));
} else if (android::base::StartsWith(key, "androidboot.")) {
+ if(android::base::StartsWith(value,"ffbm")){
+ return;
+ }
property_set("ro.boot." + key.substr(12), value);
}
}
diff --git a/bootable/bootloader/lk/app/aboot/aboot.c b/bootable/bootloader/lk/app/aboot/aboot.c
index cc2a1fe536..e4009481fd 100755
--- a/bootable/bootloader/lk/app/aboot/aboot.c
+++ b/bootable/bootloader/lk/app/aboot/aboot.c
@@ -1515,7 +1515,9 @@ int boot_linux_from_mmc(void)
if (rcode < 0)
dprintf(CRITICAL,"failed to get ffbm cookie");
} else
- boot_into_ffbm = true;
+ // modify by wuzhouxing
+ dprintf(INFO,"androidboot delete ffbm mode");
+ boot_into_ffbm = false;
} else
boot_into_ffbm = false;
uhdr = (boot_img_hdr *)EMMC_BOOT_IMG_HEADER_ADDR;