itsadrian
Posts: 1
Joined: Mon Mar 02, 2020 7:40 am

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

Mon Mar 02, 2020 7:48 am

I am new with raspberry and Linux
But when I install the arch64 kernel from dom with the arm_64bit=1 in the config it shows me that arch64 is installed. If I want to install document server for onlyoffice that requires a 64bit linux os, it tels me its not possible to run open documents in 32 bit systems after installation.
Does I need to wait for a official 64bit adaptation for raspberry Pi 4 4GB?

Geek666
Posts: 2
Joined: Thu Feb 12, 2015 4:55 pm

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

Sun Mar 15, 2020 10:37 am

How to prepare /boot/initramfs-btrfs.gz for 64-bit kernel?

I've converted the root filesystem to btrfs using this guide with default kernel: https://feldspaten.org/2019/07/05/raspbian-and-btrfs/
I want the same for 64-bit kernel.

How to prepare /boot/initramfs-btrfs.gz for 64-bit kernel?

The screenshot is just for illustration: http://prntscr.com/rglxvo

User avatar
dickon
Posts: 1181
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

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

Sun Mar 15, 2020 5:14 pm

Same way you do for the 32b kernels, I think: just make sure you specify -v8 rather than -v7l+ at the end; it'll pull in the correct modules for the kernel based on what it needs. Works for me with bridges and whatnot, anyway.

Geek666
Posts: 2
Joined: Thu Feb 12, 2015 4:55 pm

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

Mon Mar 16, 2020 1:31 am

dickon wrote:
Sun Mar 15, 2020 5:14 pm
Same way you do for the 32b kernels, I think: just make sure you specify -v8 rather than -v7l+ at the end; it'll pull in the correct modules for the kernel based on what it needs. Works for me with bridges and whatnot, anyway.
Looks pretty simple, but where do I specify v8 instead of v7l?

I am creating /boot/initramfs-btrfs.gz without any suffixes:

Code: Select all

[email protected] ~ $ echo '
btrfs
xor
zlib_deflate
raid6_pq
' | sudo tee /etc/initramfs-tools/modules

[email protected] ~ $ sudo mkinitramfs -o /boot/initramfs-btrfs.gz
2.
And the most interesting question how to do it when I can boot the default 32-bit kernel only because the rootfs is btrfs?
Do you mean I need to reset micro-sd card to default ext4 root file system first?

I'm not a linux admin, but a developer and need just both 32-bit and 64-bit testing using a single RPI4 board simultaneously.

User avatar
dickon
Posts: 1181
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

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

Mon Mar 16, 2020 8:24 am

I run

Code: Select all

mkinitramfs -o /boot/initrd.gz 4.19.97-v8+
(and change the kernel version as required) for reasons I forget. That should work for you.

Unfortunately, mkinitramfs and friends don't take multiple kernel versions, which means you need one per kernel, and each of the four types that Raspbian provides is a distinct version.

ShorTie
Posts: 103
Joined: Sun May 12, 2013 3:54 pm

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

Thu Mar 19, 2020 9:09 am

Since the arm64 kernel is working and included now.

Would it be possible to add arm64 support to archive.raspberrypi.org ??
Not for everything, just raspberrypi-kernel && raspberrypi-bootloader.

Then I could debootstrap Debian without playing games.
And would be able to get updates without playing even more games.

??

william.wu
Posts: 1
Joined: Sun Mar 22, 2020 10:33 am

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

Sun Mar 22, 2020 10:40 am

Golang `go1.14.1.linux-arm64.tar.gz` doesn't work, come across "no such file or directory: ./go/go/bin/go " when executing the binary.

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

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

Sun Mar 22, 2020 4:32 pm

william.wu wrote:
Sun Mar 22, 2020 10:40 am
Golang `go1.14.1.linux-arm64.tar.gz` doesn't work, come across "no such file or directory: ./go/go/bin/go " when executing the binary.
Yeah, although this error message is misleading.

Code: Select all

0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
Nothing new here, libc6:arm64 (/lib/aarch64-linux-gnu/libc.so.6 and /lib/aarch64-linux-gnu/libpthread.so.0) is still missing. Just use a 64-bit chroot environment.

rpim
Posts: 1
Joined: Sun Apr 05, 2020 7:22 am

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

Sun Apr 05, 2020 7:33 am

Hello heymac,

I'm running in the same I/O error, when I connect a SSD to my Pi 4. On reboot always a fsck is executed resulting in the I/O error you described. Without fsck (no reboot) the issues is not triggered. How did you solve the problem?

Code: Select all

CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00

heymac wrote:
Wed Feb 12, 2020 6:36 pm
I'm running the 64bit kernel with the Gnome desktop and recently spotted the following in system log.

Code: Select all

[    4.199056] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.199534] usbcore: registered new interface driver brcmfmac
[    4.207842] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.227201] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.227257] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.235372] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.235423] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.241636] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.241676] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.272038] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
[    4.449433] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.465676] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    4.617088] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.948719] uart-pl011 fe201000.serial: no DMA platform data
I don't know if the above brcmfmac: messages are anything to be concerned about?

Code: Select all

[   37.865523] sd 0:0:0:0: [sda] tag#24 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 
[   37.865540] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x28 28 00 e8 e0 87 88 00 00 68 00
[   37.865866] sd 0:0:0:0: [sda] tag#23 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
[   37.865876] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00
[   37.881523] scsi host0: uas_eh_device_reset_handler start
[   38.010484] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   38.037318] scsi host0: uas_eh_device_reset_handler success
[   39.690167] rfkill: input handler disabled
[   40.623264] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
[   44.737917] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Also my USB3 SSD drive is frequently experiencing errors that have to be fsck'd, they don't appear when its connected to my other computers.

Anyway just thought sharing these observations might help.

heymac
Posts: 9
Joined: Tue Aug 06, 2019 3:44 pm

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

Sun Apr 05, 2020 9:19 pm

Hello,

I solved my SSD woes with this link -> https://www.raspberrypi.org/forums/view ... p?t=245931

Also for future reference I found this link -> https://jamesachambers.com/raspberry-pi ... sh-drives/

Hope these help...
rpim wrote:
Sun Apr 05, 2020 7:33 am
Hello heymac,

I'm running in the same I/O error, when I connect a SSD to my Pi 4. On reboot always a fsck is executed resulting in the I/O error you described. Without fsck (no reboot) the issues is not triggered. How did you solve the problem?

Code: Select all

CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00

heymac wrote:
Wed Feb 12, 2020 6:36 pm
I'm running the 64bit kernel with the Gnome desktop and recently spotted the following in system log.

Code: Select all

[    4.199056] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.199534] usbcore: registered new interface driver brcmfmac
[    4.207842] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[    4.227201] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[    4.227257] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[    4.235372] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[    4.235423] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[    4.241636] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[    4.241676] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[    4.272038] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
[    4.449433] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.465676] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    4.617088] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.948719] uart-pl011 fe201000.serial: no DMA platform data
I don't know if the above brcmfmac: messages are anything to be concerned about?

Code: Select all

