Not able to get context object on /dev/binder
Hi Jeff Kim I'm following your instruction but there are some errors:
Build C/C++ binaries and libraries -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- The C compiler identification is Clang 14.0.0 -- The CXX compiler identification is Clang 14.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find FLEX (missing: FLEX_EXECUTABLE) -- Could NOT find BISON (missing: BISON_EXECUTABLE) CMake Error at CMakeLists.txt:397 (FLEX_TARGET): Unknown CMake command "FLEX_TARGET". -- Configuring incomplete, errors occurred!
Could you point me out what am I missing?
My kernel version: 5.16.5-051605-generic
Thank you in advanced!
I already built successfully, but get some error like this when testing: ProcessState W 07-01 10:00:26 121150 121150 Not able to get context object on /dev/binder. ServiceManager E 07-01 10:00:26 121150 121150 Waiting 1s on context object on /dev/binder.
-
I mounted binderfs first:
$ mkdir /dev/binderfs
-
Then install Anbox module refer to: https://github.com/anbox/anbox-modules
-
And the last one:
$ mount -t binder binder /dev/binderfs
I was confused in this step: Create binder device file $ ./binder_device /dev/binderfs/binder-control binder $ chmod a+rw /dev/binderfs/binder
Binder has already allocated there, I try to delete then create new binder but there is nothing change.
If you already has binder device, you don't need to create it again. My guide is based on pure Linux environment. So, the creation of binder device was necessary,