Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Not running on manjaro #236

Open
antikruk opened this issue May 6, 2017 · 14 comments
Open

Not running on manjaro #236

antikruk opened this issue May 6, 2017 · 14 comments

Comments

@antikruk
Copy link

antikruk commented May 6, 2017

$ anbox system-info
version: 0.1.0
os:
name: Manjaro Linux
version:
snap-based: false
kernel:
version: Linux version 4.10.12-1-MANJARO (builduser@manjaro) (gcc version 6.3.1 20170306 (GCC) ) #1 SMP PREEMPT Fri Apr 21 08:19:46 UTC 2017
binder: true
ashmem: true
graphics:
egl:
vendor: Mesa Project
version: 1.4 (DRI2)
extensions:
- EGL_CHROMIUM_sync_control
- EGL_EXT_buffer_age
- EGL_EXT_image_dma_buf_import
- EGL_KHR_config_attribs
- EGL_KHR_create_context
- EGL_KHR_fence_sync
- EGL_KHR_get_all_proc_addresses
- EGL_KHR_gl_renderbuffer_image
- EGL_KHR_gl_texture_2D_image
- EGL_KHR_gl_texture_3D_image
- EGL_KHR_gl_texture_cubemap_image
- EGL_KHR_image
- EGL_KHR_image_base
- EGL_KHR_image_pixmap
- EGL_KHR_no_config_context
- EGL_KHR_reusable_sync
- EGL_KHR_surfaceless_context
- EGL_KHR_wait_sync
- EGL_MESA_configless_context
- EGL_MESA_drm_image
- EGL_MESA_image_dma_buf_export
- EGL_NOK_texture_from_pixmap
- EGL_WL_bind_wayland_display
gles2:
vendor: Intel Open Source Technology Center
vendor: OpenGL ES-CM 1.1 Mesa 17.0.4
extensions:
- GL_EXT_blend_minmax
- GL_EXT_multi_draw_arrays
- GL_EXT_texture_filter_anisotropic
- GL_EXT_texture_lod_bias
- GL_OES_byte_coordinates
- GL_OES_fixed_point
- GL_OES_stencil_wrap
- GL_OES_compressed_paletted_texture
- GL_OES_query_matrix
- GL_OES_read_format
- GL_OES_single_precision
- GL_EXT_texture_compression_dxt1
- GL_OES_draw_texture
- GL_OES_point_size_array
- GL_OES_point_sprite
- GL_EXT_texture_format_BGRA8888
- GL_OES_compressed_ETC1_RGB8_texture
- GL_OES_depth24
- GL_OES_element_index_uint
- GL_OES_fbo_render_mipmap
- GL_OES_framebuffer_object
- GL_OES_mapbuffer
- GL_OES_rgb8_rgba8
- GL_OES_stencil8
- GL_OES_texture_env_crossbar
- GL_OES_texture_mirrored_repeat
- GL_OES_texture_npot
- GL_OES_EGL_image
- GL_OES_packed_depth_stencil
- GL_OES_texture_cube_map
- GL_APPLE_texture_max_level
- GL_EXT_discard_framebuffer
- GL_EXT_read_format_bgra
- GL_OES_blend_equation_separate
- GL_OES_blend_func_separate
- GL_OES_blend_subtract
- GL_OES_EGL_image_external
- GL_OES_EGL_sync
- GL_OES_vertex_array_object
- GL_ANGLE_texture_compression_dxt3
- GL_ANGLE_texture_compression_dxt5
- GL_EXT_map_buffer_range
- GL_KHR_debug
- GL_OES_surfaceless_context
- GL_EXT_polygon_offset_clamp

$ ANBOX_LOG_LEVEL=debug anbox session-manager --gles-driver=host
[DD 2017-05-06 12:29:43] [Renderer.cpp:166@initialize] Using a surfaceless EGL context
[DD 2017-05-06 12:29:43] [Renderer.cpp:249@initialize] Successfully initialized EGL

