redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

Running error on arm64

Open bieyouyu opened this issue 2 years ago • 5 comments

I have compiled a new kernel for the arm64 machine, which already supports ashmem and binder, however, it still reports an error, using the image redroid/redroid:8.1.0-latest. I need your help.Thank you very much.

kernel:

root@aml:~# uname -a
Linux aml 5.4.1-aml-s9xxx #1 SMP PREEMPT Sun Aug 28 08:59:31 EDT 2022 aarch64 GNU/Linux
root@aml:~# ls -1 /dev/{ashmem,binder}
/dev/ashmem
/dev/binder

logs:

root@aml:~# docker logs 14384eb0
libc: fsetxattr failed to set context (u:object_r:wifi_prop:s0) for "/dev/__properties__/u:object_r:wifi_prop:s0"
libc: fsetxattr failed to set context (u:object_r:ffs_prop:s0) for "/dev/__properties__/u:object_r:ffs_prop:s0"
libc: fsetxattr failed to set context (u:object_r:system_radio_prop:s0) for "/dev/__properties__/u:object_r:system_radio_prop:s0"
libc: fsetxattr failed to set context (u:object_r:powerctl_prop:s0) for "/dev/__properties__/u:object_r:powerctl_prop:s0"
libc: fsetxattr failed to set context (u:object_r:cppreopt_prop:s0) for "/dev/__properties__/u:object_r:cppreopt_prop:s0"
libc: fsetxattr failed to set context (u:object_r:restorecon_prop:s0) for "/dev/__properties__/u:object_r:restorecon_prop:s0"
libc: fsetxattr failed to set context (u:object_r:shell_prop:s0) for "/dev/__properties__/u:object_r:shell_prop:s0"
libc: fsetxattr failed to set context (u:object_r:firstboot_prop:s0) for "/dev/__properties__/u:object_r:firstboot_prop:s0"
libc: fsetxattr failed to set context (u:object_r:persistent_properties_ready_prop:s0) for "/dev/__properties__/u:object_r:persistent_properties_ready_prop:s0"
libc: fsetxattr failed to set context (u:object_r:vold_prop:s0) for "/dev/__properties__/u:object_r:vold_prop:s0"
libc: fsetxattr failed to set context (u:object_r:fingerprint_prop:s0) for "/dev/__properties__/u:object_r:fingerprint_prop:s0"
libc: fsetxattr failed to set context (u:object_r:boottime_prop:s0) for "/dev/__properties__/u:object_r:boottime_prop:s0"
libc: fsetxattr failed to set context (u:object_r:serialno_prop:s0) for "/dev/__properties__/u:object_r:serialno_prop:s0"
libc: fsetxattr failed to set context (u:object_r:overlay_prop:s0) for "/dev/__properties__/u:object_r:overlay_prop:s0"
libc: fsetxattr failed to set context (u:object_r:safemode_prop:s0) for "/dev/__properties__/u:object_r:safemode_prop:s0"
libc: fsetxattr failed to set context (u:object_r:netd_stable_secret_prop:s0) for "/dev/__properties__/u:object_r:netd_stable_secret_prop:s0"
libc: fsetxattr failed to set context (u:object_r:mmc_prop:s0) for "/dev/__properties__/u:object_r:mmc_prop:s0"
libc: fsetxattr failed to set context (u:object_r:device_logging_prop:s0) for "/dev/__properties__/u:object_r:device_logging_prop:s0"
libc: fsetxattr failed to set context (u:object_r:logd_prop:s0) for "/dev/__properties__/u:object_r:logd_prop:s0"
libc: fsetxattr failed to set context (u:object_r:persist_debug_prop:s0) for "/dev/__properties__/u:object_r:persist_debug_prop:s0"
libc: fsetxattr failed to set context (u:object_r:audio_prop:s0) for "/dev/__properties__/u:object_r:audio_prop:s0"
libc: fsetxattr failed to set context (u:object_r:nfc_prop:s0) for "/dev/__properties__/u:object_r:nfc_prop:s0"
libc: fsetxattr failed to set context (u:object_r:net_dns_prop:s0) for "/dev/__properties__/u:object_r:net_dns_prop:s0"
libc: fsetxattr failed to set context (u:object_r:net_radio_prop:s0) for "/dev/__properties__/u:object_r:net_radio_prop:s0"
libc: fsetxattr failed to set context (u:object_r:logpersistd_logging_prop:s0) for "/dev/__properties__/u:object_r:logpersistd_logging_prop:s0"
libc: fsetxattr failed to set context (u:object_r:wifi_log_prop:s0) for "/dev/__properties__/u:object_r:wifi_log_prop:s0"
libc: fsetxattr failed to set context (u:object_r:log_tag_prop:s0) for "/dev/__properties__/u:object_r:log_tag_prop:s0"
libc: fsetxattr failed to set context (u:object_r:log_prop:s0) for "/dev/__properties__/u:object_r:log_prop:s0"
libc: fsetxattr failed to set context (u:object_r:hwservicemanager_prop:s0) for "/dev/__properties__/u:object_r:hwservicemanager_prop:s0"
libc: fsetxattr failed to set context (u:object_r:radio_prop:s0) for "/dev/__properties__/u:object_r:radio_prop:s0"
libc: fsetxattr failed to set context (u:object_r:dumpstate_options_prop:s0) for "/dev/__properties__/u:object_r:dumpstate_options_prop:s0"
libc: fsetxattr failed to set context (u:object_r:dumpstate_prop:s0) for "/dev/__properties__/u:object_r:dumpstate_prop:s0"
libc: fsetxattr failed to set context (u:object_r:pan_result_prop:s0) for "/dev/__properties__/u:object_r:pan_result_prop:s0"
libc: fsetxattr failed to set context (u:object_r:dhcp_prop:s0) for "/dev/__properties__/u:object_r:dhcp_prop:s0"
libc: fsetxattr failed to set context (u:object_r:system_prop:s0) for "/dev/__properties__/u:object_r:system_prop:s0"
libc: fsetxattr failed to set context (u:object_r:debuggerd_prop:s0) for "/dev/__properties__/u:object_r:debuggerd_prop:s0"
libc: fsetxattr failed to set context (u:object_r:debug_prop:s0) for "/dev/__properties__/u:object_r:debug_prop:s0"
libc: fsetxattr failed to set context (u:object_r:dalvik_prop:s0) for "/dev/__properties__/u:object_r:dalvik_prop:s0"
libc: fsetxattr failed to set context (u:object_r:config_prop:s0) for "/dev/__properties__/u:object_r:config_prop:s0"
libc: fsetxattr failed to set context (u:object_r:bluetooth_prop:s0) for "/dev/__properties__/u:object_r:bluetooth_prop:s0"
libc: fsetxattr failed to set context (u:object_r:default_prop:s0) for "/dev/__properties__/u:object_r:default_prop:s0"
libc: fsetxattr failed to set context (u:object_r:properties_serial:s0) for "/dev/__properties__/properties_serial"

