xf.li | 2bc18fc | 2024-12-03 03:52:31 -0800 | [diff] [blame^] | 1 | From fedbd6ef919755f1b12df8d3a094b8aada3c0ec6 Mon Sep 17 00:00:00 2001 |
| 2 | From: xf.li <xf.li@mobiletek.cn> |
| 3 | Date: Mon, 02 Dec 2024 01:43:27 -0800 |
| 4 | Subject: [PATCH] [Feature][T106_eSDK]update from T106-V2.01.01.02P56U09.AP.17.02_CAP.17.02.02 to T106-V2.01.01.02P56U09.AP.17.09_CAP.17.09.01 -- code |
| 5 | |
| 6 | Only Configure: No |
| 7 | Affected branch: master |
| 8 | Affected module: unknow |
| 9 | Is it affected on both ZXIC and MTK: only ZXIC |
| 10 | Self-test: Yes |
| 11 | Doc Update: No |
| 12 | |
| 13 | Change-Id: I68b16bb5bc66b9961235b3451b288c56bbde5cb6 |
| 14 | --- |
| 15 | |
| 16 | diff --git a/esdk/layers/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf b/esdk/layers/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
| 17 | index e90d0da..50c2f6e 100755 |
| 18 | --- a/esdk/layers/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
| 19 | +++ b/esdk/layers/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
| 20 | @@ -468,5 +468,5 @@ |
| 21 | MOBILETEK_LOG_ENCRYPT = "disable" |
| 22 | |
| 23 | LYNQ_CONFIG_COMMITID = "e2a3410390ff0ad762462ccb6af8faa5e16dcd61" |
| 24 | -LYNQ_CONFIG_VERSION = "T106-V2.01.01.02P56U09.AP.17.02_CAP.17.02.02" |
| 25 | -LYNQ_CONFIG_SW_VERSION = "T106-V2.01.01.02P56U09.AP.17.02_CAP.17.02" |
| 26 | +LYNQ_CONFIG_VERSION = "T106-V2.01.01.02P56U09.AP.17.09_CAP.17.09.01" |
| 27 | +LYNQ_CONFIG_SW_VERSION = "T106-V2.01.01.02P56U09.AP.17.09_CAP.17.09.01" |
| 28 | diff --git a/esdk/layers/meta-zxic-custom/conf/lynq_base.conf b/esdk/layers/meta-zxic-custom/conf/lynq_base.conf |
| 29 | index e391546..8126a9e 100755 |
| 30 | --- a/esdk/layers/meta-zxic-custom/conf/lynq_base.conf |
| 31 | +++ b/esdk/layers/meta-zxic-custom/conf/lynq_base.conf |
| 32 | @@ -67,6 +67,6 @@ |
| 33 | #OEMAPP_CFG value:"PLATFORM","GSW" |
| 34 | MOBILETEK_OEMAPP_CFG = "PLATFORM" |
| 35 | |
| 36 | -LYNQ_CONFIG_COMMITID = "9aea88bb79cfb2fae9ddab87f8307126d618aec2" |
| 37 | -LYNQ_CONFIG_VERSION = "T106-V2.01.01.02P56U09.AP.17.02_CAP.17.02.02" |
| 38 | -LYNQ_CONFIG_SW_VERSION = "T106-V2.01.01.02P56U09.AP.17.02_CAP.17.02" |
| 39 | +LYNQ_CONFIG_COMMITID = "db2a7e1b3aa519b00153f78dcb223c2eb539f891" |
| 40 | +LYNQ_CONFIG_VERSION = "T106-V2.01.01.02P56U09.AP.17.09_CAP.17.09.01" |
| 41 | +LYNQ_CONFIG_SW_VERSION = "T106-V2.01.01.02P56U09.AP.17.09_CAP.17.09.01" |
| 42 | diff --git a/esdk/layers/meta-zxic-custom/recipes-lynq/liblynq-qser-gnss/liblynq-qser-gnss.bb b/esdk/layers/meta-zxic-custom/recipes-lynq/liblynq-qser-gnss/liblynq-qser-gnss.bb |
| 43 | index dd600c2..287b0ba 100755 |
| 44 | --- a/esdk/layers/meta-zxic-custom/recipes-lynq/liblynq-qser-gnss/liblynq-qser-gnss.bb |
| 45 | +++ b/esdk/layers/meta-zxic-custom/recipes-lynq/liblynq-qser-gnss/liblynq-qser-gnss.bb |
| 46 | @@ -46,7 +46,7 @@ |
| 47 |
|
| 48 | if [ -d "${WORKONSRC}" ] ; then
|
| 49 | install -d ${D}${includedir}/
|
| 50 | - cp -raf ${SRC-DIR}/include/ ${D}${includedir}/
|
| 51 | + cp -raf ${SRC-DIR}/include/lynq_qser_gnss.h ${D}${includedir}/
|
| 52 | fi
|
| 53 | if [ "${MOBILETEK_GNSS_UPDATE_ENABLE}" = "yes" ]; then
|
| 54 | install -d ${D}/data/gnss_update
|
| 55 | diff --git a/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq-qser-network-demo.cpp b/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq-qser-network-demo.cpp |
| 56 | index ad38820..2d45d7d 100755 |
| 57 | --- a/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq-qser-network-demo.cpp |
| 58 | +++ b/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq-qser-network-demo.cpp |
| 59 | @@ -17,6 +17,7 @@ |
| 60 | int (*qser_nw_client_init_p)(nw_client_handle_type * ph_nw);
|
| 61 | int (*qser_nw_client_deinit_p)(nw_client_handle_type h_nw);
|
| 62 | int (*qser_nw_set_config_p)(nw_client_handle_type h_nw, QSER_NW_CONFIG_INFO_T *pt_info);
|
| 63 | +int (*qser_nw_get_config_p)(nw_client_handle_type h_nw, QSER_NW_CONFIG_INFO_T *pt_info);
|
| 64 | int (*qser_nw_get_operator_name_p)(nw_client_handle_type h_nw, QSER_NW_OPERATOR_NAME_INFO_T *pt_info );
|
| 65 | int (*qser_nw_get_reg_status_p)(nw_client_handle_type h_nw, QSER_NW_REG_STATUS_INFO_T *pt_info);
|
| 66 | int (*qser_nw_add_rx_msg_handler_p)(nw_client_handle_type h_nw, QSER_NW_RxMsgHandlerFunc_t handlerPtr,void* contextPtr);
|
| 67 | @@ -44,6 +45,7 @@ |
| 68 | qser_nw_client_init_p = (int (*)(nw_client_handle_type * ph_nw))dlsym(handle_network,"qser_nw_client_init");
|
| 69 | qser_nw_client_deinit_p = (int (*)(nw_client_handle_type h_nw))dlsym(handle_network,"qser_nw_client_deinit");
|
| 70 | qser_nw_set_config_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_CONFIG_INFO_T *pt_info))dlsym(handle_network,"qser_nw_set_config");
|
| 71 | + qser_nw_get_config_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_CONFIG_INFO_T *pt_info))dlsym(handle_network,"qser_nw_get_config");
|
| 72 | qser_nw_get_operator_name_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_OPERATOR_NAME_INFO_T *pt_info ))dlsym(handle_network,"qser_nw_get_operator_name");
|
| 73 | qser_nw_get_reg_status_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_REG_STATUS_INFO_T *pt_info))dlsym(handle_network,"qser_nw_get_reg_status");
|
| 74 | qser_nw_get_signal_strength_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_SIGNAL_STRENGTH_INFO_T *pt_info))dlsym(handle_network,"qser_nw_get_signal_strength");
|
| 75 | @@ -55,7 +57,7 @@ |
| 76 | qser_nw_set_ims_enable_p = (int (*)(nw_client_handle_type h_nw, E_QSER_NW_IMS_MODE_TYPE_T ims_mode))dlsym(handle_network,"qser_nw_set_ims_enable");
|
| 77 | qser_nw_get_ims_reg_status_p = (int (*)(nw_client_handle_type h_nw, QSER_NW_IMS_REG_STATUS_INFO_T *pt_info))dlsym(handle_network,"qser_nw_get_ims_reg_status");
|
| 78 |
|
| 79 | - if(qser_nw_client_deinit_p==NULL || qser_nw_client_init_p==NULL || qser_nw_set_config_p ==NULL ||
|
| 80 | + if(qser_nw_client_deinit_p==NULL || qser_nw_client_init_p==NULL || qser_nw_set_config_p ==NULL || qser_nw_get_config_p ==NULL ||
|
| 81 | qser_nw_get_operator_name_p == NULL || qser_nw_get_reg_status_p ==NULL || qser_nw_add_rx_msg_handler_p==NULL ||
|
| 82 | qser_nw_set_rf_mode_p == NULL || qser_nw_get_rf_mode_p == NULL || qser_nw_get_oos_config_p == NULL || qser_nw_set_oos_config_p == NULL ||
|
| 83 | qser_nw_set_ims_enable_p == NULL || qser_nw_get_ims_reg_status_p == NULL)
|
| 84 | @@ -100,7 +102,8 @@ |
| 85 | {9, "qser_nw_get_rf_mode"},
|
| 86 | {10, "qser_nw_set_ims_enable"},
|
| 87 | {11, "qser_nw_get_ims_reg_status"},
|
| 88 | - {12, "qser_nw_client_deinit"},
|
| 89 | + {12, "qser_nw_get_config"},
|
| 90 | + {13, "qser_nw_client_deinit"},
|
| 91 | {-1, "quit"}
|
| 92 | };
|
| 93 |
|
| 94 | @@ -452,7 +455,7 @@ |
| 95 |
|
| 96 | break;
|
| 97 | }
|
| 98 | - case 12://"qser_nw_client_deinit"
|
| 99 | + case 13://"qser_nw_client_deinit"
|
| 100 | {
|
| 101 | ret = qser_nw_client_deinit_p(h_nw);
|
| 102 | printf("qser_nw_client_deinit ret = %d\n", ret);
|
| 103 | @@ -610,7 +613,14 @@ |
| 104 | t_info.registration_state);
|
| 105 | }
|
| 106 | break;
|
| 107 | - }
|
| 108 | + }
|
| 109 | + case 12://"qser_nw_get_config"
|
| 110 | + {
|
| 111 | + QSER_NW_CONFIG_INFO_T t_info = {0};
|
| 112 | + ret = qser_nw_get_config_p(h_nw, &t_info);
|
| 113 | + printf("qser_nw_get_config ret = %d\n, nw_mode is %llu", ret,t_info.preferred_nw_mode);
|
| 114 | + break;
|
| 115 | + }
|
| 116 | default:
|
| 117 | {
|
| 118 | show_group_help(&t_nw_test);
|
| 119 | diff --git a/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq_qser_network.h b/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq_qser_network.h |
| 120 | index 56e2ce0..aee4285 100755 |
| 121 | --- a/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq_qser_network.h |
| 122 | +++ b/esdk/layers/meta-zxic-custom/recipes-lynq/lynq-qser-network-demo/files/lynq_qser_network.h |
| 123 | @@ -401,6 +401,12 @@ |
| 124 | QSER_NW_CONFIG_INFO_T *pt_info |
| 125 | ); |
| 126 | |
| 127 | +int qser_nw_get_config |
| 128 | +( |
| 129 | + nw_client_handle_type h_nw, |
| 130 | + QSER_NW_CONFIG_INFO_T *pt_info |
| 131 | +); |
| 132 | + |
| 133 | int qser_nw_set_ims_enable |
| 134 | ( |
| 135 | nw_client_handle_type h_nw, |
| 136 | diff --git a/esdk/layers/meta-zxic-selinux/recipes-security/refpolicy/files/policy-mls/policy/modules/system/logging.te b/esdk/layers/meta-zxic-selinux/recipes-security/refpolicy/files/policy-mls/policy/modules/system/logging.te |
| 137 | index fe01295..3eabb0a 100755 |
| 138 | --- a/esdk/layers/meta-zxic-selinux/recipes-security/refpolicy/files/policy-mls/policy/modules/system/logging.te |
| 139 | +++ b/esdk/layers/meta-zxic-selinux/recipes-security/refpolicy/files/policy-mls/policy/modules/system/logging.te |
| 140 | @@ -5,6 +5,7 @@ |
| 141 | # Declarations |
| 142 | # |
| 143 | |
| 144 | + |
| 145 | attribute logfile; |
| 146 | |
| 147 | type auditctl_t; |
| 148 | @@ -323,6 +324,8 @@ |
| 149 | allow klogd_t self:capability sys_admin; |
| 150 | dontaudit klogd_t self:capability { sys_resource sys_tty_config }; |
| 151 | allow klogd_t self:process signal_perms; |
| 152 | +allow klogd_t kernel_t:fd { use }; |
| 153 | +allow klogd_t root_t:chr_file { read write }; |
| 154 | |
| 155 | manage_dirs_pattern(klogd_t, klogd_tmp_t, klogd_tmp_t) |
| 156 | manage_files_pattern(klogd_t, klogd_tmp_t, klogd_tmp_t) |
| 157 | @@ -620,7 +623,8 @@ |
| 158 | xserver_rw_console(syslogd_t) |
| 159 | ') |
| 160 | gen_require(` |
| 161 | - type default_t; |
| 162 | + type root_t; |
| 163 | + type default_t; |
| 164 | type nvserver_t; |
| 165 | type mnt_t; |
| 166 | type tmpfs_t; |
| 167 | @@ -670,7 +674,8 @@ |
| 168 | allow syslogd_t default_t:lnk_file { read }; |
| 169 | allow syslogd_t mnt_t:dir { search }; |
| 170 | allow syslogd_t tmpfs_t:dir { write add_name remove_name search }; |
| 171 | - |
| 172 | +allow syslogd_t root_t:chr_file { read write }; |
| 173 | +allow syslogd_t mnt_t:file { getattr open append }; |
| 174 | allow syslogd_t self:capability { sys_rawio }; |
| 175 | |
| 176 | |
| 177 | diff --git a/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-lynq-spidev.h.patch b/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-lynq-spidev.h.patch |
| 178 | new file mode 100755 |
| 179 | index 0000000..289bf13 |
| 180 | --- /dev/null |
| 181 | +++ b/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers/0001-lynq-spidev.h.patch |
| 182 | @@ -0,0 +1,30 @@ |
| 183 | +diff --git a/include/uapi/linux/spi/spidev.h b/include/uapi/linux/spi/spidev.h |
| 184 | +old mode 100644 |
| 185 | +new mode 100755 |
| 186 | +index d56427c..d69bab6 |
| 187 | +--- a/include/uapi/linux/spi/spidev.h |
| 188 | ++++ b/include/uapi/linux/spi/spidev.h |
| 189 | +@@ -146,6 +146,22 @@ struct spi_ioc_transfer { |
| 190 | + #define SPI_IOC_RD_MODE32 _IOR(SPI_IOC_MAGIC, 5, __u32) |
| 191 | + #define SPI_IOC_WR_MODE32 _IOW(SPI_IOC_MAGIC, 5, __u32) |
| 192 | + |
| 193 | +- |
| 194 | ++/* Read data from buffer or device */ |
| 195 | ++#define SPI_IOC_RD_RD_DATA_FROM _IOR(SPI_IOC_MAGIC, 6, __u8) |
| 196 | ++#define SPI_IOC_WR_RD_DATA_FROM _IOW(SPI_IOC_MAGIC, 6, __u8) |
| 197 | ++ |
| 198 | ++/* Set signal pid */ |
| 199 | ++#define SPI_IOC_RD_SIG_PID _IOR(SPI_IOC_MAGIC, 7, __u32) |
| 200 | ++#define SPI_IOC_WR_SIG_PID _IOW(SPI_IOC_MAGIC, 7, __u32) |
| 201 | ++ |
| 202 | ++/* get int status */ |
| 203 | ++#define SPI_IOC_RD_INT_ST _IOR(SPI_IOC_MAGIC, 8, __u32) |
| 204 | ++#define SPI_IOC_WR_INT_ST _IOW(SPI_IOC_MAGIC, 8, __u32) |
| 205 | ++ |
| 206 | ++/* yu.dong@20240617 [T106BUG-641] SPI packet loss problem, add kernel buffer scheme start*/ |
| 207 | ++/* release from rd/wr block */ |
| 208 | ++#define SPI_IOC_RD_BLOCK_RELEASE _IOR(SPI_IOC_MAGIC, 9, __u32) |
| 209 | ++//#define SPI_IOC_WR_INT_ST _IOW(SPI_IOC_MAGIC, 9, __u32) |
| 210 | ++/* yu.dong@20240617 [T106BUG-641] SPI packet loss problem, add kernel buffer scheme end*/ |
| 211 | + |
| 212 | + #endif /* SPIDEV_H */ |
| 213 | diff --git a/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers_5.10.bb b/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers_5.10.bb |
| 214 | index 98ea747..d528304 100755 |
| 215 | --- a/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers_5.10.bb |
| 216 | +++ b/esdk/layers/meta-zxic/recipes-kernel/linux-libc-headers/linux-libc-headers_5.10.bb |
| 217 | @@ -6,7 +6,7 @@ |
| 218 | file://0001-libc-compat.h-musl-_does_-define-IFF_LOWER_UP-DORMAN.patch \ |
| 219 | file://0001-include-linux-stddef.h-in-swab.h-uapi-header.patch \ |
| 220 | " |
| 221 | - |
| 222 | +#xf.li@20241023 modify for libc-headers start |
| 223 | SRC_URI_append = "\ |
| 224 | file://0001-scripts-Use-fixed-input-and-output-files-instead-of-.patch \ |
| 225 | file://0001-kbuild-install_headers.sh-Strip-_UAPI-from-if-define.patch \ |
| 226 | @@ -14,8 +14,9 @@ |
| 227 | file://0002-add-zxic-rpmsg_zx29.h.patch \ |
| 228 | file://0003-add-zxic-bsp_api_h.patch \ |
| 229 | file://0001-mtd-abi.h.patch \ |
| 230 | + file://0001-lynq-spidev.h.patch \ |
| 231 | " |
| 232 | - |
| 233 | +#xf.li@20241023 modify for libc-headers end |
| 234 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
| 235 | |
| 236 | SRC_URI[md5sum] = "753adc474bf799d569dec4f165ed92c3" |
| 237 | diff --git a/upstream/linux-5.10/drivers/soc/sc/pcu/pcu-zx297520v3.c b/upstream/linux-5.10/drivers/soc/sc/pcu/pcu-zx297520v3.c |
| 238 | index f9b23d7..e8d8e88 100755 |
| 239 | --- a/upstream/linux-5.10/drivers/soc/sc/pcu/pcu-zx297520v3.c |
| 240 | +++ b/upstream/linux-5.10/drivers/soc/sc/pcu/pcu-zx297520v3.c |
| 241 | @@ -729,7 +729,7 @@ |
| 242 | switch (action) { |
| 243 | |
| 244 | case PM_POST_SUSPEND: |
| 245 | - __pm_wakeup_event(zx_main_ws, 1000); |
| 246 | + __pm_wakeup_event(zx_main_ws, 500);//LYNQ_AUTOSUSPEND add for bug-view-372 by jb.qi on 20241114 |
| 247 | break; |
| 248 | |
| 249 | default: |