Comparison between Raspian 12 Bookworm on Raspberry Pi 4 and Raspberry Pi 5

More
16 Nov 2023 12:18 #285610 by cornholio

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 12:27 #285613 by rodw
Not me.... 

But....
I have synced my repo with upstream and they say the pi5 is supported now in the image builder we use.
I am building an image for the Pi5 as we speak.
The kernel built OK but I may have had an error building the root file system. Checking again.
If I have any luck, I will  share a file.
 

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 12:41 #285614 by cornholio
if you use the commit we have been using it wont boot, if my experience is anything to go by. I'm trying to build natively with the 6.1.y branch

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 13:07 - 16 Nov 2023 13:08 #285618 by rodw
I have uploaded an image for the Raspberry Pi 5 here:
drive.google.com/drive/folders/1B29ewKVL...0QJGj?usp=drive_link
The RT kernel and the headers are available in the kernel sub folder. You could try installing both with dpkg -i on an ordinary image.

Please let me know how you get on.
Note the Linuxcnc repos are set up in your sources. (I hope) 
so
sudo apt update
sudo apt upgrade 
should be valid and not break anything.
But there will be nothjing to upgrade unless one of these happens:
1. Debian releases an updated version of Bookworm
2. Debian releases som urgent security patches
3. Linuxcnc doeas an upgrade from version 2.9.1

Please give your feedback I don't have a Pi 5.
Last edit: 16 Nov 2023 13:08 by rodw.

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 13:12 #285619 by rodw

if you use the commit we have been using it wont boot, if my experience is anything to go by. I'm trying to build natively with the 6.1.y branch

I hope it does now. There isn't a later PREEMPT_RT merged into their kernel.
Its possible if you accepted the defaults you built a 4b kernel
You have to run menuconfig as it was configured to build a kernel for the 4b/400 with a saved defconfig

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 13:31 #285623 by cornholio
I used the kernel-builder script referenced earlier, no boot with the commit we've used for the rp4 (non-realtime), finally got it to boot with the 6.1.y branch.

One thing of note in the commit there is no arch/arm64/configs/bcm2712_defconfig but it is there in the 6.1.y branch.

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 15:44 - 16 Nov 2023 17:30 #285625 by danielfmo

Cornholio post=285614 userid=35653
if you use the commit we have been using it wont boot, if my experience is anything to go by. I'm trying to build natively with the 6.1.y branch
I hope it does now. There isn't a later PREEMPT_RT merged into their kernel.
Its possible if you accepted the defaults you built a 4b kernel
You have to run menuconfig as it was configured to build a kernel for the 4b/400 with a saved defconfig

I tried that image and it does not boot in a rpi5, in fact there are no bcm2712-rpi-5-b.dtb file being generated, so I'd assume that 5_6.1.54-rt15 does not support the rpi5. 

I merged your master branch into the linuxcnc-2.9.1 and updated the kernel hash and patch to 5_6.1.59-rt16. 
Kernel gets into gets into a "running /scripts/local/block" loop and the rootfs fails to build.

chroot: failed to run command ‘/debootstrap/debootstrap’: Exec format error
make: *** [Makefile:157: rootfs] Error 126

Last edit: 16 Nov 2023 17:30 by danielfmo.

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 18:25 #285640 by danielfmo
Kernel built with latest 6.1.y commit with rt16 patch does boot with previously shared bookwork image.

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 19:22 #285644 by danielfmo
Ran the same commands as the OP to test latency, histogram was wierd:
 

Then I realized the "Using POSIX non-realtime" message when starting the latency test despite the PREEMPT_RT kernel. 
 
Attachments:

Please Log in or Create an account to join the conversation.

More
16 Nov 2023 19:58 #285647 by rodw

Kernel built with latest 6.1.y commit with rt16 patch does boot with previously shared bookwork image.
 

Perhaps change the commit to 6e5a08f736d0366e125a5b84b01d9affc86ddf58
This is when the 6.61 branch was merged into 6.1.y on Nov 3
This will at least lock in a known position rather than just following the head.

For reference we are looking at the 6.1.y commits here github.com/raspberrypi/linux/commits/rpi-6.1.y 

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds
Powered by Kunena Forum