dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5352
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Tue Sep 17, 2019 8:42 pm

We've updated the 64-bit kernel config to match the 32-bit version. See here.
That should resolve some missing features like nf_tables and a number of missing modules like dvb, ir, audio etc

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

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Tue Sep 17, 2019 9:30 pm

can I get 64bit kernel via rpi-update without changing my stable 32bit kernel too?

juko
Posts: 1
Joined: Wed Sep 18, 2019 9:21 am

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Wed Sep 18, 2019 9:30 am

I'd like to try zfs with the new 64bit kernel on Rpi4. I'd expect a performance improvement ...

For 32 bit I used the instructions from: https://github.com/zfsonlinux/pkg-zfs/w ... -Integrity (native root zfs not prio 1, external hdd be 1st step)

For that I need the kernel-headers (to compile sp). As mentioned above, the "rpi-source" script does not work for the 64bit kernel.

How can I generate the kernel headers manually?
Last edited by juko on Wed Sep 18, 2019 2:21 pm, edited 1 time in total.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5352
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Wed Sep 18, 2019 10:48 am

juko wrote:
Wed Sep 18, 2019 9:30 am
For that I need the kernel-headers (to compile sp). As mentioned above, the "rpi-source" script does not work for the 64bit kernel.

How can I generate the kernel headers manually?
I'd try installing the kernel headers when running the 32-bit kernel.
I don't think there will be any difference in the headers you get.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6056
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Wed Sep 18, 2019 10:52 am

I wouldn't expect the kernel-headers package to be enough, since it's missing the module symbols, build directory symlink and other stuff that's normally included. To build out of tree modules, you need the extra stuff that comes with it.

Kendek
Posts: 128
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Wed Sep 18, 2019 11:15 am

juko wrote:
Wed Sep 18, 2019 9:30 am
For that I need the kernel-headers (to compile sp). As mentioned above, the "rpi-source" script does not work for the 64bit kernel.

How can I generate the kernel headers manually?
So are you want to compile a 64-bit kernel module on the Raspbian? I just downloaded the preinstalled arm64 Ubuntu base image, chrooted into it, and compiled against the kernel source.

Code: Select all

make bcm2711_defconfig
make prepare
make scripts

alump
Posts: 3
Joined: Sun Aug 18, 2019 5:59 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Wed Sep 18, 2019 3:50 pm

dom wrote:
Tue Sep 17, 2019 5:21 pm
alump wrote:
Tue Sep 17, 2019 4:52 pm
After running pi few days, something goes wrong with 64bit kernel, and all I/O operations start to timeout
Post complete dmesg log in case there are any useful clues.
Keep an eye out for anything specific that provokes it.
As told I/O will totally freeze, so can't send anything from device. As I can't write dmesg to file, start scp... or do anything that doesn't work by just content that happens to be cached in memory.

But here is image from screen https://photos.app.goo.gl/FW222uuroLxBqEuU8 after one time it froze.

And it froze again after VLI firmware upgrade. So that didn't fix the issue. This time I just couldn't even run dmesg.

EDIT: I will try to cache ssh files, and see if I can pipe dmesg output to another server next time this hangs. And I will attach another USB device, to see if it will hang also same time. Also probably need to check if /boot from microsd can be accessed. It's just hard when any try to read from filesystem will hang.

User avatar
bomblord
Posts: 176
Joined: Sun Jul 14, 2019 2:54 am

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Fri Sep 20, 2019 11:48 am

I'm definitely interested in testing this out. Once I can get a third Micro SD Card I'll throw it on my extra Pi 4.

skibum
Posts: 10
Joined: Fri Jan 27, 2017 1:45 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Fri Sep 20, 2019 12:07 pm

I've found a problem, not specifically with 64bit, as it happened after I've rebooted after doing the rpi-update.

That is my screen in X and cli now has a 1" black border around it.

I initially posted it in the troubleshooting forum here https://www.raspberrypi.org/forums/view ... 8&t=252178

But this morning, I started from a fresh raspbian which worked fine. Then did and update/upgrade and rebooted. Again all fine. Finally ran the rpi-upgrade and rebooted. Then got the black border.

So the rpi-update seems to mess it up.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7458
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Fri Sep 20, 2019 12:13 pm

skibum wrote:
Fri Sep 20, 2019 12:07 pm
I've found a problem, not specifically with 64bit, as it happened after I've rebooted after doing the rpi-update.

