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.
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.?
Hi
You can try to define those .ko files in BOARD_VENDOR_KERNEL_MODULES
Best Regards
Zhiming