Re: [U-Boot] [PATCH 1/2] common: Generic file system firmware loader

2017-11-10 Thread Chee, Tien Fong
On Kha, 2017-11-09 at 11:31 +0100, Marek Vasut wrote: > On 11/09/2017 11:00 AM, Lukasz Majewski wrote: > > > > On Thu, 9 Nov 2017 08:05:18 +0100 > > Marek Vasut wrote: > > > > > > > > On 11/09/2017 07:04 AM, Chee, Tien Fong wrote: > > > > > > > > On Sel, 2017-11-07 at 10:34 +0100, Marek Vasut

Re: [U-Boot] [PATCH 1/2] common: Generic file system firmware loader

2017-11-10 Thread Marek Vasut
On 11/10/2017 10:05 AM, Chee, Tien Fong wrote: > On Kha, 2017-11-09 at 11:31 +0100, Marek Vasut wrote: >> On 11/09/2017 11:00 AM, Lukasz Majewski wrote: >>> >>> On Thu, 9 Nov 2017 08:05:18 +0100 >>> Marek Vasut wrote: >>> On 11/09/2017 07:04 AM, Chee, Tien Fong wrote: > > On Sel,

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Dr. Philipp Tomsich
Kever, > On 10 Nov 2017, at 08:24, Goldschmidt Simon > wrote: > >>> Update rockchip U-Boot location to 0x4000/16384. At least the location given in the commit message is consistent: (gdb) p 0x4000 $1 = 16384 >>> Signed-off-by: Kever Yang >>> Acked-by: Philipp Tomsich >>> Rev

[U-Boot] [PATCH 0/9] arm: zynq: ps7* consolidation

2017-11-10 Thread Michal Simek
Hi, this series is trying to cleanup ps7_init* file that we don't need to have the same copy of the same functions in different locations. This work is done based on solution from Topic.nl for miami boards where format was changed a little bit to save one word in config data segment. At the same t

[U-Boot] [PATCH 1/9] arm: zynq: Add missing ps7_post_config declaration

2017-11-10 Thread Michal Simek
Add missing declaration to header. Warning log: arch/arm/mach-zynq/spl.c:94:12: warning: symbol 'ps7_post_config' was not declared. Should it be static? Signed-off-by: Michal Simek --- arch/arm/mach-zynq/include/mach/sys_proto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach

[U-Boot] [PATCH 3/9] arm: zynq: Remove ps7_debug code

2017-11-10 Thread Michal Simek
SPL is not calling this code that's why it is dead code and can be removed. Signed-off-by: Michal Simek --- .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c | 10 -- .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h | 1 - board/xilinx/zynq/zynq-microzed/ps7_init_gpl.c | 112 -

[U-Boot] [PATCH 2/9] arm: zynq: Enable debug uart on zc706

2017-11-10 Thread Michal Simek
Enable debug uart by default. Signed-off-by: Michal Simek --- configs/zynq_zc706_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/zynq_zc706_defconfig b/configs/zynq_zc706_defconfig index bc6fe3a30695..52999debc115 100644 --- a/configs/zynq_zc706_defconfig +++ b/config

[U-Boot] [PATCH 8/9] arm: zynq: Convert EMIT_WRITE to EMIT_MASKWRITE

2017-11-10 Thread Michal Simek
In case that board ps7_init* files contain EMIT_WRITE convert it to MASKWRITE because default format has to work only with last two bits. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/include/mach/ps7_init_gpl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-zynq/inclu

[U-Boot] [PATCH 9/9] arm: zynq: Convert all board to use arch ps7_init code

2017-11-10 Thread Michal Simek
Use generic implementation. It will also reduce config data size for converted boards. Signed-off-by: Michal Simek --- .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c | 120 +- .../opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.h | 80 - board/xilinx/zynq/zynq-microzed/ps7

[U-Boot] [PATCH 4/9] arm: zynq: Move ps7_* to separate file