That is my screen in X and cli now has a 1" black border around it.

I initially posted it in the troubleshooting forum here https://www.raspberrypi.org/forums/view ... 8&t=252178

But this morning, I started from a fresh raspbian which worked fine. Then did and update/upgrade and rebooted. Again all fine. Finally ran the rpi-upgrade and rebooted. Then got the black border.

So the rpi-update seems to mess it up.
Overscan is now supported by FKMS, with settings passed up from the firmware.
Set disable_overscan=1 in config.txt to disable it (the same as it was on all previous versions of the Pi)
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

bongo123
Posts: 1
Joined: Fri Sep 20, 2019 7:10 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Fri Sep 20, 2019 7:19 pm

I think I have found a problem with Java/OpenJDK:

java -version
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xf5e83828, pid=726, tid=0xf5b2e460
#
# JRE version: (8.0_212-b01) (build )
# Java VM: OpenJDK Client VM (25.212-b01 mixed mode linux-aarch32 )
# Problematic frame:
# V [libjvm.so+0x15e828]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/pi/hs_err_pid726.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Aborted

And here's the mentioned log file:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGBUS (0x7) at pc=0xf5e83828, pid=726, tid=0xf5b2e460
#
# JRE version: (8.0_212-b01) (build )
# Java VM: OpenJDK Client VM (25.212-b01 mixed mode linux-aarch32 )
# Problematic frame:
# V [libjvm.so+0x15e828]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0xf5907400): JavaThread "Unknown thread" [_thread_in_vm, id=727, stack(0xf5adf000,0xf5b2f000)]

siginfo: si_signo: 7 (SIGBUS), si_code: 1 (BUS_ADRALN), si_addr: 0xf594ffcd

Registers:
R0=0x0000000a
R1=0xe33ae170
R2=0xf594ffcd
R3=0xe33ae150
R4=0x00000009
R5=0xf5907400
R6=0xf5b2d820
R7=0x000000e5
R8=0x0000000a
R9=0xf6333000
R10=0xf6333000
R11=0xf5b2d454
R12=0xf594ffd5
R13=0xf5b2d350
R14=0xf594ffcc
R15=0xf5e83828

Top of Stack: (sp=0xf5b2d350)
0xf5b2d350: f78b0258 0000005f 0000006e 0000000d
0xf5b2d360: f62cba30 f5951178 f62cba00 f7999968
0xf5b2d370: 00000000 f62cba5c 00000000 f5b2d398
0xf5b2d380: 00000000 f5900010 f5b2e948 f78b0000
0xf5b2d390: 00000060 f590049c f594ffa0 f5951171
0xf5b2d3a0: f594ffcd f5941150 01001d00 00000000
0xf5b2d3b0: 00000007 f5b2d400 f5b2d3e4 f61719a0
0xf5b2d3c0: 00000000 0000000b f6333000 00000060

Instructions: (pc=0xf5e83828)
0xf5e83808: 48 ff ff 1a b4 20 1b e5 b8 30 1b e5 02 30 43 e0
0xf5e83818: 08 00 53 e3 10 01 00 9a 34 30 96 e5 08 c0 82 e2
0xf5e83828: d0 00 c2 e1 b4 c0 0b e5 04 c0 93 e5 04 31 83 e0
0xf5e83838: 04 c0 8c e0 30 2f bf e6 31 1f bf e6 06 00 a0 e3

Stack: [0xf5adf000,0xf5b2f000], sp=0xf5b2d350, free space=312k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x15e828]
V [libjvm.so+0x15efa8]
V [libjvm.so+0x1652cc]
V [libjvm.so+0x16c384]
V [libjvm.so+0x501e0c]
V [libjvm.so+0x502764]
V [libjvm.so+0x503e40]
V [libjvm.so+0x504080]
V [libjvm.so+0x546f68]
V [libjvm.so+0x547ed8]
V [libjvm.so+0x2982a4]
V [libjvm.so+0x53b5f8]
V [libjvm.so+0x303f2c] JNI_CreateJavaVM+0x9c
C [libjli.so+0x2218]
C [libpthread.so.0+0x6494] start_thread+0xcc
C [libc.so.6+0xd7578]


--------------- P R O C E S S ---------------

Java Threads: ( => current thread )

Other Threads:

