Integration RIL drivers to Imx8mp in Android 12

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Integration RIL drivers to Imx8mp in Android 12

132 次查看
venkata_kiran
Contributor I

Hi  

I am trying integration RIL drivers in imx9mp EVB.

Followed below steps:

1. Updated the file named "imx8mp_gki.fragment" located in  "\android_build\vendor\nxp-opensource\kernel_imx\arch\arm64\configs" with following MACROs.

CONFIG_USB_SERIAL_WWAN=m
CONFIG_USB_SERIAL_OPTION=m
CONFIG_USB_WDM=m
CONFIG_USB_NET_QMI_WWAN=m
CONFIG_RMNET=m

2.  Updated the file "SharedBoardConfig.mk" located in "\android_build\device\nxp\imx8m\evk_8mp" with following info.

ifeq ($(IMX8MP_USES_GKI),true)
BOARD_VENDOR_RAMDISK_KERNEL_MODULES +=     \
    +$(KERNEL_OUT)/drivers/net/usb/qmi_wwan.ko \
    +$(KERNEL_OUT)/drivers/usb/class/cdc-wdm.ko \
    +$(KERNEL_OUT)/drivers/usb/serial/option.ko \
    +$(KERNEL_OUT)/drivers/usb/serial/usb_wwan.ko \
    +$(KERNEL_OUT)/drivers/net/ethernet/qualcomm/rmnet/rmnet.ko \
    $(KERNEL_OUT)/mm/zsmalloc.ko \
    $(KERNEL_OUT)/drivers/block/zram/zram.ko \
    $(KERNEL_OUT)/drivers/soc/imx/soc-imx8m.ko \
   

venkata_kiran_0-1726085505563.png

Ran the build  using following commands.


export MY_ANDROID=`pwd`
export AARCH64_GCC_CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
export CLANG_PATH=/opt/prebuilt-android-clang
source build/envsetup.sh
lunch evk_8mp-userdebug
./imx-make.sh -j4 2>&1 | tee build-log.txt

 

Getting following error.

vendor/partner_gms
============================================
ninja: no work to do.
wildcard(out/target/product/evk_8mp/clean_steps.mk) was changed, regenerating...
No need to regenerate ninja file
out/target/product/evk_8mp/obj/CONFIG/kati_packaging/dist.mk was modified, regenerating...
[ 33% 1/3] initializing packaging system ...
[ 66% 2/3] including distdir.mk ...
[100% 3/3] writing packaging rules ...
Starting ninja...
FAILED: ninja: '/drivers/net/usb/qmi_wwan.ko', needed by 'out/target/product/evk_8mp/obj/PACKAGING/depmod_vendor_stripped_intermediates/qmi_wwan.ko', missing and no known rule to make it
15:38:46 ninja failed with: exit status 1

#### failed to build some targets (14 seconds) ####

 

When i look for kernel object of qmi_wwan.ko is present at "android_build"

#find out/ -name qmi_wwan.

out/target/product/evk_8mp/obj/KERNEL_OBJ/drivers/net/usb/qmi_wwan.ko

But still i am seeing Build Falure. 

Could you please suggest whether i am missing any steps here.? 

 

 

 

0 项奖励
回复
1 回复

120 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

You can try to define those .ko files in BOARD_VENDOR_KERNEL_MODULES

Best Regards
Zhiming

0 项奖励
回复