2017-11-10 Thread Michal Simek
Extract ps7_* from spl code to prepare for extension. And also return value. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/Makefile| 2 +- arch/arm/mach-zynq/include/mach/ps7_init_gpl.h | 14 + arch/arm/mach-zynq/include/mach/sys_proto.h| 4 arch/

[U-Boot] [PATCH 6/9] arm: zynq: Move common ps7_init* initialization to arch code

2017-11-10 Thread Michal Simek
This patch is based on work done in topic board where the first address word also storing operation which should be done. This is reducing size of configuration data. This patch is not breaking an option to copy default ps7_init_gpl* files from hdf file but it is doing preparation for ps7_init* con

[U-Boot] [PATCH 5/9] arm: zynq: Get rid of ps7_reset_apu() for syzygy board

2017-11-10 Thread Michal Simek
There is no reason to call separate function. Signed-off-by: Michal Simek --- board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/board/opalkelly/zynq/zynq-syzygy-hub/ps7_init_gpl.c b/board/opalkelly/zynq/zynq-syzygy-hu

[U-Boot] [PATCH 7/9] arm: zynq: Add ps7GetSiliconVersion() to ps7_spl_init

2017-11-10 Thread Michal Simek
Unfortunately camelcase is coming from ps7_init* format. Signed-off-by: Michal Simek --- arch/arm/mach-zynq/include/mach/ps7_init_gpl.h | 6 ++ arch/arm/mach-zynq/ps7_spl_init.c | 6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/mach-zynq/include/mach/ps7_init

[U-Boot] [PATCH] test/py: Add dependency on HUSH parser

2017-11-10 Thread Michal Simek
After adding our small zynq uboot which has hush parser off these 3 tests start to failed. It is probably just coincidence that others are passing without hush parser. Signed-off-by: Michal Simek --- Not sure if this is the right dependency but would be great if someone can test it too. --- te

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Jagan Teki
On Fri, Nov 10, 2017 at 3:53 PM, Dr. Philipp Tomsich wrote: > Kever, > >> On 10 Nov 2017, at 08:24, Goldschmidt Simon >> wrote: >> Update rockchip U-Boot location to 0x4000/16384. > > At least the location given in the commit message is consistent: > (gdb) p 0x4000 > $1 = 16

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Dr. Philipp Tomsich
Jagan, > On 10 Nov 2017, at 12:12, Jagan Teki wrote: > > On Fri, Nov 10, 2017 at 3:53 PM, Dr. Philipp Tomsich > wrote: >> Kever, >> >>> On 10 Nov 2017, at 08:24, Goldschmidt Simon >>> wrote: >>> > Update rockchip U-Boot location to 0x4000/16384. >> >> At least the location given in the

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Jagan Teki
On Fri, Nov 10, 2017 at 12:54 PM, Goldschmidt Simon wrote: >>> Update rockchip U-Boot location to 0x4000/16384. >>> >>> Signed-off-by: Kever Yang >>> Acked-by: Philipp Tomsich >>> Reviewed-by: Philipp Tomsich >>> --- >>> >>> doc/README.rockchip | 6 +++--- >>> 1 file changed, 3 insertions(+),

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Jagan Teki
On Fri, Nov 10, 2017 at 4:48 PM, Dr. Philipp Tomsich wrote: > Jagan, > >> On 10 Nov 2017, at 12:12, Jagan Teki wrote: >> >> On Fri, Nov 10, 2017 at 3:53 PM, Dr. Philipp Tomsich >> wrote: >>> Kever, >>> On 10 Nov 2017, at 08:24, Goldschmidt Simon wrote: >> Update rockchip U-B

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Dr. Philipp Tomsich
> On 10 Nov 2017, at 12:26, Jagan Teki wrote: > > On Fri, Nov 10, 2017 at 4:48 PM, Dr. Philipp Tomsich > wrote: >> Jagan, >> >>> On 10 Nov 2017, at 12:12, Jagan Teki wrote: >>> >>> On Fri, Nov 10, 2017 at 3:53 PM, Dr. Philipp Tomsich >>> wrote: Kever, > On 10 Nov 2017, at 08:

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Goldschmidt Simon
>> I just found this commit has calculated the size wrong. 16384 blocks should >> be 8MB, not 4MB. > > Yes, 8MB is what expected here and even Kever[1] commented the same, what is > 4MB here? can you elaborate. I know. It's only wrong in 'doc/README.rockchip' at line 105 where it says: "image