=>0xf5907400 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=727, stack(0xf5adf000,0xf5b2f000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.071 loading class java/nio/Buffer done
Event: 0.071 loading class java/lang/Boolean
Event: 0.071 loading class java/lang/Boolean done
Event: 0.071 loading class java/lang/Character
Event: 0.072 loading class java/lang/Character done
Event: 0.072 loading class java/lang/Float
Event: 0.073 loading class java/lang/Number
Event: 0.073 loading class java/lang/Number done
Event: 0.073 loading class java/lang/Float done
Event: 0.073 loading class java/lang/Double


Dynamic libraries:
00010000-00011000 r-xp 00000000 b3:02 253318 /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
00020000-00021000 r--p 00000000 b3:02 253318 /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
00021000-00022000 rw-p 00001000 b3:02 253318 /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
01dcf000-01df0000 rw-p 00000000 00:00 0 [heap]
e30bb000-e3109000 rw-p 00000000 00:00 0
e3109000-e32d8000 r--s 03c3b000 b3:02 253406 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/rt.jar
e32d8000-e3559000 rw-p 00000000 00:00 0
e3559000-e377f000 ---p 00000000 00:00 0
e377f000-e3782000 rw-p 00000000 00:00 0
e3782000-e37a9000 ---p 00000000 00:00 0
e37a9000-e37af000 rw-p 00000000 00:00 0
e37af000-e37ff000 ---p 00000000 00:00 0
e37ff000-e3d50000 rw-p 00000000 00:00 0
e3d50000-e8d50000 ---p 00000000 00:00 0
e8d50000-e9800000 rw-p 00000000 00:00 0
e9800000-f3800000 ---p 00000000 00:00 0
f382a000-f3830000 rw-p 00000000 00:00 0
f3830000-f3880000 ---p 00000000 00:00 0
f3880000-f3883000 rw-p 00000000 00:00 0
f3883000-f3900000 ---p 00000000 00:00 0
f3900000-f39b8000 rwxp 00000000 00:00 0
f39b8000-f5900000 ---p 00000000 00:00 0
f5900000-f597e000 rw-p 00000000 00:00 0
f597e000-f5a00000 ---p 00000000 00:00 0
f5a35000-f5a3c000 r-xp 00000000 b3:02 253366 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
f5a3c000-f5a4b000 ---p 00007000 b3:02 253366 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
f5a4b000-f5a4c000 r--p 00006000 b3:02 253366 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
f5a4c000-f5a4d000 rw-p 00007000 b3:02 253366 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libzip.so
f5a4d000-f5a56000 r-xp 00000000 b3:02 1628 /lib/arm-linux-gnueabihf/libnss_files-2.28.so
f5a56000-f5a66000 ---p 00009000 b3:02 1628 /lib/arm-linux-gnueabihf/libnss_files-2.28.so
f5a66000-f5a67000 r--p 00009000 b3:02 1628 /lib/arm-linux-gnueabihf/libnss_files-2.28.so
f5a67000-f5a68000 rw-p 0000a000 b3:02 1628 /lib/arm-linux-gnueabihf/libnss_files-2.28.so
f5a68000-f5a6e000 rw-p 00000000 00:00 0
f5a6e000-f5a76000 rw-s 00000000 b3:02 253231 /tmp/hsperfdata_pi/726
f5a76000-f5a9a000 r-xp 00000000 b3:02 253348 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
f5a9a000-f5aa9000 ---p 00024000 b3:02 253348 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
f5aa9000-f5aaa000 r--p 00023000 b3:02 253348 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
f5aaa000-f5aab000 rw-p 00024000 b3:02 253348 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libjava.so
f5aab000-f5ab6000 r-xp 00000000 b3:02 253365 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
f5ab6000-f5ac5000 ---p 0000b000 b3:02 253365 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
f5ac5000-f5ac6000 r--p 0000a000 b3:02 253365 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
f5ac6000-f5ac7000 rw-p 0000b000 b3:02 253365 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/libverify.so
f5ac7000-f5acd000 r-xp 00000000 b3:02 1649 /lib/arm-linux-gnueabihf/librt-2.28.so
f5acd000-f5adc000 ---p 00006000 b3:02 1649 /lib/arm-linux-gnueabihf/librt-2.28.so
f5adc000-f5add000 r--p 00005000 b3:02 1649 /lib/arm-linux-gnueabihf/librt-2.28.so
f5add000-f5ade000 rw-p 00006000 b3:02 1649 /lib/arm-linux-gnueabihf/librt-2.28.so
f5ade000-f5adf000 ---p 00000000 00:00 0
f5adf000-f5ae2000 ---p 00000000 00:00 0
f5ae2000-f5b2f000 rw-p 00000000 00:00 0
f5b2f000-f5b4b000 r-xp 00000000 b3:02 1605 /lib/arm-linux-gnueabihf/libgcc_s.so.1
f5b4b000-f5b5a000 ---p 0001c000 b3:02 1605 /lib/arm-linux-gnueabihf/libgcc_s.so.1
f5b5a000-f5b5b000 r--p 0001b000 b3:02 1605 /lib/arm-linux-gnueabihf/libgcc_s.so.1
f5b5b000-f5b5c000 rw-p 0001c000 b3:02 1605 /lib/arm-linux-gnueabihf/libgcc_s.so.1
f5b5c000-f5bcd000 r-xp 00000000 b3:02 1615 /lib/arm-linux-gnueabihf/libm-2.28.so
f5bcd000-f5bdc000 ---p 00071000 b3:02 1615 /lib/arm-linux-gnueabihf/libm-2.28.so
f5bdc000-f5bdd000 r--p 00070000 b3:02 1615 /lib/arm-linux-gnueabihf/libm-2.28.so
f5bdd000-f5bde000 rw-p 00071000 b3:02 1615 /lib/arm-linux-gnueabihf/libm-2.28.so
f5bde000-f5d0c000 r-xp 00000000 b3:02 12649 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
f5d0c000-f5d1c000 ---p 0012e000 b3:02 12649 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
f5d1c000-f5d21000 r--p 0012e000 b3:02 12649 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
f5d21000-f5d23000 rw-p 00133000 b3:02 12649 /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.25
f5d23000-f5d25000 rw-p 00000000 00:00 0
f5d25000-f6313000 r-xp 00000000 b3:02 253332 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
f6313000-f6323000 ---p 005ee000 b3:02 253332 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
f6323000-f6333000 r--p 005ee000 b3:02 253332 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
f6333000-f634b000 rw-p 005fe000 b3:02 253332 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/client/libjvm.so
f634b000-f7766000 rw-p 00000000 00:00 0
f7766000-f789e000 r-xp 00000000 b3:02 1591 /lib/arm-linux-gnueabihf/libc-2.28.so
f789e000-f78ae000 ---p 00138000 b3:02 1591 /lib/arm-linux-gnueabihf/libc-2.28.so
f78ae000-f78b0000 r--p 00138000 b3:02 1591 /lib/arm-linux-gnueabihf/libc-2.28.so
f78b0000-f78b1000 rw-p 0013a000 b3:02 1591 /lib/arm-linux-gnueabihf/libc-2.28.so
f78b1000-f78b4000 rw-p 00000000 00:00 0
f78b4000-f78b6000 r-xp 00000000 b3:02 1599 /lib/arm-linux-gnueabihf/libdl-2.28.so
f78b6000-f78c5000 ---p 00002000 b3:02 1599 /lib/arm-linux-gnueabihf/libdl-2.28.so
f78c5000-f78c6000 r--p 00001000 b3:02 1599 /lib/arm-linux-gnueabihf/libdl-2.28.so
f78c6000-f78c7000 rw-p 00002000 b3:02 1599 /lib/arm-linux-gnueabihf/libdl-2.28.so
f78c7000-f78d5000 r-xp 00000000 b3:02 253334 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
f78d5000-f78e4000 ---p 0000e000 b3:02 253334 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
f78e4000-f78e5000 r--p 0000d000 b3:02 253334 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
f78e5000-f78e6000 rw-p 0000e000 b3:02 253334 /usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/jli/libjli.so
f78e6000-f7900000 r-xp 00000000 b3:02 1666 /lib/arm-linux-gnueabihf/libz.so.1.2.11
f7900000-f790f000 ---p 0001a000 b3:02 1666 /lib/arm-linux-gnueabihf/libz.so.1.2.11
f790f000-f7910000 r--p 00019000 b3:02 1666 /lib/arm-linux-gnueabihf/libz.so.1.2.11
f7910000-f7911000 rw-p 0001a000 b3:02 1666 /lib/arm-linux-gnueabihf/libz.so.1.2.11
f7911000-f7928000 r-xp 00000000 b3:02 1645 /lib/arm-linux-gnueabihf/libpthread-2.28.so
f7928000-f7937000 ---p 00017000 b3:02 1645 /lib/arm-linux-gnueabihf/libpthread-2.28.so
f7937000-f7938000 r--p 00016000 b3:02 1645 /lib/arm-linux-gnueabihf/libpthread-2.28.so
f7938000-f7939000 rw-p 00017000 b3:02 1645 /lib/arm-linux-gnueabihf/libpthread-2.28.so
f7939000-f793b000 rw-p 00000000 00:00 0
f793b000-f7942000 r-xp 00000000 b3:02 12508 /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
f7942000-f7951000 ---p 00007000 b3:02 12508 /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
f7951000-f7952000 r--p 00006000 b3:02 12508 /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
f7952000-f7953000 rw-p 00007000 b3:02 12508 /usr/lib/arm-linux-gnueabihf/libatomic.so.1.2.0
f7953000-f7954000 rw-p 00000000 00:00 0
f7954000-f7958000 r-xp 00000000 b3:02 12504 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
f7958000-f7967000 ---p 00004000 b3:02 12504 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
f7967000-f7968000 r--p 00003000 b3:02 12504 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
f7968000-f7969000 rw-p 00004000 b3:02 12504 /usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so
f7969000-f7989000 r-xp 00000000 b3:02 1514 /lib/arm-linux-gnueabihf/ld-2.28.so
f798d000-f798f000 rw-p 00000000 00:00 0
f7996000-f7997000 r--p 00000000 00:00 0
f7997000-f7999000 rw-p 00000000 00:00 0
f7999000-f799a000 r--p 00020000 b3:02 1514 /lib/arm-linux-gnueabihf/ld-2.28.so
f799a000-f799b000 rw-p 00021000 b3:02 1514 /lib/arm-linux-gnueabihf/ld-2.28.so
ffbcb000-ffbec000 rw-p 00000000 00:00 0 [stack]
ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]

