kernel配置需要开启下面几个:
CONFIG_FW_LOADER_USER_HELPER
CONFIG_FW_LOADER_USER_HELPER_FALLBACK
CONFIG_TOUCHSCREEN_CYPRESS_CYTTSP7_DEVICE_ACCESS
手动升级:
先加载modprobe Cyttsp6_loader.ko
Using the ADB utility:
1. Start the data transfer:
adb shell "echo 1 > DEVICES/manual_upgrade"
adb shell "echo 1 > FW/loading"
sleep 1
2. Push the firmware (for example, Firmware.bin file) to the device (typically in /data directory):
adb push FW.bin /data
3. Transfer data:
adb shell "cat /data/Firmware.bin > FW/data"
sleep 1
4. Initiate flashing:
adb shell "echo 0 > FW/loading"
Using terminal in Linux (if Linux driver is used)
#echo 1 > DEVICES/manual_upgrade
#echo 1 > FW/loading
#cat path_to_firmware.bin > FW/data
#echo 0 > FW/loading
Note: If errors occur during firmware upgrade, set the following Kconfig options to ‘Y’. These may have been set by default
in some of the kernels.
CONFIG_FW_LOADER_USER_HELPER
CONFIG_FW_LOADER_USER_HELPER_FALLBACK
校准:
先加载modprobe cyttsp6_device_access.ko
4.5 Calibrate SysFs
Input: [0] Sensing Mode (Calibrate IDACs command input parameter)
[1] Perform Baseline Initialization after Calibration (0: Do not perform, 1: Perform)
Output: Status x (1: command execution failed, 0: command execution success)
[0] Calibrate IDACs Command Status (0:Success, 1:Fail)
[1] Initialize Baselines Command Status (0:Success, 1:Fail)
4.5.1 Mutual Capacitance Calibration Without Baseline Initialization
#echo 0,0 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.2 Mutual Capacitance Calibration with Baseline Initializatio
#echo 0,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status 0
4.5.3 Button Calibration without Baseline Initialization
echo 1,0 > DEVICES/mfg_test/calibrate
cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.4 Button Calibration with Baseline Initialization
#echo 1,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status
4.5.5 Self Capacitance Calibration without Baseline Initialization
#echo 2,0 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
4.5.6 Self Capacitance Calibration with Baseline Initialization
#echo 2,1 > DEVICES/mfg_test/calibrate
#cat DEVICES/mfg_test/calibrate
//Check Calibrate IDACs command output
//status 0
//status 0