All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: buildroot@busybox.net
Subject: [Buildroot] [EXT] Re: [PATCH v4 6/9] package/qoriq-cadence-dp-firmware: new package
Date: Fri, 07 Feb 2020 09:52:10 +0100	[thread overview]
Message-ID: <7991fe9e26bbc0413784f10e3709ab78@walle.cc> (raw)
In-Reply-To: <VI1PR04MB5136AEACA1DAF944960828FCFE1C0@VI1PR04MB5136.eurprd04.prod.outlook.com>

Am 2020-02-07 02:26, schrieb Jerry Huang:
> Best Regards
> Jerry Huang
> 
>> -----Original Message-----
>> From: Michael Walle <michael@walle.cc>
>> Sent: Wednesday, February 5, 2020 9:48 PM
>> To: Jerry Huang <jerry.huang@nxp.com>
>> Cc: buildroot at busybox.net; thomas.petazzoni at bootlin.com;
>> matthew.weber at collins.com; geomatsi at gmail.com; olteanv at gmail.com
>> Subject: [EXT] Re: [PATCH v4 6/9] package/qoriq-cadence-dp-firmware: 
>> new
>> package
>> 
>> Caution: EXT Email
>> 
>> Am 2020-02-05 11:52, schrieb Changming Huang:
>> > From: Jerry Huang <jerry.huang@nxp.com>
>> >
>> > This package provides the firmware for LS1028ARDB DP (display port).
>> >
>> > Signed-off-by: Jerry Huang <jerry.huang@nxp.com>
>> > ---
>> > changes since v3:
>> > no changes.
>> >
>> > changes since v2:
>> > 1. change the package name to qoriq-cadence-dp-firmware.
>> > 2. add the hash of COPYING.
>> > 3. modify makefile with new option.
>> > 4. update DEVELOPERS with alphabetic ordering
>> >
>> > changes since v1:
>> > 1. rename the package to fsl-qoriq-cadence-dp-fw.
>> > 2. update DEVELOPERS.
>> > 3. add the hash of package.
>> > 4. modify the context fo config file to package name.
>> > 5. re-write the makefile according to rule of buildroot.
>> > 6. add the license message in makefile.
>> > ---
>> >  DEVELOPERS                                    |  3 +++
>> >  package/nxp/Config.in                         |  2 ++
>> >  package/nxp/helper.mk                         |  2 ++
>> >  .../nxp/qoriq-cadence-dp-firmware/Config.in   |  4 ++++
>> >  .../qoriq-cadence-dp-firmware.hash            |  3 +++
>> >  .../qoriq-cadence-dp-firmware.mk              | 23
>> +++++++++++++++++++
>> >  6 files changed, 37 insertions(+)
>> >  create mode 100644 package/nxp/qoriq-cadence-dp-firmware/Config.in
>> >  create mode 100644
>> > package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash
>> >  create mode 100644
>> > package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
>> >
>> > diff --git a/DEVELOPERS b/DEVELOPERS
>> > index 9303841c47..0e131b0668 100644
>> > --- a/DEVELOPERS
>> > +++ b/DEVELOPERS
>> > @@ -513,6 +513,9 @@ F:        configs/nanopi_m1_plus_defconfig
>> >  F:   configs/olimex_a13_olinuxino_defconfig
>> >  F:   configs/orangepi_plus_defconfig
>> >
>> > +N:   Changming Huang <jerry.huang@nxp.com>
>> > +F:   package/nxp/qoriq-cadence-dp-firmware/
>> > +
>> >  N:   Chris Packham <judge.packham@gmail.com>
>> >  F:   package/gstreamer1/gst1-shark/
>> >  F:   package/micropython/
>> > diff --git a/package/nxp/Config.in b/package/nxp/Config.in index
>> > 575542c7ab..855d62700b 100644
>> > --- a/package/nxp/Config.in
>> > +++ b/package/nxp/Config.in
>> > @@ -1,4 +1,6 @@
>> >  menu "NXP QorIQ libraries"
>> >       depends on BR2_aarch64 || BR2_arm || BR2_powerpc64 ||
>> > BR2_powerpc
>> >
>> > +source "package/nxp/qoriq-cadence-dp-firmware/Config.in"
>> > +
>> >  endmenu
>> > diff --git a/package/nxp/helper.mk b/package/nxp/helper.mk index
>> > 79e4236249..2eee2227af 100644
>> > --- a/package/nxp/helper.mk
>> > +++ b/package/nxp/helper.mk
>> > @@ -4,6 +4,8 @@
>> >  #
>> >
>> >
>> ################################################################
>> ######
>> > ##########
>> >
>> > +NXP_QORIQ_SITE =
>> > +https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.
>> >
>> +nxp.com%2Flgfiles%2Fsdk%2Flsdk1909&amp;data=02%7C01%7Cjerry.huang%
>> 40n
>> >
>> +xp.com%7Ce570360260aa4b23ad6708d7aa42085b%7C686ea1d3bc2b4c6fa92
>> cd99c5
>> >
>> +c301635%7C0%7C0%7C637165072894599859&amp;sdata=y0oeGsbp%2FvxW
>> GdocRx4W
>> > +Z1sPhepE3gFFfIdSTev%2F%2BU4%3D&amp;reserved=0
>> > +
>> 
>> I'm not sure if that NXP_QORIQ_SITE should go in here. But the specifc 
>> version
>> "lsdk1909" is for sure not correct.
> Will remove NXP_QORIQ_SITE from next version.
> 
>> >  # Helper for self-extracting binaries distributed by NXP.
>> >  #
>> >  # The --force option makes sure it doesn't fail if the source diff
>> > --git a/package/nxp/qoriq-cadence-dp-firmware/Config.in
>> > b/package/nxp/qoriq-cadence-dp-firmware/Config.in
>> > new file mode 100644
>> > index 0000000000..3f494bd3a3
>> > --- /dev/null
>> > +++ b/package/nxp/qoriq-cadence-dp-firmware/Config.in
>> > @@ -0,0 +1,4 @@
>> > +config BR2_PACKAGE_QORIQ_CADENCE_DP_FIRMWARE
>> > +     bool "qoriq-cadence-dp-firmware"
>> > +     help
>> > +       NXP QorIQ cadence DP firmware, a resident EL3 firmware.
>> > diff --git
>> > a/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash
>> > b/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash
>> > new file mode 100644
>> > index 0000000000..89aaf1d71b
>> > --- /dev/null
>> > +++
>> > b/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.hash
>> > @@ -0,0 +1,3 @@
>> > +# Locally calculated
>> > +sha256
>> > 5871c5717be32f14a59624d5699d405e8ce9ae2e9c9ef86fd16e13d264a40e58
>> > firmware-cadence-lsdk1909.bin
>> > +sha256
>> > d55f024af2bfff714b90de596f6d0399124b999e8c18a86b13a3b507bae6f561
>> > COPYING
>> > diff --git
>> > a/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
>> > b/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
>> > new file mode 100644
>> > index 0000000000..239f4b9d75
>> > --- /dev/null
>> > +++
>> > b/package/nxp/qoriq-cadence-dp-firmware/qoriq-cadence-dp-firmware.mk
>> > @@ -0,0 +1,23 @@
>> >
>> +###############################################################
>> ######
>> > +###########
>> > +#
>> > +# qoriq-cadence-dp-firmware
>> > +#
>> >
>> +###############################################################
>> ######
>> > +###########
>> > +
>> > +QORIQ_CADENCE_DP_FIRMWARE_VERSION = lsdk1909
>> > +QORIQ_CADENCE_DP_FIRMWARE_SITE = $(NXP_QORIQ_SITE)
>> 
>> why don't you just use
>> QORIQ_CADENCE_DP_FIRMWARE_SITE =
>> https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.nxp.
>> com%2Flgfiles%2Fsdk%2F%24(QORIQ_CADENCE_DP_FIRMWARE_VERSION&a
>> mp;data=02%7C01%7Cjerry.huang%40nxp.com%7Ce570360260aa4b23ad6708
>> d7aa42085b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6371650
>> 72894609853&amp;sdata=4nh9qImzs1JjE1CPLEKU3Hx%2BP7lkLudTNfd41TZ7K
>> %2Fc%3D&amp;reserved=0)
> will use the url directly next version.
> 
>> > +QORIQ_CADENCE_DP_FIRMWARE_SOURCE =
>> > firmware-cadence-$(QORIQ_CADENCE_DP_FIRMWARE_VERSION).bin
>> > +QORIQ_CADENCE_DP_FIRMWARE_LICENSE = NXP-Binary-EULA
>> > +QORIQ_CADENCE_DP_FIRMWARE_LICENSE_FILES = COPYING
>> > +QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES = YES
>> > +QORIQ_CADENCE_DP_FIRMWARE_INSTALL_TARGET = NO
>> > +
>> > +define QORIQ_CADENCE_DP_FIRMWARE_EXTRACT_CMDS
>> > +     $(call
>> >
>> NXP_EXTRACT_HELPER,$(QORIQ_CADENCE_DP_FIRMWARE_DL_DIR)/$(QORI
>> Q_CADENCE
>> > _DP_FIRMWARE_SOURCE))
>> > +endef
>> > +
>> > +define QORIQ_CADENCE_DP_FIRMWARE_INSTALL_IMAGES_CMDS
>> > +     $(INSTALL) -D -m 0644 $(@D)/dp/ls1028a-dp-fw.bin
>> > $(BINARIES_DIR)/ls1028a-dp-fw.bin
>> > +endef
>> 
>> Installing the firmware into the target filesystem is missing. As 
>> pointed out by
>> me - and also Vladimir - the DisplayPort driver should rather load the 
>> firmare by
>> its on and should not depend on the bootloader to load it.
> We don't install this firmware into target filesystem, because we need
> to load it to hardware before mounting target filesystem.