VM Arguments:
java_command: <unknown>
java_class_path (initial): .
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
SHELL=/bin/bash

Signal Handlers:
SIGSEGV: [libjvm.so+0x57b11c], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGBUS: [libjvm.so+0x57b11c], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGFPE: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGPIPE: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGXFSZ: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGILL: [libjvm.so+0x453b70], sa_mask[0]=11111111011111111101111111111110, sa_flags=SA_RESTART|SA_SIGINFO
SIGUSR1: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGUSR2: [libjvm.so+0x45398c], sa_mask[0]=00000000000000000000000000000000, sa_flags=SA_RESTART|SA_SIGINFO
SIGHUP: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGINT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGTERM: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none
SIGQUIT: SIG_DFL, sa_mask[0]=00000000000000000000000000000000, sa_flags=none


--------------- S Y S T E M ---------------

OS:PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

uname:Linux 4.19.73-v8+ #1267 SMP PREEMPT Fri Sep 20 18:14:38 BST 2019 aarch64
libc:glibc 2.28 NPTL 2.28
rlimit: STACK 8192k, CORE 0k, NPROC 14404, NOFILE 1048576, AS infinity
load average:0.00 0.00 0.00

/proc/meminfo:
MemTotal: 3950612 kB
MemFree: 3742884 kB
MemAvailable: 3770812 kB
Buffers: 14388 kB
Cached: 68148 kB
SwapCached: 0 kB
Active: 65676 kB
Inactive: 36176 kB
Active(anon): 19544 kB
Inactive(anon): 8348 kB
Active(file): 46132 kB
Inactive(file): 27828 kB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 102396 kB
SwapFree: 102396 kB
Dirty: 108 kB
Writeback: 0 kB
AnonPages: 19340 kB
Mapped: 28888 kB
Shmem: 8580 kB
Slab: 50188 kB
SReclaimable: 21340 kB
SUnreclaim: 28848 kB
KernelStack: 1968 kB
PageTables: 1212 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2077700 kB
Committed_AS: 154732 kB
VmallocTotal: 263061440 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
Percpu: 912 kB
CmaTotal: 262144 kB
CmaFree: 222976 kB

