USB IP host configuration in Imx8mp Android 11

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

USB IP host configuration in Imx8mp Android 11

1,196 次查看
Lavanyavijay
Contributor II

Hello NXP Team

I'm encountering a challenge while configuring the USBIP core in AOSP Android 11 for my NXP IMX8mp device. I've followed the steps outlined below, but USBIP-related kernel object files like usbip-core.ko and usbip-host.ko are not being generated in the expected output directory.

Steps Taken:

  1. Kernel Build Environment Setup:

    • Executed make mrproper to clean the build directory.
    • Set environment variables:
      • ARCH=arm64 (assuming a 64-bit ARM architecture)
      • CLANG_PATH=/opt/prebuilt-android-clang (path to your prebuilt Android Clang compiler)
      • CROSS_COMPILE=/opt/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- (path to your ARM cross-compilation toolchain)
  2. Kernel Configuration:

    • Generated an initial kernel configuration using make imx_v8_android_defconfig.
    • Opened the configuration using make menuconfig (or a similar tool if you prefer a text-based interface).
  3. USBIP Core Configuration:

    • Enabled the following options (assuming they were not already enabled):

      • CONFIG_USBIP_CORE=y (enables the USBIP core)
      • CONFIG_USBIP_VHCI_HCD=y (enables the VHCI host controller driver)
      • CONFIG_USBIP_VHCI_HC_PORTS=8 (sets the number of VHCI host controller ports; adjust as needed)
      • CONFIG_USBIP_VHCI_NR_HCS=1 (sets the number of VHCI host controllers; adjust as needed)
      • CONFIG_USBIP_HOST=y (enables USBIP host functionality)
      • CONFIG_USBIP_VUDC=y (enables the USB gadget driver for USBIP)
      • CONFIG_USBIP_DEBUG=y (enables USBIP debugging output; consider enabling only for troubleshooting)
    • Saved the configuration (make savedefconfig).

  4. Kernel Build:

    • Executed ./imx-make.sh kernel -c -j4 (assuming imx-make.sh is your build script; adjust the command if necessary) to build the kernel with the configured options.

      I appreciate your assistance in resolving this issue.

标签 (1)
0 项奖励
回复
1 回复

1,150 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The steps you have provided looks fine, could you share if you are able to see the modules being loaded by the kernel?

Best regards/Saludos,
Aldo.

0 项奖励
回复