You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
missing kernel symbol in arm64 5.10.11-v8+ for anbox #4162
I particularly like the comments "What a bunch of incompetent monkeys." and "You do realise this project hasn't been properly maintained in ages right?"
However, this comment suggests that you shouldn't need an out-of-tree module any more. Report back when you've found out what is needed.
My understanding they are in Ubuntu kernel but not in raspberry arm64 kernel. just few raspberry kernels back (couple months ago) I was able to follow the steps and load those modules following that procedure.
On Feb 21, 2021, at 12:19 PM, Phil Elwell ***@***.***> wrote:
And also anbox/anbox-modules#49.
I particularly like the comments "What a bunch of incompetent monkeys." and "You do realise this project hasn't been properly maintained in ages right?"
However, this comment suggests that you shouldn't need an out-of-tree module any more. Report back when you've found out what is needed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
External modules are not needed in that kernel. They have to be enabled in the kernel config in 2 different places and recompiled though.
# Android
#
CONFIG_ASHMEM=y
# end of Android
...
...
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android
I have been testing anbox after each kernel new kernel compile with aarch64 for quite a while and it works well.
Can you please send instructions how raspi os kernel has to be compiled with these 2 modules without compromising/removing what is in the kernel provided by raspberry pi os arm64?
Thanks a lot
On Feb 22, 2021, at 11:56 AM, Ray Sherwin ***@***.***> wrote:
External modules are not needed in that kernel. They have to be enabled in the kernel config in 2 different places and recompiled though.
# Android
#
CONFIG_ASHMEM=y
# end of Android
...
...
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android
I have been testing anbox after each kernel new kernel compile with aarch64 and it works well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
This area is for issues with the RPi kernels. You should open up a thread on the raspberry pi forums and provide the info I gave above and ask for help getting the kernel compiled since you evidently know very little about the subject.
Really this issue should be closed as it has nothing to due with an issue with the kernel.
Wouldn’t make it easier for all if stock raspberry pi arm64 kernel contained it precompiled already so “incompetent monkeys” like me stoped bothering others with questions?
Thanks
On Feb 22, 2021, at 2:17 PM, Ray Sherwin ***@***.***> wrote:
This area is for issues with the RPi kernels. You should open up a thread on the raspberry pi forums and provide the info I gave above and ask for help getting the kernel compiled since you evidently know very little about the subject.
Really this issue should be closed as it has nothing to due with an issue with the kernel.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
We will usually consider enabling minor build options on request, but CONFIG_ANDROID does not sound like a minor build option - more like a personality transplant.
I just wanted to kindly repeat the request to consider enabling CONFIG_ANDROID in Raspberry Pi kernels per default. ashmem and binder (which are required for Anbox) are just about 5000 lines of C code. I don't think that this counts as a "personality transplant" :-) . Anbox used to work well before the upgrade to kernel 5.10 and I would be happy to use it still with newer kernels. Building a custom kernel is very involved and not user-friendly at all - to keep your system secure and up-to-date I'd also need to rebuild this kernel regularly.
If the following kernel options could be enabled, I'd be very happy:
Unfortunately, it is no longer possible to build anbox and binder as kernel modules - except if I'd consider to apply dirt patches like this one lttng/lttng-modules@a657654 to "anbox-modules", which I'm almost desperate enough to do....
Since these options appear to need to be built in to the kernel (not modules), we would need to know the impact that having them has on the below, before we could even start to make a decision ion whether to include them.
thanks for your response. I will get back to you as soon as I have an answer to all of your above questions. This might take me a couple of days, as I will need to build a custom kernel with these kernel options enabled. I will also need to review the code of Ashmem and Binder to be able to judge a potential impact on performance and memory usage.
Just to warn you, if any of these things have any noticeable impact, then its very unlikely this option will be added, as it would affect everyone for only a few peoples benefit. (Not withstanding any other objections from our maintainer). Note, figures for Pi Zero would also be relevant here I think, as that show performance hits much more clearly than Pi4's.
sorry for the late reply - during the week I didn't have enough time to look into this topic and so I needed to postpone this Anbox kernel investigation to the weekend. I finally got Anbox to work again with a custom 5.10 kernel! Unfortunately, kernel modifications are required for this. Just enabling the kernel config options for ashmem and binder that I posted above is not sufficient...
This was already an issue with older kernels, where ashmem and binder could still be compiled as modules. Back then the workaround was simply to compile the patched kernel modules out-of-tree. This is now no longer an option as ashmem and binder cannot be compiled as modules anymore. I think I finally need to get in touch with the developers of Binder and Anbox to resolve this issue, so that the required patch to Binder can be mainlined in some way.
I will be on vacation starting next week (without internet access) and so all this will need to wait a while. I will get back to you as soon as I have an update.
Ashmem and Binder should not have a negative impact on performance and memory size. Basically, these are just character devices that are created and if you don't use them, you don't have any memory or performance impact. I reviewed the source code to be sure. But I will get back to you with a more detailed report after the issue with the kernel modifications is solved.
Hello Mikhael,
Thanks for the reminder! Unfortunately, I am still on vacation without access to a computer... ☹ I will start working on this in 2 weeks, when I am back again..
I think the first step would be to resolve some issues when building Anbox on ARM, which currently requires code modifications. Afterwards, we can get back to the Raspberry Pi kernel developers and maybe reopen this issue. I will keep you updated on the progress .
Best regards, Christian
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Mikhail Grushinskiy ***@***.***> Date: 31/03/2021 20:51 (GMT+03:00) To: raspberrypi/linux ***@***.***> Cc: Christian Hoff ***@***.***>, Comment ***@***.***> Subject: Re: [raspberrypi/linux] missing kernel symbol in arm64 5.10.11-v8+ for anbox (#4162)
Christian,
Any updates on this? Should this be re-open?
thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#4162 (comment)",
"url": "#4162 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
Activity
pelwell commentedon Feb 21, 2021
And also anbox/anbox-modules#49.
I particularly like the comments "What a bunch of incompetent monkeys." and "You do realise this project hasn't been properly maintained in ages right?"
However, this comment suggests that you shouldn't need an out-of-tree module any more. Report back when you've found out what is needed.
mgrouch commentedon Feb 21, 2021
Dark-Sky commentedon Feb 22, 2021
External modules are not needed in that kernel. They have to be enabled in the kernel config in 2 different places and recompiled though.
I have been testing anbox after each kernel new kernel compile with aarch64 for quite a while and it works well.
mgrouch commentedon Feb 22, 2021
Dark-Sky commentedon Feb 22, 2021
This area is for issues with the RPi kernels. You should open up a thread on the raspberry pi forums and provide the info I gave above and ask for help getting the kernel compiled since you evidently know very little about the subject.
Really this issue should be closed as it has nothing to due with an issue with the kernel.
mgrouch commentedon Feb 22, 2021
pelwell commentedon Feb 22, 2021
We will usually consider enabling minor build options on request, but CONFIG_ANDROID does not sound like a minor build option - more like a personality transplant.
choff commentedon Mar 7, 2021
Hello @pelwell ,
I just wanted to kindly repeat the request to consider enabling CONFIG_ANDROID in Raspberry Pi kernels per default. ashmem and binder (which are required for Anbox) are just about 5000 lines of C code. I don't think that this counts as a "personality transplant" :-) . Anbox used to work well before the upgrade to kernel 5.10 and I would be happy to use it still with newer kernels. Building a custom kernel is very involved and not user-friendly at all - to keep your system secure and up-to-date I'd also need to rebuild this kernel regularly.
If the following kernel options could be enabled, I'd be very happy:
Unfortunately, it is no longer possible to build anbox and binder as kernel modules - except if I'd consider to apply dirt patches like this one lttng/lttng-modules@a657654 to "anbox-modules", which I'm almost desperate enough to do....
Please consider it again.
Best regards,
Christian
JamesH65 commentedon Mar 7, 2021
Since these options appear to need to be built in to the kernel (not modules), we would need to know the impact that having them has on the below, before we could even start to make a decision ion whether to include them.
choff commentedon Mar 8, 2021
Hello @JamesH65 ,
thanks for your response. I will get back to you as soon as I have an answer to all of your above questions. This might take me a couple of days, as I will need to build a custom kernel with these kernel options enabled. I will also need to review the code of Ashmem and Binder to be able to judge a potential impact on performance and memory usage.
Best regards,
Christian
JamesH65 commentedon Mar 8, 2021
Just to warn you, if any of these things have any noticeable impact, then its very unlikely this option will be added, as it would affect everyone for only a few peoples benefit. (Not withstanding any other objections from our maintainer). Note, figures for Pi Zero would also be relevant here I think, as that show performance hits much more clearly than Pi4's.
choff commentedon Mar 14, 2021
Hello @JamesH65 and @pelwell ,
sorry for the late reply - during the week I didn't have enough time to look into this topic and so I needed to postpone this Anbox kernel investigation to the weekend. I finally got Anbox to work again with a custom 5.10 kernel! Unfortunately, kernel modifications are required for this. Just enabling the kernel config options for ashmem and binder that I posted above is not sufficient...
This was already an issue with older kernels, where ashmem and binder could still be compiled as modules. Back then the workaround was simply to compile the patched kernel modules out-of-tree. This is now no longer an option as ashmem and binder cannot be compiled as modules anymore. I think I finally need to get in touch with the developers of Binder and Anbox to resolve this issue, so that the required patch to Binder can be mainlined in some way.
I will be on vacation starting next week (without internet access) and so all this will need to wait a while. I will get back to you as soon as I have an update.
Ashmem and Binder should not have a negative impact on performance and memory size. Basically, these are just character devices that are created and if you don't use them, you don't have any memory or performance impact. I reviewed the source code to be sure. But I will get back to you with a more detailed report after the issue with the kernel modifications is solved.
Best regards,
Christian
mgrouch commentedon Mar 31, 2021
Christian,
Any updates on this? Should this be re-open?
thanks
choff commentedon Apr 1, 2021
10 remaining items
kernel: Improvements to hdmi-codec and conversion of vc4-hdmi
configs: Enable Anbox support on arm64 builds
configs: Enable Anbox support on arm64 builds
kernel: Bump to 5.10.44
kernel: Bump to 5.10.44
configs: Enable Anbox support on arm64 builds
configs: Enable Anbox support on arm64 builds
configs: Enable Anbox support on arm64 builds
mgrouch commentedon Jul 30, 2021
Hello,
Did it make it into recently released
raspberry pi kernel 20210727?
thanks
popcornmix commentedon Jul 30, 2021
It's been in (64-bit) kernel builds since 16 June.
mgrouch commentedon Jul 30, 2021
I have arm64 bit kernel 5.10.52-v8+
There is /dev/ashmem
but no
/dev/binder
What is the correct procedure to enable them?
Thanks
configs: Enable Anbox support on arm64 builds
mgrouch commentedon Oct 16, 2021
@choff
@chrihoff
Christian,
I've built an OS image with 64-bit kernel and armhf user space.
https://bareboat-necessities.github.io/my-bareboat/bareboat-os.html
I'd love to build (at least experimental) support for anbox.
Have you got it running by any chance in this kind of set up?
Thanks a lot,
--MG
Botspot commentedon Mar 5, 2022
According to here, you can enable /dev/binder with these commands: