Discussion about linux-rpi rebrand

This forum is for discussion about general software issues.

Re: Gripes about linux-rpi rebrand

Postby quark » Sat Dec 11, 2021 11:40 pm

gpu_mem=16 I think makes the Pi boot a different image file, with video disabled or something like that, not exactly sure.
There might be an issue in that area. To force the "normal" boot I think you need to have at least 32M for gpu_mem.
For the dtparam stuff maybe check the device tree file (decompile to dts) and see if there's any changes between before and after update.
quark
 
Posts: 60
Joined: Thu Nov 25, 2021 8:26 am

Re: Gripes about linux-rpi rebrand

Postby Semi » Sun Dec 12, 2021 4:31 pm

So what is the deal with the RPi 2 exactly?

I noticed it used to be listed in the announcement:
$this->bbcode_second_pass_quote('', '
')linux-raspberrypi --> linux-rpi-legacy (RPi 1, 2, and Zero)
linux-raspberrypi4 --> linux-rpi (RPi 3, 4, 400, Zero W, and Zero 2 W


However I see it is no longer listed now:
$this->bbcode_second_pass_quote('', '
')linux-raspberrypi --> linux-rpi-legacy (RPi 1, Zero, Zero W only)
linux-raspberrypi4 --> linux-rpi


What's the correct kernel for the RPi 2?
Semi
 
Posts: 4
Joined: Sat Jul 11, 2015 10:48 am

Re: Gripes about linux-rpi rebrand

Postby graysky » Sun Dec 12, 2021 6:14 pm

$this->bbcode_second_pass_quote('Semi', 'W')hat's the correct kernel for the RPi 2?


linux-rpi

$this->bbcode_second_pass_code('', '
core/linux-rpi 5.10.83-1
RPi Foundation patched Linux kernel and modules
xore/linux-rpi-legacy 5.10.83-1
RPi Foundation patched Linux kernel and modules - RPi 1/Zero/Zero W only
')
graysky
Developer
 
Posts: 1879
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000
Top

Re: Gripes about linux-rpi rebrand

Postby keithspg » Tue Dec 14, 2021 1:34 am

@Semi I do not know which Pi2 you have, but as far as I can tell, there are 2 variants. I am not completely sure, but pretty sure it is only the Pi2 Rev 1.1 that actually 'requires' the armv7 32 bit OS/Kernel. I have this one and it will not boot the aarch64 image. I do not have one to confirm, but think the Pi2 version 1.2 will boot the aarch64 image.

We are developing an audio player based on Arch ARM and recommend using the v6 image for the A/B1and Zero, ZeroW, the armv7 image for the Pi2 v1.1 and the aarch64 for all others.
I can confirm that the aarch64 version boots on the 3B, 3B+, 4, Zero2W.

I am pretty sure it is covered here, but to get such an image, we install the basic aarch64 image according to the docs then after it is booted up and the pacman-init done, we install 'linux-rpi' pacjkage which uninstalls uboot and the latest linux kernel and installs the RPi kernel. When rebooted, it reboots to the RPi kernel.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Gripes about linux-rpi rebrand

Postby keithspg » Tue Dec 14, 2021 1:58 am

$this->bbcode_second_pass_quote('quark', 'g')pu_mem=16 I think makes the Pi boot a different image file, with video disabled or something like that, not exactly sure.
There might be an issue in that area. To force the "normal" boot I think you need to have at least 32M for gpu_mem.
For the dtparam stuff maybe check the device tree file (decompile to dts) and see if there's any changes between before and after update.

I've been running these Pis headless forever and the docs say to use gpu_mem=16 to 'disable' the vc.
According to the Pi docs, this is supposed to load the start_cd.elf:
https://www.raspberrypi.com/documentation/computers/configuration.html#start-elf-start_x-elf-start_db-elf-start_cd-elf-start4-elf-start4x-elf-start4cd-elf-start4db-elf
That file is present on the v6 image, but something is wrong in that it will not boot unless the gpu_mem=24 or higher. My guess is the start_cd.elf is hosed, somehow. It is interesting that the start_cd.elf and start4cd.elf (for the Pi4) are the same size...
$this->bbcode_second_pass_code('', '-rwxr-xr-x 1 root root 799164 Dec 7 10:15 start4cd.elf
-rwxr-xr-x 1 root root 3736744 Dec 7 10:15 start4db.elf
-rwxr-xr-x 1 root root 2239616 Dec 7 10:15 start4.elf
-rwxr-xr-x 1 root root 2991656 Dec 7 10:15 start4x.elf
-rwxr-xr-x 1 root root 799164 Dec 7 10:15 start_cd.elf
-rwxr-xr-x 1 root root 4808648 Dec 7 10:15 start_db.elf
-rwxr-xr-x 1 root root 2963872 Dec 7 10:15 start.elf
-rwxr-xr-x 1 root root 3715368 Dec 7 10:15 start_x.elf')

How can we fix this?

PS: I grabbed the latest RPIOS and installed and updated. It will boot with the gpu_mem=16. Do not know what importance to attach, but its start4cd.elf and start_cd.elf are also identical in size.

also the RPIOS image will reboot the PiZeroW from the command line...

RPIOS:
$this->bbcode_second_pass_code('', '$ uname -r
5.10.63+
/boot $ ls -al start*
-rwxr-xr-x 1 root root 801564 Dec 14 03:08 start4cd.elf
-rwxr-xr-x 1 root root 3737928 Dec 14 03:08 start4db.elf
-rwxr-xr-x 1 root root 2241504 Dec 14 03:08 start4.elf
-rwxr-xr-x 1 root root 2993544 Dec 14 03:08 start4x.elf
-rwxr-xr-x 1 root root 801564 Dec 14 03:07 start_cd.elf
-rwxr-xr-x 1 root root 4809800 Dec 14 03:07 start_db.elf
-rwxr-xr-x 1 root root 2965696 Dec 14 03:07 start.elf
-rwxr-xr-x 1 root root 3717256 Dec 14 03:07 start_x.elf')
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm
Top

Re: Gripes about linux-rpi rebrand

Postby keithspg » Tue Dec 14, 2021 1:52 pm

So, to try to figure out what is going on, I used the PKGBUILD for the Arch kernel from here:
https://archlinuxarm.org/packages/armv6h/linux-rpi-legacy
but substituted a commit number from here:
https://github.com/raspberrypi/linux/tags
specifically, I used this:
$this->bbcode_second_pass_code('', '_commit=6a12ecfa52bf747678c41ef5a22cad5e73202c16
')
With a kernel package built from this commit, which I really cannot say which release it is, 'reboot' and 'gpu_mem=16' work on the Pi ZeroW. I have not looked at the Zero2W, yet, but this is encouraging.

It seems that the kernel we are currently using is broken, somehow. @graysky, does this help?
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Gripes about linux-rpi rebrand

Postby graysky » Tue Dec 14, 2021 2:03 pm

I haven't been following this thread very closely. I do not understand what is broken for you or why you want to use that old directive.
graysky
Developer
 
Posts: 1879
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Gripes about linux-rpi rebrand

Postby keithspg » Tue Dec 14, 2021 6:10 pm

@graysky Sorry to be so muddled. The recent update to the new kernels (linux-raspberrypi -> linux-rpi-legacy and linux-raspberrypi4 -> linux-rpi) has caused some things to break. It seems that the RPiOS people are also struggling to get everything working with the latest kernels...

Specifically the armv6 rpi-legacy kernel.
1) from the cli if you issue a reboot on a Pi Zero, it will not reboot.
2) If you set gpu_mem=16 on all armv6 devices, it will not boot.
3) The other issue which is apparent on both the armv6 (rpi-legacy) and and v7 (rpi) images is that the onboard audio (if present) is not enabled. I am not too sure if this is also present on the current RPiOS image or not as I have not checked. The aarch64 image runing on a 3b+ does enable the audio and it can be switched on and off in software so there was no change in the behavior for the official aaarch64 kernel.

When I rebuilt the kernel with that commit i mentioned above for rpi-legacy on armv6, I can 1) reboot from the command line and 2) can set gpu_mem=16 on both the Zero and Pi1 and have the Pis boot. I still have not dug into the missing onboard audio and when it disappeared or how it can be returned. On the aarch64 image, we have this set in config.txt: dtparam=audio=on. When we try that on the armv6 images, they fail to boot.

Hope this clears it up a bit as to what we are struggling with.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm

Re: Gripes about linux-rpi rebrand

Postby quark » Tue Dec 14, 2021 7:13 pm

I don't think aarch64 has support for dtparam/dtoverlay.
I'm currently trying to rebuild the aarch64 kernel with some audio stuff which is missing from the stock ALARM aarch64 config.
Also apart from the missing drivers, there's no entry for them in the config, and the device tree is also butchered/half put together. i2s almost completely missing. I think aarch64 is more on the experimental side at this point.
quark
 
Posts: 60
Joined: Thu Nov 25, 2021 8:26 am

Re: Gripes about linux-rpi rebrand

Postby keithspg » Tue Dec 14, 2021 8:48 pm

$this->bbcode_second_pass_quote('quark', 'I') don't think aarch64 has support for dtparam/dtoverlay.
SNIP

Actually it can. The default arch install image http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz does not support dtparam/dtoverlay, but if you burn this aarch64 image to an SD card then, after you boot and log into it, install the linux-rpi package, it acts just like any other rpi install. dtoveraly, etc.
keithspg
 
Posts: 224
Joined: Mon Feb 23, 2015 4:14 pm
Top

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 12 guests