Re: [U-Boot] [U-Boot, 2/3] rockchip: doc: update U-Boot location info

2017-11-10 Thread Dr. Philipp Tomsich
> On 10 Nov 2017, at 12:30, Goldschmidt Simon > wrote: > >>> I just found this commit has calculated the size wrong. 16384 blocks should >>> be 8MB, not 4MB. >> >> Yes, 8MB is what expected here and even Kever[1] commented the same, what is >> 4MB here? can you elaborate. > > I know. It's o

[U-Boot] [PATCH] rockchip: doc: update U-Boot location info

2017-11-10 Thread Goldschmidt Simon
The U-Boot location has been moved to block 16384. This is 8MB, not 4MB. Signed-off-by: Simon Goldschmidt --- doc/README.rockchip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 9d5af3d53d..a7761af3e8 100644 --- a/doc/README.roc

Re: [U-Boot] [PATCH] rockchip: doc: update U-Boot location info

2017-11-10 Thread Jagan Teki
On Fri, Nov 10, 2017 at 5:08 PM, Goldschmidt Simon wrote: > The U-Boot location has been moved to block 16384. > This is 8MB, not 4MB. > > Signed-off-by: Simon Goldschmidt Reviewed-by: Jagan Teki thanks! -- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintain

[U-Boot] [PATCH 1/2] rockchip: doc: Fix U-Boot proper location for falcon

2017-11-10 Thread Jagan Teki
This patch fixed U-Boot proper location has been missed to update in bewlo commit "rockchip: doc: update U-Boot location info" (sha1: 73e6dbe855f357a8330cfd53ff3033303611c1ad) Signed-off-by: Jagan Teki --- Note: Fix for 2017.11 doc/README.rockchip | 2 +- 1 file changed, 1 insertion(+), 1 delet

[U-Boot] [PATCH 2/2] rockchip: configs: vyasa: Update falcon offsets

2017-11-10 Thread Jagan Teki
Update the falcon offsets for args to 16MB and kernel to 17MB Since the below commit updated U-Boot proper location along with rockchip boot image offsets "spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip" (sha1: 8f4d62b403db45dfa8b1cadb9da9096c79b7df47) Signed-off-by: Jagan Teki

Re: [U-Boot] rockchip: doc: update U-Boot location info

2017-11-10 Thread Philipp Tomsich
> The U-Boot location has been moved to block 16384. > This is 8MB, not 4MB. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Jagan Teki > --- > doc/README.rockchip | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich _

Re: [U-Boot] rockchip: doc: update U-Boot location info

2017-11-10 Thread Philipp Tomsich
> The U-Boot location has been moved to block 16384. > This is 8MB, not 4MB. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Jagan Teki > --- > doc/README.rockchip | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 1/2] rockchip: doc: Fix U-Boot proper location for falcon

2017-11-10 Thread Philipp Tomsich
> This patch fixed U-Boot proper location has been > missed to update in bewlo commit > "rockchip: doc: update U-Boot location info" > (sha1: 73e6dbe855f357a8330cfd53ff3033303611c1ad) > > Signed-off-by: Jagan Teki > --- > Note: Fix for 2017.11 > > doc/README.rockchip | 2 +- > 1 file changed, 1

Re: [U-Boot] [U-Boot, 2/2] rockchip: configs: vyasa: Update falcon offsets

2017-11-10 Thread Philipp Tomsich
> Update the falcon offsets for args to 16MB and kernel to 17MB > Since the below commit updated U-Boot proper location along > with rockchip boot image offsets > "spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip" > (sha1: 8f4d62b403db45dfa8b1cadb9da9096c79b7df47) > > Signed-off-by

Re: [U-Boot] [U-Boot, 1/2] rockchip: doc: Fix U-Boot proper location for falcon

2017-11-10 Thread Philipp Tomsich
> This patch fixed U-Boot proper location has been > missed to update in bewlo commit > "rockchip: doc: update U-Boot location info" > (sha1: 73e6dbe855f357a8330cfd53ff3033303611c1ad) > > Signed-off-by: Jagan Teki > --- > Note: Fix for 2017.11 > > doc/README.rockchip | 2 +- > 1 file changed, 1

Re: [U-Boot] [U-Boot, 2/2] rockchip: configs: vyasa: Update falcon offsets

2017-11-10 Thread Philipp Tomsich
> Update the falcon offsets for args to 16MB and kernel to 17MB > Since the below commit updated U-Boot proper location along > with rockchip boot image offsets > "spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip" > (sha1: 8f4d62b403db45dfa8b1cadb9da9096c79b7df47) > > Signed-off-by

Re: [U-Boot] [PATCH] cmd: sf: remove useless pointer assignment

2017-11-10 Thread Lukasz Majewski
On Thu, 9 Nov 2017 13:49:59 +0200 Baruch Siach wrote: > The 'flash' pointer is assigned unconditionally a few lines below, > and is not used before that. > > Signed-off-by: Baruch Siach > --- > cmd/sf.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/cmd/sf.c b/cmd/sf.c > index f971e

Re: [U-Boot] [PATCH 1/2] arm: mvebu: clearfog: Fix SPI-NOR flash access

2017-11-10 Thread Jagan Teki
On Thu, Nov 9, 2017 at 5:55 PM, Baruch Siach wrote: > From: Jon Nettleton > > The production variant of the SPI flash used by the clearfog > devices are based on winbond chips. Additionally enable > SPI_FLASH_BAR since some variants will have 16MB of flash > that requires this to be enabled. > >

Re: [U-Boot] [PATCH 2/2] arm: mvebu: clearfog: update SPI flash DT description

2017-11-10 Thread Jagan Teki
On Thu, Nov 9, 2017 at 5:56 PM, Baruch Siach wrote: > All current ClearFog SOMs have the SPI flash populated. Enable SPI flash in > the device tree. > > Add an alias to the SPI bus so that the 'sf' command can probe the flash on > bus 1. > > Add the "spi-flash" compatible string to make the standa

[U-Boot] sdhci - review?

2017-11-10 Thread Jorge Ramirez
On 11/07/2017 11:48 PM, Tom Rini wrote: On Tue, Nov 07, 2017 at 08:13:02AM +0100, Jorge Ramirez wrote: On 11/07/2017 12:28 AM, Tom Rini wrote: Hey all, It's release day and v2017.11-rc4 is out. It's a week until release day. Please let me know if you know of any regressions, thanks! Hi Tom,

[U-Boot] [PATCH] arm: zynq: Remove double const qualifier

2017-11-10 Thread Michal Simek
The patch fix these warnings: include/fpga.h:56:24: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const fpga_desc *const fpga_get_desc(int devnum); ^ include/fpga.h:65:24: warning: type qualifiers ignored on function return type [-Wignored-

[U-Boot] [PATCH] arm: zynq: Use unsigned type with comparison with ARRAY_SIZE

2017-11-10 Thread Michal Simek
Sparse is return warning about this: arch/arm/mach-zynq/slcr.c: In function 'zynq_slcr_get_mio_pin_status': arch/arm/mach-zynq/slcr.c:185:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < ARRAY_SIZE(mio_periphs); i++) { ^ Sig

[U-Boot] [PATCH] arm: zynq: Add ps7_init for cc108

2017-11-10 Thread Michal Simek
After some generic cleanup adding ps7_init* to repository is not big pain now. Signed-off-by: Michal Simek --- board/xilinx/zynq/zynq-cc108/ps7_init_gpl.c | 806 1 file changed, 806 insertions(+) create mode 100644 board/xilinx/zynq/zynq-cc108/ps7_init_gpl.c diff

Re: [U-Boot] [U-Boot, 1/2] rockchip: doc: Fix U-Boot proper location for falcon

2017-11-10 Thread Philipp Tomsich
> This patch fixed U-Boot proper location has been > missed to update in bewlo commit > "rockchip: doc: update U-Boot location info" > (sha1: 73e6dbe855f357a8330cfd53ff3033303611c1ad) > > Signed-off-by: Jagan Teki > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > Note: Fix for

Re: [U-Boot] rockchip: doc: update U-Boot location info

2017-11-10 Thread Philipp Tomsich
> The U-Boot location has been moved to block 16384. > This is 8MB, not 4MB. > > Signed-off-by: Simon Goldschmidt > Reviewed-by: Jagan Teki > Acked-by: Philipp Tomsich > Reviewed-by: Philipp Tomsich > --- > doc/README.rockchip | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applie

Re: [U-Boot] [U-Boot, 2/2] rockchip: configs: vyasa: Update falcon offsets

2017-11-10 Thread Philipp Tomsich
> Update the falcon offsets for args to 16MB and kernel to 17MB > Since the below commit updated U-Boot proper location along > with rockchip boot image offsets > "spl: set SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x4000 for rockchip" > (sha1: 8f4d62b403db45dfa8b1cadb9da9096c79b7df47) > > Signed-off-by

[U-Boot] [PATCH 2/2] arm: zynq: Show information about silicon version

2017-11-10 Thread Michal Simek
Show information about silicon in bootlog. Signed-off-by: Michal Simek --- board/xilinx/zynq/board.c | 9 + 1 file changed, 9 insertions(+) diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 871e9dcba07f..e59038106aa6 100644 --- a/board/xilinx/zynq/board.c +++ b/b

[U-Boot] [PATCH 1/2] arm: zynq: Do not show information from checkboard twice

2017-11-10 Thread Michal Simek
There is no reason to show information about board twice. Remove boardinfo late calls. Signed-off-by: Michal Simek --- include/configs/zynq-common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index e6aab081e440..7247c90307

[U-Boot] [PULL] Please pull u-boot-rockchip

2017-11-10 Thread Dr. Philipp Tomsich
Tom, as it turns out, we have some more fixes (for documentation and a board-specific header file) for 2017.11. Thanks, Philipp. The following changes since commit 1c4043e53236d94f217e98625ea201690e85f56d: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2017-11-09 08:11:40 -0500)

Re: [U-Boot] [PULL] Please pull u-boot-rockchip

2017-11-10 Thread Tom Rini
On Fri, Nov 10, 2017 at 02:16:08PM +0100, Dr. Philipp Tomsich wrote: > Tom, > > as it turns out, we have some more fixes (for documentation and a > board-specific > header file) for 2017.11. > > Thanks, > Philipp. > > > The following changes since commit 1c4043e53236d94f217e98625ea201690e85f5

Re: [U-Boot] [PATCH] gpt: add part-uuid and part-num subcommands

2017-11-10 Thread Andrey Yurovsky
On Thu, Nov 9, 2017 at 1:55 AM, Lukasz Majewski wrote: > Hi Andrey, > >> Hi Otavio, >> >> On Wed, Nov 8, 2017 at 2:47 AM, Otavio Salvador >> wrote: >> > On Tue, Nov 7, 2017 at 10:43 PM, your name >> > wrote: >> >> From: Andrey Yurovsky >> >> >> >> It is useful to be able to retrieve a partition

[U-Boot] [PATCH V2] armv8: ls1012a: Modify Kernel and Environment offset

2017-11-10 Thread Bhaskar Upadhaya
Kernel is now located at 0x100 instead of 0xa0 and Envirorment Variables are located at 3MB offset instead of 2MB in Flash Signed-off-by: Bhaskar Upadhaya --- Changes for V2: Updated subject and removed white spaces --- include/configs/ls1012a_common.h | 4 ++-- include/configs/ls1012afr

Re: [U-Boot] sunxi: SATA link timeout fix

2017-11-10 Thread Jagan Teki
On Thu, Nov 9, 2017 at 5:56 PM, Jagan Teki wrote: > On Thu, Nov 9, 2017 at 5:36 PM, Maxime Ripard > wrote: >> On Thu, Nov 09, 2017 at 05:12:08PM +0530, Jagan Teki wrote: >>> On Thu, Nov 9, 2017 at 3:06 PM, Maxime Ripard >>> wrote: >>> > On Thu, Nov 09, 2017 at 02:48:18PM +0530, Jagan Teki wrote:

[U-Boot] Pull request: u-boot-sunxi/master

2017-11-10 Thread Jagan Teki
Hi Tom, Few more fixes for v2017.11, Please pull the same. thanks! Jagan. The following changes since commit 60567a320f4a55f05ae94fbb34f7aac0dd4c8fea: Merge git://git.denx.de/u-boot-rockchip (2017-11-10 08:19:01 -0500) are available in the git repository at: git://git.denx.de/u-boot-sunxi

[U-Boot] [PATCH] fpga: allow programming fpga from FIT image for all FPGA drivers

2017-11-10 Thread Goldschmidt Simon
This drops the limit that fpga is only loaded from FIT images for Xilinx. This is done by moving the 'partial' check from 'common/image.c' to 'drivers/fpga/xilinx.c' (the only driver supporting partial images yet) and supplies a weak default implementation in 'drivers/fpga/fpga.c'. Signed-off-by:

Re: [U-Boot] Pull request: u-boot-sunxi/master

2017-11-10 Thread Tom Rini
On Fri, Nov 10, 2017 at 07:37:21PM +0530, Jagan Teki wrote: > Hi Tom, > > Few more fixes for v2017.11, Please pull the same. > > thanks! > Jagan. > > The following changes since commit 60567a320f4a55f05ae94fbb34f7aac0dd4c8fea: > > Merge git://git.denx.de/u-boot-rockchip (2017-11-10 08:19:01

[U-Boot] [PATCH v2 1/3] sunxi: a64: Enable FIT Signature

2017-11-10 Thread Jagan Teki
Enable FIT_SIGNATURE for sunxi a64. Signed-off-by: Jagan Teki --- Changes for v2: - Use imply instead of select arch/arm/mach-sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 09cfec6..9ee356f 100644 --- a/arch/arm/

[U-Boot] [PATCH v2 2/3] sunxi: arm64: Increase CONFIG_SYS_BOOTM_LEN to 32MB

2017-11-10 Thread Jagan Teki
The default value of CONFIG_SYS_BOOTM_LEN, 0x80, causes error when uncompressing Image.gz out of FIT image. Uncompressing Kernel Image ... Error: inflate() returned -5 Image too large: increase CONFIG_SYS_BOOTM_LEN and loading Image out of FIT image. Loading Kernel Image ... Image too la

[U-Boot] [PATCH v2 3/3] sunxi: README.sunxi64: Document verified-boot for a64

2017-11-10 Thread Jagan Teki
Add verified-boot documentation for sunxi a64 platform. Signed-off-by: Jagan Teki --- Changes for v2: - New patch board/sunxi/README.sunxi64 | 177 + 1 file changed, 177 insertions(+) diff --git a/board/sunxi/README.sunxi64 b/board/sunxi/README.sunxi

Re: [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
New guess: in the most safe configuration of u-boot (CONFIG_SMP=n, lacpi disabled) with Igor's patch applied `qemu-system-i386 -bios /path/to/uboot.rom` fails on the first 'ret' instruction. GDB shows that memory at $esp (0xdfffc at the entrance to board_init_f_mem) and everything around it is zer

Re: [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
Yes, apparently 0xdfffc is in ROM area for QEMU (0xc -- 0xe, defined in include/hw/loader.h). The next thing to figure out is why u-boot uses it as a stack area. Best regards, Anton Gerasimov On 11/10/2017 06:04 PM, Anton Gerasimov wrote: > New guess: > > in the most safe configuration of

[U-Boot] [PATCH v1] x86: tangier: Use official ACPI HID for FLIS IP

2017-11-10 Thread Andy Shevchenko
FLIS IP since now gets its own ACPI ID. Drop PRP0001 workaround in favour of official ACPI HID. Signed-off-by: Andy Shevchenko --- arch/x86/include/asm/arch-tangier/acpi/southcluster.asl | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/x86/include/asm/arch-tangier

Re: [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
Hooray, changing SYS_CAR_ADDR to 0x1 in arch/x86/cpu/qemu/Kconfig does the trick. Bin, what do you think about it? Best regards, Anton Gerasimov On 11/10/2017 06:25 PM, Anton Gerasimov wrote: > Yes, apparently 0xdfffc is in ROM area for QEMU (0xc -- 0xe, > defined in include/hw/loader

[U-Boot] [PATCH] Move Cache-As-RAM memory from area mapped to ROM in QEMU

2017-11-10 Thread Anton Gerasimov
ROM has been made read-only in qemu recently (namely commit 208fa0e43645edd0b0d8f838857dfc79daff40a8), so this patch restores compatibility between u-boot and qemu. It is still broken for me unless I set CONFIG_SMP=n and disable lapic (i.e. revert patch 55751ab1e5a5cfa0962d604593a7e6f33ff6 in u

[U-Boot] [PATCH V2] armv8: ls1012a: Modify Kernel and Environment offset

2017-11-10 Thread Bhaskar Upadhaya
Kernel is now located at 0x100 instead of 0xa0 and Envirorment Variables are located at 3MB offset instead of 2MB in Flash Signed-off-by: Bhaskar Upadhaya --- Changes for V2: Updated subject and removed white spaces include/configs/ls1012a_common.h | 4 ++-- include/configs/ls1012afrdm.

[U-Boot] [PATCH 1/1] scripts/coccinelle: add some more coccinelle tests

2017-11-10 Thread Heinrich Schuchardt
Add some useful static code analysis scripts for coccinelle copied from the Linux kernel v4.14-rc8: Warn on check against NULL before calling free. scripts/coccinelle/free/ifnullfree.cocci Detect superfluous NULL check for list iterator. scripts/coccinelle/iterators/itnull.cocci Check if list it

[U-Boot] [PATCH 1/1] Makefile: add coccicheck target

2017-11-10 Thread Heinrich Schuchardt
Coccinelle is a program for static code analysis. For details on Coccinelle see http://coccinelle.lip6.fr/ Add scripts/coccicheck and Documentation/dev-tools/coccinelle.rst copied from Linux kernel v4.14-rc8. The coccicheck script executes the tests *.cocci in directory scripts/coccinell

Re: [U-Boot] [PATCH] dra7x: fastboot: Increase recovery partition size

2017-11-10 Thread Sam Protsenko
On 9 November 2017 at 01:12, Praneeth Bajjuri wrote: > As per current android recommendation > https://source.android.com/devices/architecture/kernel/modular-kernels > > 1. Android recovery mode should contain both SOC and ODM > kernel modules in the recovery partition. > > 2. If a kernel module i

[U-Boot] [PATCH 1/1] malloc: compare pointer to NULL not to 0.

2017-11-10 Thread Heinrich Schuchardt
victim is defined as: typedef struct malloc_chunk* mchunkptr; mchunkptr victim; So victim should be compared to NULL and not to 0. Problem identified with Coccinelle. Signed-off-by: Heinrich Schuchardt --- common/dlmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c

[U-Boot] [PATCH 1/1] x86: don't compare pointers to 0

2017-11-10 Thread Heinrich Schuchardt
x86_vendor_name is defined as static const char *const x86_vendor_name[] So its elements should not be compared to 0. Remove superfluous paranthesis. Problem identified with Coccinelle. Signed-off-by: Heinrich Schuchardt --- arch/x86/cpu/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[U-Boot] [PATCH 1/1] mmc: sdhci: do not compare pointer to 0

2017-11-10 Thread Heinrich Schuchardt
data is defined as struct mmc_data *data. So it should not be compared to 0. Problem identified with Coccinelle. Signed-off-by: Heinrich Schuchardt --- drivers/mmc/sdhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 11d

Re: [U-Boot] [PATCH] ARM: Samsung: Add Exynos5422-based Odroid HC1 support

2017-11-10 Thread Krzysztof Kozlowski
On Fri, Nov 03, 2017 at 09:30:30AM +0100, Marek Szyprowski wrote: > Odroid HC1 board is based on Odroid XU4 board, but it has no HDMI, > no eMMC, no build-in USB3.0 hub, no extension port pins, and no GPIO > button. USB3.0 ports are used for build-in JMicron USB to SATA bridge > and Gigabit R8152 e

Re: [U-Boot] [PATCH v3 1/3] mx25: Move MX25 selection to Kconfig

2017-11-10 Thread Benoît Thébaudeau
Hi Stefano, Tom, On Tue, Nov 7, 2017 at 10:10 AM, Stefano Babic wrote: > On 07/11/2017 02:22, Tom Rini wrote: >> On Mon, Nov 06, 2017 at 09:44:40PM -0200, Fabio Estevam wrote: >>> Hi Stefano and Tom, >>> >>> On Fri, Nov 3, 2017 at 1:40 PM, Fabio Estevam wrote: From: Fabio Estevam

[U-Boot] [PATCH v2 1/1] malloc: don't compare pointers to 0

2017-11-10 Thread Heinrich Schuchardt
0 is not a pointer. So do not compare pointers to 0. Do not return 0 from functions with a pointer return type. Problem identified with Coccinelle. Signed-off-by: Heinrich Schuchardt --- v2 Fix more occurences of the problem. v1 [PATCH 1/1] malloc: compare pointer to NULL not to

Re: [U-Boot] [PATCH v3 1/3] mx25: Move MX25 selection to Kconfig

2017-11-10 Thread Fabio Estevam
Hi Benoît, On Fri, Nov 10, 2017 at 6:19 PM, Benoît Thébaudeau wrote: > I have seen other PRs going through, but nothing for this series. > Please do not forget. It has already been applied in master now :-) ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] test/py: Add dependency on HUSH parser

2017-11-10 Thread Stephen Warren
On 11/10/2017 04:01 AM, Michal Simek wrote: After adding our small zynq uboot which has hush parser off these 3 tests start to failed. It is probably just coincidence that others are passing without hush parser. What was the exact problem here? The set of tests you've disabled all seem to rely

[U-Boot] [PATCH] clk: rmobile: Add R8A7796 xHCI clock

2017-11-10 Thread Marek Vasut
Add xHCI entry into the clock tables, so that the xHCI USB driver can enable the clock for the xHCI block via clock framework. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- drivers/clk/renesas/clk-rcar-gen3.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/clk-rca

[U-Boot] [PATCH] net: ravb: Fix reset GPIO handling

2017-11-10 Thread Marek Vasut
Fix handling of the reset GPIO. Drop the _nodev() suffix from the gpio_request_by_name() call as there is now a proper DM capable GPIO driver. Also check if the GPIO is valid before freeing it in remove path, otherwise U-Boot will crash. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Nobuhir

Re: [U-Boot] [PATCH] Move Cache-As-RAM memory from area mapped to ROM in QEMU

2017-11-10 Thread Tom Rini
On Fri, Nov 10, 2017 at 06:51:02PM +0100, Anton Gerasimov wrote: > ROM has been made read-only in qemu recently (namely commit > 208fa0e43645edd0b0d8f838857dfc79daff40a8), so this patch restores > compatibility between u-boot and qemu. It is still broken for me > unless I set CONFIG_SMP=n and disa