[U-Boot] buildman failures and toolchains

2018-07-06 Thread Adam Ford
I am going to sound stupid, but I'm struggling to install all the toolchains and use them with buildroot. I upgraded to Ubuntu 18.04 and whenever try to run buildman, or attempt to build the moveconfig database I get failures. i get the following error on every architecture type: cc1: error

Re: [U-Boot] [PATCH 0/5] Fix Falcon Boot from internal eMMC on RK3288 Vyasa

2018-07-06 Thread Shyam Saini
> This patchest fixes booting Linux Kernel in falcon mode for Vyasa board. > What happen is that CPU hangs on SPL while loading kernel from > internal eMMC. > > This issue has been already addressed here [1] but with a wrong approach: > it is a clear case of memory corruption and first patch of

Re: [U-Boot] SoCFPGA PL330 DMA driver and ECC scrubbing

2018-07-06 Thread Jason Rush
On 7/5/2018 6:10 PM, Marek Vasut wrote: > On 07/06/2018 01:11 AM, Jason Rush wrote: >> On 7/4/2018 2:23 AM, Marek Vasut wrote: >>> On 07/04/2018 01:45 AM, Jason Rush wrote: On 7/3/2018 9:08 AM, Marek Vasut wrote: > On 07/03/2018 03:58 PM, Jason Rush wrote: >> On 6/29/2018 10:17 AM,

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

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 01:11:00PM -0700, Tom Warren wrote: > Tom, > > Please pull u-boot-tegra/master into U-Boot/master. Thanks! > > All Tegra builds are OK, and Stephen's automated test system reports that > all tests pass. > > The following changes since commit

Re: [U-Boot] [PATCH] doc: driver-model: Fix typo

2018-07-06 Thread Simon Glass
On 6 July 2018 at 04:29, Chris Packham wrote: > > Signed-off-by: Chris Packham > --- > > doc/driver-model/README.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] Pull request, u-boot-tegra/master

2018-07-06 Thread Tom Warren
Tom, Please pull u-boot-tegra/master into U-Boot/master. Thanks! All Tegra builds are OK, and Stephen's automated test system reports that all tests pass. The following changes since commit 4ac5df4b41ba46d7e635bdd8d500721c642b0a0d: Merge branch 'master' of git://git.denx.de/u-boot-sunxi

Re: [U-Boot] [PULL] u-boot-usb/master

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 02:41:54PM +0200, Marek Vasut wrote: > The following changes since commit 4ac5df4b41ba46d7e635bdd8d500721c642b0a0d: > > Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2018-07-03 > 23:09:34 -0400) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH v3] tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 05:31:00PM +, Tom Warren wrote: > Applied to tegra-master, just waiting on our automated build/test framework > to give it a green light, then I'll issue a PR to TomR. Sorry for the delay. Please note that the release is scheduled for Monday, so if you have stuff

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 05:45:02PM +0530, Jagan Teki wrote: > On Fri, Jul 6, 2018 at 5:36 PM, Miquel Raynal > wrote: > > Hi Jagan, > > > > Jagan Teki wrote on Fri, 6 Jul 2018 > > 17:13:21 +0530: > > > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > >> wrote: > >> > During the last months,

Re: [U-Boot] [PATCH v3] tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium

2018-07-06 Thread Tom Warren
Applied to tegra-master, just waiting on our automated build/test framework to give it a green light, then I'll issue a PR to TomR. Sorry for the delay. Tom -Original Message- From: Peter Robinson Sent: Thursday, July 5, 2018 11:38 PM To: Allen Martin ; Simon Glass ; Tom Warren ;

Re: [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 10:45:18AM +0800, Ley Foon Tan wrote: > On Thu, Jun 14, 2018 at 6:45 PM, Ley Foon Tan wrote: > > Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial > > drivers. > > > > A reset property is an optional feature, so only print out a warning and > > do

[U-Boot] [PATCH v2 17/29] dtoc: Fix Fdt.GetNode() to handle a missing node

2018-07-06 Thread Simon Glass
At present the algortihm is not correct since it will return the root node if the requested node is not found and there are no slashes in the requested node name. Fix this and add a test. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 5 -

[U-Boot] [PATCH v2 27/29] binman: Add a ProcessFdt() method

2018-07-06 Thread Simon Glass
Some entry types modify the device tree, e.g. to remove microcode or add a property. So far this just modifies their local copy and does not affect a 'shared' device tree. Rather than doing this modification in the ObtainContents() method, and a new ProcessFdt() method which is specifically

[U-Boot] [PATCH v2 23/29] test: Enable cover-coverage tests for dtoc and fdt

2018-07-06 Thread Simon Glass
Now that we have 100% code coverage we can enable these tests in the test script also. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to enable cover-coverage tests for dtoc and fdt test/run | 4 1 file changed, 4 insertions(+) diff --git a/test/run b/test/run index

[U-Boot] [PATCH v2 19/29] dtoc: Fix some minor errors

2018-07-06 Thread Simon Glass
Fix some comments and a printf string which is incorrect. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtb_platdata.py | 3 ++- tools/dtoc/dtoc.py | 4 ++-- tools/dtoc/fdt.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2 13/29] dtoc: Make use of the new pylibfdt methods

2018-07-06 Thread Simon Glass
Now that pylibfdt supports a fuller API we don't need to directly call the libfdt stubs. Update the code to use the Fdt methods instead. Some other cases remain which will be tidied up in a later commit, since they need larger changes. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 29/29] binman: Support updating the device tree with calc'd info

2018-07-06 Thread Simon Glass
It is useful to write the position and size of each entry back to the device tree so that U-Boot can access this at runtime. Add a feature to support this, along with associated tests. Signed-off-by: Simon Glass --- Changes in v2: - Update tests to main 100% code coverage tools/binman/README

[U-Boot] [PATCH v2 26/29] binman: Complete documentation of stages

2018-07-06 Thread Simon Glass
At present one of the stages is badly numbered and not described. Fix this. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/README | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/binman/README b/tools/binman/README index f74e39242f..3cfcf84d92

[U-Boot] [PATCH v2 14/29] dtoc: Drop use of a local dtb buffer

2018-07-06 Thread Simon Glass
At present the Fdt class has its own copy of the device tree. This is confusing an unnecessary now that pylibfdt has its own. Drop it and provide access functions to the buffer. This allows us to move the rest of the implementation to use pylibfdt methods instead of directly calling libfdt stubs.

[U-Boot] [PATCH v2 25/29] dtoc: Add functions to add integer properties

2018-07-06 Thread Simon Glass
Add a few simple functions to add a placeholder integer property, and set its value. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 27 +++ tools/dtoc/test_fdt.py | 20 2 files changed, 47 insertions(+) diff --git

[U-Boot] [PATCH v2 22/29] dtoc: Increase code coverage to 100%

2018-07-06 Thread Simon Glass
Add more tests to increase dtoc code coverage to 100%. Correct a whitespace error in some test .dts files at the same time. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtoc_test_add_prop.dts| 24 tools/dtoc/dtoc_test_addr32_64.dts | 2 +-

[U-Boot] [PATCH v2 20/29] dtoc: Add a test for code coverage

2018-07-06 Thread Simon Glass
Add a -T option to run a code-coverage test on dtoc. At present this is about 96%. Future work will increase it to 100%. Signed-off-by: Simon Glass --- Changes in v2: - Update coverage to only include dtb_platdata.py tools/dtoc/dtoc.py | 15 +++ 1 file changed, 15 insertions(+)

[U-Boot] [PATCH v2 08/29] libfdt: Fix the Python pack() function

2018-07-06 Thread Simon Glass
This currently fails to reduce the device-tree bytearray size. Fix this. This stands in for a pending upstream change. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v2 15/29] dtoc: Update fdt tests to increase code coverage

2018-07-06 Thread Simon Glass
At present only some of the fdt functionality is tested. Add more tests to cover the rest of it. Also turn on test coverage, which is now 100% with a small exclusion for a Python 3 feature. Signed-off-by: Simon Glass --- Changes in v2: - Expand tests to increase code coverage to 100%

[U-Boot] [PATCH v2 21/29] binman: Move capture_sys_output() to test_util

2018-07-06 Thread Simon Glass
This function is useful in various tests. Move it into the common test utility module. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/elf_test.py | 22 ++ tools/binman/image_test.py | 2 +- tools/patman/test_util.py | 21 + 3 files

[U-Boot] [PATCH v2 07/29] libfdt: Bring in proposed pylibfdt changes

2018-07-06 Thread Simon Glass
This provides various patches sent to the devicetree-compiler mailing list to enhance the Python bindings. A final version of this patch may be created once upstreaming is complete, but if it takes too long, this can act as a placeholder. New pylibfdt features: - Support for most remaining,

[U-Boot] [PATCH v2 28/29] binman: Add a SetCalculatedProperties() method

2018-07-06 Thread Simon Glass
Once binman has packed the image, the position and size of each entry is known. It is then possible for binman to update the device tree with these positions. Since placeholder values have been added, this does not affect the size of the device tree and therefore the packing does not need to be

[U-Boot] [PATCH v2 24/29] dtoc: Avoid unwanted output during tests

2018-07-06 Thread Simon Glass
At present some warnings are printed to indicate failures which are a known part of running the tests. Suppress these. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt_util.py | 4 ++-- tools/dtoc/test_dtoc.py | 13 + 2 files changed, 11 insertions(+), 6

[U-Boot] [PATCH v2 12/29] dtoc: Update tests to write failures to /tmp

2018-07-06 Thread Simon Glass
When a test fails due to an output mismatch (e.g. due to a new property being adding to a test file) it is currently hard to update the test to the new output. In particular the tabs in the file are written as \t in the Python tests. To make this easier, write both the expected and actual results

[U-Boot] [PATCH v2 16/29] dtoc: Keep track of property offsets

2018-07-06 Thread Simon Glass
At present the Fdt class does not keep track of property offsets if they change due to removal of properties. Update the code to handle this, and add a test. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 20 + tools/dtoc/test_fdt.py | 65

[U-Boot] [PATCH v2 18/29] dtoc: Fix properties with a single zero-arg phandle

2018-07-06 Thread Simon Glass
At present a property with a single phandle looks like an integer value to dtoc. Correct this by adjusting it in the phandle-processing code. Add a test for this. Signed-off-by: Simon Glass --- Changes in v2: - Update to cope with GetPhandle() being removed tools/dtoc/dtb_platdata.py |

[U-Boot] [PATCH v2 11/29] dtoc: Add some tests for the fdt module

2018-07-06 Thread Simon Glass
At present this module is tested via the dtoc tests. This is a bit painful since the tests are at a higher level and so failures are more difficult to diagnose. Add some tests that exercise the fdt module directly. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py |

[U-Boot] [PATCH v2 09/29] libfdt: Add get_property() and del_node()

2018-07-06 Thread Simon Glass
Add support for these functions in the Python binding. This patch stands in for a pending upstream change. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 32 +++ 1 file changed, 32 insertions(+) diff --git

[U-Boot] [PATCH v2 04/29] binman: Correct operation of ObtainContents()

2018-07-06 Thread Simon Glass
This method is supposed to return the contents of an entry. However at present there is no check that it actually does. Also some implementations do not return 'True' to indicate success, as required. Add a check for things working as expected, and correct the implementations. This requires some

[U-Boot] [PATCH v2 03/29] binman: Tidy up variables in _RunMicrocodeTest()

2018-07-06 Thread Simon Glass
At present we call the three entries first, second and third. Rename them to reflect their contents instead, for clarity. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/ftest.py | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git

[U-Boot] [PATCH v2 05/29] binman: Tidy up execution of tests

2018-07-06 Thread Simon Glass
Move all the test execution into the same mechanism so that we can request a particular test (from any suite) by passing it as an argument to 'binman -t'. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/binman.py | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

[U-Boot] [PATCH v2 10/29] binman: Move coverage logic into a new test_util file

2018-07-06 Thread Simon Glass
At present only binman has the logic for determining Python test coverage but this is useful for other tools also. Move it out into a separate file so it can be used by other tools. Signed-off-by: Simon Glass --- Changes in v2: - Allow specifying modules which must be tested - Test that this

[U-Boot] [PATCH v2 06/29] binman: Tidy up setting of entry contents

2018-07-06 Thread Simon Glass
At present the contents of an entry are set in subclasses simply by assigning to the data and content_size properties. Add some methods to do this, so that we have more control. In particular, add a method to set the contents without changing its size, so we can validate that case. Add a test

[U-Boot] [PATCH v2 02/29] binman: Make the operation of Entry__testing explicit

2018-07-06 Thread Simon Glass
This fake entry is used for testing. At present it only has one behaviour which is to return an invalid set of entry positions, to cause an error. The fake entry will need to be used for other things too. Allow the test .dts file to specify the behaviour of the fake entry, so we can control its

[U-Boot] [PATCH v2 01/29] binman: Switch to 'python-coverage'

2018-07-06 Thread Simon Glass
From: Tom Rini The most portable way to get access to coverage is to invoke it as 'python-coverage'. Cc: Simon Glass Signed-off-by: Tom Rini Signed-off-by: Simon Glass --- Changes in v2: - Correct logic for detecting python modules (changed with python-coverage) - Show the full output when

[U-Boot] [PATCH v2 00/29] binman: Add more tests and support for updating the device tree

2018-07-06 Thread Simon Glass
At present we have 100% code coverage for binman. This series adds the same for dtoc (which converts device-tree data to C) and the Fdt class (which provides convenient Python access to the device tree). Binman already support writing a map file showing the location of each entry in the images in

[U-Boot] [PATCH V3 1/2] spl: Fix redundant image of uboot

2018-07-06 Thread Michael Trimarchi
We need to address the redundat image case and undestand if the image is corrupted or not. In error case we need to try the fallback copy. The function used before was always return 0 without any evaluation of the error. We try to make it work properly Signed-off-by: Michael Trimarchi ---

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-06 Thread Stefan Roese
Hi Miquel, On 06.07.2018 15:42, Miquel Raynal wrote: Hi Stefan, Stefan Roese wrote on Fri, 6 Jul 2018 15:21:20 +0200: Hi Miquel, On 06.07.2018 14:26, Miquel Raynal wrote: Jagan Teki wrote on Fri, 6 Jul 2018 17:08:57 +0530: On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal wrote: There

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-06 Thread Miquel Raynal
Hi Stefan, Stefan Roese wrote on Fri, 6 Jul 2018 15:21:20 +0200: > Hi Miquel, > > On 06.07.2018 14:26, Miquel Raynal wrote: > > Jagan Teki wrote on Fri, 6 Jul 2018 17:08:57 > > +0530: > > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > > >> wrote: > >>> There should not be a 'nand'

[U-Boot] [PATCH 12/12] board/BuR/brppt1: add makerule for generating production files

2018-07-06 Thread Hannes Schmelzer
Signed-off-by: Hannes Schmelzer --- board/BuR/brppt1/config.mk | 36 1 file changed, 36 insertions(+) create mode 100644 board/BuR/brppt1/config.mk diff --git a/board/BuR/brppt1/config.mk b/board/BuR/brppt1/config.mk new file mode 100644 index

[U-Boot] [PATCH 11/12] board/BuR/brppt1: convert brppt1 boards to driver model

2018-07-06 Thread Hannes Schmelzer
- add a devicetree for each variant (mmc, spi, nand) - drop unneeded code from board and bur/common - drop unneeded stuff from config header files - minor adaptions to be compliant with driver model (requesting gpio,..) - harmonize the commandset over all brppt1 targets Signed-off-by: Hannes

[U-Boot] [PATCH 04/12] board/BuR/brppt1: drop LCD-support

2018-07-06 Thread Hannes Schmelzer
On this linux target long time ago the OS is using DRM driver for handling video output, the pre initialization of u-boot and the display summary screen is obsolete. With this patch we drop the LCD-support from thisd board. Signed-off-by: Hannes Schmelzer --- board/BuR/brppt1/board.c | 4

[U-Boot] [PATCH 06/12] board/BuR/common: fix PMIC mpu-pll setup

2018-07-06 Thread Hannes Schmelzer
If a board-code calls the pmicsetup(u32 mpupll) with a mpupll value != 0 it wants to force some frequency with the value provided by mpupll. Setting up 1 GHz is wrong here. Nobody did take notice about that yet, since every board calls this function with zero. Signed-off-by: Hannes Schmelzer

[U-Boot] [PATCH 05/12] board/BuR/common: remove interface Label from summary screen

2018-07-06 Thread Hannes Schmelzer
This interface names may vary over different products, to consider this fact we replace the interface label "IF1" and "IF2" on the summary screen with some more generic wording "MAC1" and "MAC2". Signed-off-by: Hannes Schmelzer --- board/BuR/common/common.c | 4 ++-- 1 file changed, 2

[U-Boot] [PATCH 08/12] board/BuR/common: refactor ft_board_setup(...)

2018-07-06 Thread Hannes Schmelzer
On other OS, not one provided by B, it is not guaranteed that there are factory-settings within a devicetree. So we must not treat the absence of them as error. Further we've the fact that on different version of the device-tree files there are different namings of the factory-settings, we

[U-Boot] [PATCH 07/12] board/BuR/brppt1: drop dead code (CONFIG_SPL_OS_BOOT)

2018-07-06 Thread Hannes Schmelzer
The falcon mode was never used on this board, there is also no plan to use it. So drop this dead code. Signed-off-by: Hannes Schmelzer --- board/BuR/brppt1/board.c | 16 include/configs/brppt1.h | 14 -- 2 files changed, 30 deletions(-) diff --git

[U-Boot] [PATCH 10/12] dts: am33xx: add u-boot, dm-spl to ocp bus

2018-07-06 Thread Hannes Schmelzer
This is needed for having access to the devices below this bus, most important is uart and boot-device (spi, mmc, ...) in SPL stage. Signed-off-by: Hannes Schmelzer --- arch/arm/dts/am33xx.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/am33xx.dtsi

[U-Boot] [PATCH 09/12] board/BuR/brppt1: implement more flexible boot process

2018-07-06 Thread Hannes Schmelzer
With this commit we do: - set the bootdelay in all brppt1 defconfigs to 0, this makes development easier, since we can break into serial console. - move CONFIG_BOOTCOMMAND from header file to defconfig - introduce b_mode variable for selecting the final boot-target. This b_mode represents the

[U-Boot] [PATCH 03/12] board/BuR/common: make CONFIG_LCD optional

2018-07-06 Thread Hannes Schmelzer
Since we're going to drop LCD-support on brppt1 boards, we have to make this stuff here optional and remove the #error path. We also move out the ft_board_setup(...) from this #ifdef because there's no relationship with the LCD-code and on the other hand this is still needed in future even with

[U-Boot] [PATCH 02/12] board/BuR/common: drop simple-framebuffer setup

2018-07-06 Thread Hannes Schmelzer
The linux systems running on the brppt1 targets are using modern DRM drivers since long time ago. Further we are going to drop the LCD support completely on this board, so the simple-framebuffer setup becomes obsolete. Signed-off-by: Hannes Schmelzer --- board/BuR/common/common.c | 26

[U-Boot] [PATCH 01/12] board/BuR: drop devicetree loading and lcd setup for linux-targets

2018-07-06 Thread Hannes Schmelzer
This patch drops the lcd-screen setup, the summary screen and getting mac-addresses based on a previous loaded device-tree for linux targets. Selecting those linux target is simple, since we have only the brppt1. In detail we do: - drop the common lcd-setup code which relys on a fdt_blob - drop

[U-Boot] [PATCH 00/12] Refactor bur board/common code

2018-07-06 Thread Hannes Schmelzer
This patch series has the intention of preparing the move of all bur boards to driver-model, cleaning up the over years growed code, make os boot more flexible. In another series we will make the move to DM with all its consequences (adapting drivers, ) For doing all this there are several

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-06 Thread Stefan Roese
Hi Miquel, On 06.07.2018 14:26, Miquel Raynal wrote: Jagan Teki wrote on Fri, 6 Jul 2018 17:08:57 +0530: On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal wrote: There should not be a 'nand' command, a 'sf' command and certainly not another 'spi-nand'. Write a 'mtd' command instead to manage

[U-Boot] [ANN] travis-ci opt-in for now

2018-07-06 Thread Tom Rini
Hey all, While I like what travis-ci has done for parts of my workflow, they're experiencing one of their sustained periods where network connectivity fails at least once per job. And since broken CI is worse than no CI, I'm saying until further notice that if you don't want to fight with travis

[U-Boot] [PULL] u-boot-usb/master

2018-07-06 Thread Marek Vasut
The following changes since commit 4ac5df4b41ba46d7e635bdd8d500721c642b0a0d: Merge branch 'master' of git://git.denx.de/u-boot-sunxi (2018-07-03 23:09:34 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

Re: [U-Boot] [PATCH] dm: Force to enable DM_SPI and DM_SPI_FLASH

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 05:41:01PM +0530, Jagan Teki wrote: > v2018.09 is migration deadline for SPI/SPI_FLASH dm > converion. > > So move on and true it has significant fallout > at present. > > Signed-off-by: Jagan Teki > --- > Note: > Trying to copy all people who involve this change, but >

Re: [U-Boot] Problem with Travis-Ci

2018-07-06 Thread Tom Rini
On Fri, Jul 06, 2018 at 11:20:01AM +0200, Lukasz Majewski wrote: > Hi Tom, > > I've performed the travis-ci build for some USB gadget related code: > > https://travis-ci.org/lmajewski/u-boot-dfu/jobs/400649043 > > And for some tasks (e.g. BUILDMAN="sun50i") I do see following errors: > > The

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-06 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 6 Jul 2018 17:08:57 +0530: > On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > wrote: > > There should not be a 'nand' command, a 'sf' command and certainly not > > another 'spi-nand'. Write a 'mtd' command instead to manage all MTD > > devices at once. This

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-07-06 Thread Jagan Teki
On Fri, Jul 6, 2018 at 5:36 PM, Miquel Raynal wrote: > Hi Jagan, > > Jagan Teki wrote on Fri, 6 Jul 2018 > 17:13:21 +0530: > >> On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal >> wrote: >> > During the last months, Boris Brezillon shared his work to support >> > serial flashes within Linux.

[U-Boot] [PATCH] dm: Force to enable DM_SPI and DM_SPI_FLASH

2018-07-06 Thread Jagan Teki
v2018.09 is migration deadline for SPI/SPI_FLASH dm converion. So move on and true it has significant fallout at present. Signed-off-by: Jagan Teki --- Note: Trying to copy all people who involve this change, but list is too much..hope everyone notice this. drivers/core/Kconfig | 1 +

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-07-06 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Fri, 6 Jul 2018 17:13:21 +0530: > On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal > wrote: > > During the last months, Boris Brezillon shared his work to support > > serial flashes within Linux. First, he delivered (and merged) a new > > layer called spi-mem. He

Re: [U-Boot] [PATCH 5/5] rk3288: vyasa: Fixup indentation

2018-07-06 Thread Jagan Teki
On Thu, Jul 5, 2018 at 1:11 AM, Alberto Panizzo wrote: > Indent file using tabs > > Signed-off-by: Alberto Panizzo > --- Reviewed-by: Jagan Teki ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 4/5] rk3288: vyasa: Allow booting from internal eMMC

2018-07-06 Thread Jagan Teki
On Thu, Jul 5, 2018 at 1:11 AM, Alberto Panizzo wrote: > Keeping SD-Card as priority for easy board recovery > > Signed-off-by: Alberto Panizzo > --- Reviewed-by: Jagan Teki > include/configs/vyasa-rk3288.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [U-Boot] [PATCH] spi: Zap fsl_espi driver

2018-07-06 Thread Jagan Teki
On Fri, May 11, 2018 at 11:51 AM, Jagan Teki wrote: > Dropped becuase > - No proper changes related to since from 2015 > - no dm conversion. > > Signed-off-by: Jagan Teki > --- > Note: Right now only drived removed, if there is no further > update on this will remove respective code which is

Re: [U-Boot] [RFC PATCH 00/20] SPI-NAND support

2018-07-06 Thread Jagan Teki
On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal wrote: > During the last months, Boris Brezillon shared his work to support > serial flashes within Linux. First, he delivered (and merged) a new > layer called spi-mem. He also initiated in Linux MTD subsystem the move > of all 'raw' NAND related

Re: [U-Boot] [RFC PATCH 17/20] cmd: mtd: add 'mtd' command

2018-07-06 Thread Jagan Teki
On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal wrote: > There should not be a 'nand' command, a 'sf' command and certainly not > another 'spi-nand'. Write a 'mtd' command instead to manage all MTD > devices at once. This should be the preferred way to access any MTD > device. So are you planning

Re: [U-Boot] [RFC PATCH 10/20] spi: Extend the core to ease integration of SPI memory controllers

2018-07-06 Thread Jagan Teki
On Wed, Jun 6, 2018 at 9:00 PM, Miquel Raynal wrote: > From: Boris Brezillon > > Some controllers are exposing high-level interfaces to access various > kind of SPI memories. Unfortunately they do not fit in the current > spi_controller model and usually have drivers placed in >

[U-Boot] [PATCH] ARM: dh_imx6: enable GigaDevice, Macronix, and Winbond SPI Flash support in Kconfig

2018-07-06 Thread lzenz
From: Ludwig Zenz In preparation for delivery bottlenecks, enable support for GigaDevice, Macronix, and Winbond nor flash chips. Signed-off-by: Ludwig Zenz --- configs/dh_imx6_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/dh_imx6_defconfig

Re: [U-Boot] adout specification ram size before boot linux

2018-07-06 Thread Lukasz Majewski
On Thu, 5 Jul 2018 10:38:47 +0800 wrote: > Hello!! > > > > We using zenq_7z010 board, > > We have some question, > > How setting RAM size to 64M for linux kernel before linux kenerl ? You may modify the bootargs variable in u-boot to pass mem=

[U-Boot] [PATCH] doc: driver-model: Fix typo

2018-07-06 Thread Chris Packham
Signed-off-by: Chris Packham --- doc/driver-model/README.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/driver-model/README.txt b/doc/driver-model/README.txt index 0853477578ac..d6fa5c485793 100644 --- a/doc/driver-model/README.txt +++ b/doc/driver-model/README.txt

[U-Boot] [PATCH] tegra: p2771: Add CONFIG_EFI_LOADER_BOUNCE_BUFFER

2018-07-06 Thread Peter Robinson
The Jetson TX2 needs EFI loader bounce buffer enabled otherwise grub doesn't see the storage when it loads. Signed-off-by: Peter Robinson --- configs/p2771--000_defconfig | 1 + configs/p2771--500_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

[U-Boot] [PATCH 3/3] net: zynq_gem: convert to use livetree

2018-07-06 Thread Siva Durga Prasad Paladugu
This patch updates the zynq gem driver to support livetree. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Vipul Kumar --- drivers/net/zynq_gem.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/drivers/net/zynq_gem.c

[U-Boot] [PATCH 1/3] net: phy: ti: Modify to support livetree

2018-07-06 Thread Siva Durga Prasad Paladugu
This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/ti.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/net/phy/ti.c b/drivers/net/phy/ti.c index

[U-Boot] [PATCH 2/3] net: phy: xilinx_phy: Add suuport for livetree

2018-07-06 Thread Siva Durga Prasad Paladugu
This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. . Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/xilinx_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index

[U-Boot] Problem with Travis-Ci

2018-07-06 Thread Lukasz Majewski
Hi Tom, I've performed the travis-ci build for some USB gadget related code: https://travis-ci.org/lmajewski/u-boot-dfu/jobs/400649043 And for some tasks (e.g. BUILDMAN="sun50i") I do see following errors: The following NEW packages will be installed: libisl15 0 upgraded, 1 newly installed,

[U-Boot] [PATCH v4 6/6] common: Generic loader for file system

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee This is file system generic loader which can be used to load the file image from the storage into target such as memory. The consumer driver would then use this loader to program whatever, ie. the FPGA device. Signed-off-by: Tien Fong Chee --- drivers/misc/Kconfig |

[U-Boot] [PATCH v4 5/6] doc: dtbinding: Add file system firmware loader binding document

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Add a document to describe file system firmware loader binding information. Signed-off-by: Tien Fong Chee --- doc/device-tree-bindings/chosen.txt | 21 + doc/device-tree-bindings/misc/fs_loader.txt | 48 + 2 files changed,

[U-Boot] [PATCH v4 3/6] block: Add a function to find block device descriptor

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Add a function to find the block device descriptor of the parent device. Signed-off-by: Tien Fong Chee --- drivers/block/blk-uclass.c | 23 +++ include/blk.h | 9 + 2 files changed, 32 insertions(+) diff --git

[U-Boot] [PATCH v4 4/6] doc: Add new doc for file system firmware loader driver model

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee Provide information about - overview of file system firmware loader driver model - describe storage device and partition in device tree source - describe fie system firmware loader API Signed-off-by: Tien Fong Chee --- doc/driver-model/fs_firmware_loader.txt | 133

[U-Boot] [PATCH v4 2/6] cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee cmd_ubifs_mount() function would be called directly instead of involving whole command machinery for mounting ubifs in generic firmware loader, so some checking codes need to be factored out into cmd_ubifs_mount() without breaking original functionality design.

[U-Boot] [PATCH v4 1/6] cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee cmd_ubifs_umount() function would be called directly instead of involving whole command machinery in generic firmware loader, so checking on ubifs_initialized status need to be done in cmd_ubifs_umount() without breaking original functionality design. Signed-off-by: Tien

[U-Boot] [PATCH v4 0/6] Generic file system firmware loader DM

2018-07-06 Thread tien . fong . chee
From: Tien Fong Chee This patchset contains generic file system loader DM which is very close to Linux firmware loader but for U-Boot framework. Generic file system firmware loader can be used load whatever into target location, and then consumer driver would use it to program whatever, ie. the

Re: [U-Boot] [PATCH v3] spi: cadence_qspi: Fix compilation warning

2018-07-06 Thread Marek Vasut
On 07/06/2018 04:39 AM, Ley Foon Tan wrote: > Use "%zu" for size_t data type. > > Compilation warning as below: > > In file included from include/linux/bug.h:7:0, > from include/common.h:26, > from drivers/spi/cadence_qspi.c:8: > drivers/spi/cadence_qspi.c: In

Re: [U-Boot] [PATCH v2 3/3] efi_selftest: unit test for CalculateCrc32()

2018-07-06 Thread Heinrich Schuchardt
On 07/06/2018 07:24 AM, Alexander Graf wrote: > > > On 06.07.18 07:09, Heinrich Schuchardt wrote: >> This unit test checks the CalculateCrc32 bootservice and checks the >> headers of the system table, the boot services tablle, and the runtime >> services table before and after

Re: [U-Boot] [PATCH v3] tegra: nyan-big: Update CONFIG_SYS_TEXT to the default in README.chromium

2018-07-06 Thread Peter Robinson
Tom, Ping, could we get this applied please? Peter On Sun, Jun 10, 2018 at 6:17 AM, Peter Robinson wrote: > To build U-Boot on a Nyan Big Chromebook the docs outline adjusting the > Tegra124 > defined CONFIG_SYS_TEXT_BASE but this has since been moved to individual > config > files. We

[U-Boot] [PATCH V2 1/2] spl: Fix redundant image of uboot

2018-07-06 Thread Michael Trimarchi
We need to address the redundat image case and undestand if the image is corrupted or not. In error case we need to try the fallback copy. The function used before was always return 0 without any evaluation of the error. We try to make it work properly Signed-off-by: Michael Trimarchi ---