TP固件升级 一种request_firmwave方式

时间:2024-04-03 17:59:47

#define GOODIX_CONFIG_FILE_NAME        "KLL_S50029_GT911_1060_Config_20191217_V67.cfg"

static int gup_update_config(struct i2c_client *client){

....

    ret = request_firmware(&fw_cfg, GOODIX_CONFIG_FILE_NAME,
                   &client->dev);

....

}

报的错误:

[32m[   13.043347] [33mueventd[31m: firmware: could not find firmware for KLL_S50029_GT911_1060_Config_20191217_V67.cfg
[32m[   13.043485] [33mueventd[0m: loading /devices/soc/78b7000.i2c/i2c-3/3-005d/firmware/KLL_S50029_GT911_1060_Config_20191217_V67.cfg took 3859ms
[32m[   13.043616] [33mgoodix-ts 3-005d[31m: GTP Cannot get config file - KLL_S50029_GT911_1060_Config_20191217_V67.cfg (-11)
[32m[   13.043619] [33mgoodix-ts 3-005d[31m: GTP Update config failed.

ADB测试:

adb root

adb remount

adb push KLL_S50029_GT911_1060_Config_20191217_V67.cfg /vendor/firmwave/

adb reboot

开机OK了。

尝试,加到代码中:

TP固件升级 一种request_firmwave方式

TP固件升级 一种request_firmwave方式

编译out:

TP固件升级 一种request_firmwave方式

开机OK。adb:

TP固件升级 一种request_firmwave方式

[32m[    9.168448] [33mueventd[0m: firmware: loading 'KLL_S50029_GT911_1060_Config_20191217_V67.cfg' for '/devices/soc/78b7000.i2c/i2c-3/3-005d/firmware/KLL_S50029_GT911_1060_Config_20191217_V67.cfg'
[32m[    9.186393] [33mueventd[0m: loading /devices/soc/78b7000.i2c/i2c-3/3-005d/firmware/KLL_S50029_GT911_1060_Config_20191217_V67.cfg took 18ms
[32m[    9.186497] [33mgoodix-ts 3-005d[0m: GTP config firmware file len:929
[32m[    9.191714] [33mgoodix-ts 3-005d[0m: GTP Send config SUCCESS.