i.MX8M nano evk添加NFC PN7160移植Android13编译报错

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8M nano evk添加NFC PN7160移植Android13编译报错

7,503件の閲覧回数
ethan_dang1
Contributor III

我在使用i.MX8M nano evk和PN7160进行NFC移植开发(和这个类似PN7150 NFC Controller on i.MX8M mini evk running A... - NXP Community)i.MX8M nano evk是否有类似的具备PN7160功能的镜像运行Android13?

我自己按照AN13189-PN7160 Android porting guide.pdf移植后编译报错:

移植过程可见我做的笔记: https://note.youdao.com/s/OjiTw9li

报错日志可见附件,不知是哪个步骤出错了,请帮忙看一下

build/make/core/Makefile:72: error: overriding commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf', previously defined at out/soong/installs-evk_8mn.mk:123108
11:13:57 ckati failed with: exit status 1

#### failed to build some targets (01:24 (mm:ss)) ####

 

0 件の賞賛
返信
6 返答(返信)

7,477件の閲覧回数
ethan_dang1
Contributor III

我在~/android_build/device/nxp/imx8m/evk_8mn/BoardConfig.mk中增加了一句

BUILD_BROKEN_DUP_RULES := true
现在不报overriding commands for target错误了,编译继续进行后出现了其它错误:

 

[ 95% 615/644] including tools/platform-compat/Android.mk ...
[ 95% 616/644] including tools/test/connectivity/Android.mk ...
[ 95% 617/644] including tools/test/graphicsbenchmark/Android.mk ...
[ 95% 618/644] including tools/tradefederation/prebuilts/test_harness/Android.mk ...
[ 96% 619/644] including vendor/nxp-opensource/imx-lib/pxp/Android.mk ...
[ 96% 620/644] including vendor/nxp-opensource/imx/evs/evs_app/Android.mk ...
[ 96% 621/644] including vendor/nxp-opensource/imx/libcamera3/Android.mk ...
[ 96% 622/644] including vendor/nxp-opensource/imx/libsensors/Android.mk ...
[ 96% 623/644] including vendor/nxp-opensource/imx/libsensors_sensorhub/Android.mk ...
[ 96% 624/644] including vendor/nxp-opensource/imx/opencl-2d/Android.mk ...
[ 97% 625/644] including vendor/nxp-opensource/kernel_imx/drivers/staging/greybus/tools/Android.mk ...
[ 97% 626/644] including vendor/nxp-opensource/libdrm-imx/data/Android.mk ...
[ 97% 627/644] including vendor/nxp-opensource/nn-imx/Android.mk ...
18:38:42.532872 git.c:439               trace: built-in: git status
18:38:43.374727 git.c:439               trace: built-in: git log -n 1 '--format=%h'
18:38:43.419000 git.c:439               trace: built-in: git diff --quiet HEAD

-Werror -fexceptions -D'OVXLIB_API=__attribute__((visibility("default")))' -Wno-unused-parameter -Wno-implicit-fallthrough -frtti -DANDROID_SDK_VERSION=33 -DGIT_STRING='54889a68'
[ 97% 628/644] including vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mapp/mlanconfig/Android.mk ...
[ 97% 629/644] including vendor/nxp-opensource/nxp-mwifiex/mxm_wifiex/wlan_src/mapp/mlanutl/Android.mk ...
[ 97% 630/644] including vendor/nxp/fsl-codec/Android.mk ...
[ 97% 631/644] including vendor/nxp/fsl-proprietary/apks/Android.mk ...
[ 98% 632/644] including vendor/nxp/fsl-proprietary/bcm/Android.mk ...
[ 98% 633/644] including vendor/nxp/fsl-proprietary/fsl-dpu/Android.mk ...
[ 98% 634/644] including vendor/nxp/fsl-proprietary/gpu-viv/Android.mk ...
[ 98% 635/644] including vendor/nxp/fsl-proprietary/isp/Android.mk ...
[ 98% 636/644] including vendor/nxp/fsl-proprietary/test/Android.mk ...
[ 98% 637/644] including vendor/nxp/imx_android_mm/CactusPlayer/Android.mk ...
[ 99% 638/644] including vendor/nxp/imx_android_mm/codec2/store/registry/Android.mk ...
[ 99% 639/644] including vendor/nxp/linux-firmware-imx/firmware/Android.mk ...
[ 99% 640/644] including vendor/nxp/nfc/FactoryTestApp/Android.mk ...
[ 99% 641/644] including vendor/nxp/nfc/T4TDemo/Android.mk ...
[ 99% 642/644] including out/soong/late-evk_8mn.mk ...
[ 99% 643/644] finishing build rules ...
[100% 644/644] writing build rules ...
build/make/core/Makefile:72: warning: overriding commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf'
out/soong/installs-evk_8mn.mk:123108: warning: ignoring old commands for target `out/target/product/evk_8mn/system/etc/libnfc-nci.conf'
out/build-evk_8mn-package.ninja is missing, regenerating...
[ 99% 645/647] initializing packaging system ...
[ 99% 646/647] including distdir.mk ...
[100% 647/647] writing packaging rules ...
Starting ninja...
FAILED: ninja: 'out/target/product/evk_8mn/obj/MXMWIFI_OBJ/mlan.ko', needed by 'out/target/product/evk_8mn/obj/PACKAGING/depmod_vendor_stripped_intermediates/mlan.ko', missing and no known rule to make it
18:43:58 ninja failed with: exit status 1

#### failed to build some targets (48:06 (mm:ss)) ####

 

0 件の賞賛
返信

7,459件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @ethan_dang1,

I hope you are doing well.

Thanks for the logs, I checked it.
But the note's link is not reachable, Please share the proper link.

->Please make sure to follow the same porting steps as described in the link.
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/PN7150-NFC-Controller-on-i-MX8M-mini-evk...

->Please check the makefile whether there are multiple definitions for the same target because this error is related to it.
->Please share the details whether what changes have you made related to the wifi-driver.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

7,449件の閲覧回数
ethan_dang1
Contributor III

Hi @Dhruvit ,

Thanks for your reply!

I uploaded the porting record to the attachment.

I didn't make any changes to the wifi-driver.

0 件の賞賛
返信

7,418件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @ethan_dang1,

I hope you are doing well.
Thanks for the links, I checked them.

->Please make sure to follow each step described in the below link to do the same.
https://www.nxp.com/docs/en/application-note/AN13189.pdf

->One must integrate the following security fixes. NXP will support them from the next Android release.
CVE-2022-20471: https://android.googlesource.com/platform/hardware/nxp/nfc/
+/1164ee536ecf6504e73dcaac0ccb1ee887f3a19c
CVE-2023-20945: https://android.googlesource.com/platform/packages/apps/Nfc/
+/4a964908ff0bd91d93f96cdc26f7377420c58273

->Please make sure to download all the required packages before one integrates the NFC as suggested.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

7,386件の閲覧回数
ethan_dang1
Contributor III

Hi @Dhruvit 

Can you help with specific guidance on how to make the security fix?

I can’t access https://android.googlesource.com/platform/hardware/nxp/nfc/ & https://android.googlesource.com/platform/packages/apps/Nfc/ ,I'm in China

0 件の賞賛
返信

7,363件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @ethan_dang1,

I hope you are doing well.

->The link I shared is mentioned in the below-given docs link itself, please find the same & access from there.
https://www.nxp.com/docs/en/application-note/AN13189.pdf?_gl=1*7ffx8s*_ga*NTUxNzA5Nzg2LjE2ODM2MjM5Mj.....

->In this document there are the recommended steps mentioned to do porting on Android, Please follow the same.

I hope it will help!

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信