bieyouyu avatar Aug 29 '22 02:08 bieyouyu

Can you provide the full logs (check instruction in issue template)?

BTW, should support binderfs instead of binder

zhouziyang avatar Aug 29 '22 03:08 zhouziyang

Full logs is here: logs.zip

bieyouyu avatar Aug 29 '22 03:08 bieyouyu

# CONFIG_ANDROID_BINDERFS is not set obviously, binderfs is not enabled.

zhouziyang avatar Aug 29 '22 04:08 zhouziyang

I have added CONFIG_ANDROID_BINDERFS=y to the .config file, but docker still starts with the same error.

root@aml:/# docker run -itd \
>     --memory-swappiness=0 \
>     -v /root/test/data:/data \
>     -p 55555:5555 \
>     redroid/redroid:8.1.0-latest \
>     androidboot.hardware=mt6891 ro.secure=0 ro.boot.hwc=GLOBAL    ro.ril.oem.imei=861503068361145 ro.ril.oem.imei1=861503068361145 ro.ril.oem.imei2=861503068361148 ro.ril.miui.imei0=861503068361148 ro.product.manufacturer=Xiaomi ro.build.product=chopin \
>     redroid.width=720 redroid.height=1280 \
>     redroid.gpu.mode=guest \
>     --rm
252b7fb591856ce546c2b1e17e6462b81092d7bb4ea645b28c282c0f901079a1
root@aml:/# docker ps -aq
252b7fb59185
root@aml:/# bash /home/debug.sh 252b7fb59185
USAGE: debug.sh [container]


creating tmp dir: /tmp/tmp.J2AYkvqgJj
Error response from daemon: Container 252b7fb591856ce546c2b1e17e6462b81092d7bb4ea645b28c282c0f901079a1 is not running
Error response from daemon: Container 252b7fb591856ce546c2b1e17e6462b81092d7bb4ea645b28c282c0f901079a1 is not running
Error response from daemon: Container 252b7fb591856ce546c2b1e17e6462b81092d7bb4ea645b28c282c0f901079a1 is not running
Error response from daemon: Container 252b7fb591856ce546c2b1e17e6462b81092d7bb4ea645b28c282c0f901079a1 is not running
tar: Removing leading `/' from member names
all logs collected in /tmp/tmp.J2AYkvqgJj.tgz

Full logs: tmp.zip

bieyouyu avatar Aug 31 '22 03:08 bieyouyu

your container cannot started. And I cannot find any useful logs in dmesg.txt (try grep init: init first stage started).

Is that possible to use ubuntu generic kernel? And redroid should work out of the box.

zhouziyang avatar Aug 31 '22 04:08 zhouziyang

stale

zhouziyang avatar Jan 16 '23 11:01 zhouziyang