From: Dmitry Malkin <dmitry@bedrocksystems.com>
To: u-boot@lists.denx.de
Cc: trini@konsulko.com, mbrugger@suse.com, pbrobinson@gmail.com
Subject: [PATCH v2 0/3] rpi5: initial support
Date: Tue, 21 Nov 2023 23:54:07 +0100 [thread overview]
Message-ID: <CAKRNjQ0dsWozGo4n8g58m4cCEk3n=qx1R+L24WBgpo-iP1yo7A@mail.gmail.com> (raw)
These patches bring initial boot support for RPI5. Without it the
latest master fails with the message:
> DRAM: mbox: Timeout waiting for response
> bcm2835: Could not query ARM memory size
With those patches and rpi_arm64_defconfig (with disabled
CONFIG_VIDEO_BCM2835) I'm able to get a working u-boot prompt (over
serial). FDT comes from firmware (EEPROM).
> U-Boot 2024.01-rc3-00003
>
> DRAM: 1016 MiB (effective 8 GiB)
> mbox: Header response code invalid
> bcm2835: Could not query board revision
> FDT model : Raspberry Pi 5 Model B Rev 1.0
> Core: 14 devices, 7 uclasses, devicetree: board
> MMC:
> Loading Environment from FAT... ** Bad device specification mmc 0 **
> In: serial,usbkbd
> Out: serial,vidconsole
> Err: serial,vidconsole
> Net: No ethernet found.
> starting USB...
> No working controllers found
> Hit any key to stop autoboot: 0
> No working controllers found
> No ethernet found.
> No ethernet found.
> U-Boot>
These patches are based on v2024.01-rc3 and tested with RPI5 8GB.
Known issues:
* CONFIG_VIDEO_BCM2835 doesn't work.
* MBOX get board revision (0x10002) doesn't work (the response status
is 0x8000_0001). Looks like a number of tags doesn't work anymore
(board/serial/MAC) but could be fetched from FW FDT.
v2:
explicitly set .data section for rpi_bcm283x_mbox_addr due to relocation issue
update memory map with VPU range
add a patch to get human readable model from FW FDT
Dmitry Malkin (3):
rpi5: add initial memory map for bcm2712
rpi5: add alternative way to get MBOX address via FDT node
rpi5: get_board is no longer works. Print model name from FW FDT
arch/arm/mach-bcm283x/include/mach/base.h | 1 +
arch/arm/mach-bcm283x/include/mach/mbox.h | 4 +--
arch/arm/mach-bcm283x/init.c | 40 ++++++++++++++++++++++-
board/raspberrypi/rpi/rpi.c | 6 ++++
4 files changed, 48 insertions(+), 3 deletions(-)
--
2.40.1
next reply other threads:[~2023-11-21 22:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 22:54 Dmitry Malkin [this message]
2023-11-22 13:52 ` [PATCH v2 0/3] rpi5: initial support Tom Rini
2023-11-22 18:54 ` Peter Robinson
2023-11-22 18:57 ` Tom Rini
2023-11-22 19:51 ` Peter Robinson
2023-11-23 23:15 ` Dmitry Malkin
2023-12-01 19:41 ` Dmitry Malkin
2023-12-02 5:54 ` Simon Glass
2023-12-05 21:04 ` Peter Robinson
2023-12-05 21:16 ` Peter Robinson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKRNjQ0dsWozGo4n8g58m4cCEk3n=qx1R+L24WBgpo-iP1yo7A@mail.gmail.com' \
--to=dmitry@bedrocksystems.com \
--cc=mbrugger@suse.com \
--cc=pbrobinson@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).