Page 1 of 1

Android 8.1 hidl-gen build problem

Posted: Mon Apr 08, 2019 10:40 pm
by echoline
Ni hao ma? I am trying to build Android 8.1 from https://gitlab.com/friendlyelec/rk3399-android-8.1

I have tried on 64 bit Debian 9 and Ubuntu 16.04

I have followed the instructions on the wiki and built uboot and the kernel, then the build fails with an hidl-gen error:

Code: Select all

[  0% 9/50196] target Generated: andro... hardware/interfaces/usb/1.1/types.hal
FAILED: out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/PortMode_1_1.java
/bin/bash -c "out/host/linux-x86/bin/hidl-gen -o out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::types.PortMode_1_1"
ERROR: Failed to lookup type 'PortMode' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:22.21-28
ERROR: Failed to lookup type 'PortStatus' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:45.5-14
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:51.14-25
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:56.5-16
ERROR: Could not parse android.hardware.usb@1.1::types.PortMode_1_1. Aborting.
[  0% 10/50196] target Generated: andr... hardware/interfaces/usb/1.1/types.hal
FAILED: out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/PortStatus_1_1.java
/bin/bash -c "out/host/linux-x86/bin/hidl-gen -o out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::types.PortStatus_1_1"
ERROR: Failed to lookup type 'PortMode' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:22.21-28
ERROR: Failed to lookup type 'PortStatus' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:45.5-14
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:51.14-25
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:56.5-16
ERROR: Could not parse android.hardware.usb@1.1::types.PortStatus_1_1. Aborting.
[  0% 11/50196] target Generated: andr...= hardware/interfaces/usb/1.1/IUsb.hal
FAILED: out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/IUsb.java
/bin/bash -c "out/host/linux-x86/bin/hidl-gen -o out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::IUsb"
ERROR: Failed to lookup type 'PortMode' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:22.21-28
ERROR: Failed to lookup type 'PortStatus' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:45.5-14
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:51.14-25
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:56.5-16
ERROR: Failed to lookup type 'android.hardware.usb@1.0::IUsb' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/IUsb.hal:21.24-53
ERROR: Could not parse android.hardware.usb@1.1::IUsb. Aborting.
[  0% 12/50196] target Generated: andr...re/interfaces/usb/1.1/IUsbCallback.hal
FAILED: out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates/android/hardware/usb/V1_1/IUsbCallback.java
/bin/bash -c "out/host/linux-x86/bin/hidl-gen -o out/target/common/gen/JAVA_LIBRARIES/android.hardware.usb-V1.1-java_intermediates -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.usb@1.1::IUsbCallback"
ERROR: Failed to lookup type 'PortMode' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:22.21-28
ERROR: Failed to lookup type 'PortStatus' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:45.5-14
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:51.14-25
ERROR: Failed to lookup type 'PortMode_1_1' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/types.hal:56.5-16
ERROR: Failed to lookup type '@1.0::IUsbCallback' at /mnt/sdc1/android/rk3399-android-8.1/hardware/interfaces/usb/1.1/IUsbCallback.hal:26.32-49
ERROR: Could not parse android.hardware.usb@1.1::IUsbCallback. Aborting.
ninja: build stopped: subcommand failed.
15:35:23 ninja failed with: exit status 1

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


The reason I am doing this is I tried to change the kernel config to support gspca_kinect.so. I believe I did that correctly, I got uboot.img, kernel.img, and resource.img built. I have tried uploading the new kernel to the board directly but it fails with a bad checksum (trust.img?)

I should point out I install Ubuntu and Debian with debootstrap, and that is a requirement in this case. This may be a simple issue of something different (missing package?) that the normal Ubuntu installer does, which I can try on a separate system, that's the next thing I plan to try.

Thank you for your kind attention

Re: Android 8.1 hidl-gen build problem

Posted: Sat Jul 13, 2019 3:01 pm
by avensis
Hi, have you managed to solve your problem?

_____________________________________
Appvalley TutuApp Tweakbox