Re: [U-Boot] [PATCH v4 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-06-30 Thread Huan Wang
Hi, Alex, > > Am 15.06.2016 um 05:04 schrieb Huan Wang : > > > > Hi, Alex, > > > >>> On 06/08/2016 07:14 AM, Alison Wang wrote: > >>> To support loading a 32-bit OS, the execution state will change from > >>> AArch64 to AArch32 when jumping to kernel. > >>> > >>> The architecture information will

[U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Ziyuan Xu
Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h b/drivers/usb/gadget/dwc2_udc_otg_regs.h index 78ec90e..a0617c8 100644 --- a/dri

[U-Boot] [PATCH 1/4] usb: phy: implement usb-otg phy control for rk3288

2016-06-30 Thread Ziyuan Xu
Apply dwc2 usb driver framework to implement phy_init and phy_off, and enable it with CONFIG_RK3288_USB_PHY. Signed-off-by: Ziyuan Xu --- drivers/usb/phy/Makefile | 1 + drivers/usb/phy/rk3288_usb_phy.c | 29 + 2 files changed, 30 insertions(+) create mode

[U-Boot] [PATCH 0/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Ziyuan Xu
Hi, This short series add the fastboot support for rk3288, and I have tested on firefly-rk3288 board. I encounter an odd issue while debugging usb-otg ep2out-bulk data transfer. The buffer was always zero which mapped to DMA buffer, even though driver call invalidate_dcache_range() to make sure t

[U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Ziyuan Xu
Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. Define gpt partition layout in specified board such as firefly-rk3288, then enjoy it! Signed-off-by: Zi

[U-Boot] [PATCH 4/4] rockchip: firefly-rk3288: undef CONFIG_EFI_LOADER

2016-06-30 Thread Ziyuan Xu
Disable EFI applications feature. Signed-off-by: Ziyuan Xu --- configs/firefly-rk3288_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/firefly-rk3288_defconfig b/configs/firefly-rk3288_defconfig index 4af9120..8855409 100644 --- a/configs/firefly-rk3288_defconfig +++ b/conf

[U-Boot] [PATCH] rockchip: disable CONFIG_EFI_LOADER

2016-06-30 Thread Ziyuan Xu
Disable EFI applications feature for rockchip platform. Signed-off-by: Ziyuan Xu --- configs/chromebook_jerry_defconfig | 1 + configs/evb-rk3036_defconfig | 1 + configs/kylin-rk3036_defconfig | 1 + configs/rock2_defconfig| 1 + 4 files changed, 4 insertions(+) diff --gi

Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V

2016-06-30 Thread Michael Trimarchi
Hi On Thu, Jun 30, 2016 at 9:29 AM, Mingkai Hu wrote: > > > > > From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] > Sent: Thursday, June 30, 2016 2:50 PM > To: Qianyu Gong > Cc: Mingkai Hu; u-boot@lists.denx.de; Yunhui Cui; jt...@openedev.com > Subject: Re: [U-Boot] [PATCH] sf: set t

Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V

2016-06-30 Thread Michael Trimarchi
Hi On Thu, Jun 30, 2016 at 9:40 AM, Mingkai Hu wrote: > > >> -Original Message- >> From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] >> Sent: Thursday, June 30, 2016 3:33 PM >> To: Mingkai Hu >> Cc: Qianyu Gong; u-boot@lists.denx.de; Yunhui Cui; jt...@openedev.com >> Subject:

Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V

2016-06-30 Thread Mingkai Hu
> -Original Message- > From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] > Sent: Thursday, June 30, 2016 3:33 PM > To: Mingkai Hu > Cc: Qianyu Gong; u-boot@lists.denx.de; Yunhui Cui; jt...@openedev.com > Subject: Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead

Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V

2016-06-30 Thread Mingkai Hu
> -Original Message- > From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] > Sent: Thursday, June 30, 2016 3:47 PM > To: Mingkai Hu > Cc: Qianyu Gong; u-boot@lists.denx.de; Yunhui Cui; jt...@openedev.com > Subject: Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead

Re: [U-Boot] [PATCH 0/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Alexander Graf
On 30.06.16 09:21, Ziyuan Xu wrote: > Hi, > > This short series add the fastboot support for rk3288, and I have tested > on firefly-rk3288 board. > > I encounter an odd issue while debugging usb-otg ep2out-bulk data > transfer. The buffer was always zero which mapped to DMA buffer, even > thoug

Re: [U-Boot] [PATCH v4 1/2] armv8: Support loading 32-bit OS in AArch32 execution state

2016-06-30 Thread Alexander Graf
On 30.06.16 09:16, Huan Wang wrote: > Hi, Alex, > >>> Am 15.06.2016 um 05:04 schrieb Huan Wang : >>> >>> Hi, Alex, >>> > On 06/08/2016 07:14 AM, Alison Wang wrote: > To support loading a 32-bit OS, the execution state will change from > AArch64 to AArch32 when jumping to kernel.

Re: [U-Boot] [PATCH] SPL: sunxi: don't force .BSS into DRAM

2016-06-30 Thread Andre Przywara
Hi Marek, On 30/06/16 02:54, Marek Vasut wrote: > On 06/30/2016 02:29 AM, Andre Przywara wrote: >> Probably due to some (ill-founded) fear of a large BSS all sunxi boards >> forced their SPL BSS section into DRAM. >> This only works if there is no usage of a .BSS variable before the DRAM >> is ini

Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V

2016-06-30 Thread Mingkai Hu
From: Michael Trimarchi [mailto:mich...@amarulasolutions.com] Sent: Thursday, June 30, 2016 2:50 PM To: Qianyu Gong Cc: Mingkai Hu; u-boot@lists.denx.de; Yunhui Cui; jt...@openedev.com Subject: Re: [U-Boot] [PATCH] sf: set the Uniform Sector to CR3NV instead of CR3V Hi On Jun 30, 2016 08:47,

[U-Boot] [PATCH] armv8: Enable CPUECTLR.SMPEN for data coherency

2016-06-30 Thread Gong Qianyu
From: Mingkai Hu Data coherency is enabled only when the CPUECTLR.SMPEN bit is set. The SMPEN bit should be set before enabling the data cache. If not enabled, the cache is not coherent with other cores and data corruption could occur. Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu diff

Re: [U-Boot] [PATCH] armv8: Enable CPUECTLR.SMPEN for data coherency

2016-06-30 Thread Masahiro Yamada
Hi. 2016-06-30 17:51 GMT+09:00 Gong Qianyu : > From: Mingkai Hu > > Data coherency is enabled only when the CPUECTLR.SMPEN bit is > set. The SMPEN bit should be set before enabling the data cache. > If not enabled, the cache is not coherent with other cores and > data corruption could occur. >

Re: [U-Boot] [PATCH 00/15] ARM: PSCI: Add secure stack and data sections

2016-06-30 Thread Hongbo Zhang
I like the idea of secure stack and secure data section. I'd like to test this patch set, but only the psci common part and freescale platform's changes will be covered. On Sun, Jun 19, 2016 at 12:38 PM, Chen-Yu Tsai wrote: > Hi everyone, > > This is ARM PSCI improvements part 2. This series cle

[U-Boot] [PATCH 0/3] armv8: fsl-layerscape: Add LS1046A SoC support

2016-06-30 Thread Gong Qianyu
The LS1046A processor is built on the QorIQ LS series architecture combining four ARM A72 processor cores with DPAA 1.0 support. [PATCH 1/3] armv8: fsl-layerscape: Add A72 core detection [PATCH 2/3] armv8/fsl_lsch2: Add LS1046A SoC support [PATCH 3/3] armv8/ls1046a: Add Fman support Regards, Qi

[U-Boot] [PATCH 2/3] armv8/fsl_lsch2: Add LS1046A SoC support

2016-06-30 Thread Gong Qianyu
From: Mingkai Hu The LS1046A processor is built on the QorIQ LS series architecture combining four ARM A72 processor cores with DPAA 1.0 support. Signed-off-by: Hou Zhiqiang Signed-off-by: Mihai Bantea Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu diff --git a/arch/arm/cpu/armv8/fsl-

[U-Boot] [PATCH 1/3] armv8: fsl-layerscape: Add A72 core detection

2016-06-30 Thread Gong Qianyu
From: Alison Wang Signed-off-by: Alison Wang Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index 8062106..b810d01 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv

[U-Boot] [PATCH 3/3] armv8/ls1046a: Add Fman support

2016-06-30 Thread Gong Qianyu
From: Mingkai Hu Signed-off-by: Shaohui Xie Signed-off-by: Mingkai Hu Signed-off-by: Gong Qianyu diff --git a/drivers/net/fm/Makefile b/drivers/net/fm/Makefile index 493cdc6..344fbe2 100644 --- a/drivers/net/fm/Makefile +++ b/drivers/net/fm/Makefile @@ -39,3 +39,4 @@ obj-$(CONFIG_PPC_T4080) +

Re: [U-Boot] [PATCH 2/3] armv8/fsl_lsch2: Add LS1046A SoC support

2016-06-30 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Gong > Qianyu > Sent: Thursday, June 30, 2016 3:31 PM > To: york sun ; u-boot@lists.denx.de > Cc: Mihai Bantea ; Zhiqiang Hou > ; Wenbin Song ; Mingkai > Hu > Subject: [U-Boot] [PATCH 2/3] armv8/fsl_lsc

Re: [U-Boot] [PATCH 3/3] armv8/ls1046a: Add Fman support

2016-06-30 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Gong > Qianyu > Sent: Thursday, June 30, 2016 3:31 PM > To: york sun ; u-boot@lists.denx.de > Cc: Zhiqiang Hou ; Wenbin Song > ; Mingkai Hu > Subject: [U-Boot] [PATCH 3/3] armv8/ls1046a: Add Fman suppo

Re: [U-Boot] [PATCH] sunxi: spl: Fix DRAM info printing

2016-06-30 Thread Ian Campbell
On Sun, 2016-06-26 at 13:57 +0200, Hans de Goede wrote: > The switch to simple_printf was causing the SPL dram info to show as: > > DRAM: u MiB > > This fixes this by switching from %lu to %d for printing the DRAM size. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: Add A72 core detection

2016-06-30 Thread Prabhakar Kushwaha
> -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Gong > Qianyu > Sent: Thursday, June 30, 2016 3:31 PM > To: york sun ; u-boot@lists.denx.de > Cc: Zhiqiang Hou ; Huan Wang > ; Wenbin Song ; Mingkai > Hu > Subject: [U-Boot] [PATCH 1/3] armv8: fsl-layer

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Ian Campbell
On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: > Currently we will already fill ethaddr with a fixed unique address > based on the SoCs serial (from the sid) to make sure that boards which > use the integrated emac / gmac get a fixed mac rather then a random one. > > On some boards (obser

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Hans de Goede
Hi, On 30-06-16 12:50, Ian Campbell wrote: On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: Currently we will already fill ethaddr with a fixed unique address based on the SoCs serial (from the sid) to make sure that boards which use the integrated emac / gmac get a fixed mac rather then

[U-Boot] [PATCH] mmc: exynos_dw_mmc: support the Driver mode for Exynos

2016-06-30 Thread Jaehoon Chung
This patch support the driver mode for exynos dwmmc controller. To support the legacy model, maintained the existing code. Signed-off-by: Jaehoon Chung --- drivers/mmc/exynos_dw_mmc.c | 72 + 1 file changed, 72 insertions(+) diff --git a/drivers/mmc/e

[U-Boot] [PATCH] imx6: clock: typo fix

2016-06-30 Thread Peng Fan
Typo fix, "PPL2 -> PLL2" Signed-off-by: Peng Fan Cc: Stefano Babic --- arch/arm/cpu/armv7/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index ff932aa..9b4b69c 100644 --- a/arch/arm/cpu/armv7/mx6/cl

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Ian Campbell
On Thu, 2016-06-30 at 13:15 +0200, Hans de Goede wrote: > Hi, > > On 30-06-16 12:50, Ian Campbell wrote: > > On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: > > > Currently we will already fill ethaddr with a fixed unique address > > > based on the SoCs serial (from the sid) to make sure t

Re: [U-Boot] [PATCH v5 7/8] ARMv7: PSCI: ls102xa: add more PSCI v1.0 functions implemention

2016-06-30 Thread Chen-Yu Tsai
On Tue, Jun 14, 2016 at 3:01 PM, wrote: > From: Hongbo Zhang > > This patch implements PSCI functions for ls102xa SoC following PSCI v1.0, > they are as the list: > psci_version, > psci_features, > psci_cpu_suspend, > psci_affinity_info, > psci_system_reset, > psci_system

Re: [U-Boot] [PATCH v5 6/8] ARMv7: PSCI: ls102xa: check ALREADY_ON or ON_PENDING for CPU_ON

2016-06-30 Thread Chen-Yu Tsai
On Thu, Jun 30, 2016 at 12:24 PM, Hongbo Zhang wrote: > On Tue, Jun 28, 2016 at 12:30 PM, Chen-Yu Tsai wrote: >> On Tue, Jun 14, 2016 at 3:01 PM, wrote: >>> From: Hongbo Zhang >>> >>> For the robustness of codes, while powering on a CPU, it is better to check >>> if the target CPU is already o

[U-Boot] pull request: u-boot-uniphier/master

2016-06-30 Thread Masahiro Yamada
Hi Tom, Here are some bug fixes + DT, pinctrl updates. It includes a little more than fixes, but it is self-contained for Uniphier SoCs and I tested this series on all of my boards. So, I hope it should be OK. (And another reason is just personal; I will travel from July 10th, at which the MW w

Re: [U-Boot] [PATCH] ARM: uniphier: fix typo "talbe"

2016-06-30 Thread Masahiro Yamada
2016-06-24 11:51 GMT+09:00 Masahiro Yamada : > Signed-off-by: Masahiro Yamada Applied to u-boot-uniphier/master. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 00/11] ARM: uniphier: pinctrl and DT fixes/updates

2016-06-30 Thread Masahiro Yamada
2016-06-29 19:38 GMT+09:00 Masahiro Yamada : > Masahiro Yamada (11): > pinctrl: uniphier: remove wrong pin-mux functions for ProXstream2 > pinctrl: uniphier: fix NAND pin-mux setting for PH1-LD11/LD20 > pinctrl: uniphier: remove unneeded pin group nand_cs1 > ARM: dts: uniphier: sync Device

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Hans de Goede
Hi, On 30-06-16 15:52, Ian Campbell wrote: On Thu, 2016-06-30 at 13:15 +0200, Hans de Goede wrote: Hi, On 30-06-16 12:50, Ian Campbell wrote: On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: Currently we will already fill ethaddr with a fixed unique address based on the SoCs serial (f

Re: [U-Boot] [PATCH 1/4] usb: phy: implement usb-otg phy control for rk3288

2016-06-30 Thread Simon Glass
+Marek On 30 June 2016 at 00:21, Ziyuan Xu wrote: > Apply dwc2 usb driver framework to implement phy_init and phy_off, and > enable it with CONFIG_RK3288_USB_PHY. > > Signed-off-by: Ziyuan Xu > --- > > drivers/usb/phy/Makefile | 1 + > drivers/usb/phy/rk3288_usb_phy.c | 29

Re: [U-Boot] [PATCH] mmc: exynos_dw_mmc: support the Driver mode for Exynos

2016-06-30 Thread Simon Glass
On 30 June 2016 at 04:57, Jaehoon Chung wrote: > This patch support the driver mode for exynos dwmmc controller. > To support the legacy model, maintained the existing code. > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/exynos_dw_mmc.c | 72 > +

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Simon Glass
Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu wrote: > Redefine RX FIFO size & TX FIFO size for rk3288. > > Signed-off-by: Ziyuan Xu > --- > > drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/usb/gadget/dwc2_udc_otg_regs.h > b/drive

Re: [U-Boot] [PATCH] rockchip: disable CONFIG_EFI_LOADER

2016-06-30 Thread Simon Glass
Hi Ziyuan, On 30 June 2016 at 00:28, Ziyuan Xu wrote: > Disable EFI applications feature for rockchip platform. > > Signed-off-by: Ziyuan Xu > --- > configs/chromebook_jerry_defconfig | 1 + > configs/evb-rk3036_defconfig | 1 + > configs/kylin-rk3036_defconfig | 1 + > configs/rock2_

[U-Boot] Missing maintainers

2016-06-30 Thread Simon Glass
Hi Eddie, A few boards are missing maintainer files - can you please see if someone can send a patch for this? $ ./tools/genboardscfg.py WARNING: no status info for 'evb-rk3036' WARNING: no maintainers for 'evb-rk3036' ... WARNING: no status info for 'kylin-rk3036' WARNING: no maintainers for 'ky

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Simon Glass
Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu wrote: > Enable fastboot feature on rk3288. > > This path doesn't support the fastboot flash function command entirely. > We will hit "cannot find partition" assertion without specified > partition environment. Define gpt partition layout in specifie

Re: [U-Boot] [PATCH] SPL: sunxi: don't force .BSS into DRAM

2016-06-30 Thread Andre Przywara
Hi Hans, (CC:ing the list, which I accidentally forgot on this first post) On 30/06/16 11:00, Hans de Goede wrote: > Hi Andre, > > On 30-06-16 02:25, Andre Przywara wrote: >> Probably due to some (ill-founded) fear of a large BSS all sunxi boards >> forced their SPL BSS section into DRAM. >> Thi

Re: [U-Boot] mkimage can't read .tmp

2016-06-30 Thread Simon Glass
Hi Tom, On 27 June 2016 at 23:50, Tom Van Deun wrote: > Hello all > > I have been trying to create a FIT image using mkimage using the command: > > mkimage -D "-I dts -O dtb -p 2000" -f name.its name.fit > > The output is: > > DTC: dts->dtb on file "name.its" > mkimage: Can't read name.fit.tmp:

Re: [U-Boot] [PATCH] sunxi: Add support for eth1addr

2016-06-30 Thread Ian Campbell
On Thu, 2016-06-30 at 17:07 +0200, Hans de Goede wrote: > Hi, > > On 30-06-16 15:52, Ian Campbell wrote: > > On Thu, 2016-06-30 at 13:15 +0200, Hans de Goede wrote: > > > Hi, > > > > > > On 30-06-16 12:50, Ian Campbell wrote: > > > > On Sun, 2016-06-26 at 13:54 +0200, Hans de Goede wrote: > > > >

[U-Boot] [PATCH 02/14] mkimage: Explain the auto-fit imagefile special case

2016-06-30 Thread Simon Glass
There is a special case in the code when auto-fit is used. Add a comment to make it easier to understand why this is needed. Signed-off-by: Simon Glass --- tools/mkimage.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mkimage.c b/tools/mkimage.c index 53fa8bb..66d29ab 100644 --- a/t

[U-Boot] [PATCH 10/14] image: Add functions to obtain category information

2016-06-30 Thread Simon Glass
Add generic functions which can look up information about a category: - the number of items in the category - the category description - an item long time - an item short time Signed-off-by: Simon Glass --- common/image.c | 68 + include

[U-Boot] [PATCH 01/14] mkimage: Honour the default image type with auto-fit

2016-06-30 Thread Simon Glass
The default image type is supposed to be IH_TYPE_KERNEL, as set in the 'params' variable. Honour this with auto-fit also. Signed-off-by: Simon Glass --- tools/mkimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index ff3024a..53fa8bb 1

[U-Boot] [PATCH 08/14] image: Create a table of information for each category

2016-06-30 Thread Simon Glass
Add a table that contains the category name, the number of items in each category and a pointer to the table of items. This will allow us to use generic code to deal with the categories. Signed-off-by: Simon Glass --- common/image.c | 13 + include/image.h | 9 + 2 files c

[U-Boot] [PATCH 04/14] mkimage: Drop premature setting of params.fit_image_type

2016-06-30 Thread Simon Glass
There is no need to set params.fit_image_type while parsing the arguments. It is set up later anyway. Signed-off-by: Simon Glass --- tools/mkimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index a36c031..76ae09e 100644 --- a/tools/mkimage.c +++ b/too

[U-Boot] [PATCH 06/14] image: Correct auto-fit architecture property name

2016-06-30 Thread Simon Glass
The fit_write_images() function incorrectly uses the long name for the architecture. This cannot be parsed with the FIT is read. Fix this by using the short name instead. Signed-off-by: Simon Glass --- tools/fit_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools

[U-Boot] [PATCH 05/14] mkimage: Drop blank line before main()

2016-06-30 Thread Simon Glass
This is not needed. Drop it. Signed-off-by: Simon Glass --- tools/mkimage.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index 76ae09e..920d3be 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -285,7 +285,6 @@ static void process_args(int argc, char

[U-Boot] [PATCH 09/14] image: Add a name for invalid types

2016-06-30 Thread Simon Glass
At present the name is NULL, which prevents qsort() fromp being used. Use the name "invalid" instead. Signed-off-by: Simon Glass --- common/image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/image.c b/common/image.c index 4e503b3..e9095f4 100644 --- a/commo

[U-Boot] [PATCH 13/14] mkimage: Show item lists for all categories

2016-06-30 Thread Simon Glass
Update the error-handling code for -A, -C and -O to show a list of valid options when an invalid one is provided. Signed-off-by: Simon Glass Reported-by: Vinoth Eswaran --- tools/mkimage.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/mkimage.c b/tools/

[U-Boot] [PATCH 07/14] image: Convert the IH_... values to enums

2016-06-30 Thread Simon Glass
We need to know the number of values of each category (architecture, compression, OS and image type). To make this value easier to maintain, convert all values to enums. The count is then automatic. Signed-off-by: Simon Glass --- include/image.h | 187 ++-

[U-Boot] [PATCH 03/14] mkimage: Require a data file when auto-fit is used

2016-06-30 Thread Simon Glass
When auto-fit is used, it is not valid to create a FIT without an image file. Add a check for this to avoid a very confusing error message later ("Can't open (null): Bad address"). Signed-off-by: Simon Glass --- tools/mkimage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/mkimage

[U-Boot] [PATCH 14/14] tools: Allow building with debug enabled

2016-06-30 Thread Simon Glass
Sometimes it is useful to build tools with debugging information included so that line-number information is available when run under gdb. Add a Kconfig option to support this. Signed-off-by: Simon Glass --- Kconfig | 9 + Makefile | 3 ++- 2 files changed, 11 insertions(+), 1 deletion

[U-Boot] [PATCH 11/14] mkimage: Allow display of a list of any image header category

2016-06-30 Thread Simon Glass
Add a generic function which can display a list of items in any category. This will allow displaying of images for the -A, -C, -O and -T flags. At present only -T is supported. Signed-off-by: Simon Glass --- tools/mkimage.c | 43 +++ 1 file changed, 43 in

[U-Boot] [PATCH 12/14] mkimage: Use generic code for showing an 'image type' error

2016-06-30 Thread Simon Glass
The existing error code only displays image types which are claimed by a particular U_BOOT_IMAGE_TYPE() driver. But this does not seem correct. The mkimage tool should support all image types, so it makes sense to allow creation of images of any type with the tool. When an incorrect image type is

Re: [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3

2016-06-30 Thread Robert Nelson
On Wed, Jun 29, 2016 at 5:30 AM, Michal Suchanek wrote: > Hello, > > On 29 June 2016 at 10:45, Karsten Merker wrote: >> On Wed, Jun 29, 2016 at 09:30:33AM +0200, Michal Suchanek wrote: >> >>> I tried loading system with recent u-boot but it does not work. >>> >>> Trying some ext4ls shows there is

Re: [U-Boot] [PATCH] armv8: Enable CPUECTLR.SMPEN for data coherency

2016-06-30 Thread york sun
On 06/30/2016 02:03 AM, Gong Qianyu wrote: > From: Mingkai Hu > > Data coherency is enabled only when the CPUECTLR.SMPEN bit is > set. The SMPEN bit should be set before enabling the data cache. > If not enabled, the cache is not coherent with other cores and > data corruption could occur. > > Sig

Re: [U-Boot] [PATCH] SPL: sunxi: don't force .BSS into DRAM

2016-06-30 Thread Peter Korsgaard
> "Andre" == Andre Przywara writes: Hi, > I really don't know. This simple bug has cost me at least two hours > yesterday, since it was the rather innocent access to a variable that > caused the issue. And if it wouldn't have been for Siarhei to point me > in the right direction I'd have

Re: [U-Boot] [PATCH] armv8: Enable CPUECTLR.SMPEN for data coherency

2016-06-30 Thread Mark Rutland
On Thu, Jun 30, 2016 at 04:51:48PM +0800, Gong Qianyu wrote: > From: Mingkai Hu > > Data coherency is enabled only when the CPUECTLR.SMPEN bit is > set. The SMPEN bit should be set before enabling the data cache. > If not enabled, the cache is not coherent with other cores and > data corruption c

Re: [U-Boot] MPC8347 Initial Boot problems

2016-06-30 Thread Gardner, Austin (GE Transportation)
Still hoping for a response. I have not had any luck trying to get this up and running. Any advice would be very helpful. Thanks, Austin From: Gardner, Austin (GE Transportation) Sent: Friday, June 17, 2016 8:57 AM To: 'u-boot@lists.denx.de' Subject: MPC8347 Initial Boot problems Hello, I am

[U-Boot] [PATCH 00/14] mkimage: Tidy up error handling

2016-06-30 Thread Simon Glass
There are a few problems when mkimage is provided with invalid arguments. In one case it crashes. When an invalid image type it is provided it lists the valid types, but this is not implemented for compression, architecture or OS. This series tidies this up a little, to make mkimage more friendly.

Re: [U-Boot] [PATCH] MMC: Do not write to mmc_uclass_priv if it was not allocated

2016-06-30 Thread Mateusz Kulikowski
On 29.06.2016 05:27, Simon Glass wrote: > Hi Matt, > > On 25 June 2016 at 14:57, Matt Corallo wrote: >> Signed-off-by: Matt Corallo >> --- >> drivers/mmc/mmc.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c >> index aabfc71..e

Re: [U-Boot] [PATCH] MMC: Do not write to mmc_uclass_priv if it was not allocated

2016-06-30 Thread Simon Glass
Hi Meteusz, On 30 June 2016 at 12:18, Mateusz Kulikowski wrote: > On 29.06.2016 05:27, Simon Glass wrote: >> Hi Matt, >> >> On 25 June 2016 at 14:57, Matt Corallo wrote: >>> Signed-off-by: Matt Corallo >>> --- >>> drivers/mmc/mmc.c | 3 ++- >>> 1 file changed, 2 insertions(+), 1 deletion(-) >>

Re: [U-Boot] [PATCH 2/2] dm: mmc: dwmmc: use the callback functions as static

2016-06-30 Thread Simon Glass
Hi Jaehoon, On 28 June 2016 at 20:47, Jaehoon Chung wrote: > Hi Simon, > > On 06/29/2016 12:28 PM, Simon Glass wrote: >> Hi Jaehoon, >> >> On 27 June 2016 at 23:52, Jaehoon Chung wrote: >>> There are no places to call these functions. >>> It should be used the callback function. >>> Then it can

Re: [U-Boot] Bug in cbfs

2016-06-30 Thread Simon Glass
+Bin Hi, It's a good idea to cc people who have touched the code. I believe the implementation is out of date, so may well be incorrect. Please send a patch if you like. Regards, Simon On 26 June 2016 at 22:35, Yaroslav K. wrote: > Hello. > > Current implementation of cbfs prints incorrect fi

Re: [U-Boot] [PATCH] SPL: sunxi: don't force .BSS into DRAM

2016-06-30 Thread Marek Vasut
On 06/30/2016 07:40 PM, Peter Korsgaard wrote: >> "Andre" == Andre Przywara writes: > > Hi, > > > I really don't know. This simple bug has cost me at least two hours > > yesterday, since it was the rather innocent access to a variable that > > caused the issue. And if it wouldn't have bee

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Steve Rae
Hi Ziyuan, On Thu, Jun 30, 2016 at 8:23 AM, Simon Glass wrote: > Hi Ziyuan, > > On 30 June 2016 at 00:22, Ziyuan Xu wrote: >> Enable fastboot feature on rk3288. >> >> This path doesn't support the fastboot flash function command entirely. >> We will hit "cannot find partition" assertion without

Re: [U-Boot] [PATCH] MMC: Do not write to mmc_uclass_priv if it was not allocated

2016-06-30 Thread Matt Corallo
Sorry, this was related to https://patchwork.ozlabs.org/patch/624614/, not dragonboard, and yes, is the same issue that was addressed by the patch you linked. With this patch the MMC worked fine, but, indeed, as with dragonboard, its better to assign mmc instead of removing this (this seems to be

Re: [U-Boot] [PATCH v2] powerpc: MPC8544DS: revert typo in I2C offset value

2016-06-30 Thread Joe Hershberger
On Wed, Jun 29, 2016 at 6:44 PM, York Sun wrote: > From: Benjamin Kamath > > I2C offset was changed by commit 00f792e0 (added multibus support) > from 0x3100 to 0x3000. This typo leads to error when reading SPD > from DDR DIMMs. > > Signed-off-by: Benjamin Kamath > Signed-off-by: York Sun Revi

Re: [U-Boot] [PATCH v2] net: usb: r8152: Add DM support

2016-06-30 Thread Joe Hershberger
On Wed, Jun 29, 2016 at 12:58 AM, Stefan Roese wrote: > Add support for driver model, so that CONFIG_DM_ETH can be defined and > used with this driver. > > This patch also adds the read_rom_hwaddr() callback so that the ROM MAC > address will be used to the DM part of this driver. > > Signed-off-b

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support[Involving remittance information, please pay attention to the safety of property]

2016-06-30 Thread Ziyuan Xu
On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu wrote: Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "cannot find partition" assertion without specified partition environment. De

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Ziyuan Xu
hi simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers

Re: [U-Boot] [PATCH 2/4] usb: dwc2-otg: redefine fifo-size for rk3288

2016-06-30 Thread Ziyuan Xu
Hi Simon, On 2016年06月30日 23:23, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:21, Ziyuan Xu wrote: Redefine RX FIFO size & TX FIFO size for rk3288. Signed-off-by: Ziyuan Xu --- drivers/usb/gadget/dwc2_udc_otg_regs.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers

Re: [U-Boot] [PATCH 3/4] rockchip: rk3288: add fastboot support

2016-06-30 Thread Ziyuan Xu
Hi Steve, On 2016年07月01日 05:55, Steve Rae wrote: Hi Ziyuan, On Thu, Jun 30, 2016 at 8:23 AM, Simon Glass wrote: Hi Ziyuan, On 30 June 2016 at 00:22, Ziyuan Xu wrote: Enable fastboot feature on rk3288. This path doesn't support the fastboot flash function command entirely. We will hit "can