puccaso
Posts: 18
Joined: Mon Oct 29, 2018 9:56 pm

Rasbian with 64bit kernel, 32bit userland

Mon Nov 26, 2018 7:39 pm

Hello everyone,

So i've been working on trying to get everything moved over to 64bit - we can get into why later,
but i've started with just the kernel
the system runs fine
definitely not as snappy as the 32bit kernel (which is weird, no?)
and some graphics hiccups when watching youtube via chromium.

its spitting out a lot of errors,
could someone help me decipher what tjese actually mean? :D

Code: Select all

mahir@txq:~ $ chromium-browser 
 --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
Fontconfig warning: "/etc/fonts/fonts.conf", line 160: blank doesn't take any effect anymore. please remove it from your fonts.conf
[7439:7439:1126/193243.883705:ERROR:gpu_process_transport_factory.cc(1029)] Lost UI shared context.
[7439:7526:1126/193244.196456:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.Notifications.GetCapabilities: object_path= /org/freedesktop/Notifications: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[7533:7533:1126/193246.825909:ERROR:sandbox_linux.cc(375)] InitializeSandbox() called with multiple threads in process gpu-process.
[7439:7487:1126/193248.265985:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[7439:7479:1126/193248.625025:ERROR:udev_watcher.cc(60)] Failed to begin udev enumeration.
[7439:7487:1126/193248.692364:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[7439:7487:1126/193248.777777:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[7439:7759:1126/193320.540164:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7439:7759:1126/193320.542173:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7439:7759:1126/193320.543679:ERROR:object_proxy.cc(626)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7439:7457:1126/193325.402120:ERROR:sandbox_ipc_linux.cc(438)] /dev/vcio: ioctl: Inappropriate ioctl for device (25)
usrvcsm: [vcsm_malloc_cache]: [1] [mmal_vc_port buffer]: NULL size or invalid device!
usrvcsm: [vcsm_vc_hdl_from_hdl]: [1]: invalid device or handle!
usrvcsm: [vcsm_lock]: [1]: invalid device or invalid handle!
mmal: mmal_vc_shm_alloc: could not allocate 122880 bytes of shared memory (handle 0)
mmal: mmal_vc_port_payload_alloc: vc.ril.resize:out:0(bgra): failed to allocate 122880 bytes of shared memory
mmal: mmal_pool_initialise_buffer_headers: failed to allocate payload 0/16
[1:19:1126/193325.468546:ERROR:mmal_video_decoder.cc(1340)] ### mmal_port_pool_create failed: 16*122880
[7439:7457:1126/193516.636300:ERROR:sandbox_ipc_linux.cc(438)] /dev/vcio: ioctl: Inappropriate ioctl for device (25)
usrvcsm: [vcsm_malloc_cache]: [1] [mmal_vc_port buffer]: NULL size or invalid device!
usrvcsm: [vcsm_vc_hdl_from_hdl]: [1]: invalid device or handle!
usrvcsm: [vcsm_lock]: [1]: invalid device or invalid handle!
mmal: mmal_vc_shm_alloc: could not allocate 122880 bytes of shared memory (handle 0)
mmal: mmal_vc_port_payload_alloc: vc.ril.resize:out:0(bgra): failed to allocate 122880 bytes of shared memory
mmal: mmal_pool_initialise_buffer_headers: failed to allocate payload 0/16
[1:19:1126/193516.661074:ERROR:mmal_video_decoder.cc(1340)] ### mmal_port_pool_create failed: 16*122880
[7439:7457:1126/193532.193621:ERROR:sandbox_ipc_linux.cc(438)] /dev/vcio: ioctl: Inappropriate ioctl for device (25)
usrvcsm: [vcsm_malloc_cache]: [1] [mmal_vc_port buffer]: NULL size or invalid device!
usrvcsm: [vcsm_vc_hdl_from_hdl]: [1]: invalid device or handle!
usrvcsm: [vcsm_lock]: [1]: invalid device or invalid handle!
mmal: mmal_vc_shm_alloc: could not allocate 122880 bytes of shared memory (handle 0)
mmal: mmal_vc_port_payload_alloc: vc.ril.resize:out:0(bgra): failed to allocate 122880 bytes of shared memory
mmal: mmal_pool_initialise_buffer_headers: failed to allocate payload 0/16
[1:19:1126/193532.241998:ERROR:mmal_video_decoder.cc(1340)] ### mmal_port_pool_create failed: 16*122880
mahir@txq:~ $ 
how might one go about remedying this output?

User avatar
TehWoomiestRPI
Posts: 12
Joined: Thu Apr 07, 2016 7:39 pm

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 1:01 am

Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

Anyway, what kernel source did you use?
What compiler?
What C-Flags did you use for the compile?
What version of the kernel?
Which version of the Pi 3?

EDIT: Also, best to ignore anyone that questions why you're doing this. It will just end up into some stupid debate with users that don't understand low level systems architecture.

fanoush
Posts: 479
Joined: Mon Feb 27, 2012 2:37 pm

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 6:02 am

Code: Select all

mmal: mmal_vc_shm_alloc: could not allocate 122880 bytes of shared memory (handle 0)
mmal: mmal_vc_port_payload_alloc: vc.ril.resize:out:0(bgra): failed to allocate 122880 bytes of shared memory
This may be related to kernel. POSIX shared memory is kernel feature.

User avatar
bensimmo
Posts: 4175
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 7:35 am

It's not forbidden and I'm sure others have done it before as I remember scanning over various posts, even RPi know they need move over at some point.
My laptop uses their desktop and it 32bit user, 64 kernel.

It's just 32bit for ease at the moment in Raspbian.

fruitoftheloom
Posts: 20733
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 7:49 am

TehWoomiestRPI wrote:
Tue Nov 27, 2018 1:01 am
Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

That is total poppycock...

...it has been explained many times that Raspbian ARM64 for ARMv8 RPis would take a lot of manpower to maintain, the manpower needed can be better utilised for furthering the goals of the RPF Charity.

There are many ARM64 Community OSes if one wants to go down that route.


When eventually in the distant future when we have a 'new' family of RPis I am certain ARM64 will be the norm.
Retired disgracefully.....

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 9:25 am

TehWoomiestRPI wrote:
Tue Nov 27, 2018 1:01 am
Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

Anyway, what kernel source did you use?
What compiler?
What C-Flags did you use for the compile?
What version of the kernel?
Which version of the Pi 3?

EDIT: Also, best to ignore anyone that questions why you're doing this. It will just end up into some stupid debate with users that don't understand low level systems architecture.
We have few rules here, but the main one is don't be a dick. So don't be a dick.

Lots of people here have been working on systems architecture since the PDP-11 days, so I suggest they probably know more about it that you do. So be very careful who you pick fights with.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

User avatar
TehWoomiestRPI
Posts: 12
Joined: Thu Apr 07, 2016 7:39 pm

Re: Rasbian with 64bit kernel, 32bit userland

Tue Nov 27, 2018 6:22 pm

fanoush wrote:
Tue Nov 27, 2018 6:02 am

Code: Select all

mmal: mmal_vc_shm_alloc: could not allocate 122880 bytes of shared memory (handle 0)
mmal: mmal_vc_port_payload_alloc: vc.ril.resize:out:0(bgra): failed to allocate 122880 bytes of shared memory
This may be related to kernel. POSIX shared memory is kernel feature.
It looks like it has to deal with VC4, not being able to use the /Opt/VC libraries for the GPU. As MMAL libraries are 32-bit only and use a lot of 32-bit address spacing. They would need to be ported to a higher language (So they could be recompiled to 32/64bit with the same code), or recoded for 64-bit address spacing in ARM assembler.
jamesh wrote:
Tue Nov 27, 2018 9:25 am
TehWoomiestRPI wrote:
Tue Nov 27, 2018 1:01 am
Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

Anyway, what kernel source did you use?
What compiler?
What C-Flags did you use for the compile?
What version of the kernel?
Which version of the Pi 3?

EDIT: Also, best to ignore anyone that questions why you're doing this. It will just end up into some stupid debate with users that don't understand low level systems architecture.
We have few rules here, but the main one is don't be a dick. So don't be a dick.

Lots of people here have been working on systems architecture since the PDP-11 days, so I suggest they probably know more about it that you do. So be very careful who you pick fights with.
Than you do*

puccaso
Posts: 18
Joined: Mon Oct 29, 2018 9:56 pm

Re: Rasbian with 64bit kernel, 32bit userland

Wed Nov 28, 2018 4:45 pm

really sorry for the late reply here

so didn’t even intentionally upgrade the arm64
but i was trying to get the usb bootcode thingi working and i did an rpi-update with NEXT branch
so everything was done on the raspbian system itself..
so currently this is the system

Linux txq 4.14.34-v8+ #1 SMP PREEMPT Tue Apr 17 02:45:42 PDT 2018 aarch64 GNU/Linux
I am using Rpi3+b


TehWoomiestRPI wrote:
Tue Nov 27, 2018 1:01 am
Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

Anyway, what kernel source did you use?
What compiler?
What C-Flags did you use for the compile?
What version of the kernel?
Which version of the Pi 3?

EDIT: Also, best to ignore anyone that questions why you're doing this. It will just end up into some stupid debate with users that don't understand low level systems architecture.
we gotta break the rules sometimes.

User avatar
TehWoomiestRPI
Posts: 12
Joined: Thu Apr 07, 2016 7:39 pm

Re: Rasbian with 64bit kernel, 32bit userland

Wed Nov 28, 2018 9:00 pm

puccaso wrote:
Wed Nov 28, 2018 4:45 pm
really sorry for the late reply here

so didn’t even intentionally upgrade the arm64
but i was trying to get the usb bootcode thingi working and i did an rpi-update with NEXT branch
so everything was done on the raspbian system itself..
so currently this is the system

Linux txq 4.14.34-v8+ #1 SMP PREEMPT Tue Apr 17 02:45:42 PDT 2018 aarch64 GNU/Linux
I am using Rpi3+b


TehWoomiestRPI wrote:
Tue Nov 27, 2018 1:01 am
Of course no one responds, 64bit discussion is forbidden... but im a rule breaker :p

Anyway, what kernel source did you use?
What compiler?
What C-Flags did you use for the compile?
What version of the kernel?
Which version of the Pi 3?

EDIT: Also, best to ignore anyone that questions why you're doing this. It will just end up into some stupid debate with users that don't understand low level systems architecture.
we gotta break the rules sometimes.
Wait really? You did a rpi-update with BRANCH=next and it gave you a AARCH64-bit kernel?!

puccaso
Posts: 18
Joined: Mon Oct 29, 2018 9:56 pm

Re: Rasbian with 64bit kernel, 32bit userland

Wed Nov 28, 2018 10:59 pm

Yes sir

I actually just went back to the kernel7 kernel And all is well

I'd be lying if I wasn't curious tho.. is that a good or a bad thing? That the next branch gave me a 64bit kernel?

User avatar
KingOfLostFools
Posts: 18
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Rasbian with 64bit kernel, 32bit userland

Thu Nov 29, 2018 2:14 am

jamesh wrote:
Tue Nov 27, 2018 9:25 am
Lots of people here have been working on systems architecture since the PDP-11 days, so I suggest they probably know more about it that you do. So be very careful who you pick fights with.
To be honest I preferred the PDP-8 myself, the PDP-11 was a bit too flash.
Time is the fire in which we burn - Delmore Schwartz

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: Rasbian with 64bit kernel, 32bit userland

Thu Nov 29, 2018 6:19 am

There is a way to compile a 64-bit kernel for the Raspberry Pi 3, but I recommend using a distro such as Ubuntu MATE where there is actually an arm64 architecture in the repositories. I'm building a minimal 64-bit Ubuntu 18.10 image for the Pi using debootstrap, and have already compiled the 64-bit kernel and installed the kernel modules, all I need to do now is try the image out.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

User avatar
Gavinmc42
Posts: 3736
Joined: Wed Aug 28, 2013 3:31 am

Re: Rasbian with 64bit kernel, 32bit userland

Thu Nov 29, 2018 7:39 am

64bit Gentoo running 32bit stuff sort of, will it run the userland stuff?
viewtopic.php?f=54&t=211260

The OpenGL driver is 64 bit?
So 64bit access to VC4 must be working for that.
Some baremetal stuff is skipping userland and going direct.
Has anyone done a baremetal camera interface?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Raspbian”