container (cgroup) information:
container_type: cgroupv1
cpu_cpuset_cpus: 0-3
cpu_memory_nodes: 0
active_processor_count: 4
cpu_quota: -2
cpu_period: -2
cpu_shares: -1
memory_limit_in_bytes: -1
memory_and_swap_limit_in_bytes: -2
memory_soft_limit_in_bytes: -1
memory_usage_in_bytes: 13512704
memory_max_usage_in_bytes: 13512704


CPU:total 4 (initial active 4) 0x41:0x0:0xd08:3

/proc/cpuinfo:
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03111
Serial : 100000001b8ca82e
Model : Raspberry Pi 4 Model B Rev 1.1


Memory: 4k page, physical 3950612k(3742884k free), swap 102396k(102396k free)

vm_info: OpenJDK Client VM (25.212-b01) for linux-aarch32 JRE (1.8.0_212-8u212-b01-1+rpi1-b01), built on Mar 29 2019 13:54:02 by "root" with gcc 8.3.0

time: Fri Sep 20 20:07:54 2019
timezone: BST
elapsed time: 0 seconds (0d 0h 0m 0s)

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6056
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 5:21 am

You'd need to use OpenJDK 11. Java 8 doesn't seem to work at all in that environment.

TheSwedishChef
Posts: 2
Joined: Sat Sep 21, 2019 7:38 am

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 7:46 am