$ anbox launch
[WW 2017-05-06 12:30:47] [launch.cpp:115@operator()] Stop waiting as we're already waiting for too long. Something is wrong
[WW 2017-05-06 12:30:47] [launch.cpp:116@operator()] with your setup and the container may have failed to boot.

@Yukariin
Copy link

Yukariin commented May 6, 2017

Try to check /dev/binder and /dev/ashmem permissions. They should be 0666.
I saw similar issue on my Gentoo build when I forgot to fix these devices permissions.

@antikruk
Copy link
Author

antikruk commented May 6, 2017

No , permissions 666

@Yukariin
Copy link

Yukariin commented May 6, 2017

Well, then use adb logcat to look into container.

@antikruk
Copy link
Author

antikruk commented May 6, 2017

$ adb logcat anbox

  • waiting for device -

@Yukariin
Copy link

Yukariin commented May 7, 2017

adb logcat works fine for me.

@morphis
Copy link
Member

morphis commented May 7, 2017

@Yukariin Please give us the output of what adb logcat gives you.

@Yukariin
Copy link

Yukariin commented May 7, 2017

@morphis in my case I mention before (wrong device permissions) it says /dev/binder: Permission denied and this causes boot hang for me. So I just suggest @antikruk to check these files in case he have same issue.

@nickedev
Copy link

To run in manjaro (I used yaourt) I first installed the system kernel headers for the DKMS.

  • "yaourt -s linux-headers" (I found the version compatible with my my kernel - 4.10.12-1-MANJARO)

Then I compiled the anbox with the following packages

  • "aur/anbox-git"
  • "aur/anbox-image"
  • "aur/anbox-modules-dkms-git"

I started the container-manager service

  • "sudo systemctl start anbox-container-manager.service"

I added the host driver in /usr/lib/systemd/user/anbox-session-manager.service changing the line:

  • From "ExecStart=/usr/bin/anbox session-manager"
  • To "ExecStart=/usr/bin/anbox session-manager --gles-driver=host"

I started the user service:

  • "systemctl --user start anbox-session-manager.service"

And finally I clicked the wiskermenu anbox shortcut and ran smoothly on the call.

But is still having DNS resolution problems.

@adeleglise
Copy link

Hi,

I followed @nickecalifornia instructions, but I'm still unable to lauch the session-manager.

It seems that the kernel modules are not loaded and modprobe binder_linux throm an error :

modprobe: FATAL: Module binder_linux not found in directory /lib/modules/4.9.28-1-MANJARO

Do you have an idea on what I'm missing here ?

@Yukariin
Copy link

@adeleglise did you read what message says?
You miss binder (and ashmem prob) kernel module. I'm Gentoo user, but looks like this module can be installed from aur/anbox-modules-dkms-git package in Arch/Manjaro.
Also if you use 4.11+ Linux kernel - you can use binder and ashmem from mainline kernel without any patches and DKMS.

@adeleglise
Copy link

@Yukariin : obviously I'm running a 4.9.28-1 kernel, as stated in the log message.
I've told that i've followed @nickecalifornia instructions, including the installation of "aur/anbox-git","aur/anbox-image" and "aur/anbox-modules-dkms-git" packages.

Binder files resides in /usr/src/anbox-modules-binder-r578.e82afd1 on my computer.

However, thanks for your answer.

@nickedev
Copy link

nickedev commented May 24, 2017 via email

@adeleglise
Copy link

@nickecalifornia :

uname -r
4.9.28-1-MANJARO

@ibilux
Copy link
Contributor

ibilux commented Jan 6, 2018

I have followed the exact process given by @nickecalifornia above, but when i run :
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
i get error :
[launch.cpp:134@operator()] Anbox session manager service isn't running, trying to start it.

when i run :

sudo anbox container-manager --data-path=/var/lib/anbox ---android-image=/snap/anbox/x1/android.img

