CMA on raspberry pi 4
by Thomas H.P. Andersen
Hi,
I have looked into the CMA setting issue a bit. This is what I have found
so far.
The rpi4 needs CMA to be in ZONE_DMA (lower 1GB of memory) as this is the
only area that the peripherals on the rpi4 can address.
The DT sets the allowed range to allocate the CMA from (
arch/arm/boot/dts/bcm2711.dtsi#L869
<https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/bcm2711.d...>),
but it seems to not work here. What does work is instead to set the offset
manually. I replaced "cma=256MB" with "cma=256M@704M" and then it boots.
Note that it has to be 256M instead of 256MB.
Removing the cma option on the command line was known as a workaround.
Without that we would fall back to the build config of 64MB cma which was
located at offset 0x38000000. This left 64MB at the end of ZONE_DMA, and I
chose offset 704M so that those 64MB would still be free. Not sure if that
is needed or not. The crashkernel needs to be in ZONE_DMA as well but it
seems to be set to 0 size.
I have tested on 5.7 rc2 from rawhide.
This probably belongs in a bug report. What would be the correct place to
file that? From what I can tell upstream has been tested with cma settings
without problems (as long as the requested CMA size can fit in ZONE_DMA).
From that it seems like fedora-specific issue. Not sure though.
Cheers,
Thomas
3 years, 4 months
Workstation on Pinebook Pro
by Ben Cotton
Hi ARM friends,
I've been trying without success to get the F32 Workstation RC1.6
(tomorrow's release) installed on my Pinebook Pro. If anyone here has done
it, do you have instructions written up somewhere?
One layer of trouble I've had is that the image apparently doesn't have the
uboot files. The arm-image-installer script looks for them, AFAICT, in the
image, so I called the installer with the PREFIX set to '', which was
enough to get the install script to work, but the PBP doesn't boot from the
SD card.
I also used the 'rock64' target, which seems like it should be the right
answer and not 'pinebook' (since the Pinebook uses a different board from
the Pinebook Pro). But maybe that's part of my problem, too?
--
Ben Cotton
He / Him / His
Senior Program Manager, Fedora & CentOS Stream
Red Hat
TZ=America/Indiana/Indianapolis
3 years, 5 months
Wandboard Quad RevD1 has no Ethernet in Fedora F31?
by Derek Atkins
Hi,
I just acquired a wandboard quad rev d1 (to replace an older dual-core
model), but apparently even though there is a revd1 DTB tree, the ethernet
still isn't working.
According to http://forums.wandboard.org/viewtopic.php?t=1460 this issue
should have been fixed a couple years ago. Is there something special I
need to do to get fedora working on this board?
I installed Fedora-Minimal-armhfp-31-1.9-sda.raw.xz and it boots but the
ethernet shows "no carrier" when I run "ip addr".
:-(
-derek
--
Derek Atkins 617-623-3745
derek(a)ihtfp.com www.ihtfp.com
Computer and Internet Security Consultant
3 years, 7 months
Upgrading Uboot is insufficient to migrate my F31 system from WB Dual-C1 to Quad-D1
by Derek Atkins
Hi,
All this talk about Wandboard Quad D1 is because I'm trying to upgrade an
existing device currently running on a Wandboard Dual C1. It's a system
that started as Fedora 25 and was upgraded to Fedora 31 (via dnf
system-upgrade). It's been running fine on the Dual. I upgraded the
U-boot and it still runs fine on the C1, however if I try to use this SD
card in the Quad-D1 I get this during boot:
[ 6.841555] Freeing unused kernel memory: 2048K
[ 6.848283] ------------[ cut here ]------------
[ 6.852985] WARNING: CPU: 2 PID: 1 at arch/arm/mm/dump.c:248
note_page+0x1604
[ 6.860609] arm/mm: Found insecure W+X mapping at address 0xf0879000
[ 6.866994] Modules linked in:
[ 6.870093] CPU: 2 PID: 1 Comm: swapper/0 Not tainted
5.4.17-200.fc31.armv7h1
[ 6.877494] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 6.884062] [<c0311264>] (unwind_backtrace) from [<c030b744>]
(show_stack+0x)
[ 6.891825] [<c030b744>] (show_stack) from [<c0b2d580>]
(dump_stack+0xb4/0xd)
[ 6.899068] [<c0b2d580>] (dump_stack) from [<c034d5bc>] (__warn+0xdc/0xf8)
[ 6.905958] [<c034d5bc>] (__warn) from [<c034d96c>]
(warn_slowpath_fmt+0x70/)
[ 6.913455] [<c034d96c>] (warn_slowpath_fmt) from [<c03197a8>]
(note_page+0x)
[ 6.921383] [<c03197a8>] (note_page) from [<c0319a34>]
(walk_pgd+0xc8/0xe0)
[ 6.928357] [<c0319a34>] (walk_pgd) from [<c0319b10>]
(ptdump_check_wx+0x58/)
[ 6.935858] [<c0319b10>] (ptdump_check_wx) from [<c0b4182c>]
(kernel_init+0x)
[ 6.943706] [<c0b4182c>] (kernel_init) from [<c03010e8>]
(ret_from_fork+0x14)
[ 6.951281] Exception stack(0xee943fb0 to 0xee943ff8)
[ 6.956339] 3fa0: 00000000 00000000
00000
[ 6.964524] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000
00000
[ 6.972708] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 6.979365] ---[ end trace eb98c3200f90d0b6 ]---
[ 6.984352] Checked W+X mappings: FAILED, 1 W+X pages found
[ 6.989965] rodata_test: test data was not read only
and the system doesn't come up completely.
If I used a fresh Fedora-Minimal-31 on the Quad-D1 (or the Dual-C1) it
works fine. Currently the main difference, as far as I can see, is that
there is a different kernel. The working system is running
5.3.7-301.fc31.armv7hl whereas the non-working is running
5.4.17-200.fc31.armv7hl.
I am currently working on upgrading the Fedora-Minimal to a more recent
kernel to try to reproduce the problem; if it doesn't reproduce I will
also try to upgrade the existing system. If it DOES reproduce then
clearly there's something with the F25->F31 filesystem, and I will have to
migrate everything to a fresh install :(
I'll let you know in a couple hours how the testing goes -- unless you've
seen this before and have an easy fix?
-derek
--
Derek Atkins 617-623-3745
derek(a)ihtfp.com www.ihtfp.com
Computer and Internet Security Consultant
3 years, 7 months
Funny display on Raspberry Pi
by Toralf Lund
I have a Raspberry Pi 3B running Fedora AAarch connected to my TV.
After installed the latest version 31 updates, the display went weird on
me. Monitor preferences list an "unknown" monitor with resolution
1824x984 and refresh rate 77 Hz, and colours are all wrong. What should
be red or orange is blue, blue is red or brown, and I'm not really sure
what everything else I see on the screen is supposed to look like, but
the greens may be more or less right.
Any idea what's going on?
I'm using the MATE desktop.
If I connect my CentOS 7 laptop to the same HDMI port using the same
cable, everything seems just fine.
- Toralf
3 years, 7 months