I decided to live fast and did the update to this 64bit kernel. Everything works perfect so far but I'm impressed by one thing: Immediately after reboot the idle temp of the CPU dropped 5 degrees C. Under load it's a smaller diff but still a few degrees cooler than with 32bit kernel... Has anyone else seen this?

paul433
Posts: 19
Joined: Sun Dec 30, 2012 10:46 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 4:03 pm

The temp change was more likely due to the bootloader getting updated (https://www.raspberrypi.org/forums/view ... 6#p1538684)

TheSwedishChef
Posts: 2
Joined: Sat Sep 21, 2019 7:38 am

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 4:38 pm

paul433 wrote:
Sat Sep 21, 2019 4:03 pm
The temp change was more likely due to the bootloader getting updated (https://www.raspberrypi.org/forums/view ... 6#p1538684)
Ah, that's apparently a recent update that I got during the update/switch! Well, what's not to like with BOTH being on a 64-bit kernel AND running cooler than ever! :D
Thanks!

alump
Posts: 3
Joined: Sun Aug 18, 2019 5:59 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 5:37 pm

Ok, so far it looks like my I/O freezing issue has gone away. Not sure if I fixed it by removing LXD snap installation, as I thought it might have issues with suddenly changed kernel. But I need to check if it happens again, and then try to find way to get full dmesg somehow.

jdonald
Posts: 417
Joined: Fri Nov 03, 2017 4:36 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sat Sep 21, 2019 9:51 pm

alump wrote:
Sat Sep 21, 2019 5:37 pm
Ok, so far it looks like my I/O freezing issue has gone away.
4.19.73-v8+ is working great. Up through 4.19.69-v8+ I would consistently get the system hung just by scp'ing a 1.5 GB file into the Pi over 5 GHz WiFi. It was so consistent that I developed a practice of rebooting into 32-bit mode in order to upload a file I needed then boot back into 64-bit mode to make use of it.

At the time of failure dmesg was always reporting:

Code: Select all

[Sep18 21:52] sdhci-iproc fe340000.emmc2: swiotlb buffer is full (sz: 65536 bytes)
[  +0.000010] sdhci-iproc fe340000.emmc2: DMA: Out of SW-IOMMU space for 65536 bytes
As of 4.19.73-v8+ I'm unable to repro anymore, so it appears something got fixed.
then try to find way to get full dmesg somehow.
In case your issue does return, I recommend keeping a window open with:

Code: Select all

dmesg -wH
to watch at the time of failure, otherwise it's hard to distinguish what's happening at the moment of hanging vs follow-on log messages.

Kendek
Posts: 128
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sun Sep 22, 2019 4:36 pm

Why is the UASP support not enabled in the ARM64 kernel config?
I just tested it, recompiled the kernel with CONFIG_USB_UAS=y, and the UAS is working well, same as with 32-bit kernel.
I'm using a custom 64-bit Ubuntu, based on the base ARM64 tar.gz, and I need a full-feature kernel.
Last edited by Kendek on Sun Sep 22, 2019 6:47 pm, edited 1 time in total.

w_behne
Posts: 2
Joined: Fri Sep 20, 2019 3:44 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sun Sep 22, 2019 5:11 pm

Is a 64 bit gcc package not available (for compilation on the pi4 - I'm aware of cross-compile options ...) yet, or did I miss it?

Best regards,

Wilfried

jdonald
Posts: 417
Joined: Fri Nov 03, 2017 4:36 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Sun Sep 22, 2019 10:10 pm

Guidelines for a couple ways to install 64-bit packages two pages back: https://www.raspberrypi.org/forums/view ... 0#p1535002

leggazoid
Posts: 20
Joined: Sun Apr 07, 2013 6:58 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Mon Sep 23, 2019 2:19 am

w_behne wrote:
Sun Sep 22, 2019 5:11 pm
Is a 64 bit gcc package not available (for compilation on the pi4 - I'm aware of cross-compile options ...) yet, or did I miss it?

Best regards,

Wilfried
This info may be of interest.

https://www.collabora.com/news-and-blog ... -mainline/

graphicw
Posts: 88
Joined: Mon Sep 09, 2019 5:04 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Mon Sep 23, 2019 6:16 am

The 64 bit kernel is improving in that it is no longer software rendering in Open Arena and such. Work splendidly as I have noticed an improvement in USB 3 drive speeds and etc using the 64 bit kernel. The problem I am seeing now that did not exist before with the 64 bit kernel is that audio support is no longer available in some games. Audio works fine in Chromium and such still, but does not work with Doom 3, 0ad and etc. I have not yet taken the time to troubleshoot to see why the problem exists. Just informing that it exists as of right now.

graphicw
Posts: 88
Joined: Mon Sep 09, 2019 5:04 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Mon Sep 23, 2019 5:32 pm

I have been testing the sound issue under 64 bit kernel and it is indeed reproducible. The problem presents itself anytime the 64 bit kernel is in use and disappears once the 32 bit kernel is loaded again. Here is a copy of the startup log for 0ad with the parts pertaining to audio:

Code: Select all

AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
TIMER| splashscreen/splashscreen.xml: 34.1487 ms
TIMER| common/global.xml: 965.982 us
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
Open Arena and Doom 3 also show the exact same messages in their start logs as well.

mickwombat
Posts: 2
Joined: Mon Sep 23, 2019 8:32 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Mon Sep 23, 2019 8:44 pm

I installed the 64bit kernel and I seem to be struggling with the 64bit version of java8, jdk-8u221-linux-arm64-vfp-hflt.tar.gz.

The 32bit version works fine however. Whilst the 64bit seems to install ok, but I keep getting the following.

Code: Select all

pi@pi:~ $ java -version
-bash: /usr/bin/java: No such file or directory
This is how I installed.

Code: Select all

pi@pi:~ $ sudo mkdir /usr/java/
pi@pi:~ $ sudo tar xzf jdk-8u221-linux-arm64-vfp-hflt.tar.gz -C /usr/java/
pi@pi:~ $ JAVA_HOME=/usr/java/jdk1.8.0_221/
pi@pi:~ $ sudo update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_221/bin/java 20000
update-alternatives: using /usr/java/jdk1.8.0_221/bin/java to provide /usr/bin/java (java) in auto mode
pi@pi:~ $ sudo update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8.0_221/bin/javac 20000
update-alternatives: using /usr/java/jdk1.8.0_221/bin/javac to provide /usr/bin/javac (javac) in auto mode
pi@pi:~ $ update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/java/jdk1.8.0_221/bin/java
Nothing to configure.
pi@pi:~ $ update-alternatives --config javac
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/java/jdk1.8.0_221/bin/javac
Nothing to configure.
Maybe there is some 64bit dependencies not there...not sure. Again, the same procedure above with installing jdk-8u221-linux-arm32-vfp-hflt.tar.gz works fine but in that case I get.

Code: Select all

pi@giles:~ $ java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) Server VM (build 25.221-b11, mixed mode)
Thoughts?

jdonald
Posts: 417
Joined: Fri Nov 03, 2017 4:36 pm

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Tue Sep 24, 2019 1:30 am

Welcome to the forums.

It appears you attempted to run directly on Raspbian's userland rather than a 64-bit chroot or container. This would not only fail to run java arm64, but any aarch64 binary. Instructions for setting up a 64-bit userland environment (chroot or systemd-nspawn container) mentioned above: https://www.raspberrypi.org/forums/view ... 0#p1535002

Return to “Advanced users”