[   37.865523] sd 0:0:0:0: [sda] tag#24 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 
[   37.865540] sd 0:0:0:0: [sda] tag#24 CDB: opcode=0x28 28 00 e8 e0 87 88 00 00 68 00
[   37.865866] sd 0:0:0:0: [sda] tag#23 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
[   37.865876] sd 0:0:0:0: [sda] tag#23 CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00
[   37.881523] scsi host0: uas_eh_device_reset_handler start
[   38.010484] usb 2-2: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[   38.037318] scsi host0: uas_eh_device_reset_handler success
[   39.690167] rfkill: input handler disabled
[   40.623264] warning: process `colord-sane' used the deprecated sysctl system call with 8.1.2.
[   44.737917] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Also my USB3 SSD drive is frequently experiencing errors that have to be fsck'd, they don't appear when its connected to my other computers.

Anyway just thought sharing these observations might help.

cmayrhuber
Posts: 3
Joined: Thu Apr 16, 2020 4:12 pm

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

Fri Apr 17, 2020 9:00 pm

Hello,

mkfs.btrfs fails with bus error if the 64bit kernel is in use (arm_64bit=1).

Code: Select all

mkfs.btrfs -d single -m dup /dev/sda1
bus error
Creating a btrfs filesystem is fine with the 32bit kernel.

This is on Raspian and the btrfs-progs version is:

Code: Select all

btrfs-progs/stable,now 4.20.1-2 armhf
Best Regards

dominic03
Posts: 97
Joined: Fri Dec 21, 2018 1:50 am

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

Sat Apr 18, 2020 5:42 pm

The aarch64 kernel works nice on my overclocked Pi4/4GB. However, I have not been able to install any ARM64 applications due to the lack of ARM64 packages in apt. When installing .deb files it says that many of the dependencies are not installable. I tried an expirimental ARM64 apt list, but it didn't work. So... any plans for AMR64 apt lists?
Raspberry Pi 4B 4gb running Raspbian Buster v3.2 (via PINN)
Kingston 32 GB C10 (U1) microSD
Sceptre E225W 22" 75hz 1080p monitor
Overclocked to 2.147ghz
Deja-dup backups stored on 4GB flash drive

User avatar
dickon
Posts: 1181
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

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

Sat Apr 18, 2020 6:19 pm

There's viewtopic.php?f=66&t=254027, but fair warning: it's a bit alpha. The thread's worth a read.

dominic03
Posts: 97
Joined: Fri Dec 21, 2018 1:50 am

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

Sat Apr 18, 2020 6:30 pm

dickon wrote:
Sat Apr 18, 2020 6:19 pm
There's viewtopic.php?f=66&t=254027, but fair warning: it's a bit alpha. The thread's worth a read.
That's actually the exact topic I tried following, but it didn't work.
Raspberry Pi 4B 4gb running Raspbian Buster v3.2 (via PINN)
Kingston 32 GB C10 (U1) microSD
Sceptre E225W 22" 75hz 1080p monitor
Overclocked to 2.147ghz
Deja-dup backups stored on 4GB flash drive

User avatar
dickon
Posts: 1181
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

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

Sat Apr 18, 2020 10:13 pm

You might have missed the bit where it says you need to manually specify the dependencies on the 'apt install' line. I've had some success doing that, but it's by no means foolproof.

god7
Posts: 2
Joined: Wed Dec 11, 2019 1:55 pm

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

Tue May 05, 2020 4:00 am

kernel 5.4.35-v8+ problem.

syslog

Code: Select all

[    4.774353] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.787267] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.788098] usbcore: registered new interface driver brcmfmac
[    4.809008] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.027851] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.051880] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
same problem?
viewtopic.php?t=225906

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 8425
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

Tue May 05, 2020 6:18 am

god7 wrote:
Tue May 05, 2020 4:00 am
kernel 5.4.35-v8+ problem.

syslog

Code: Select all

[    4.774353] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.787267] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.788098] usbcore: registered new interface driver brcmfmac
[    4.809008] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.027851] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.051880] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
same problem?
viewtopic.php?t=225906
Does your WiFi work? In which case there is no problem.
The driver tries to find a board specific version of the firmware first which fails, and then it tries the generic firmware, which succeeds. AFAIK it's been like that all along.

And it's not the same problem in the linked thread. They were creating a custom image that was missing the files, so it really didn't work.
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.

god7
Posts: 2
Joined: Wed Dec 11, 2019 1:55 pm

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

Tue May 05, 2020 7:26 am

6by9 wrote:
Tue May 05, 2020 6:18 am
god7 wrote:
Tue May 05, 2020 4:00 am
kernel 5.4.35-v8+ problem.

syslog

Code: Select all

[    4.774353] brcmfmac: F1 signature read @0x18000000=0x15264345
[    4.787267] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.788098] usbcore: registered new interface driver brcmfmac
[    4.809008] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.027851] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.051880] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
same problem?
viewtopic.php?t=225906
Does your WiFi work? In which case there is no problem.
The driver tries to find a board specific version of the firmware first which fails, and then it tries the generic firmware, which succeeds. AFAIK it's been like that all along.

And it's not the same problem in the linked thread. They were creating a custom image that was missing the files, so it really didn't work.

Thank you very very much.
I understood.

WiFi work. But kodi is no sound. And When kodi exit, freeze.
Is it related?

vemerce
Posts: 1
Joined: Tue May 05, 2020 6:46 pm

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

Tue May 05, 2020 6:48 pm

I'm debating installing the 64 bit kernel. I'm curious though, how often is the 64 bit version being updated? Also, since this has been in focus testing since September, are we getting close to a public release version? Thanks.

User avatar
dickon
Posts: 1181
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

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

Wed May 06, 2020 1:47 pm

In step with all the other kernel builds. You may find you already have it -- it's just a matter of setting arm_64bit=1 in /boot/config.txt and rebooting, absent any initrd you may have built.

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

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

Wed May 06, 2020 1:50 pm

vemerce wrote:
Tue May 05, 2020 6:48 pm
I'm debating installing the 64 bit kernel. I'm curious though, how often is the 64 bit version being updated? Also, since this has been in focus testing since September, are we getting close to a public release version? Thanks.
Still going to be a while before a full 64bit distro is available. But as in previous post you can try the 64bit kernel easily enough.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“My wife said to me `...you’re not even listening`.
I thought, that’s an odd way to start a conversation.."

Gazprom
Posts: 1
Joined: Thu May 07, 2020 8:20 pm

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

Thu May 07, 2020 8:31 pm

Hi,

I'm having trouble accessing the pi4 via VNC after going 64bit.
I have the pi4 connected to a TV and I see notification popping up stating "User pi has disconnected" over and over again when I try to log in with my laptop using win10 VNC Viewer.

All I did was change the kernel to 64-bit.
SSH does work..

Any thoughts?

busywait
Posts: 36
Joined: Sat May 09, 2020 10:48 pm
Location: Southampton, UK

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

Sat May 09, 2020 11:03 pm

Gazprom wrote:
Thu May 07, 2020 8:31 pm
I'm having trouble accessing the pi4 via VNC after going 64bit.
I have the pi4 connected to a TV and I see notification popping up stating "User pi has disconnected" over and over again when I try to log in with my laptop using win10 VNC Viewer.

All I did was change the kernel to 64-bit.
...
Any thoughts?
Nothing helpful, except that it works for me, using RealVNC server on my Pi 4B and RealVNC Viewer on Windows. All connected via ethernet, with these versions from the current Buster raspian distro:

Code: Select all

[email protected]:~ $ uname -a
Linux raspi4 5.4.35-v8+ #1314 SMP PREEMPT Fri May 1 17:54:25 BST 2020 aarch64 GNU/Linux
...
[email protected]:~ $ vncserver --help
VNC(R) Server 6.7.1 (r42348) ARMv6 (Jan 30 2020 15:13:47)

busywait
Posts: 36
Joined: Sat May 09, 2020 10:48 pm
Location: Southampton, UK

No YouTube video playback in Chromium, Pi4, 64-bit, 5.4.40-v8+

Tue May 12, 2020 2:05 pm

I'm not able to play any video from youtube.com in the Chromium browser. I see a black box and a spinning white wheel where I expect to see a video play instead. The index pages load, with thumbnails for each video, but clicking to play any video never lets me play a video. Checked after a clean boot.

Changing /boot/config.txt back to arm_64bit=0 and booting to 32-bit kernel, there is no problem and videos play as expected.

This is all using a cleanish Buster raspian with VNC and ssh services running on a Pi 4, and the latest apt update, apt dist-upgrade and rpi-upgrade from 13:50 today.

I have HDMI connected to a TV via HDMI 0 for picture and audio, and using ethernet (wired) networking.

Code: Select all

[email protected]:~ $ uname -a Linux raspi4 5.4.40-v8+ #1316 SMP PREEMPT Tue May 12 13:17:34 BST 2020 aarch64 GNU/Linux

DJAh
Posts: 1
Joined: Fri Nov 01, 2019 6:54 pm

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

Sun May 24, 2020 5:29 pm

Hi,

on Pi4 with 4G Ram I have installed KDE plasma desktop based on the Raspbian image. BTW, this is running very well with a SSD.
I now switched to the 64-bit kernel and found that the KDE konsole application is causing bus error due to unaligned access. It does not happen always. In my case I can reproduce by calling dmesg.

I have not found any other reports mentioning this problem. So I think it might be helpfull for others when listing it here.

My current workaround is not using this konsole application but using lxterminal instead.

Thanks, DJAH

Return to “Advanced users”