You didn't get my point. The correct way to load the firmware is by 
linux
requesting it from the filesystem, not by loading it in the bootloader. 
So
at least this package should go into the right direction, independent 
from
what you're doing in your own kernel. Also what is the upstream status 
of
the graphics patches for the LS1028A. I couldn't find any patches 
regarding
ls1028a and its mali core on the linux mailing list. If there are no 
patches
for now, please wait until it will be discussed on the kernel mailing 
list
how the firmware loading will be handled. TBH, I don't like to see some
proprietary handling in buildroot.

-michael

> 
>> > +
>> > +$(eval $(generic-package))

  reply	other threads:[~2020-02-07  8:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05 10:52 [Buildroot] [PATCH v4 1/9] package/nxp: new package directory Changming Huang
2020-02-05 10:52 ` [Buildroot] v4 [PATCH 2/9] package/qoriq-rcw: move rcw into nxp and rename it Changming Huang
2020-02-05 10:52 ` [Buildroot] [PATCH v4 3/9] package/qoriq-rcw: bump to version LSDK-19.09 Changming Huang
2020-02-05 10:52 ` [Buildroot] [PATCH v4 4/9] package/qoriq-rcw: add target rcw binary support Changming Huang
2020-02-05 10:52 ` [Buildroot] [PATCH v4 5/9] boot/arm-trusted-firmware: introduce two new options Changming Huang
2020-02-05 12:29   ` Thomas Petazzoni
2020-02-07  1:21     ` [Buildroot] [EXT] " Jerry Huang
2020-02-05 10:52 ` [Buildroot] [PATCH v4 6/9] package/qoriq-cadence-dp-firmware: new package Changming Huang
2020-02-05 13:47   ` Michael Walle
2020-02-07  1:26     ` [Buildroot] [EXT] " Jerry Huang
2020-02-07  8:52       ` Michael Walle [this message]
2020-02-05 10:52 ` [Buildroot] [PATCH v4 7/9] package/qoriq-rcw:Enable IIC5_PMUX and CLK_OUT_PMUX for GPIO Changming Huang
2020-02-05 10:52 ` [Buildroot] [PATCH v4 8/9] package/nxp/qoriq-rcw: introduce BR2_PACKAGE_HOST_QORIQ_RCW_BOOT_MODE for boot mode Changming Huang
2020-02-06  9:50   ` Sergey Matyukevich
2020-02-05 10:52 ` [Buildroot] [PATCH v4 9/9] board/nxp/ls1028ardb: new board Changming Huang
2020-02-05 12:39   ` Vladimir Oltean
2020-02-07  5:23     ` [Buildroot] [EXT] " Jerry Huang
2020-02-05 14:08 ` [Buildroot] [PATCH v4 1/9] package/nxp: new package directory Heiko Thiery
2020-02-06  3:41   ` [Buildroot] [EXT] " Jerry Huang
2020-02-06  9:44     ` Vladimir Oltean
2020-02-06  9:51       ` Thomas Petazzoni
2020-02-06 10:04         ` Vladimir Oltean

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=7991fe9e26bbc0413784f10e3709ab78@walle.cc \
    --to=michael@walle.cc \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.