Repository navigation
Feature cm3 64 dev - #2147
Feature cm3 64 dev#2147Minipada wants to merge 1 commit into
Conversation
|
I would be very surprised if the overlay is being ignored completely. I can't try anything until next week, but if you upload the output from |
|
Don't worry about there being multiple commits - we can squash at merge time - but please ensure that all files end with carriage returns. |
|
I thought I did, but I forgot to precise, I get this colored screen. There may be a setting for HDMI missing |
|
You would normally run commands using ssh, but that is tricky if you don't know the IP address, and impossible if the kernel isn't running sufficiently. One approach would be to add the required commands to /etc/rc.local, writing they output to files - assuming that it boots, of course. |
|
Here is the log from dtc, I used the rc.local. It really seems only my overlay is loaded, nothing else |
|
I just got back to work on it. Sorry if this seems newbie explanation but I don't have any experience on this topic and any help is much appreciated. I guess I'm missing something important but the first step would be to actually be able to load the bcm2837-rpi-3-b on the CM3, whatever the result, no? |
|
The firmware chooses which .dtb to load for the current platform based on the revision number. By default it will use bcm27*.dtb, i.e. downstream DTBs. You are wanting it to load bcm28*.dtb - an upstream DTB. There are two ways to request this:
This mechanism allows you to load any DTB you choose. |
|
Thanks for the explanation. Now I can force the loading, but would you have any idea why bcm2837-rpi-3-b is loaded on the rpi3 while it's not on the cm3? |
|
Because the revision code tells the firmware that a CM3 is a CM3, not a Pi 3 B. |
|
Thank you! I'm making progress and am now stumbling across the issue that the kernel command line is set to: My It seems the This and the Also, I know that having Thanks |
|
@pelwell I have edited my commits. PS: Thanks for your previous explanations, it took some time to understand everything but it helped a lot |
|
+1 on this, it would be excellent to get this merged as it would allow us to support the CM3 in 64-bit mode in OpenEmbedded. |
|
For info, I made it pass some test:
and results were as good as on the raspberrypi3 in 64 bits. It's going to be soon integrated in a robot, it'll endure some more tests |
| endif | ||
|
|
||
| dtb-$(CONFIG_ARCH_BCM2835) += bcm2837-rpi-3-b.dtb | ||
| dtb-$(CONFIG_ARCH_BCM2835) += bcm2837-rpi-cm3.dtb |
There was a problem hiding this comment.
I think you'll want this Makefile to generate both bcm2837-rpi-3-b.dtb and bcm2837-rpi-cm3.dtb, rather than disabling bcm2837-rpi-3-b.dtb?
For comparison, see https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm64/boot/dts/broadcom/Makefile and https://github.com/raspberrypi/linux/blob/rpi-4.9.y/arch/arm/boot/dts/Makefile
At this stay everything seems loaded except the CMA variable in the config.txt and the UART. Using this commit, ttyS0 works using mypiandrew's workaround with unswap in #1913 .
|
At this stay everything seems loaded except the CMA variable in the config.txt and the UART. I got to a working state by tinkering, I'm no kernel expert and a deeper review would be greatly appreciated. |
[ Upstream commit 0405f94 ] Removing the meson-dw-hdmi module results in the following splat: i[ 43.340509] WARNING: CPU: 0 PID: 572 at drivers/regulator/core.c:2125 _regulator_put.part.0+0x16c/0x174 [...] [ 43.454870] CPU: 0 PID: 572 Comm: modprobe Tainted: G W E 5.10.0-rc4-00049-gd274813a4de3-dirty #2147 [ 43.465042] Hardware name: , BIOS 2021.01-rc2-00012-gde865f7ee1 11/16/2020 [ 43.471945] pstate: 80400009 (Nzcv daif +PAN -UAO -TCO BTYPE=--) [ 43.477896] pc : _regulator_put.part.0+0x16c/0x174 [ 43.482638] lr : regulator_put+0x44/0x60 [...] [ 43.568715] Call trace: [ 43.571132] _regulator_put.part.0+0x16c/0x174 [ 43.575529] regulator_put+0x44/0x60 [ 43.579067] devm_regulator_release+0x20/0x2c [ 43.583380] release_nodes+0x1c8/0x2b4 [ 43.587087] devres_release_all+0x44/0x6c [ 43.591056] __device_release_driver+0x1a0/0x23c [ 43.595626] driver_detach+0xcc/0x160 [ 43.599249] bus_remove_driver+0x68/0xe0 [ 43.603130] driver_unregister+0x3c/0x6c [ 43.607011] platform_driver_unregister+0x20/0x2c [ 43.611678] meson_dw_hdmi_platform_driver_exit+0x18/0x4a8 [meson_dw_hdmi] [ 43.618485] __arm64_sys_delete_module+0x1bc/0x294 as the HDMI regulator is still enabled on release. In order to address this, register a callback that will deal with the disabling when the driver is unbound, solving the problem. Fixes: 161a803 ("drm/meson: dw_hdmi: Add support for an optional external 5V regulator") Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201116200744.495826-4-maz@kernel.org Signed-off-by: Sasha Levin <sashal@kernel.org>
I am working on a CM3 64 bits OS. I manage to boot, the kernel log seems really promising. My only issue is it seems device tree overlays are ignored, for a reason I ignore. Because they are ignored, I cannot use
pi3-disable-btenabling to log in. Hence the message console [ttyS0] enabled is not displayed.I think dtoverlays are ignored since adding overlay to use uart1 doesn't change any behavior.
The setup:
cmdline.txt: dwc_otg.lpm_enable=0 console=tty1 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait cma=128M@64MPS: I know it's a bit messy in the commits, I will merge when PR is done
Resolves #2133