On 18.7.2018 08:28, Wolfgang Denk wrote:
> Dear Tom,
>
> In message <20180718001946.GA4609@bill-the-cat> you wrote:
>>
>> OK, sorry, let me try and be smarter. Can we "just" store the gitdm
>> config file in U-Boot proper? Would that be OK with you if we can?
>
> Of course we can do that (actua
Dear Tom,
In message <20180718001946.GA4609@bill-the-cat> you wrote:
>
> OK, sorry, let me try and be smarter. Can we "just" store the gitdm
> config file in U-Boot proper? Would that be OK with you if we can?
Of course we can do that (actually it's two files,
"u-boot-config/aliases" and "u-bo
Dear Sam,
In message <20180717220912.11358-2-semen.protse...@linaro.org> you wrote:
> This is just a draft to discuss ideas related to "Make U-Boot log great
> again" thread.
>
> With this patch we will see something like:
>
> Loading Environment from FAT...
>--> MMC: no card present
Dear Sam,
In message <20180717220912.11358-1-semen.protse...@linaro.org> you wrote:
> This is just a draft to discuss ideas related to "Make U-Boot log great
> again" thread.
>
> With this patch we will have something like this:
>
> Loading Environment from FAT... Failed (-5)
> Loading E
On 18.7.2018 02:19, Tom Rini wrote:
> On Tue, Jul 17, 2018 at 05:54:56PM +0200, Wolfgang Denk wrote:
>> Dear Tom,
>>
>> In message <20180717134154.GC3196@bill-the-cat> you wrote:
>>>
>> looks good. I expect there was consideration to keep these config files
>> out of the main repo.
>
>>
This patch is to enable eSDHC for ls1021a.
Signed-off-by: Yinbo Zhu
---
arch/arm/dts/ls1021a.dtsi |1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/arm/dts/ls1021a.dtsi b/arch/arm/dts/ls1021a.dtsi
index 5b3fc6a..59c97d5 100644
--- a/arch/arm/dts/ls1021a.dtsi
+++ b/arc
This patch is to add eSDHC node for ls1043a.
Signed-off-by: Yinbo Zhu
---
arch/arm/dts/fsl-ls1043a.dtsi |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-ls1043a.dtsi b/arch/arm/dts/fsl-ls1043a.dtsi
index ff40122..a804f51 100644
--- a/arch/arm/dts/f
This patch is to add eSDHC node for ls1046a.
Signed-off-by: Yinbo Zhu
---
arch/arm/dts/fsl-ls1046a.dtsi |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-ls1046a.dtsi b/arch/arm/dts/fsl-ls1046a.dtsi
index 4acbaf7..7687d12 100644
--- a/arch/arm/dts/f
This patch is to add eSDHC node for ls1088a.
Signed-off-by: Yinbo Zhu
---
arch/arm/dts/fsl-ls1088a.dtsi |9 +
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi
index 077caf3..72d755a 100644
--- a/arch/arm/dts/
This enables the folowing to Kconfig:
CONFIG_BLK
CONFIG_DM_MMC
Signed-off-by: Yinbo Zhu
---
Change in v3:
Changed this patch's order
configs/ls1021atwr_nor_SECURE_BOOT_defconfig |2 ++
configs/ls1021atwr_nor_defconfig |2 ++
This patch is to add eSDHC node for ls2088a.
Signed-off-by: Yinbo Zhu
---
arch/arm/dts/fsl-ls2080a.dtsi |8
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/dts/fsl-ls2080a.dtsi b/arch/arm/dts/fsl-ls2080a.dtsi
index b0f8517..2d537ae 100644
--- a/arch/arm/dts/f
This patch adds esdhc clock support for ls1088a and ls2088a.
Signed-off-by: Yinbo Zhu
---
Change in v2:
Changed this patch's order
.../arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c | 14 ++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/arch/arm/c
This patch is to fix sd boot config compile issue for ls1088a.
Signed-off-by: Yinbo Zhu
---
Change in v2:
Changed this patch's order
include/mmc.h |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/mmc.h b/include/mmc.h
index 534c317..66e69b7 10064
From: Ye Li
Add CONFIG_ARCH_IMX8 to use the 64bits support in usdhc driver.
Signed-off-by: Ye Li
Signed-off-by: Peng Fan
Cc: Jaehoon Chung
---
drivers/mmc/fsl_esdhc.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
Add pinctrl driver for i.MX8. The pads configuration is controlled
by SCU, so need to ask SCU to configure pads through scfw API.
Add pinctrl-scu to invoke sc_pad_set to configue pads.
Add a new flag IMX8_USE_SCU to differentiate i.MX8 from other platforms
which could directly configure pads from A
Add arch_cpu_init(_dm) mainly to open the channel between ACore and SCU.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/sys_proto.h | 9 ++
arch/arm/mach-imx/imx8/cpu.c | 51 ++
2 files changed, 60 insertions(+)
diff
Add i.MX8 compatible string and cpu type support to lpuart driver,
to use little endian 32 bits configurations.
Also, accroding to RM, the Receive FIFO Enable (RXFE) field in LPUART
FIFO register is bit 3, so the definition should change to 0x08 not 0x40
for i.MX8, otherwise the Receive FIFO is no
Introduce dtsi for i.MX8QXP, since there is other variants i.MX8DX(P),
so add them there, because i.MX8QXP includes the dtsi of them.
Signed-off-by: Peng Fan
---
arch/arm/dts/fsl-imx8-ca35.dtsi | 66 ++
arch/arm/dts/fsl-imx8dx.dtsi| 444
arch/arm
Implement mmc_get_env_dev for i.MX8.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/mach-imx/imx8/cpu.c | 32
1 file changed, 32 insertions(+)
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 90b6ea4211..0cacaa895c 100644
-
Modify most APIs to use udevice as the first param, then
it will be easy to get the clk reference by using udevice pointer.
Use uclass api to get lpuart clk when CONFIG_CLK enabled.
Signed-off-by: Peng Fan
---
drivers/serial/serial_lpuart.c | 78 --
1 file
Add get_boot_device to detect boot device.
Add print_bootinfo to print the boot device info.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/sys_proto.h | 10
arch/arm/mach-imx/imx8/cpu.c | 85 ++
2 files changed, 95 in
From: Ye Li
Enable the RX and TX FIFO in LPUART driver to avoid the input lost
during u-boot boot up.
Signed-off-by: Ye Li
Acked-by: Peng Fan
---
drivers/serial/serial_lpuart.c | 33 ++---
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/drivers/seria
Add scu_dev for i.MX8, this will be used as a handle
to communite with SCU from A35.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/global_data.h | 4
1 file changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/global_data.h
b/arch/arm/include/asm/global_data.h
Add the power domain DM driver for i.MX8, that it depends on the DTB
power domain trees to generate the power domain provider devices. Users
needs add power domain trees with property "compatible = "nxp,imx8-pd";"
When power on one PD device, the driver will power on its ancestor PD
devices in pow
Add helper functions to identify different armv8 variants.
Signed-off-by: Peng Fan
---
arch/arm/include/asm/armv8/cpu.h | 26 ++
1 file changed, 26 insertions(+)
create mode 100644 arch/arm/include/asm/armv8/cpu.h
diff --git a/arch/arm/include/asm/armv8/cpu.h b/arch/arm
This driver is mostly used to avoid build error.
We use uclass clk driver to clk related operations.
Signed-off-by: Peng Fan
---
arch/arm/include/asm/arch-imx8/clock.h | 27 +++
arch/arm/mach-imx/imx8/clock.c | 21 +
2 files changed, 48 inserti
When CONIFG_CLK is enabled, use uclass clk api to handle
the clock.
Signed-off-by: Peng Fan
Cc: Jaehoon Chung
Cc: Stefano Babic
---
drivers/mmc/fsl_esdhc.c | 22 ++
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdh
Add i.MX8QXP MEK board support
Enabled pinctrl/clk/power domain/mmc/i2c driver.
Signed-off-by: Peng Fan
---
arch/arm/dts/Makefile | 2 +
arch/arm/dts/fsl-imx8qxp-mek.dts | 136 ++
arch/arm/mach-imx/imx8/Kconfig| 13 +++
board/fr
Add iomux configuration api.
Signed-off-by: Peng Fan
---
arch/arm/include/asm/arch-imx8/iomux.h | 40 +++
arch/arm/mach-imx/imx8/Makefile| 2 +-
arch/arm/mach-imx/imx8/iomux.c | 43 ++
3 files changed, 84 insertions(+),
Add i.MX8 support, there are 8 GPIO banks.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/gpio.h | 21 +
drivers/gpio/mxc_gpio.c | 30 +-
2 files changed, 42 insertions(+), 9 deletions(-)
create mode 10
Add clk driver for i.MX8QXP, support clk
enable/disable/get_rate/set_rate operations.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
drivers/clk/Kconfig| 1 +
drivers/clk/Makefile | 1 +
drivers/clk/imx/Kconfig| 6 ++
drivers/clk/imx/Makefile | 5 ++
drivers/clk/imx/c
Add mmu memmap, some memory regions are reserved by M4, Arm Trusted
Firmware, so need to get memreg using SCFW API and setup the memmap.
Add dram_init, dram_init_banksize, get_effective_memsize functions,
according to the memreg.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/mach-imx/
Add i.MX8 cpu type and is_imx8/is_imx8qxp help macros.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx/cpu.h | 5 +
arch/arm/include/asm/mach-imx/sys_proto.h | 3 +++
2 files changed, 8 insertions(+)
diff --git a/arch/arm/include/asm/arch-imx/cpu.h
b/arch
i.MX8 support FLEXSPI boot support. So add FLEXSPI boot entry.
Signed-off-by: Peng Fan
---
arch/arm/include/asm/mach-imx/boot_mode.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h
b/arch/arm/include/asm/mach-imx/boot_mode.h
index 8766e9d180..3a483b
Add i.MX8 MISC driver to handle the communication between
A35 Core and SCU.
Signed-off-by: Peng Fan
---
drivers/misc/Makefile | 1 +
drivers/misc/imx8/Makefile | 3 +
drivers/misc/imx8/scu.c| 247 +
3 files changed, 251 insertions(+)
crea
Include i.MX8QXP pin header when CONFIG_IMX8QXP defined,
if no SoC macro defined, report error.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/imx8-pins.h | 15 +++
1 file changed, 15 insertions(+)
create mode 100644 arch/arm/include/asm/arch-imx8/imx8
Add basic cpu support, including cpu revision, cpu type,
cpu core detection.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/mach-imx/imx8/Makefile | 7
arch/arm/mach-imx/imx8/cpu.c| 93 +
2 files changed, 100 insertions(+)
create mode 1
Add clk/misc/pad/pm/rm scfw api implementaion for different
drivers to invoke. The low level code is using misc_call
to invoke imx8_scu driver.
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/sci/sci.h | 31 +-
drivers/misc/imx8/Makefile | 2 +
Add imx-regs header file to include the register base definition
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/include/asm/arch-imx8/imx-regs.h | 46 +++
1 file changed, 46 insertions(+)
create mode 100644 arch/arm/include/asm/arch-imx8/imx-regs.h
diff --g
Build mach-imx for i.MX8
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index cac58bdc4d..40c8f6fe13 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -104,7 +104,7
Add Kconfig entry for i.MX8QXP
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
arch/arm/Kconfig | 8
arch/arm/mach-imx/Makefile | 1 +
arch/arm/mach-imx/imx8/Kconfig | 9 +
3 files changed, 18 insertions(+)
create mode 100644 arch/arm/mach-imx/imx8/Kconfig
dif
Add SCFW macro definition.
Signed-off-by: Peng Fan
---
arch/arm/include/asm/arch-imx8/sci/rpc.h | 159
arch/arm/include/asm/arch-imx8/sci/sci.h | 57 ++
arch/arm/include/asm/arch-imx8/sci/svc/misc/api.h | 30 +++
arch/arm/include/asm/arch-imx8/sci/svc/pad
Add i.MX8QXP power and resource definition
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
include/dt-bindings/soc/imx8_pd.h | 188 +
include/dt-bindings/soc/imx_rsrc.h | 557 +
2 files changed, 745 insertions(+)
create mode 100644 include/dt-bind
Add i.MX8QXP clocks definition
Signed-off-by: Peng Fan
---
include/dt-bindings/clock/imx8qxp-clock.h | 583 ++
1 file changed, 583 insertions(+)
create mode 100644 include/dt-bindings/clock/imx8qxp-clock.h
diff --git a/include/dt-bindings/clock/imx8qxp-clock.h
b/in
Add i.MX8QXP pads definition
Signed-off-by: Peng Fan
Cc: Stefano Babic
---
include/dt-bindings/pinctrl/pads-imx8qxp.h | 757 +
1 file changed, 757 insertions(+)
create mode 100644 include/dt-bindings/pinctrl/pads-imx8qxp.h
diff --git a/include/dt-bindings/pinctrl/p
This patchset is to upstream i.MX8QXP and mek board support, with some
drivers update to support i.MX8QXP. The information about the processor
could be found
https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-8-processors/i.mx-8x-f
> -Original Message-
> From: Trent Piepho
> Sent: Tuesday, July 17, 2018 10:24 AM
> To: Henry Beberman ; u-
> b...@lists.denx.de
> Cc: tr...@konsulko.com; fabio.este...@nxp.com
> Subject: Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI
> from mmc
>
> On Mon, 2018-07-16 at
On Tue, Jul 17, 2018 at 09:15:22PM +0530, Jagan Teki wrote:
> Hi Tom,
>
> Please pull this PR.
>
> thanks,
> Jagan.
>
> The following changes since commit 5e9a9645816edcc68c09729f257e0c863292bf26:
>
> mach-stm32: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
> (2018-07-13 14:47:29
On Tue, Jul 17, 2018 at 05:54:56PM +0200, Wolfgang Denk wrote:
> Dear Tom,
>
> In message <20180717134154.GC3196@bill-the-cat> you wrote:
> >
> > > >> looks good. I expect there was consideration to keep these config files
> > > >> out of the main repo.
> > > >
> > > > I can't remember clearly.
On Tue, Jul 17, 2018 at 02:44:17PM +0300, Igor Opaniuk wrote:
> Implement get_size_of_partition() operation,
> which is required by the latest upstream libavb [1].
FWIW, any living repository is a moving target, so there is nothing more
volatile than the "latest" state of such repository. Kind req
On Tue, Jul 17, 2018 at 02:33:26PM +0300, Igor Opaniuk wrote:
> Use blk_dread()/blk_dwrite() in mmc_read()/mmc_write() AVB operation
> implementations. This fixes compilation issues when CONFIG_BLK is
> enabled.
>
> Signed-off-by: Igor Opaniuk
> ---
> common/avb_verify.c | 9 +
> 1 file
On Tue, Jul 10, 2018 at 5:38 PM, Tom Rini wrote:
> On Tue, Jul 10, 2018 at 11:01:14AM +0800, Bin Meng wrote:
>> Hello,
>>
>> On Fri, Mar 23, 2018 at 1:44 PM, Bin Meng wrote:
>> > Hi,
>> >
>> > On Sat, Feb 17, 2018 at 3:49 AM, Robert Nelson
>> > wrote:
>> >> On Fri, Feb 16, 2018 at 1:01 PM, Sam
This is just a draft to discuss ideas related to "Make U-Boot log great
again" thread.
With this patch we will see something like:
Loading Environment from FAT...
--> MMC: no card present
--> ** Bad device mmc 0 **
--> Failed (-5)
Loading Environment from MMC...
This is just a draft to discuss ideas related to "Make U-Boot log great
again" thread.
With this patch we will have something like this:
Loading Environment from FAT... Failed (-5)
Loading Environment from MMC... OK
instead of this:
Loading Environment from FAT... MMC: no card prese
Hi Igor,
On Tue, Jul 17, 2018 at 02:33:25PM +0300, Igor Opaniuk wrote:
> 1. Since libavb library alone is highly portable, introduce dedicated
> Kconfig symbol for AVB bootloader-dependent operations, so it's possible
> to build libavb separately. AVB bootloader-dependent operations include:
> *
On Mon, Jul 9, 2018 at 11:48 AM, Joe Hershberger wrote:
> On Wed, Jul 4, 2018 at 9:13 PM, Tran Tien Dat
> wrote:
>> U-Boot has 1 common buffer to send Ethernet frames, pointed to by
>> net_tx_packet. When sending to an IP address without knowing the MAC
>> address, U-Boot makes an ARP request (u
On Wed, Jul 18, 2018 at 12:30 AM, Adam Ford wrote:
> On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko
> wrote:
>> https://elixir.bootlin.com/linux/v4.18-rc5/source/drivers/tty/serial/8250/8250_omap.c
> Can we omap2+ users patch the 8250_omap.c code in Linux to make use of
> the reg-shift, then d
> -Original Message-
> From: Trent Piepho
> Sent: Tuesday, July 17, 2018 10:03 AM
> To: Henry Beberman ; u-
> b...@lists.denx.de
> Cc: fabio.este...@nxp.com; adrian.alo...@nxp.com
> Subject: Re: [U-Boot] [PATCH 06/11] mx7dsabresd: Add Windows boot
> support for iMX7 Sabre
>
> On Tue, 2018
On Tue, Jul 17, 2018 at 4:24 PM Andy Shevchenko
wrote:
>
> On Tue, Jul 17, 2018 at 4:34 PM, Alexey Brodkin
> wrote:
>
> >> Linux has a completely separate driver for omap3 (which is wrong too).
>
> This is not (fully) correct,
>
> >> But in a nutshell, it basically determines the shift value by t
On Tue, Jul 17, 2018 at 4:34 PM, Alexey Brodkin
wrote:
>> Linux has a completely separate driver for omap3 (which is wrong too).
This is not (fully) correct,
>> But in a nutshell, it basically determines the shift value by the
>> "compatible" string, so we should too.
>
> Here's the driver:
> h
When compiling for a single CPU variant (e.g. MX6Q or MX6DL),
the IOMUX constants are named MX6_PAD_blah, not MX6Q_PAD_blah.
Fix the macros IOMUX_PADS and SETUP_IOMUX_PAD to reflect this.
Signed-off-by: Eric Nelson
---
arch/arm/include/asm/mach-imx/iomux-v3.h | 4 ++--
1 file changed, 2 inserti
Hi,
On 17 July 2018 at 13:25, Simon Glass wrote:
> Binman can make additions to the device tree which are useful to U-Boot
> when it runs (e.g. the position of each entry in the image). Write the
> changes back so that they are easily accessible.
>
> Signed-off-by: Simon Glass
> ---
>
> tools/b
This property has been changed to 'offset'. To help downstream users who
might still be using 'pos', add a check that this is not used by mistake.
Signed-off-by: Simon Glass
---
tools/binman/entry.py | 2 ++
tools/binman/ftest.py | 7 +++
tools/binman/test/79_uses_
Header file "asm/utils.h" is not required to compile "spl_ymodem.c".
So, removing this dependency allows other architectures to use this
booting device as "asm/utils.h" is only present in "arm" architecture.
Signed-off-by: Paulo Zaneti
---
common/spl/spl_ymodem.c | 1 -
1 file changed, 1 deleti
This entry contains a Google Binary Block, used to store keys and bitmaps
in a Chromium image.
Signed-off-by: Simon Glass
---
tools/binman/README.entries| 19 +
tools/binman/etype/gbb.py | 96 ++
tools/binman/ftest.py | 56 ++
At present this function takes a filename, but it is better to use an Fdt
object so that the caller can control this, perhaps obtainint the device
tree from a bytearray. Update the method accordingly and also fix a
confusing parameter name.
Signed-off-by: Simon Glass
---
tools/binman/ftest.py |
This adds support for a Chromium verified boot block, used to sign a
read-write section of the image.
Signed-off-by: Simon Glass
---
tools/binman/README.entries | 17 +
tools/binman/bsection.py| 24 +++
tools/binman/entry.py | 2
This is useful for clients that want to find a node. Export it so it can
be used by others.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt.py | 4 ++--
tools/dtoc/test_fdt.py | 8
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
i
This function name is too generic for its purpose and is therefore
confusing. It actually only applies to blobs, so rename it to indicate
this.
Signed-off-by: Simon Glass
---
tools/binman/etype/blob.py | 4 ++--
tools/binman/etype/u_boot_dtb_with_ucode.py | 2 +-
tools/binman/e
Add a function which can decode a property containing a list of phandles.
This is useful for finding nodes linked to a property. Also provide a way
to look up a single phandle and get the Fdt object from a Node.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt.py | 19 +++
too
Add support for U-Boot's TPL and TPL device tree. Also fix a few comments
in the other device-tree entries.
Signed-off-by: Simon Glass
---
tools/binman/README.entries | 38 +++-
tools/binman/etype/u_boot_spl.py | 2 +-
tools/binman/etype/u_boot_spl_dtb.py | 2
When this fails it is useful to see the current directory, since U-Boot's
build system will typically change into the output directory during the
build. Add this information to the error.
Signed-off-by: Simon Glass
---
tools/patman/tools.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions
It is sometimes useful to have an area of the image which is all zeroes,
or all 0xff. This can often be achieved by padding the size of an an
existing entry and setting the pad byte for an entry or image.
But it is useful to have an explicit means of adding blocks of repeating
data to the image. A
At present the map only shows the offset and size for each region. The
image position provides the actual position of each entry in the image,
regardless of the section hierarchy.
Add the image position to the map.
Signed-off-by: Simon Glass
---
tools/binman/bsection.py | 3 ++-
tools/binman/
Tests use the 'test_result' feature to return a predetermined command
result for particular commands. The avoids needing to have the real
command available just to run a test. It works by calling the function
provided by the test, to get the value.
However sometimes the test does need to run the r
Add an entry type which can hold a Chrome OS EC.
To make this work a new entry type is created, which supports getting a
blob filename from the command line.
Signed-off-by: Simon Glass
---
tools/binman/README.entries| 29 ++
tools/binman/etype/blob_named_by_arg.
Add functions to read and write a file, looking through a list of search
paths to find it.
Signed-off-by: Simon Glass
---
tools/patman/tools.py | 76 ++-
1 file changed, 75 insertions(+), 1 deletion(-)
diff --git a/tools/patman/tools.py b/tools/patman/to
Create a new README containing documentation for the entry types supported
by binman. This provides an easy reference in one place. It is
automatically generated from the source-code documentation.
Add a reference to this from the binman README.
Signed-off-by: Simon Glass
---
tools/binman/READ
At present binman needs libfdt.py to be available before it will do
anything, even print help. Import those modules later to avoid this, as it
is bad practice to fail to even show help on startup.
Signed-off-by: Simon Glass
---
tools/binman/control.py | 7 +--
1 file changed, 5 insertions(+
At present only the more complex entries are documented. It is useful to
have documentation for all entries in one place.
As a first step, add and expand the documentation to cover all entries.
Signed-off-by: Simon Glass
---
tools/binman/etype/_testing.py | 26
Binman supports quite a number of different entries now. The operation of
these is not always obvious but at present the source code is the only
reference for understanding how an entry works.
Add a way to create documentation (from the source code) which can be put
in a new 'README.entries' file.
Add an entry which can hold an FMAP region as used by flashrom, an
open-source flashing tool used on Linux x86 machines. This provides a
simplified non-hierarchical view of the entries in the image and has a
signature at the start to allow flashrom to find it in the image.
Signed-off-by: Simon Gla
At present each entry has an offset within its parent section. This is
useful for figuring out how entries relate to one another. However it
is sometimes necessary to locate an entry within an image, regardless
of which sections it is nested inside.
Add a new 'image-pos' property to provide this i
It is useful to able to write an identifying string to the image within an
entry. Add a 'text' entry type to handle this. The actual text is
typically passed to binman on the command line. The text is not itself
nul-terminated but this can be achieved if required by setting the size of
the entry to
Sometimes it is useful to pass binman the value of an entry property from
the command line. For example some entries need access to files and it is
not always convenient to put these filenames in the image definition
(device tree).
Add a -a option which can be used like this:
-a=
where
i
This module has a few missing comments. Add them.
Signed-off-by: Simon Glass
---
tools/dtoc/fdt_util.py | 34 ++
1 file changed, 34 insertions(+)
diff --git a/tools/dtoc/fdt_util.py b/tools/dtoc/fdt_util.py
index 5b631419a9..05cb9c0775 100644
--- a/tools/dtoc/fd
At present the .map file produced for each image does not include the
overall image size. This is useful information.
Update the code to generate it in the .map file as well as the updated
FDT. Also fix a few comments while we are here.
Signed-off-by: Simon Glass
---
tools/binman/README
Binman can make additions to the device tree which are useful to U-Boot
when it runs (e.g. the position of each entry in the image). Write the
changes back so that they are easily accessible.
Signed-off-by: Simon Glass
---
tools/binman/control.py | 4
1 file changed, 4 insertions(+)
diff
A few lines are commented out and can be removed. Also fix return-value
docs for _DoReadFile() and _DoReadFileDtb().
Signed-off-by: Simon Glass
---
tools/binman/ftest.py | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index
After some thought, I believe there is an unfortunate naming flaw in
binman. Entries have a position and size, but now that we support
hierarchical sections it is unclear whether a position should be an
absolute position within the image, or a relative position within its
parent section.
At presen
The purpose of some of the tests is not obvious from the function names.
Add a few comments to help with understanding.
Signed-off-by: Simon Glass
---
tools/binman/elf_test.py | 33 +
1 file changed, 33 insertions(+)
diff --git a/tools/binman/elf_test.py b/tools
At present this test assumes that the symbols are returned in address
order. However, objdump can list symbols in any order and dictionaries do
not guarantee any particular order when iterating through item.
Update elf.GetSymbols() to return an OrderedDict, sorted by address, to
avoid any problems
This series adds various new features to binman to round out its
capabilities. It also adds documentation of each entry type since there are
quite a few now.
Noteably this series changes the 'pos' property to be called 'offset'. The
'pos' name is a misnomer with hierarchical images since the posit
Hi,
Sorry, please ignore this, I didn't realise this patch was for u-boot.
On Tue, Jul 17, 2018 at 10:45 PM Julian Calaby wrote:
>
> Hi Jagan,
>
> On Tue, Jul 10, 2018 at 5:17 AM Jagan Teki wrote:
> >
> > When MUSB is operating in peripheral mode, probe registering
> > musb core using musb_regi
Hi,
this is series which was send by Siva. I have just put there missing
Tom's tag which we got and adding more people to TO.
Thanks,
Michal
Changes in v6:
- Fix socfpga misc, bcmstb, ebisu which were recently added
Changes in v5:
- Add Tom's tag -
https://lists.denx.de/pipermail/u-boot/2018
The length returned by hexport_r has a few redundant characters.
This appears as NULL characters at the end so seems harmless.
Remove the surplus counts in two places
totlen += strlen(ep->key) + 2;
I'm guessing the +2 here is for = and sep char. But there is another
totlen += 2; line that does th
Hi Jagan,
On Tue, Jul 10, 2018 at 5:17 AM Jagan Teki wrote:
>
> When MUSB is operating in peripheral mode, probe registering
> musb core using musb_register which intern return int value
> for validation. so there is no scope to preserve struct musb
> pointer but the same can be used in .remove m
Hello all,
I'd like to know what's the difference between the Frescale imx board
repositories from:
1) https://source.codeaurora.org/external/imx/uboot-imx
2) https://github.com/Freescale/u-boot-fslc
It seems that #2 is rebased more often and is referenced by yocto. I
was wordering if the differ
On Mon, 2018-07-16 at 23:56 +, Henry Beberman wrote:
> >
> > >
> > > I need to revise the commit message for this patch. The script is not
> > > fixed
> >
> > to the first partition of the selected MMC, it scans the disk for partitions
> > marked bootable, then checks each one of those unti
Hi Fabio,
> -Original Message-
> From: Fabio Estevam
> Sent: Tuesday, July 17, 2018 10:09 AM
> To: Trent Piepho
> Cc: Henry Beberman ; u-
> b...@lists.denx.de; fabio.este...@nxp.com; tr...@konsulko.com
> Subject: Re: [U-Boot] [PATCH 01/11] imx: Add bootcmd to load and run UEFI
> from mmc
1 - 100 of 165 matches
Mail list logo