Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 5/7] boot/beaglev-ddrinit: new package
Date: Sat, 8 May 2021 00:06:55 +0200	[thread overview]
Message-ID: <20210507220655.GF2137340@scaer> (raw)
In-Reply-To: <20210507220401.GE2137340@scaer>

Thomas, All,

On 2021-05-08 00:04 +0200, Yann E. MORIN spake thusly:
> On 2021-05-04 22:51 +0200, Thomas Petazzoni spake thusly:
> > This commit adds a package for the DDR initialization code used on the
> > BeagleV platform.
> 
> The upstream package name is beaglev-ddrlnit, yes, with an 'l' instead
> of an 'i'. I've renamed the package to match upstream name, so that
> users that look for it can actually find it.

I've also added a hash file.

Also, the comment was stating "HEAD of the starfive branch", but it was
HEAD only at the time you wrote it. It already is no longer HEAD.

So I changed the comment, but kept the hash as-is, since that what you
tested. Feel free to send a bump if it makes sense.

> Applied to master, thanks.
> 
> Regards,
> Yann E. MORIN.
> 
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> > ---
> >  DEVELOPERS                              |  1 +
> >  boot/Config.in                          |  1 +
> >  boot/beaglev-ddrinit/Config.in          |  9 ++++++++
> >  boot/beaglev-ddrinit/beaglev-ddrinit.mk | 29 +++++++++++++++++++++++++
> >  4 files changed, 40 insertions(+)
> >  create mode 100644 boot/beaglev-ddrinit/Config.in
> >  create mode 100644 boot/beaglev-ddrinit/beaglev-ddrinit.mk
> > 
> > diff --git a/DEVELOPERS b/DEVELOPERS
> > index 7ce78742fc..39bc71ea34 100644
> > --- a/DEVELOPERS
> > +++ b/DEVELOPERS
> > @@ -2604,6 +2604,7 @@ N:	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> >  F:	arch/Config.in.arm
> >  F:	board/beaglev/
> >  F:	board/stmicroelectronics/stm32mp157c-dk2/
> > +F:	boot/beaglev-ddrinit/
> >  F:	boot/boot-wrapper-aarch64/
> >  F:	boot/grub2/
> >  F:	boot/gummiboot/
> > diff --git a/boot/Config.in b/boot/Config.in
> > index b3adbfc8bc..f581205c6c 100644
> > --- a/boot/Config.in
> > +++ b/boot/Config.in
> > @@ -6,6 +6,7 @@ source "boot/at91bootstrap3/Config.in"
> >  source "boot/at91dataflashboot/Config.in"
> >  source "boot/arm-trusted-firmware/Config.in"
> >  source "boot/barebox/Config.in"
> > +source "boot/beaglev-ddrinit/Config.in"
> >  source "boot/binaries-marvell/Config.in"
> >  source "boot/boot-wrapper-aarch64/Config.in"
> >  source "boot/grub2/Config.in"
> > diff --git a/boot/beaglev-ddrinit/Config.in b/boot/beaglev-ddrinit/Config.in
> > new file mode 100644
> > index 0000000000..5392f49088
> > --- /dev/null
> > +++ b/boot/beaglev-ddrinit/Config.in
> > @@ -0,0 +1,9 @@
> > +config BR2_TARGET_BEAGLEV_DDRINIT
> > +	bool "beaglev-ddrinit"
> > +	depends on BR2_riscv
> > +	depends on BR2_HOSTARCH = "x86_64" # host-riscv64-elf-toolchain
> > +	help
> > +	  This package builds the DDRinit firmware used on the BeagleV
> > +	  platform.
> > +
> > +	  https://github.com/starfive-tech/beagle_ddrlnit
> > diff --git a/boot/beaglev-ddrinit/beaglev-ddrinit.mk b/boot/beaglev-ddrinit/beaglev-ddrinit.mk
> > new file mode 100644
> > index 0000000000..72e6aea965
> > --- /dev/null
> > +++ b/boot/beaglev-ddrinit/beaglev-ddrinit.mk
> > @@ -0,0 +1,29 @@
> > +################################################################################
> > +#
> > +# beaglev-ddrinit
> > +#
> > +################################################################################
> > +
> > +# HEAD of the starfive branch
> > +BEAGLEV_DDRINIT_VERSION = 15b80de81263996affb2a29332aa681925709983
> > +BEAGLEV_DDRINIT_SITE = $(call github,starfive-tech,beagle_ddrlnit,$(BEAGLEV_DDRINIT_VERSION))
> > +BEAGLEV_DDRINIT_INSTALL_TARGET = NO
> > +BEAGLEV_DDRINIT_INSTALL_IMAGES = YES
> > +BEAGLEV_DDRINIT_DEPENDENCIES = host-riscv64-elf-toolchain
> > +# unfortunately, no real license file, but several sources files are
> > +# under GPL-2.0+, making the whole work GPL-2.0+
> > +BEAGLEV_DDRINIT_LICENSE = GPL-2.0+
> > +
> > +define BEAGLEV_DDRINIT_BUILD_CMDS
> > +	$(MAKE) -C $(@D)/build \
> > +		CROSSCOMPILE=$(HOST_DIR)/bin/riscv64-unknown-elf- \
> > +		SUFFIX=buildroot \
> > +		GIT_VERSION=$(BEAGLEV_DDRINIT_VERSION)
> > +endef
> > +
> > +define BEAGLEV_DDRINIT_INSTALL_IMAGES_CMDS
> > +	$(INSTALL) -D -m 0644 $(@D)/build/ddrinit-2133-buildroot.bin.out \
> > +		$(BINARIES_DIR)/ddrinit-2133-buildroot.bin.out
> > +endef
> > +
> > +$(eval $(generic-package))
> > -- 
> > 2.30.2
> > 
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> 
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2021-05-07 22:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04 20:51 [Buildroot] [PATCH v3 0/7] Support for the BeagleV platform Thomas Petazzoni
2021-05-04 20:51 ` [Buildroot] [PATCH v3 1/7] package/Makefile.in: expose CONFIG_DIR to post-build/post-image scripts Thomas Petazzoni
2021-05-06 21:03   ` Yann E. MORIN
2021-05-08 14:32   ` Peter Korsgaard
2021-05-04 20:51 ` [Buildroot] [PATCH v3 2/7] boot/opensbi: add options to enable/disable image installation Thomas Petazzoni
2021-05-05  1:03   ` Alistair Francis
2021-05-04 20:51 ` [Buildroot] [PATCH v3 3/7] configs/beaglev_defconfig: new defconfig Thomas Petazzoni
2021-05-05  1:05   ` Alistair Francis
2021-05-07 22:02   ` Yann E. MORIN
2021-05-08 18:23     ` Thomas Petazzoni
2021-05-04 20:51 ` [Buildroot] [PATCH v3 4/7] package/riscv64-elf-toolchain: new package Thomas Petazzoni
2021-05-04 20:51 ` [Buildroot] [PATCH v3 5/7] boot/beaglev-ddrinit: " Thomas Petazzoni
2021-05-07 22:04   ` Yann E. MORIN
2021-05-07 22:06     ` Yann E. MORIN [this message]
2021-05-07 23:30     ` Drew Fustini
2021-05-08  7:37       ` Yann E. MORIN
2021-05-08  7:48         ` Drew Fustini
2021-05-08 16:01           ` Khem Raj
2021-05-08 18:20             ` Yann E. MORIN
2021-05-08 19:54               ` Drew Fustini
2021-05-08 21:10             ` Drew Fustini
2021-05-08 22:09               ` Khem Raj
2021-05-09 20:23                 ` Drew Fustini
2021-05-09 20:26                   ` Khem Raj
2021-05-09 20:34                     ` Drew Fustini
2021-05-08 18:21     ` Thomas Petazzoni
2021-05-09 11:03     ` Arnout Vandecappelle
2021-05-09 11:04       ` Arnout Vandecappelle
2021-05-09 20:29         ` Drew Fustini
2021-05-09 20:31           ` Khem Raj
2021-05-10  7:02           ` Drew Fustini
2021-05-10  9:07             ` Peter Korsgaard
2021-05-04 20:51 ` [Buildroot] [PATCH v3 6/7] boot/beaglev-secondboot: " Thomas Petazzoni
2021-05-07 22:07   ` Yann E. MORIN
2021-05-04 20:51 ` [Buildroot] [PATCH v3 7/7] configs/beaglev: enable building of low-level firmware Thomas Petazzoni
2021-05-07 22:08   ` Yann E. MORIN
2021-05-07 22:00 ` [Buildroot] [PATCH v3 0/7] Support for the BeagleV platform Yann E. MORIN
2021-05-14 21:06 ` Drew Fustini

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=20210507220655.GF2137340@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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