daemon.cpp:61@run org.freedesktop.DBus.Error.Disconnected Failed to flush bus on opening (connection reset by peer)

Я пытаюсь запустить Anbox на моем jetson nano arm64. Ниже вы можете увидеть, как я установил anbox :

Step 1: We need /dev/binder and /dev/ashmem devices for android support.

Because the kernel is 4.9.140, its not possible dkms, or build them as loadable modules. But we can still build the modules in-tree with a kernel build.

Edit the file:

Linux_for_Tegra/source/public/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig file
and add these lines at the end

#Anbox Configuration
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDER_IPC_SELFTEST=y
CONFIG_ASHMEM=y

And do a kernel build with nvbuild.sh and install the modules and new kernel. Now we have the /dev/binder and /dev/ashmem.

Step 2: Set the permissions for the special files

cd /etc/udev/rules.d

Add a new file called 99-anbox.rules with content as:
KERNEL==“ashmem”, NAME="%k", MODE=“0666”
KERNEL==“binder”, NAME="%k", MODE=“0666”

then

sudo udevadm control --reload-rules && udevadm trigger

Step 3: Install an upgraded libSDL2 library

Due to a bug in the libSDL2 library available in 18.04, we need an upgraded version to be built from sources.

Download the libSDL2 sources of 19.04 from here:

https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libsdl2/2.0.9+dfsg1-1ubuntu1.19.04.1/libsdl2_2.0.9+dfsg1.orig.tar.xz

Extract and build:

sudo apt-get build-dep libsdl2-2.0-0
./configure
make
sudo make install

Step 4: Build anbox arm64 from sources

Get the anbox arm64 sources from here:

https://github.com/anbox/anbox

git clone https://github.com/anbox/anbox.git --recurse-submodules
cd anbox
mkdir build
cd build
cmake ..
make
make install

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

which will allow cmake to find the upgraded libSDL2 library.

Step 5: Make it a proper installation

The Step 4 build and install of anbox is not a complete installation unfortunately. We need android image and services and launcher to be setup.

Download a sample android image from here:

http://anbox.postmarketos.org/android-7.1.2_r39-anbox_arm64-userdebug.img

Copy to /var/lib/anbox and rename it as android.img

Since we have to make it a proper installation, we refer to 20.04 arm64 deb of anbox. Its found here:

http://ports.ubuntu.com/pool/multiverse/a/anbox/anbox_0.0~git20191115-1build1_arm64.deb

Extract the deb file and make a copy of the files in data folder in our filesystem with a few changes.

i) copy the anbox executable from `/usr/local/bin to /usr/bin`

ii) Add these lines :

Environment=“DISPLAY=:1”
Environment=XAUTHORITY=/run/user/1000/gdm/

before ExecStart in /usr/lib/systemd/user/anbox-session-manager.service file

Step 6: Start the anbox services

sudo systemctl unmask anbox-container-manager.service
sudo systemctl start anbox-container-manager.service
sudo systemctl enable anbox-container-manager.service

systemctl --user unmask anbox-session-manager.service
systemctl --user start anbox-session-manager.service
systemctl --user enable anbox-session-manager.service

// Check status of the services
sudo systemctl status anbox-container-manager.service
systemctl --user status anbox-session-manager.service

reboot

launch the anbox application manager from the terminal with the command :

anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

он не работает. ошибка :

[daemon.cpp:61@run] [org.freedesktop.DBus.Error.Disconnected] Failed to flush bus on opening (connection reset by peer)

enter image description here

Может кто-нибудь подсказать, как исправить эту ошибку? спасибо.

0
задан 22 March 2021 в 17:54

0 ответов

Другие вопросы по тегам:

Похожие вопросы: