From: Ryder Lee <ryder.lee@mediatek.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v5, 01/18] tools: MediaTek: add MTK boot header generation to mkimage
Date: Tue, 27 Nov 2018 12:51:39 +0800 [thread overview]
Message-ID: <1543294299.16146.6.camel@mtkswgap22> (raw)
In-Reply-To: <20181127031259.GK11247@bill-the-cat>
Hi Tom,
On Mon, 2018-11-26 at 22:12 -0500, Tom Rini wrote:
> On Thu, Nov 15, 2018 at 10:07:49AM +0800, Ryder Lee wrote:
>
> > This patch adds support for MTK boot image generation.
> >
> > Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
> > Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
> > Reviewed-by: Simon Glass <sjg@chromium.org>
> [snip]
> > diff --git a/Makefile b/Makefile
> > index 552687d..a5d0c1b 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -852,6 +852,8 @@ ALL-y += u-boot-tegra.bin u-boot-nodtb-tegra.bin
> > ALL-$(CONFIG_OF_SEPARATE) += u-boot-dtb-tegra.bin
> > endif
> >
> > +ALL-$(CONFIG_ARCH_MEDIATEK) += u-boot-mtk.bin
> > +
> > # Add optional build target if defined in board/cpu/soc headers
> > ifneq ($(CONFIG_BUILD_TARGET),)
> > ALL-y += $(CONFIG_BUILD_TARGET:"%"=%)
> > @@ -1359,6 +1361,24 @@ u-boot.elf: u-boot.bin
> > $(Q)$(OBJCOPY) -I binary $(PLATFORM_ELFFLAGS) $< u-boot-elf.o
> > $(call if_changed,u-boot-elf)
> >
> > +# MediaTek's ARM-based u-boot needs a header to contains its load address
> > +# which is parsed by the BootROM.
> > +# If the SPL build is enabled, the header will be added to the spl binary,
> > +# and the spl binary and the u-boot.img will be combined into one file.
> > +# Otherwise the header will be added to the u-boot.bin directly.
> > +
> > +ifeq ($(CONFIG_SPL),y)
> > +u-boot-mtk.bin: u-boot.dtb u-boot.img spl/u-boot-spl-mtk.bin FORCE
> > + $(call if_changed,binman)
> > +else
> > +MKIMAGEFLAGS_u-boot-mtk.bin = -T mtk_image \
> > + -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) \
> > + -n "$(patsubst "%",%,$(CONFIG_MTK_BROM_HEADER_INFO))"
> > +
> > +u-boot-mtk.bin: u-boot.bin FORCE
> > + $(call if_changed,mkimage)
> > +endif
>
> This doesn't build for me. With the whole series applied:
> $ ./tools/buildman/buildman -dvel mediatek
> boards.cfg is up to date. Nothing to do.
> Building current source for 2 boards (2 threads, 8 jobs per thread)
> arm: + mt7629_rfb
> +(mt7629_rfb) make[1]: *** No rule to make target 'spl/u-boot-spl-mtk.bin', needed by 'u-boot-mtk.bin'. Stop.
> +(mt7629_rfb) make: *** [sub-make] Error 2
> 1 0 1 /2 mt7623n_bpir2
>
We've sent a fixup:
https://patchwork.ozlabs.org/patch/1003602/
Could you help to fold this patch in?
Ryder
next prev parent reply other threads:[~2018-11-27 4:51 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-15 2:07 [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629 Ryder Lee
2018-11-15 2:07 ` [U-Boot] [PATCH v5 01/18] tools: MediaTek: add MTK boot header generation to mkimage Ryder Lee
2018-11-27 3:12 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-27 4:51 ` Ryder Lee [this message]
2018-11-29 14:20 ` Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 02/18] arm: dts: MediaTek: add device tree for MT7629 Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 03/18] arm: dts: MediaTek: add device tree for MT7623 Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 04/18] arm: MediaTek: add basic support for MT7629 boards Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 05/18] arm: MediaTek: add basic support for MT7623 boards Ryder Lee
2018-11-15 19:21 ` Simon Glass
2018-11-16 7:08 ` Weijie Gao
2018-11-16 18:26 ` Simon Glass
2018-11-19 7:15 ` Weijie Gao
2018-11-19 17:14 ` Simon Glass
2018-11-20 6:35 ` Weijie Gao
2018-11-27 1:02 ` Simon Glass
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 06/18] clk: MediaTek: add clock driver for MT7629 SoC Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 07/18] clk: MediaTek: add clock driver for MT7623 SoC Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 08/18] timer: MediaTek: add timer driver for MediaTek SoCs Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 09/18] watchdog: MediaTek: add watchdog " Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 10/18] pinctrl: MediaTek: add pinctrl driver for MT7629 SoC Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:07 ` [U-Boot] [PATCH v5 11/18] pinctrl: MediaTek: add pinctrl driver for MT7623 SoC Ryder Lee
2018-11-29 14:20 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 12/18] power domain: MediaTek: add power domain driver for MT7629 SoC Ryder Lee
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 13/18] power domain: MediaTek: add power domain driver for MT7623 SoC Ryder Lee
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 14/18] serial: MediaTek: add high-speed uart driver for MediaTek SoCs Ryder Lee
2018-11-15 19:21 ` Simon Glass
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 15/18] ram: MediaTek: add DDR3 driver for MT7629 SoC Ryder Lee
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 16/18] mmc: mtk-sd: add SD/MMC host controller driver for MT7623 SoC Ryder Lee
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 17/18] doc: README.mediatek: Add a simple README for MediaTek Ryder Lee
2018-11-15 19:21 ` Simon Glass
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-15 2:08 ` [U-Boot] [PATCH v5 18/18] MAINTAINERS: add an entry " Ryder Lee
2018-11-29 14:21 ` [U-Boot] [U-Boot, v5, " Tom Rini
2018-11-17 9:37 ` [U-Boot] [PATCH v5 00/18] Add U-Boot support for MediaTek SoCs - MT7623n & MT7629 Frank Wunderlich
2018-11-17 10:20 ` Frank Wunderlich
2018-11-17 11:23 ` Frank Wunderlich
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=1543294299.16146.6.camel@mtkswgap22 \
--to=ryder.lee@mediatek.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