Diag 口慢的问题

Diag 口慢的问题

1. 去除earlyprintk

androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk
BOARD_KERNEL_CMDLINE := g_android.luns=1 g_android.removable=1 g_android.cdrom=1 console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 earlyprintk
`

2. 重新设置KERNEL_DEFCONFIG

KERNEL_DEFCONFIG := msm8909_defconfig

主要是串口LOG没有关:

CONFIG_SERIAL_MSM_HS=y
CONFIG_SERIAL_MSM_HSL=y
CONFIG_SERIAL_MSM_HSL_CONSOLE=y

3. LK启动异常

adb shell cat /proc/morelog
信息显示LK比对比样机要慢 2 秒左右.

4. 屏蔽了写Property的LOG.

// Don't write properties to disk until after we have read all default
// properties to prevent them from being overwritten by default values.
//LOG(ERROR) << "write_persistent_property: " << name << ",value : " << value;
//modify by weibiao@hipad.com PR165777
if (persistent_properties_loaded && (android::base::StartsWith(name, "persist.")
|| android::base::StartsWith(name, "ro.com.google.clientidbase"))) {
write_persistent_property(name.c_str(), value.c_str());
}