From 0c8728fcab9f73739e5d8733f8719c6c279caa29 Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Sat, 21 Aug 2021 01:57:23 +0900 Subject: [PATCH] gts3l-common: camera: Add wifiloader to use it as a trigger for eeprom I saw these message from LOS 16 by Valera1978. ``` E [0: wifiloader: 857] msm_eeprom_parse_memory_map: :565 set num_data as total-size (num_map : 8, total : 4608, valid : 4060) E [0: wifiloader: 857] msm_eeprom_match_id: read 0x00 0x01 0x00 0x00 E [0: wifiloader: 857] msm_eeprom_i2c_probe: Skip front read eeprom in probe func E : [0: wifiloader: 857] msm_eeprom_i2c_probe qcom,sensor-position 0 E : [0: wifiloader: 857] msm_eeprom_i2c_probe success result=0 is_supported=0x1X I [0: wifiloader: 857] msm_eeprom_init_module: 2177 probe succeed I : [0: wifiloader: 857] msm_eeprom_get_dt_data gpio count 3 I [0: wifiloader: 857] msm_eeprom_get_dt_data: 1355 I [0: wifiloader: 857] msm_eeprom_get_dt_data: 1363 I [0: wifiloader: 857] msm_eeprom_get_dt_data: 1370 I [0: wifiloader: 857] msm_eeprom_get_dt_data: 1374 E [0: wifiloader: 857] msm_eeprom_parse_memory_map: otp qcom,num-blocks 3 E [0: wifiloader: 857] msm_eeprom_parse_memory_map: :973 set num_data as total-size (num_map : 3, total : 64, valid : 64) I [1: wifiloader: 857] read_eeprom_memory: read OTP_Bank: 1 E [1: wifiloader: 857] read_eeprom_memory: 820 addr = 0x0, size = 64 E [0: wifiloader: 857] msm_eeprom_platform_probe: All CRC values are matched. I : [0: wifiloader: 857] msm_eeprom_platform_probe qcom,sensor-position 1 E : [0: wifiloader: 857] msm_eeprom_platform_probe Front is_supported=0x03 I [0: wifiloader: 857] msm_eeprom_init_module: 2090 otp probe succeed ``` And this actually do the thing I want. Signed-off-by: Deokgyu Yang Change-Id: I6f0f095fde61b8d00ff189bb2b5a51dacbac2bfd --- gts3l.mk | 3 ++- rootdir/etc/init.target.rc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gts3l.mk b/gts3l.mk index a7e5d06..4e2b7ba 100755 --- a/gts3l.mk +++ b/gts3l.mk @@ -406,7 +406,8 @@ PRODUCT_PACKAGES += \ libwpa_client \ hostapd \ wpa_supplicant \ - wpa_supplicant.conf + wpa_supplicant.conf \ + wifiloader PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 87a5f8a..e8534a4 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -499,3 +499,7 @@ service vendor.contexthub-hal-1-0 /vendor/bin/hw/android.hardware.contexthub@1.0 user system group system disabled + +service wifiloader /vendor/bin/wifiloader + class main + oneshot