Re: [U-Boot] IMX6 NAND boot regression

2019-02-01 Thread Stefan Agner
Hi Tim, On 02.02.19 03:32, Tim Harvey wrote: > Stefan, > > I'm trying to track down an IMX6 SPL NAND boot regression that started > in v2018.07 with your patch series to mxs_nand. I am sorry about that. Unfortunately I did not had a design at hand where I was able to test the NAND driver in

Re: [U-Boot] [PATCH 3/4] i2c: dm: Record maximum id of devices before probing devices

2019-02-01 Thread Michal Simek
so, 2. Ășno 2019 7:09 odesĂ­latel Simon Glass napsal: > Hi Michal, > > On Thu, 31 Jan 2019 at 04:03, Michal Simek > wrote: > > > > On 31. 01. 19 11:04, Simon Glass wrote: > > > Hi Michal, > > > > > > On Fri, 18 Jan 2019 at 08:13, Michal Simek > wrote: > > >> > > >> There is a need to find out

Re: [U-Boot] [PATCH v2 1/2] lmb: handle more than one DRAM BANK

2019-02-01 Thread Simon Glass
On Fri, 1 Feb 2019 at 13:24, Simon Goldschmidt < simon.k.r.goldschm...@gmail.com> wrote: > > This fixes the automatic lmb initialization and reservation for boards > with more than one DRAM bank. > > This fixes the CVE-2018-18439 and -18440 fixes that only allowed to load > files into the firs

Re: [U-Boot] [PATCH 3/4] i2c: dm: Record maximum id of devices before probing devices

2019-02-01 Thread Simon Glass
Hi Michal, On Thu, 31 Jan 2019 at 04:03, Michal Simek wrote: > > On 31. 01. 19 11:04, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: > >> > >> There is a need to find out the first free i2c ID which can be used for > >> i2s buses (including i2c buses

Re: [U-Boot] [PATCH 2/2] splash: Load internal and external data from FIT

2019-02-01 Thread Simon Glass
Hi Mark, On Fri, 1 Feb 2019 at 06:31, Mark Jonas wrote: > > From: Leo Ruan > > The FIT image could contain the splash data in 3 different structure: > - The splash data is embedded in FIT image (internal) > In this case, the property 'data' presents in FIT image header. And > internal

Re: [U-Boot] [PATCH 1/2] splash: Use splashfile instead of location->name

2019-02-01 Thread Simon Glass
Hi Mark, On Fri, 1 Feb 2019 at 06:31, Mark Jonas wrote: > > From: Leo Ruan > > The splash image could be loaded from different sources (e.g. sf, mmc) > with different formats (e.g. raw, file-system). These sources are > structured by a board dependent object 'splash_location'. To decide > where

Re: [U-Boot] [PATCH 1/3] x86: Change 4-level page table base address to low memory

2019-02-01 Thread Simon Glass
On Thu, 31 Jan 2019 at 09:17, Bin Meng wrote: > > At present the 4-level page table base address for 64-bit U-Boot > proper is assigned an address that conflicts with CONFIG_LOADADDR. > Change it to an address within the low memory range instead. > > Fixes crashes seen when 'dhcp' on QEMU x86_64

Re: [U-Boot] [PATCH 2/3] x86: Don't copy the cpu_call64() function to a hardcoded address

2019-02-01 Thread Simon Glass
On Thu, 31 Jan 2019 at 09:17, Bin Meng wrote: > > Before jumping to 64-bit U-Boot proper, SPL copies the cpu_call64() > function to a hardcoded address 0x300. This can have potential > conflicts with application usage. Switch the destination address > to be allocated from the heap to avoid

Re: [U-Boot] [PATCH v2 2/2] test: lib: lmb: add lmb test for multiple RAM banks

2019-02-01 Thread Simon Glass
On Fri, 1 Feb 2019 at 13:24, Simon Goldschmidt < simon.k.r.goldschm...@gmail.com> wrote: > > This adds one test case that checks that allocation with multiple > DRAM banks works correctly. > > Signed-off-by: Simon Goldschmidt > --- > > Changes in v2: > - added test > > test/lib/lmb.c | 94

Re: [U-Boot] [PATCH 3/3] x86: Use the existing GDT in the ROM for 64-bit U-Boot proper

2019-02-01 Thread Simon Glass
Hi Bin, On Thu, 31 Jan 2019 at 09:17, Bin Meng wrote: > > It is unnecessary to use a RAM version GDT for 64-bit U-Boot proper. > In fact we can just use the ROM version directly, which not only > eliminates the risk of being overwritten by application, but also > removes the complexity of

Re: [U-Boot] [PATCH] core: ofnode: Add ofnode_pci_get_devfn()

2019-02-01 Thread Simon Glass
Hi Stefan, On Thu, 31 Jan 2019 at 03:45, Stefan Roese wrote: > > Hi Simon, > > On 31.01.19 11:04, Simon Glass wrote: > > Hi Stefan, > > > > On Tue, 22 Jan 2019 at 02:36, Stefan Roese wrote: > >> > >> Hi Simon, > >> > >> (added Bin, whom I forgot in this PCI patches) > >> > >> On 21.01.19 19:15,

Re: [U-Boot] [PATCH v4] misc: fs_loader: Add support for initializing block device

2019-02-01 Thread Simon Glass
On Thu, 31 Jan 2019 at 04:34, wrote: > > From: Tien Fong Chee > > Firmware loader would encounter problem if the block device is accessed > before initializing it. This patch would adding the support of probing > block device and initializing block before the block device is accessed by >

Re: [U-Boot] [RFC PATCH] dm: device: Do not probe parents which are probed already

2019-02-01 Thread Simon Glass
Hi Michal, On Thu, 31 Jan 2019 at 03:28, Michal Simek wrote: > > On 31. 01. 19 11:04, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 18 Jan 2019 at 02:41, Michal Simek wrote: > >> > >> From the first look there is no reason to probe parent nodes if they are > >> active already. > >> > >>

Re: [U-Boot] [PATCH 1/4] dm: core: Add of_alias_get_highest_id()

2019-02-01 Thread Simon Glass
Hi Michal, On Thu, 31 Jan 2019 at 03:19, Michal Simek wrote: > > On 31. 01. 19 11:04, Simon Glass wrote: > > Hi Michal, > > > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: > >> > >> The same functionality was added to Linux for i2c bus registration with this > >> commit message: > >> > >>

Re: [U-Boot] [U-Boot, v2, 2/2] Kconfig: Add u-boot.itb BUILD_TARGET for Rockchip

2019-02-01 Thread Tom Rini
On Fri, Jan 18, 2019 at 12:53:41PM +0530, Jagan Teki wrote: > Add u-boot.itb BUILD_TARGET for Rockchip platform when SPL_LOAD_FIT > is being used. This can get rid of building itb explicitly with > 'make u-boot.itb' all required images will now build just by make. > > Signed-off-by: Jagan Teki

Re: [U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-01 Thread Chee, Tien Fong
On Fri, 2019-02-01 at 12:12 -0800, Dalon L Westergreen wrote: > On Thu, 2019-01-31 at 22:51 +0800, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Add FPGA driver to support program FPGA with FPGA bitstream loading > > from > > filesystem. The driver are designed based on

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-01 Thread Chee, Tien Fong
On Fri, 2019-02-01 at 12:29 -0800, Dalon L Westergreen wrote: > On Fri, 2019-02-01 at 12:02 -0800, Dalon L Westergreen wrote: > > > > On Sat, 2019-02-02 at 00:02 +0800, Chee, Tien Fong wrote: > > > > > > On Fri, 2019-02-01 at 09:25 +0100, Marek Vasut wrote: > > > > > > > > On 2/1/19 4:48 AM,

[U-Boot] IMX6 NAND boot regression

2019-02-01 Thread Tim Harvey
Stefan, I'm trying to track down an IMX6 SPL NAND boot regression that started in v2018.07 with your patch series to mxs_nand. I bisected it back to '5346c31e305a37d39f535cc0d5ae87d8b7e81230 mtd: nand: mxs_nand: use self init'. With this particular patch nand bbt scanning would crash the board

Re: [U-Boot] [PATCH v4 01/20] common: spl_fit: Fix the spl_fit_image_get_os for FIT_IMAGE_TINY

2019-02-01 Thread Lukasz Majewski
Hi Abel, > There is not really reducing codesize here since there is only > a call. Yes, I also haven't observed any change. > The function is always built in if CONFIG_$(SPL_TPL_)FIT is > set. Plus, there was a change in behavior if CONFIG_SPL_OS_BOOT is > defined. If CONFIG_FIT_IMAGE_TINY is

[U-Boot] [PATCH 3/3] armv7R: K3: am654: Fix order of debug elements in x509 template

2019-02-01 Thread Andrew F. Davis
The first element in the debug section is expected to be debugUID. ROM will not parse this correctly when out of order, fix this here. Signed-off-by: Andrew F. Davis --- tools/k3_x509template.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/k3_x509template.txt

[U-Boot] [PATCH 1/3] configs: am65x_evm_r5: Enable GPT support

2019-02-01 Thread Andrew F. Davis
The second loader stages may be stored on GPT partitions, enable support for this here. Signed-off-by: Andrew F. Davis --- configs/am65x_evm_r5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/am65x_evm_r5_defconfig b/configs/am65x_evm_r5_defconfig index

[U-Boot] [PATCH 2/3] am65x_evm: Allow bootm to load larger kernels

2019-02-01 Thread Andrew F. Davis
Bootm will fail to load kernels over 8MB, this is not enough for our 64bit kernel images. Increase this to 64MB. Signed-off-by: Andrew F. Davis --- include/configs/am65x_evm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index

Re: [U-Boot] [PATCH v2 04/21] vybrid: clock: Provide enable_i2c_clk() function for Vybrid

2019-02-01 Thread Lukasz Majewski
Hi Stefan, > On 01.02.2019 15:19, Lukasz Majewski wrote: > > Hi Stefan, > > > >> On 20.01.2019 14:34, Lukasz Majewski wrote: > >> > Provide function to enable I2C2 clock for vf610 (BK4) - in the > >> > generic code. > >> > >> Can you split this in two commits, one adding enable_i2c_clk and

Re: [U-Boot] [PATCH v4 1/1] avb: add support for named persistent values

2019-02-01 Thread Igor Opaniuk
Hi Simon, Thanks for reviewing! > I'm assuming that this test runs with 'make qcheck'? I've tested only by invoking test.py: ./test/py/test.py --bd sandbox --build On Thu, Jan 31, 2019, 11:04 Simon Glass Hi Igor, > > On Sun, 27 Jan 2019 at 07:34, Igor Opaniuk > wrote: > > > > AVB version

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-01 Thread Dalon L Westergreen
On Fri, 2019-02-01 at 12:02 -0800, Dalon L Westergreen wrote: > On Sat, 2019-02-02 at 00:02 +0800, Chee, Tien Fong wrote: > > On Fri, 2019-02-01 at 09:25 +0100, Marek Vasut wrote: > > > On 2/1/19 4:48 AM, Chee, Tien Fong wrote: > > > > On Thu, 2019-01-31 at 15:54 +0100, Marek Vasut wrote: > > > >

Re: [U-Boot] [PULL] Please pull u-boot-rockchip:tags/for-master-20190201

2019-02-01 Thread Philipp Tomsich
.04-rc1' of git://git.denx.de/u-boot-video > (2019-01-31 16:07:37 -0500) > > are available in the git repository at: > > git://git.denx.de/u-boot-rockchip tags/for-master-20190201 > > for you to fetch changes up to 73ced87e9af70cba35c4374055dca56e5f9c460d: >

[U-Boot] [PATCH v2 2/2] test: lib: lmb: add lmb test for multiple RAM banks

2019-02-01 Thread Simon Goldschmidt
This adds one test case that checks that allocation with multiple DRAM banks works correctly. Signed-off-by: Simon Goldschmidt --- Changes in v2: - added test test/lib/lmb.c | 94 -- 1 file changed, 75 insertions(+), 19 deletions(-) diff --git

[U-Boot] [PATCH v2 1/2] lmb: handle more than one DRAM BANK

2019-02-01 Thread Simon Goldschmidt
This fixes the automatic lmb initialization and reservation for boards with more than one DRAM bank. This fixes the CVE-2018-18439 and -18440 fixes that only allowed to load files into the firs DRAM bank from fs and via tftp. Reported-by: Heinrich Schuchardt Signed-off-by: Simon Goldschmidt

Re: [U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-01 Thread Dalon L Westergreen
On Thu, 2019-01-31 at 22:51 +0800, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Add FPGA driver to support program FPGA with FPGA bitstream loading from > filesystem. The driver are designed based on generic firmware loader > framework. The driver can handle FPGA program operation

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-02-01 Thread Dalon L Westergreen
On Sat, 2019-02-02 at 00:02 +0800, Chee, Tien Fong wrote: > On Fri, 2019-02-01 at 09:25 +0100, Marek Vasut wrote: > > On 2/1/19 4:48 AM, Chee, Tien Fong wrote: > > > On Thu, 2019-01-31 at 15:54 +0100, Marek Vasut wrote: > > > > On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > > > > > > > > >

Re: [U-Boot] [PATCH v4 01/20] common: spl_fit: Fix the spl_fit_image_get_os for FIT_IMAGE_TINY

2019-02-01 Thread Tom Rini
On Fri, Feb 01, 2019 at 04:40:06PM +, Abel Vesa wrote: > There is not really reducing codesize here since there is only > a call. The function is always built in if CONFIG_$(SPL_TPL_)FIT is set. > Plus, there was a change in behavior if CONFIG_SPL_OS_BOOT is defined. > If

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Tom Rini
On Fri, Feb 01, 2019 at 04:40:05PM +, Abel Vesa wrote: > The third version is here: > https://lists.denx.de/pipermail/u-boot/2019-January/356903.html > > So, this time I hope I got it right. Before, I was stupidly trying > to put a fit in another fit without a really good reason. To my >

Re: [U-Boot] [PATCH v3 3/6] fs: ext4: constify the buffer passed to write functions

2019-02-01 Thread Tom Rini
On Fri, Feb 01, 2019 at 07:40:21PM +0100, Jean-Jacques Hiblot wrote: > There is no need to modify the buffer passed to ext4fs_write_file(). > The memset() call is not required here and was likely copied from the > equivalent part of the ext4fs_read_file() function where we do need it. > >

Re: [U-Boot] [PATCH v1 0/4] arm: socfgpa: support of-platdata

2019-02-01 Thread Simon Goldschmidt
Am 08.01.2019 um 15:43 schrieb Marek Vasut: On 1/8/19 2:51 PM, Simon Goldschmidt wrote: On Tue, Jan 8, 2019 at 2:38 PM Marek Vasut wrote: On 1/8/19 2:07 PM, Simon Goldschmidt wrote: On Tue, Jan 8, 2019 at 1:58 PM Marek Vasut wrote: On 1/8/19 1:38 PM, Simon Goldschmidt wrote: On Tue, Jan

Re: [U-Boot] [PATCH v2 3/7] test: fs: run fsck after on fs image after the tests are run

2019-02-01 Thread Tom Rini
On Fri, Feb 01, 2019 at 06:00:15PM +0100, Jean-Jacques Hiblot wrote: > > On 01/02/2019 16:18, Tom Rini wrote: > >On Fri, Feb 01, 2019 at 03:33:36PM +0100, Jean-Jacques Hiblot wrote: > > > >>This is to check the integrity of the FS after the test operations. > >>This is useful to make sure that

Re: [U-Boot] [PATCH v2] spl: implement CRC check on U-Boot uImage

2019-02-01 Thread Simon Goldschmidt
Am 14.01.2019 um 17:27 schrieb Tom Rini: On Mon, Jan 14, 2019 at 04:38:24PM +0100, Simon Goldschmidt wrote: Tom, Am 11.12.2018 um 02:07 schrieb Simon Glass: On Wed, 28 Nov 2018 at 13:52, Simon Goldschmidt wrote: SPL currently does not check uImage CRCs when loading U-Boot. This patch adds

Re: [U-Boot] [PATCH] sf: prevent clean_bar overwriting error codes

2019-02-01 Thread Simon Goldschmidt
Am 06.12.2018 um 02:31 schrieb Simon Glass: On Tue, 27 Nov 2018 at 13:09, Simon Goldschmidt wrote: In spi_flash.c, if CONFIG_SPI_FLASH_BAR is enabled, the function 'clean_bar' makes sure that the Bank Address Register is reset at the end of functions using it. However, if this is enabled,

Re: [U-Boot] [PATCH v2 1/2] Kconfig: Migrate CONFIG_BUILD_TARGET

2019-02-01 Thread Tom Rini
On Fri, Feb 01, 2019 at 10:06:31PM +0530, Jagan Teki wrote: > Tom or anyone, > > On Fri, Jan 18, 2019 at 12:53 PM Jagan Teki > wrote: > > > > Migrate CONFIG_BUILD_TARGET into Kconfig. > > > > Signed-off-by: Jagan Teki > > --- > > Any comments, if all OK. then these would be good go. I'm

[U-Boot] [PATCH v3 3/6] fs: ext4: constify the buffer passed to write functions

2019-02-01 Thread Jean-Jacques Hiblot
There is no need to modify the buffer passed to ext4fs_write_file(). The memset() call is not required here and was likely copied from the equivalent part of the ext4fs_read_file() function where we do need it. Signed-off-by: Jean-Jacques Hiblot --- Changes in v3: - reworded commit log

[U-Boot] [PATCH v3 6/6] test: fs: Added tests for symlinks

2019-02-01 Thread Jean-Jacques Hiblot
Test cases are: 1) basic link creation, verify it can be followed 2) chained links, verify it can be followed 3) replace exiting file a with a link, and a link with a link. verify it can be followed 4) create a broken link, verify it can't be followed Signed-off-by: Jean-Jacques Hiblot

[U-Boot] [PATCH v3 5/6] fs: Add a new command to create symbolic links

2019-02-01 Thread Jean-Jacques Hiblot
The command line is: ln target linkname Currently symbolic links are supported only in ext4 and only if the option CMD_EXT4_WRITE is enabled. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None cmd/fs.c | 14 ++ fs/fs.c

[U-Boot] [PATCH v3 2/6] test: fs: disable the metadata checksums on ext4 filesystems

2019-02-01 Thread Jean-Jacques Hiblot
If the metadata checksums are enabled, all write operations will fail. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: None test/py/tests/test_fs/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git

[U-Boot] [PATCH v3 4/6] fs: ext4: Add support for the creation of symbolic links

2019-02-01 Thread Jean-Jacques Hiblot
Re-use the functions used to write/create a file, to support creation of a symbolic link. The difference with a regular file are small: - The inode mode is flagged with S_IFLNK instead of S_IFREG - The ext2_dirent's filetype is FILETYPE_SYMLINK instead of FILETYPE_REG - Instead of storing the

[U-Boot] [PATCH v3 0/6] Add support for symlink creation in EXT4

2019-02-01 Thread Jean-Jacques Hiblot
This series adds support for the creation of symbolic links on ext4 file-systems. The motivation behind this work is to have the ability to "do" the job of update-alternatives in u-boot. Firmware on TI's platform are usually managed with update-alternatives and are thus targeted by a symbolic

[U-Boot] [PATCH v3 1/6] fs: ext4: do not allow writes if metadata checksum is active

2019-02-01 Thread Jean-Jacques Hiblot
u-boot does not supports updating the metadata chacksums Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- Changes in v3: None Changes in v2: - Prevent write access if metadata checksum is enabled fs/ext4/ext4_write.c | 12 ++-- include/ext4fs.h | 1 + 2 files

Re: [U-Boot] [PATCH v2 3/7] test: fs: run fsck after on fs image after the tests are run

2019-02-01 Thread Jean-Jacques Hiblot
On 01/02/2019 16:18, Tom Rini wrote: On Fri, Feb 01, 2019 at 03:33:36PM +0100, Jean-Jacques Hiblot wrote: This is to check the integrity of the FS after the test operations. This is useful to make sure that the operations are implemented properly, and are not going to create silent

Re: [U-Boot] imx8mq-evk: Outbound network packets lost

2019-02-01 Thread Sergey Kubushyn
On Fri, 1 Feb 2019, Chris Spencer wrote: On Fri, 1 Feb 2019 at 16:10, Sergey Kubushyn wrote: Turns out there's already a patch to add the driver as part of the i.MX8MM patch series. [1] Go figure. What the fcuk is i.MX8MM? Are they going to do anything with their i.MX8MQ documentation? It

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Fabio Estevam
On Fri, Feb 1, 2019 at 3:59 PM Abel Vesa wrote: > > Is Ethernet functional? > > I haven't tested the ethernet on all of them, just one of each > (sabresd/sabreauto). > > I'll test them all when I get back at the office tomorrow. Don't worry about that. If you tested in one of each then it is

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Abel Vesa
On 19-02-01 15:13:32, Fabio Estevam wrote: > Hi Abel, > > On Fri, Feb 1, 2019 at 2:43 PM Abel Vesa wrote: > > > > The third version is here: > >

[U-Boot] [PULL] u-boot-mips

2019-02-01 Thread Daniel Schwierzeck
Hi Tom, please pull some updates and fixes for MIPS https://travis-ci.org/danielschwierzeck/u-boot/builds/487434845 The following changes since commit ab0ec15f77b5692c06fac024f34a90ab4752b41a: Merge tag 'u-boot-amlogic-20190131' of git://git.denx.de/u-boot-amlogic (2019-01-31 07:19:52

[U-Boot] [PULL] Please pull u-boot-rockchip:tags/for-master-20190201

2019-02-01 Thread Philipp Tomsich
' of git://git.denx.de/u-boot-video (2019-01-31 16:07:37 -0500) are available in the git repository at: git://git.denx.de/u-boot-rockchip tags/for-master-20190201 for you to fetch changes up to 73ced87e9af70cba35c4374055dca56e5f9c460d: rockchip: rk3399: spl: ensure that debug_uart_init

Re: [U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Fabio Estevam
Hi Abel, On Fri, Feb 1, 2019 at 2:43 PM Abel Vesa wrote: > > The third version is here: > https://lists.denx.de/pipermail/u-boot/2019-January/356903.html > > So, this time I hope I got it right. Before, I was stupidly trying > to put a fit in another fit without a really good reason. To my >

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-02-01 Thread Vignesh R
[...] >>> Yes, zynq qspi ia unable to handle larger than 16MiB flashes so we used >>> BAR to access those. >>> >> >> I wonder how those boards work in kernel that does not support BAR. >> Anyways, if you provide a list of SPI controllers on zynq SoCs, I will >> add an imply SPI_FLASH_BAR for such

Re: [U-Boot] [PATCH v3 16/20] mtd: spi: Add lightweight SPI flash stack for SPL

2019-02-01 Thread Vignesh R
On 01-Feb-19 9:18 PM, Jagan Teki wrote: > On Thu, Jan 31, 2019 at 11:20 PM Vignesh R wrote: >> [...] >>> >>> This doesn't look good to me, this change is part of 08/20 and now it >>> removed. better do the same change in 08/20 by adding new file >>> spi-nor-ids.c >>> >> >> This is intentional.

Re: [U-Boot] [PATCH v2 3/7] test: fs: run fsck after on fs image after the tests are run

2019-02-01 Thread Jean-Jacques Hiblot
On 01/02/2019 16:18, Tom Rini wrote: On Fri, Feb 01, 2019 at 03:33:36PM +0100, Jean-Jacques Hiblot wrote: This is to check the integrity of the FS after the test operations. This is useful to make sure that the operations are implemented properly, and are not going to create silent

Re: [U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-02-01 Thread Chee, Tien Fong
On Fri, 2019-02-01 at 09:29 +0100, Marek Vasut wrote: > On 2/1/19 5:04 AM, Chee, Tien Fong wrote: > > > > On Thu, 2019-01-31 at 15:55 +0100, Marek Vasut wrote: > > > > > > On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > Add

Re: [U-Boot] imx8mq-evk: Outbound network packets lost

2019-02-01 Thread Chris Spencer
On Fri, 1 Feb 2019 at 16:10, Sergey Kubushyn wrote: > > Turns out there's already a patch to add the driver as part of the > > i.MX8MM patch series. [1] Go figure. > > What the fcuk is i.MX8MM? Are they going to do anything with their i.MX8MQ > documentation? It is currently at Rev.0 dated

Re: [U-Boot] [PATCH v7 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-02-01 Thread Chee, Tien Fong
On Fri, 2019-02-01 at 09:29 +0100, Marek Vasut wrote: > On 2/1/19 4:59 AM, Chee, Tien Fong wrote: > > > > On Thu, 2019-01-31 at 15:54 +0100, Marek Vasut wrote: > > > > > > On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > > > > > > > > > > > > From: Tien Fong Chee > > > > > > > > Add

[U-Boot] [PATCH v4 19/20] board: mx6sabresd: Remove the enet reset gpio handling

2019-02-01 Thread Abel Vesa
Rely on the phy-reset-gpios which is set in imx6qdl-sabresd dtsi and get rid of the enet reset gpio handling from the board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 7 --- 1 file changed, 7 deletions(-) diff --git

[U-Boot] [PATCH v4 01/20] common: spl_fit: Fix the spl_fit_image_get_os for FIT_IMAGE_TINY

2019-02-01 Thread Abel Vesa
There is not really reducing codesize here since there is only a call. The function is always built in if CONFIG_$(SPL_TPL_)FIT is set. Plus, there was a change in behavior if CONFIG_SPL_OS_BOOT is defined. If CONFIG_FIT_IMAGE_TINY is defined, the spl_fit_image_get_os was returning -ENOTSUPP and

[U-Boot] [PATCH v4 20/20] configs: mx6sabresd: Reduce SPL size by disabling DOS, EXT and EFI support

2019-02-01 Thread Abel Vesa
With DM and FIT enabled in SPL, there is an sram overflow. By disabling CONFIG_SPL_DOS_PARTITION, CONFIG_SPL_EXT_SUPPORT and CONFIG_SPL_EFI_PARTITION, we get to keep the 'one binary to fit all' for imx6[q|qp|dl] on sabresd since the final SPL image is now under 64KB. Signed-off-by: Abel Vesa ---

[U-Boot] [PATCH v4 02/20] usb: Rename SPL_USB_SUPPORT to SPL_USB_STORAGE

2019-02-01 Thread Abel Vesa
Since there is the SPL_USB_HOST_SUPPORT for enabling USB support in SPL, makes more sense to rename the SPL_USB_SUPPORT as SPL_USB_STORAGE. Everything that is not part of the usb storage support in SPL is now build under SPL_USB_HOST_SUPPORT. Signed-off-by: Abel Vesa Reviewed-by: Tom Rini ---

[U-Boot] [PATCH v4 04/20] configs: imx6sabreauto: Add DM_MMC support

2019-02-01 Thread Abel Vesa
Add DM_MMC config to imx6sabreauto defconfig. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 40386c2..a3d63a2 100644 --- a/configs/mx6sabreauto_defconfig +++

[U-Boot] [PATCH v4 11/20] configs: mx6sabreauto: Add SPL FIT and DM support

2019-02-01 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabreauto. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index

[U-Boot] [RFC PATCH v1] MLK-12883 usb: limit USB_MAX_XFER_BLK to 256

2019-02-01 Thread Marcel Ziswiler
From: Peng Fan For Some USB mass storage devices, such as: " - Kingston DataTraveler 2.0 001D7D06CF09B04199C7B3EA - Class: (from Interface) Mass Storage - PacketSize: 64 Configurations: 1 - Vendor: 0x0930 Product 0x6545 Version 1.16 " When `usb read 0x8000 0 0x2000`, we met "EHCI timed

[U-Boot] [PATCH v4 08/20] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-02-01 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabreauto - imx6qp-sabreauto - imx6dl-sabreauto Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[U-Boot] [PATCH v4 07/20] board: mx6sabresd: Add board_fit_config_name_match to support FIT in SPL

2019-02-01 Thread Abel Vesa
This matches one of the following three boards (or fails): - imx6q-sabresd - imx6qp-sabresd - imx6dl-sabresd Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[U-Boot] [PATCH v4 15/20] configs: mx6sabreauto: Add DM_SPI_FLASH necessary configs

2019-02-01 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabreauto. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 3b37766..bb466fe

[U-Boot] [PATCH v4 10/20] arm: dts: Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd]

2019-02-01 Thread Abel Vesa
Update all the dts[i] files for imx6[q|qp|dl] sabre[auto|sd] to the ones from kernel v4.20 (commit 8fe28cb58bcb2). Signed-off-by: Abel Vesa Acked-by: Peng Fan --- arch/arm/dts/Makefile | 8 +- arch/arm/dts/imx6dl-sabreauto.dts | 13 + arch/arm/dts/imx6dl-sabresd.dts |

[U-Boot] [PATCH v4 18/20] board: mx6sabresd: Remove non-DM code

2019-02-01 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabresd board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabresd/mx6sabresd.c | 50 - 1 file changed, 50 deletions(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c

[U-Boot] [PATCH v4 03/20] usb: ehci-mx6: Make regulator DM_REGULATOR dependent

2019-02-01 Thread Abel Vesa
Do the regulator related work only if the build has the DM_REGULATOR. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- drivers/usb/host/ehci-mx6.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index

[U-Boot] [PATCH v4 13/20] mx6sabreauto: Add DM_GPIO support

2019-02-01 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabreauto. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabreauto/mx6sabreauto.c | 3 +++ configs/mx6sabreauto_defconfig | 1 + 2 files changed, 4 insertions(+) diff --git

[U-Boot] [PATCH v4 17/20] board: mx6sabreauto: Remove the non-DM code

2019-02-01 Thread Abel Vesa
Since the mx6sabreauto has DM support, remove the unused non-DM code from mx6sabreauto board file. Signed-off-by: Abel Vesa --- board/freescale/mx6sabreauto/mx6sabreauto.c | 70 - 1 file changed, 70 deletions(-) diff --git

[U-Boot] [PATCH v4 16/20] configs: mx6sabresd: Add DM_SPI_FLASH necessary configs

2019-02-01 Thread Abel Vesa
Enable all neceassary configs to support DM_SPI_FLASH on mx6sabresd. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- configs/mx6sabresd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 4b40dfe..e8fd9b4 100644

[U-Boot] [PATCH v4 14/20] mx6sabresd: Add DM_GPIO support

2019-02-01 Thread Abel Vesa
Add the DM_GPIO related config for mx6sabresd. Also add the gpio request calls. Signed-off-by: Abel Vesa Reviewed-by: Peng Fan --- board/freescale/mx6sabresd/mx6sabresd.c | 5 + configs/mx6sabresd_defconfig| 1 + 2 files changed, 6 insertions(+) diff --git

[U-Boot] [PATCH v4 09/20] arm: dts: Add all the imx6[q|qp|dl] sabre[auto|sd] u-boot dts[i] files

2019-02-01 Thread Abel Vesa
This allows us to keep the basic dts[i] files up-to-date with the ones in kernel, but at the same time allowing the u-boot to add its own properties to the existing nodes. Signed-off-by: Abel Vesa --- arch/arm/dts/imx6dl-sabreauto-u-boot.dtsi | 6 ++

[U-Boot] [PATCH v4 06/20] mmc: fsl_esdhc: Fix DM_REGULATOR ifdefs for SPL builds

2019-02-01 Thread Abel Vesa
Since the fsl_esdhc will also be used by SPL, make the preprocessor switches more generic to allow any kind of build. Signed-off-by: Abel Vesa --- drivers/mmc/fsl_esdhc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH v4 05/20] configs: imx6sabreauto: Add DM_USB support

2019-02-01 Thread Abel Vesa
Add the DM support for USB. For that, DM_REGULATOR is needed. Signed-off-by: Abel Vesa --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index a3d63a2..4bdcbb1 100644 ---

[U-Boot] [PATCH v4 12/20] configs: mx6sabresd: Add SPL FIT and DM support

2019-02-01 Thread Abel Vesa
Enable all the necessary configs for SPL DM and FIT support for mx6sabresd. Signed-off-by: Abel Vesa --- configs/mx6sabresd_defconfig | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index

Re: [U-Boot] [PATCH v2 1/2] Kconfig: Migrate CONFIG_BUILD_TARGET

2019-02-01 Thread Jagan Teki
Tom or anyone, On Fri, Jan 18, 2019 at 12:53 PM Jagan Teki wrote: > > Migrate CONFIG_BUILD_TARGET into Kconfig. > > Signed-off-by: Jagan Teki > --- Any comments, if all OK. then these would be good go. ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH v4 00/20] mx6sabre: Add DM and SPL FIT support

2019-02-01 Thread Abel Vesa
The third version is here: https://lists.denx.de/pipermail/u-boot/2019-January/356903.html So, this time I hope I got it right. Before, I was stupidly trying to put a fit in another fit without a really good reason. To my excuse, that was working even with the spl_image->os set to 0, bug which I

[U-Boot] [PATCH v1 20/23] configs: apalis_imx6: Use ext4 file system by default

2019-02-01 Thread Marcel Ziswiler
From: Sanchayan Maity Use ext4 file system by default. Signed-off-by: Sanchayan Maity Acked-by: Max Krummenacher Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/apalis_imx6.h

[U-Boot] [PATCH v1 19/23] apalis_imx6: revert fuse value set in mfgr_fuse

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher We have two commands to change the bootmode fuses: mfgr_fuse which set fuse 0/5 and 0/6 and updt_fuse which burns bit 4 of 0/5. Before BSP 2.6 we fused in mfgr_fuse 0x5062, which boots from the user partition of the eMMC. To workaround certain hangs we moved to fastboot

[U-Boot] [PATCH v1 23/23] board: apalis_imx6: check for and report ecc errors in fuses

2019-02-01 Thread Marcel Ziswiler
From: Gerard Salvatella The PMIC on Apalis iMX6 may have ECC errors in fuses that will prevent correct settings. Up to one bit error per fuse bank may be reported and corrected by the ECC logic. Two bit errors can only be reported. Signed-off-by: Gerard Salvatella Acked-by: Marcel Ziswiler

[U-Boot] [PATCH v1 21/23] apalis_imx6: use SDP if USB serial downloader has been used

2019-02-01 Thread Marcel Ziswiler
From: Stefan Agner In case USB serial downloader has been used to load U-Boot start the serial download protocol (SDP) emulation. This allows to download complete images such as Toradex Easy Installer over USB SDP as well. This code uses the boot ROM provided boot information to reliably detect

[U-Boot] [PATCH v1 16/23] apalis_imx6: unify sd/mmc drive strength with linux kernel settings

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher In the Linux device tree we use 40Ohm drive strength. So use the same value in U-Boot. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 24 ++-- 1 file changed, 14 insertions(+), 10

[U-Boot] [PATCH v1 22/23] apalis_imx6: switch to zimage

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Switch to the generic compressed Kernel image type (zImage) instead of the U-Boot specific uImage format. Signed-off-by: Bhuvanchandra DV Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[U-Boot] [PATCH v1 18/23] apalis_imx6: disable ri and dcd irq in uarts

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher If the UART is used in DTE mode the RI and DCD bits in UCR3 become irq enable bits. Both are set to enabled after reset and both likely are pending. Disable the bits also on UARTs not used in the boot loader to prevent an interrupt storm when Linux enables the UART

[U-Boot] [PATCH v1 00/23] apalis imx6 fixes, device tree enablement and driver model conversion

2019-02-01 Thread Marcel Ziswiler
This series addresses some shortcomings, enables/introduces device tree support and converts all except video to using the driver model. This is fully tested both running our latest downstream BSP as well as the mainline Linux kernel. Gerard Salvatella (1): board: apalis_imx6: check for and

[U-Boot] [PATCH v1 11/23] apalis_imx6: migrate mmc and sata to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate MMC and SATA to using driver model. While at it also enable SCSI driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 102 ++-- configs/apalis_imx6_defconfig | 3 +

[U-Boot] [PATCH v1 01/23] apalis_imx6: get rid of obsolete nospl configurations

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with SPL long since being in place even for recovery using SDP finally get rid of those nospl configurations. Signed-off-by: Marcel Ziswiler --- .../toradex/apalis_imx6/1066mhz_4x128mx16.cfg | 47 - .../toradex/apalis_imx6/1066mhz_4x256mx16.cfg | 47

[U-Boot] [PATCH v1 10/23] apalis_imx6: migrate pmic and regulator to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate PMIC and regulator to using driver model. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index 60c4d9720d..7e973ded74

[U-Boot] [PATCH v1 15/23] apalis_imx6: use both sd/mmc interfaces for setsdupdate

2019-02-01 Thread Marcel Ziswiler
From: Max Krummenacher During porting to 2016.11 the check of a SD (mmc2) interface was dropped, this was unintended. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- include/configs/apalis_imx6.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v1 12/23] apalis_imx6: migrate usb to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate USB to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 22 -- configs/apalis_imx6_defconfig | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git

[U-Boot] [PATCH v1 17/23] apalis_imx6: pf0100: reorder and cleanup message printing

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Keep debug code at the end of the function. Use a one line informational message for the PMIC only. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/pf0100.c | 110 +++-- 1 file changed, 56 insertions(+),

[U-Boot] [PATCH v1 14/23] apalis_imx6: add distroboot support

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Add support for distro boot. This is especially helpful for external devices. There is a global boot command which scans a predefined list of boot targets: run distro_bootcmd As well as direct boot commands such as: run bootcmd_mmc1 run bootcmd_mmc2 run bootcmd_usb

[U-Boot] [PATCH v1 13/23] apalis_imx6: drop CONFIG_OF_SYSTEM_SETUP

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler This doesn't do anything anymore, probably never did. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 7 --- include/configs/apalis_imx6.h | 2 -- 2 files changed, 9 deletions(-) diff --git

[U-Boot] [PATCH v1 07/23] apalis_imx6: clean-up and migrate gpios to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate GPIOs to using driver model, properly request backlight and Ethernet PHY reset GPIOs and also enable SION bit in pin muxing for USB power enable GPIOs. While at it also update copyright year and add some comments clarifying ifdef scope. Signed-off-by: Marcel

[U-Boot] [PATCH v1 08/23] apalis_imx6: enable pin control driver

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Enable pin control driver as required for further driver model migration. Signed-off-by: Marcel Ziswiler --- configs/apalis_imx6_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index

[U-Boot] [PATCH v1 09/23] apalis_imx6: migrate i2c to using driver model

2019-02-01 Thread Marcel Ziswiler
From: Marcel Ziswiler Migrate I2C to using driver model. Signed-off-by: Marcel Ziswiler --- board/toradex/apalis_imx6/apalis_imx6.c | 88 + board/toradex/apalis_imx6/pf0100.c | 58 configs/apalis_imx6_defconfig | 1 +

  1   2   >