USB IP host configuration in Imx8mp Android 11

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

USB IP host configuration in Imx8mp Android 11

1,194件の閲覧回数
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,148件の閲覧回数
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 件の賞賛
返信