i get error :
[container_manager.cpp:98@operator()] bind: Address already in use

infromation using :
anbox system-info

os:
name: Manjaro Linux
version:
snap-based: false
kernel:
version: Linux version 4.14.11-3-MANJARO (builduser@manjaro) (gcc version 7.2.1 20171128 (GCC)) #1 SMP PREEMPT
binder: true
ashmem: true
graphics:
egl:
vendor: Mesa Project
version: 1.4 (DRI2)
extensions:

  • EGL_ANDROID_native_fence_sync
  • EGL_CHROMIUM_sync_control
  • EGL_EXT_buffer_age
  • EGL_EXT_create_context_robustness
  • EGL_EXT_image_dma_buf_import
  • EGL_EXT_image_dma_buf_import_modifiers
  • EGL_KHR_config_attribs
  • EGL_KHR_create_context
  • EGL_KHR_create_context_no_error
  • EGL_KHR_fence_sync
  • EGL_KHR_get_all_proc_addresses
  • EGL_KHR_gl_renderbuffer_image
  • EGL_KHR_gl_texture_2D_image
  • EGL_KHR_gl_texture_3D_image
  • EGL_KHR_gl_texture_cubemap_image
  • EGL_KHR_image
  • EGL_KHR_image_base
  • EGL_KHR_image_pixmap
  • EGL_KHR_no_config_context
  • EGL_KHR_reusable_sync
  • EGL_KHR_surfaceless_context
  • EGL_KHR_wait_sync
  • EGL_MESA_configless_context
  • EGL_MESA_drm_image
  • EGL_MESA_image_dma_buf_export
  • EGL_NOK_texture_from_pixmap
  • EGL_WL_bind_wayland_display
    gles2:
    vendor: Intel Open Source Technology Center
    vendor: OpenGL ES-CM 1.1 Mesa 17.3.1
    extensions:
  • GL_EXT_blend_minmax
  • GL_EXT_multi_draw_arrays
  • GL_EXT_texture_filter_anisotropic
  • GL_EXT_texture_lod_bias
  • GL_OES_byte_coordinates
  • GL_OES_fixed_point
  • GL_OES_stencil_wrap
  • GL_OES_compressed_paletted_texture
  • GL_OES_query_matrix
  • GL_OES_read_format
  • GL_OES_single_precision
  • GL_EXT_texture_compression_dxt1
  • GL_OES_draw_texture
  • GL_OES_point_size_array
  • GL_OES_point_sprite
  • GL_EXT_texture_format_BGRA8888
  • GL_OES_compressed_ETC1_RGB8_texture
  • GL_OES_depth24
  • GL_OES_element_index_uint
  • GL_OES_fbo_render_mipmap
  • GL_OES_framebuffer_object
  • GL_OES_mapbuffer
  • GL_OES_rgb8_rgba8
  • GL_OES_stencil8
  • GL_OES_texture_env_crossbar
  • GL_OES_texture_mirrored_repeat
  • GL_OES_texture_npot
  • GL_OES_EGL_image
  • GL_OES_packed_depth_stencil
  • GL_OES_texture_cube_map
  • GL_APPLE_texture_max_level
  • GL_EXT_discard_framebuffer
  • GL_EXT_read_format_bgra
  • GL_OES_blend_equation_separate
  • GL_OES_blend_func_separate
  • GL_OES_blend_subtract
  • GL_OES_EGL_image_external
  • GL_OES_EGL_sync
  • GL_OES_vertex_array_object
  • GL_ANGLE_texture_compression_dxt3
  • GL_ANGLE_texture_compression_dxt5
  • GL_EXT_map_buffer_range
  • GL_KHR_debug
  • GL_OES_required_internalformat
  • GL_OES_surfaceless_context
  • GL_EXT_compressed_ETC1_RGB8_sub_texture
  • GL_EXT_polygon_offset_clamp
  • GL_KHR_no_error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants