Re: [U-Boot] [PATCH 15/15] imx: add i.MX8MQ EVK support

2018-11-12 Thread Jon Nettleton
On Fri, Nov 9, 2018 at 8:06 PM Troy Kisky wrote: > > On 11/9/2018 1:17 AM, Peng Fan wrote: > > Add i.MX8MQ EVK support. SPL will initialize ddr and load ddr phy > > firmware. Then loading FIT image, ATF to OCRAM, U-Boot and DTB to > > DRAM > > > > + > > +static struct dram_cfg_param

Re: [U-Boot] [PATCH v2 07/29] riscv: add Kconfig entries for the code model

2018-11-12 Thread Bin Meng
Hi Lukas, On Wed, Oct 31, 2018 at 11:01 PM Auer, Lukas wrote: > > Hi Bin, > > On Wed, 2018-10-31 at 10:13 +0800, Bin Meng wrote: > > Hi Lukas, > > > > On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer > > wrote: > > > > > > RISC-V has two code models, medium low (medlow) and medium any > > > (medany).

Re: [U-Boot] [PATCH v2] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2018-11-12 Thread Ashish Kumar
> -Original Message- > From: York Sun > Sent: Tuesday, November 13, 2018 3:34 AM > To: Ashish Kumar > Cc: u-boot@lists.denx.de; Rajat Srivastava ; Yogesh > Narayan Gaur > Subject: Re: [PATCH v2] fsl-lsch3: soc: Enable AHB read support for Flexspi > controller > > On 11/2/18 8:59 AM,

[U-Boot] [PATCH v3] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2018-11-12 Thread Ashish Kumar
Enable AHB support for Flexspi controller interface meaning memory can be accessed via md command using absolute addresses Signed-off-by: Yogesh Gaur Signed-off-by: Rajat Srivastava Signed-off-by: Ashish Kumar --- v3: Depends upon http://patchwork.ozlabs.org/patch/975009/ v2: 1. Rename FSPI

Re: [U-Boot] [PATCH v3 00/28] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-11-12 Thread Rick Chen
Bin Meng 於 2018年11月13日 週二 下午2:49寫道: > > Hi Rick, > > On Tue, Nov 13, 2018 at 2:41 PM Rick Chen wrote: > > > > > > This patch series includes general fixes and cleanup for RISC-V. It > > > > also adds > > > > support for booting Linux on qemu-riscv. At the moment, only single-core > > > >

Re: [U-Boot] [PATCH v3 00/28] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-11-12 Thread Bin Meng
Hi Rick, On Tue, Nov 13, 2018 at 2:41 PM Rick Chen wrote: > > > > This patch series includes general fixes and cleanup for RISC-V. It also > > > adds > > > support for booting Linux on qemu-riscv. At the moment, only single-core > > > systems are supported. Support for multi-core systems will

Re: [U-Boot] [PATCH v3 00/28] General fixes / cleanup for RISC-V and improvements to qemu-riscv

2018-11-12 Thread Rick Chen
> > This patch series includes general fixes and cleanup for RISC-V. It also > > adds > > support for booting Linux on qemu-riscv. At the moment, only single-core > > systems are supported. Support for multi-core systems will be added with a > > future patch series. > > > > To boot Linux on

Re: [U-Boot] [PATCH v3 27/28] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-12 Thread Bin Meng
On Fri, Nov 9, 2018 at 9:00 PM Lukas Auer wrote: > > QEMU embeds the location of the kernel image in the device tree. Store > this address in the environment as variable kernel_start. It is used in > the board-local distro boot command QEMU to boot the kernel with the > U-Boot device tree. The

Re: [U-Boot] [PATCH v3 24/28] distro_bootcmd: add VirtIO distro boot command

2018-11-12 Thread Bin Meng
On Fri, Nov 9, 2018 at 9:00 PM Lukas Auer wrote: > > Add a boot command to distro boot to support disks connected over the > VirtIO bus. The boot command uses the shared block environment. > > Signed-off-by: Lukas Auer > --- > > Changes in v3: > - New patch to add VirtIO distro boot command > >

Re: [U-Boot] [PATCH v3 25/28] riscv: qemu: enable distro boot

2018-11-12 Thread Bin Meng
On Fri, Nov 9, 2018 at 9:00 PM Lukas Auer wrote: > > Enable distro boot on the qemu-riscv32/64 boards. Supported boot target > devices are VirtIO and DHCP. > > Signed-off-by: Lukas Auer > --- > > Changes in v3: > - New patch to enable distro boot on qemu-riscv32/64 > > Changes in v2: None > >

Re: [U-Boot] [PATCH 3/4] fs: prevent overwriting reserved memory

2018-11-12 Thread Simon Goldschmidt
On Tue, Nov 13, 2018 at 3:23 AM Fabio Estevam wrote: > > Hi Simon, > > On Mon, Nov 12, 2018 at 7:25 PM Simon Goldschmidt > wrote: > > > diff --git a/fs/fs.c b/fs/fs.c > > index adae98d021..4baf6b1c39 100644 > > --- a/fs/fs.c > > +++ b/fs/fs.c > > @@ -428,13 +428,57 @@ int fs_size(const char

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

2018-11-12 Thread Anand Moon
Hi Dirk, On Mon, 12 Nov 2018 at 23:54, Dirk Meul wrote: > > Hi Anand Moon, > > with U-Boot 2018.11-rc3-00062-g26cc40d8c4 and booting Fedora 28 Server > I have no problems with a *warm boot* of my Odroid HC2. So I think this > is not a general problem. > > My u-boot.bin was created using: > $

[U-Boot] [PATCH v2] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
With -device virtio-blk-device,drive=hd0, it could detect distro boot target. Signed-off-by: Sumit Garg --- Changes in v2: Change boot order to SCSI; VIRTIO; DHCP as DHCP is quiet slow, so kept as last boot option. Depends on https://patchwork.ozlabs.org/patch/995524/ which adds VirtIO distro

Re: [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
Hi Tuomas, On Tue, 13 Nov 2018 at 00:23, Tuomas Tynkkynen wrote: > > Hi Sumit, > > On Mon, 12 Nov 2018 15:29:08 +0530 > Sumit Garg wrote: > > > With -device virtio-blk-device,drive=hd0, it could detect distro boot > > target. > > > > Signed-off-by: Sumit Garg > > --- > ... > > diff --git

Re: [U-Boot] [PATCH 2/2] imx8: scu: Update call to lists_bind_fdt()

2018-11-12 Thread Simon Glass
On 12 November 2018 at 08:02, Bin Meng wrote: > This commit should be squashed into > > commit 2bba642dbaa4 ("dm: core: Respect drivers with the > DM_FLAG_PRE_RELOC flag in lists_bind_fdt()") > > on u-boot-dm/master branch. > > Signed-off-by: Bin Meng > --- > > drivers/misc/imx8/scu.c | 4 ++--

Re: [U-Boot] [PATCH 1/2] Revert "imx8qxp_mek: Disable CONFIG_DISPLAY_CPUINFO"

2018-11-12 Thread Simon Glass
On 12 November 2018 at 08:02, Bin Meng wrote: > > This reverts commit c5bbfaf05dc8592b479a44df6abaadbab54fec2b. > > Disabling CONFIG_DISPLAY_CPUINFO was a temporary solution to get > the v2018.11 release out. Now the merge window opens, revert it. > > Signed-off-by: Bin Meng > --- > >

Re: [U-Boot] [PATCH v2 4/4] cmd: adc: add an option to scan some or all available channels

2018-11-12 Thread Simon Glass
On 12 November 2018 at 06:04, Fabrice Gasnier wrote: > Add new option to 'adc' command to do a single scan of: > - some channel(s), using mask argument > - all channels available on an ADC device (when optional mask is omitted). > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: None >

Re: [U-Boot] [PATCH v2 2/4] cmd: adc: add info on channel mask

2018-11-12 Thread Simon Glass
On 12 November 2018 at 06:03, Fabrice Gasnier wrote: > Enhance adc info command to report also the channel mask. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: None > > cmd/adc.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v2 3/4] cmd: adc: print single conversion also in uV

2018-11-12 Thread Simon Glass
On 12 November 2018 at 06:04, Fabrice Gasnier wrote: > Use newly introduced adc_raw_to_uV() API to print conversion result > both as raw value and micro-volts by default. > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: None > > cmd/adc.c | 9 +++-- > 1 file changed, 7

Re: [U-Boot] [PATCH v2 1/4] dm: adc: add uclass's mask and conversion helpers

2018-11-12 Thread Simon Glass
On 12 November 2018 at 06:03, Fabrice Gasnier wrote: > Add two functions to ADC uclass's: > - adc_raw_to_uV() to ease ADC raw value conversion to microvolts > - adc_channel_mask() to get channels on consumer side > > Signed-off-by: Fabrice Gasnier > --- > > Changes in v2: > - Add calls to the

Re: [U-Boot] [PATCH 3/4] fs: prevent overwriting reserved memory

2018-11-12 Thread Fabio Estevam
Hi Simon, On Mon, Nov 12, 2018 at 7:25 PM Simon Goldschmidt wrote: > diff --git a/fs/fs.c b/fs/fs.c > index adae98d021..4baf6b1c39 100644 > --- a/fs/fs.c > +++ b/fs/fs.c > @@ -428,13 +428,57 @@ int fs_size(const char *filename, loff_t *size) > return ret; > } > > -int fs_read(const

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Marek Vasut
On 11/13/2018 02:12 AM, Tom Rini wrote: > On Tue, Nov 13, 2018 at 01:03:41AM +0100, Marek Vasut wrote: >> On 11/12/2018 11:25 PM, Tom Rini wrote: >>> On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: On 11/12/2018 10:40 PM, Tom Rini wrote: > Hey all, > > Since Jagan

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Tom Rini
On Tue, Nov 13, 2018 at 01:03:41AM +0100, Marek Vasut wrote: > On 11/12/2018 11:25 PM, Tom Rini wrote: > > On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: > >> On 11/12/2018 10:40 PM, Tom Rini wrote: > >>> Hey all, > >>> > >>> Since Jagan promise a v2 SPI PR for some build fixes that

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Marek Vasut
On 11/12/2018 11:25 PM, Tom Rini wrote: > On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: >> On 11/12/2018 10:40 PM, Tom Rini wrote: >>> Hey all, >>> >>> Since Jagan promise a v2 SPI PR for some build fixes that we should have >>> in the release and I believe didn't get them out

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Tom Rini
On Mon, Nov 12, 2018 at 11:13:29PM +0100, Marek Vasut wrote: > On 11/12/2018 10:40 PM, Tom Rini wrote: > > Hey all, > > > > Since Jagan promise a v2 SPI PR for some build fixes that we should have > > in the release and I believe didn't get them out before the end of his > > day, I'm letting

Re: [U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Marek Vasut
On 11/12/2018 10:40 PM, Tom Rini wrote: > Hey all, > > Since Jagan promise a v2 SPI PR for some build fixes that we should have > in the release and I believe didn't get them out before the end of his > day, I'm letting everyone know now to expect the release tomorrow > instead, thanks! Will

Re: [U-Boot] [PATCH v2] fsl-lsch3: soc: Enable AHB read support for Flexspi controller

2018-11-12 Thread York Sun
On 11/2/18 8:59 AM, York Sun wrote: > On 9/26/18 4:10 AM, Ashish Kumar wrote: >> Enable AHB support for Flexspi controller interface meaning >> memory can be accessed via md command using absolute addresses >> >> Signed-off-by: Yogesh Gaur >> Signed-off-by: Rajat Srivastava >> Signed-off-by:

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

2018-11-12 Thread Tom Rini
-11-07 12:13:45 -0500) > > are available in the Git repository at: > > git://www.denx.de/git/u-boot-imx.git tags/u-boot-imx-20181112 > > for you to fetch changes up to 43e6f94cbcaf193aeedcf86e85a3ff4c79f66773: > > imx: mkimage: add size check to the u-boot.imx make tar

[U-Boot] [ANN] U-Boot v2018.11 delayed a day

2018-11-12 Thread Tom Rini
Hey all, Since Jagan promise a v2 SPI PR for some build fixes that we should have in the release and I believe didn't get them out before the end of his day, I'm letting everyone know now to expect the release tomorrow instead, thanks! -- Tom signature.asc Description: PGP signature

[U-Boot] [PATCH 3/4] fs: prevent overwriting reserved memory

2018-11-12 Thread Simon Goldschmidt
This fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by using lmb to check the load size of a file against reserved memory addresses. Signed-off-by: Simon Goldschmidt --- fs/fs.c | 56 --- include/lmb.h | 2

[U-Boot] [PATCH 4/4] bootm: use new common function lmb_init_and_reserve

2018-11-12 Thread Simon Goldschmidt
This reduces duplicate code only. Signed-off-by: Simon Goldschmidt --- common/bootm.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index 8bf84ebcb7..31e4f0f794 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -56,15 +56,11 @@

[U-Boot] [PATCH 2/4] lib: lmb: add function lmb_alloc_addr

2018-11-12 Thread Simon Goldschmidt
This new function behaves like lmb_alloc, but it tries to allocate a pre-specified address range. Unlike lmb_reserve, this address range must be inside one of the memory ranges that has been set up with lmb_add. Signed-off-by: Simon Goldschmidt --- include/lmb.h | 1 + lib/lmb.c | 26

[U-Boot] [PATCH 1/4] lib: lmb: reserving overlapping regions should fail

2018-11-12 Thread Simon Goldschmidt
lmb_add_region handles overlapping regions wrong: instead of merging or rejecting to add a new reserved region that overlaps an existing one, it just adds the new region. Since internally the same function is used for lmb_alloc, change lmb_add_region to reject overlapping regions. Signed-off-by:

[U-Boot] [PATCH 0/4] Fix CVE-2018-18440

2018-11-12 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command. The functions from lmb.c are used to setup regions of allowed and reserved memory. Then, the file size to load is checked against these addresses and loading the

[U-Boot] [PATCH v2 1/1] efi_selftest: don't hang on missing timer

2018-11-12 Thread Heinrich Schuchardt
qemu-riscv32_defconfig and qemu-riscv64_defconfig do not supply a timer. This causes the EFI selftest to hang on tests which require a timer. So let's disable CONFIG_TIMER for these boards and use this variable to decide which tests have to be disabled. Signed-off-by: Heinrich Schuchardt ---

[U-Boot] [PATCH 1/1] efi_selftest: don't hang on missing timer

2018-11-12 Thread Heinrich Schuchardt
qemu-riscv32_defconfig and qemu-riscv64_defconfig do not supply a timer. This causes the EFI selftest to hang on tests which require a timer. So let's disable CONFIG_TIMER for these boards and use this variable to decide which tests have to be disabled. Signed-off-by: Heinrich Schuchardt ---

Re: [U-Boot] CVE-2018-18439, CVE-2018-18440 - U-Boot verified boot bypass vulnerabilities

2018-11-12 Thread Simon Goldschmidt
On 12.11.2018 19:03, Heinrich Schuchardt wrote: On 11/12/18 7:56 AM, Simon Goldschmidt wrote: On Mon, Nov 12, 2018 at 12:22 AM Heinrich Schuchardt wrote: On 11/11/18 3:22 PM, Wolfgang Denk wrote: Dear Andrea, In message <20181109094615.gc9...@lambda.inversepath.com> you wrote: Exactly,

Re: [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Tuomas Tynkkynen
Hi Sumit, On Mon, 12 Nov 2018 15:29:08 +0530 Sumit Garg wrote: > With -device virtio-blk-device,drive=hd0, it could detect distro boot > target. > > Signed-off-by: Sumit Garg > --- ... > diff --git a/include/configs/qemu-arm.h b/include/configs/qemu-arm.h > index fedc466..437c3ae 100644 > ---

Re: [U-Boot] [PATCH V2 6/6] test: vboot: add padding pss for rsa signature

2018-11-12 Thread Clément Péron
Hi Philippe, On Mon, 12 Nov 2018 at 18:41, Philippe REYNES wrote: > > Hi Clément, > > You're right, those its are in an old-format style. > I can add a patch in this serie or send a separate > patch to clean the style. > > What solution do you prefer ? I'm not a maintainer but in this case I

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

2018-11-12 Thread Dirk Meul
Hi Anand Moon, with U-Boot 2018.11-rc3-00062-g26cc40d8c4 and booting Fedora 28 Server I have no problems with a *warm boot* of my Odroid HC2. So I think this is not a general problem. My u-boot.bin was created using: $ ARCH=arm CROSS_COMPILE=arm-linux-gnu- make odroid-xu3_defconfig $ ARCH=arm

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread Marek Vasut
On 11/12/2018 04:25 PM, alex94 wrote: > The log for SD card is the same like the one I posted, when using mainline > u-boot from Denx. When using u-boot from rockchip, the log is slightly > different, but it is the same error. I will put that log here too as soon as > I can. Command 8 fails,

Re: [U-Boot] CVE-2018-18439, CVE-2018-18440 - U-Boot verified boot bypass vulnerabilities

2018-11-12 Thread Heinrich Schuchardt
On 11/12/18 7:56 AM, Simon Goldschmidt wrote: > On Mon, Nov 12, 2018 at 12:22 AM Heinrich Schuchardt > wrote: >> >> On 11/11/18 3:22 PM, Wolfgang Denk wrote: >>> Dear Andrea, >>> >>> In message <20181109094615.gc9...@lambda.inversepath.com> you wrote: Exactly, merely checking RAM size

[U-Boot] [PATCH v2 9/9] efi_selftest: check fdt is marked as runtime data

2018-11-12 Thread Heinrich Schuchardt
Check that the memory area containing the device tree is marked as runtime data. Signed-off-by: Heinrich Schuchardt --- v2: no change --- lib/efi_selftest/efi_selftest_memory.c | 24 1 file changed, 24 insertions(+) diff --git

[U-Boot] [PATCH v2 7/9] efi_loader: fix memory mapping for sandbox

2018-11-12 Thread Heinrich Schuchardt
The sandbox is using a virtual address space. The addresses used insided the flattened device tree use the virtual address space. The EFI subsystem uses the addressable address space and this is where the fdt is stored. Fix all incorrect addresses for the fdt. Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH v2 6/9] efi_loader: macro efi_size_in_pages()

2018-11-12 Thread Heinrich Schuchardt
When allocating EFI memory pages the size in bytes has to be converted to pages. Provide a macro efi_size_in_pages() for this conversion. Use it in the EFI subsystem and correct related comments. Signed-off-by: Heinrich Schuchardt --- v2: no change --- cmd/bootefi.c | 15

[U-Boot] [PATCH v2 8/9] efi_loader: do not use magic address for fdt

2018-11-12 Thread Heinrich Schuchardt
We currently place the flattened device tree 127 MiB from the start of the first memory bank. This may be in a reserved memory area. So let's change the sequence: first create memory reservations and then copy the device tree. Do not use any magic address. Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH v2 2/9] efi_loader: fix efi_find_free_memory()

2018-11-12 Thread Heinrich Schuchardt
In efi_find_free_memory() the sandbox uses its virtual address space. Add the missing mapping. Signed-off-by: Heinrich Schuchardt --- v2: no change --- lib/efi_loader/efi_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_memory.c

[U-Boot] [PATCH v2 3/9] efi_loader: memory reservation for fdt

2018-11-12 Thread Heinrich Schuchardt
In copy_fdt() we allocate EFI pages for the fdt plus extra 12 KiB as EFI_RUNTIME_SERVICES_DATA. Afterwards in efi_install_fdt() we overwrite part of this memory allocation by marking it as EFI_BOOT_SERVICES_DATA. Remove the code marking the fdt as EFI_BOOT_SERVICES_DATA. Cf. commit 17ff6f02f5ad

[U-Boot] [PATCH v2 5/9] efi_loader: correct efi_add_known_memory()

2018-11-12 Thread Heinrich Schuchardt
If a memory bank is not EFI_PAGE_SIZE aligned efi_add_known_memory() the number of memory pages may be incorrectly calculated. We have to round up the start address and to round down the end address to determine which complete pages are provided by the memory bank. Signed-off-by: Heinrich

[U-Boot] [PATCH v2 1/9] fdt_support: fdt reservations on the sandbox

2018-11-12 Thread Heinrich Schuchardt
On the sandbox the memory addresses in the device tree refer to the virtual address space of the sandbox. This implies that the memory reservations for the fdt also have to be converted to this address space. Signed-off-by: Heinrich Schuchardt --- v2: no change --- common/fdt_support.c

[U-Boot] [PATCH v2 0/9] efi_loader: fix fdt handling

2018-11-12 Thread Heinrich Schuchardt
This patch series fixes several errors in the handling of addresses on the sandbox when setting up the flattened device tree. The memory type used for the fdt is corrected. It is checked by a unit test. A macro is supplied to calculate the numbers of pages needed for a buffer. --- v2:

[U-Boot] [PATCH v2 4/9] efi_loader: carving out memory reservations

2018-11-12 Thread Heinrich Schuchardt
The "Devicetree Specification 0.2" does not prescribe that memory reservations must be EFI page aligned. So let's not make such an assumption in our code. Do not carve out the pages for the device tree. This memory area is already marked as EFI_RUNTIME_SERVICES_DATA. Signed-off-by: Heinrich

Re: [U-Boot] [PATCH V2 6/6] test: vboot: add padding pss for rsa signature

2018-11-12 Thread Philippe REYNES
Hi Clément, You're right, those its are in an old-format style. I can add a patch in this serie or send a separate patch to clean the style. What solution do you prefer ? Regards, Philippe - Mail original - De: "Clément Péron" À: s...@chromium.org Cc: "philippe reynes" , "michal

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Boris Brezillon
On Mon, 12 Nov 2018 15:55:18 +0530 Jagan Teki wrote: > On Mon, Nov 12, 2018 at 1:58 PM Boris Brezillon > wrote: > > > > U-boot provides a mean to define default values for mtdids and mtdparts > > when they're not defined in the environment. Patch mtd_probe_devices() > > to use those default

Re: [U-Boot] [PATCH 1/2] rockchip: rk3188: add support for usb-uart functionality

2018-11-12 Thread Heiko Stuebner
Hi Philipp, Am Montag, 8. Oktober 2018, 13:01:56 CET schrieb Heiko Stuebner: > Rockchip socs can route the debug uart pins through the d+ and d- pins > of one specific usbphy per soc. Add a config option and implement the > setting on the rk3188. > > Signed-off-by: Heiko Stuebner any thoughts

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread alex94
The log for SD card is the same like the one I posted, when using mainline u-boot from Denx. When using u-boot from rockchip, the log is slightly different, but it is the same error. I will put that log here too as soon as I can. -- Sent from: http://u-boot.10912.n7.nabble.com/

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread alex94
I tried it, but the same error still occurs :/ -- Sent from: http://u-boot.10912.n7.nabble.com/ ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 14/15] drivers: ddr: introduce DDR driver for i.MX8M

2018-11-12 Thread Fabio Estevam
Hi Peng, On Sun, Nov 11, 2018 at 8:51 AM Peng Fan wrote: > I tried structure before, see https://patchwork.ozlabs.org/patch/857974/ > But that still not good. There are too many registers, I would like > to keep current code. The ddr code are used in NXP vendor tree and are used in > GA

Re: [U-Boot] [PATCH] coreboot: only init usb if necessary

2018-11-12 Thread Bin Meng
Hi Christian, On Mon, Nov 12, 2018 at 10:39 PM Christian Gmeiner wrote: > > Hi Bin > > Am Mo., 12. Nov. 2018 um 14:44 Uhr schrieb Bin Meng : > > > > Hi Christian/Thomas, > > > > On Mon, Nov 12, 2018 at 8:44 PM Christian Gmeiner > > wrote: > > > > > > From: Thomas RIENOESSL > > > > > > Up until

[U-Boot] [PATCH 2/2] imx8: scu: Update call to lists_bind_fdt()

2018-11-12 Thread Bin Meng
This commit should be squashed into commit 2bba642dbaa4 ("dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt()") on u-boot-dm/master branch. Signed-off-by: Bin Meng --- drivers/misc/imx8/scu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 1/2] Revert "imx8qxp_mek: Disable CONFIG_DISPLAY_CPUINFO"

2018-11-12 Thread Bin Meng
This reverts commit c5bbfaf05dc8592b479a44df6abaadbab54fec2b. Disabling CONFIG_DISPLAY_CPUINFO was a temporary solution to get the v2018.11 release out. Now the merge window opens, revert it. Signed-off-by: Bin Meng --- configs/imx8qxp_mek_defconfig | 1 - 1 file changed, 1 deletion(-) diff

Re: [U-Boot] [PATCH] coreboot: only init usb if necessary

2018-11-12 Thread Christian Gmeiner
Hi Bin Am Mo., 12. Nov. 2018 um 14:44 Uhr schrieb Bin Meng : > > Hi Christian/Thomas, > > On Mon, Nov 12, 2018 at 8:44 PM Christian Gmeiner > wrote: > > > > From: Thomas RIENOESSL > > > > Up until now the call to initialize the USB subsystem > > was hardcoded for U-Boot running as a coreboot

Re: [U-Boot] [PATCH u-boot] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-12 Thread Wolfgang Denk
Dear Neil, In message <7206f5df-626e-a367-8933-4e6afb64a...@baylibre.com> you wrote: > > On 06/11/2018 10:25, Neil Armstrong wrote: > > The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. > > This driver, ported from the Linux meson-spi-spifc driver, add support > > for

Re: [U-Boot] [PATCH 1/2] Revert "board_f: Use static print_cpuinfo if CONFIG_CPU is active"

2018-11-12 Thread Bin Meng
Hi Simon, On Mon, Nov 12, 2018 at 9:58 PM Simon Glass wrote: > > Hi Bin, > > On 11 November 2018 at 21:55, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Nov 12, 2018 at 11:25 AM Simon Glass wrote: > > > > > > Hi Bin, > > > > > > On 7 November 2018 at 17:24, Bin Meng wrote: > > > > > > > >

Re: [U-Boot] [PATCH u-boot] spi: Add Amlogic Meson SPI Flash Controller driver

2018-11-12 Thread Neil Armstrong
Hi, On 06/11/2018 10:25, Neil Armstrong wrote: > The Amlogic Meson SoCs embeds a Flash oriented SPI Controller name SPIFC. > This driver, ported from the Linux meson-spi-spifc driver, add support > for this controller on the Amlogic Meson GX SoCs in U-Boot. I found a bug in this driver, I'll

Re: [U-Boot] [PATCH 1/2] Revert "board_f: Use static print_cpuinfo if CONFIG_CPU is active"

2018-11-12 Thread Simon Glass
Hi Bin, On 11 November 2018 at 21:55, Bin Meng wrote: > > Hi Simon, > > On Mon, Nov 12, 2018 at 11:25 AM Simon Glass wrote: > > > > Hi Bin, > > > > On 7 November 2018 at 17:24, Bin Meng wrote: > > > > > > Hi Simon, > > > > > > On Thu, Nov 8, 2018 at 1:09 AM Simon Glass wrote: > > > > > > > >

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread Marek Vasut
On 11/12/2018 10:23 AM, alex94 wrote: > Hi, > I am trying to use eMMC as a storage medium for my > custom board based on Rockchip RV1108. > > I have already made the changes as described in this thread: > >

Re: [U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread Otavio Salvador
Hello, On Mon, Nov 12, 2018 at 10:26 AM alex94 wrote: > I am trying to use eMMC as a storage medium for my > custom board based on Rockchip RV1108. > > I have already made the changes as described in this thread: > >

Re: [U-Boot] [PATCH] coreboot: only init usb if necessary

2018-11-12 Thread Bin Meng
Hi Christian/Thomas, On Mon, Nov 12, 2018 at 8:44 PM Christian Gmeiner wrote: > > From: Thomas RIENOESSL > > Up until now the call to initialize the USB subsystem > was hardcoded for U-Boot running as a coreboot payload. > This was used to enable the use of a USB keyboard > in the U-Boot shell.

[U-Boot] [PATCH v2 4/4] cmd: adc: add an option to scan some or all available channels

2018-11-12 Thread Fabrice Gasnier
Add new option to 'adc' command to do a single scan of: - some channel(s), using mask argument - all channels available on an ADC device (when optional mask is omitted). Signed-off-by: Fabrice Gasnier --- Changes in v2: None cmd/adc.c | 55

[U-Boot] [PATCH v2 0/4] Add adc uclass's channel mask and conversion helpers and enhance adc cmd

2018-11-12 Thread Fabrice Gasnier
This series adds ADC uclass's helpers to - retrieve the ADC device available channels - ease conversions to standard unit (µV) - enhance 'adc' command to print information on available ADC channels - enhance 'adc' command to print conversion result both as raw and µV - enhance 'adc' command to

[U-Boot] [PATCH v2 2/4] cmd: adc: add info on channel mask

2018-11-12 Thread Fabrice Gasnier
Enhance adc info command to report also the channel mask. Signed-off-by: Fabrice Gasnier --- Changes in v2: None cmd/adc.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/adc.c b/cmd/adc.c index c8857ed..39f61c1 100644 --- a/cmd/adc.c +++ b/cmd/adc.c @@ -35,7

[U-Boot] [PATCH v2 1/4] dm: adc: add uclass's mask and conversion helpers

2018-11-12 Thread Fabrice Gasnier
Add two functions to ADC uclass's: - adc_raw_to_uV() to ease ADC raw value conversion to microvolts - adc_channel_mask() to get channels on consumer side Signed-off-by: Fabrice Gasnier --- Changes in v2: - Add calls to the new functions in test/dm/adc.c as suggested by Simon

[U-Boot] [PATCH v2 3/4] cmd: adc: print single conversion also in uV

2018-11-12 Thread Fabrice Gasnier
Use newly introduced adc_raw_to_uV() API to print conversion result both as raw value and micro-volts by default. Signed-off-by: Fabrice Gasnier --- Changes in v2: None cmd/adc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/adc.c b/cmd/adc.c index

Re: [U-Boot] Pull request, v2018.11: u-boot-spi/master

2018-11-12 Thread Jagan Teki
On Mon, Nov 12, 2018 at 10:19 AM Jagan Teki wrote: > > Hi Tom, Please ignore this, will send v2 for the same. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] coreboot: only init usb if necessary

2018-11-12 Thread Christian Gmeiner
From: Thomas RIENOESSL Up until now the call to initialize the USB subsystem was hardcoded for U-Boot running as a coreboot payload. This was used to enable the use of a USB keyboard in the U-Boot shell. However not all boards might need this functionality. As initializing the USB subsystem can

Re: [U-Boot] [PATCH 1/2] spl_spi: Read default speed and mode values from DT

2018-11-12 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Goldschmidt > Sent: vendredi 9 novembre 2018 07:45 > Subject: Re: [PATCH 1/2] spl_spi: Read default speed and mode values from DT > Importance: High > > On Thu, Nov 8, 2018 at 5:58 PM Patrick Delaunay > wrote: > > > > In case of DT boot, don't read default speed and

[U-Boot] USB: ci_udc fails to link in SPL when DM is active

2018-11-12 Thread Sven Schwermer
Hi, I’m trying to build an SPL image for an iMX7 platform with the following options active: CONFIG_SPL=y CONFIG_SPL_USB_GADGET_SUPPORT=y CONFIG_SPL_USB_SDP_SUPPORT=y CONFIG_CMD_USB=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_CI_UDC=y CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_FUNCTION_SDP=y This leads

[U-Boot] Rockchip RV1108 eMMC initialization fail

2018-11-12 Thread alex94
Hi, I am trying to use eMMC as a storage medium for my custom board based on Rockchip RV1108. I have already made the changes as described in this thread: http://u-boot.10912.n7.nabble.com/Rockchip-RV1108-eMMC-support-not-working-td343843.html#a343866 about using eMMC with RV1108. When U-boot

[U-Boot] [PATCH] rpi: Enable command bmp

2018-11-12 Thread Adam Heinrich
This patch enables the bmp command (with gzip support enabled) on all Raspberry Pi boards. The value of CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (required by CONFIG_VIDEO_BMP_GZIP) is set to match resolution of the "official" 7 inch LCD. Signed-off-by: Adam Heinrich Cc: Alexander Graf ---

[U-Boot] [PULL] Please pull u-boot-imx: u-boot-imx-20181112

2018-11-12 Thread Stefano Babic
-imx.git tags/u-boot-imx-20181112 for you to fetch changes up to 43e6f94cbcaf193aeedcf86e85a3ff4c79f66773: imx: mkimage: add size check to the u-boot.imx make target (2018-11-12 11:08:53 +0100) Fix build vf boards + fix gpr_init

Re: [U-Boot] [PATCH v1 2/2] imx: mkimage: add size check to the u-boot.imx make target

2018-11-12 Thread Stefano Babic
On 09/11/18 15:35, Marcel Ziswiler wrote: > Hi Stefano > > On Thu, 2018-11-08 at 15:07 +0100, Stefano Babic wrote: >> Hi Marcel, >> >> On 08/11/18 02:55, Fabio Estevam wrote: >>> [Adding Stefano] >>> >>> On Wed, Nov 7, 2018 at 8:41 PM Marcel Ziswiler >>> wrote: From: Marcel Ziswiler

Re: [U-Boot] [PATCH v4 2/5] Use _AC and UL macros from linux/const.h

2018-11-12 Thread Daniel Schwierzeck
Am So., 11. Nov. 2018 um 11:33 Uhr schrieb Baruch Siach : > > Drop the _AC and UL macros from common.h. Linux headers is the original > source of this macro, so keep its definition in the same header. > > Update existing users of these macros to include const.h directly. > > Cc: Daniel Schwierzeck

Re: [U-Boot] [PATCH v4 3/5] MIPS: drop asm/const.h

2018-11-12 Thread Daniel Schwierzeck
Am So., 11. Nov. 2018 um 11:33 Uhr schrieb Baruch Siach : > > Commit 86f21c96f467368 (mips: Use common _AC macro now.) removed the _AC > definition from const.h. All other macros defined in const.h are not > used anywhere, and there is now no user of this header. Remove this > header. > > Cc:

Re: [U-Boot] [PATCH 2/2] odroid: Update README.odroid for support of Odroid HC1

2018-11-12 Thread Lukasz Majewski
On Mon, 12 Nov 2018 10:32:43 + Anand Moon wrote: > updated READM.odroid for supported Odroid HC1 development board. > > Signed-off-by: Anand Moon > --- > doc/README.odroid | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/doc/README.odroid

Re: [U-Boot] [PATCH 1/2] exynos5-dt-types: add missing dtb file for Odroid HC1/HC2

2018-11-12 Thread Lukasz Majewski
On Mon, 12 Nov 2018 10:32:42 + Anand Moon wrote: > Add missing exynos5422-odroidhc1.dtb needed to set for dfu env. > > Signed-off-by: Anand Moon > --- > include/configs/odroid_xu3.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/configs/odroid_xu3.h >

Re: [U-Boot] [PATCH v2 4/5] cmd: ubi: Remove useless call to mtdparts_init()

2018-11-12 Thread Lukasz Majewski
On Mon, 12 Nov 2018 09:28:08 +0100 Boris Brezillon wrote: > Commit c58fb2cdb3e4 ("cmd: ubi: clean the partition handling") > introduced a call to mtd_probe_devices() in the ubi_attach() path > and this function takes care of parsing mtdparts/mtdids and > creating/registering the associated mtd

Re: [U-Boot] [PATCH v2 5/5] mtd: Drop duplicate MTD_PARTITIONS Kconfig option

2018-11-12 Thread Lukasz Majewski
On Mon, 12 Nov 2018 09:28:09 +0100 Boris Brezillon wrote: > Commit 9c5b00973bce ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig") > introduced a publicly visible Kconfig entry for the > CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning > was in progress, and we somehow did not

Re: [U-Boot] [PATCH v2 3/5] mtd: Make {MTDIDS, MTDPARTS}_DEFAULT visible when MTD_PARTITIONS is selected

2018-11-12 Thread Lukasz Majewski
On Mon, 12 Nov 2018 09:28:07 +0100 Boris Brezillon wrote: > gwventana configs are relying on CMD_UBI to select CMD_MTDPARTS, > which is then making {MTDIDS,MTDPARTS}_DEFAULT options available. > > We are about to remove the 'select CMD_MTDPARTS' statement in the > CMD_UBI entry, but if we do

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Miquel Raynal
Hi Jagan, Jagan Teki wrote on Mon, 12 Nov 2018 15:39:20 +0530: > On Mon, Nov 12, 2018 at 2:54 PM Miquel Raynal > wrote: > > > > Hi Boris, Tom, > > > > Boris Brezillon wrote on Mon, 12 Nov 2018 > > 09:28:05 +0100: > > > > > U-boot provides a mean to define default values for mtdids and

Re: [U-Boot] [PATCH v2 2/5] dfu: nand: Add missing dependency on CMD_MTDPARTS

2018-11-12 Thread Lukasz Majewski
Hi Boris, > dfu_fill_entity_nand() uses find_dev_and_part() and mtdparts_init() > which are provided by cmd/mtdparts.c. > > Add the dependency to avoid build failures when CMD_MTDPARTS is not > selected. > > Reported-by: Jagan Teki > Fixes: 6828e602b722d ("dfu: Migrate to Kconfig") >

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Lukasz Majewski
Hi Boris, > U-boot provides a mean to define default values for mtdids and > mtdparts when they're not defined in the environment. Patch > mtd_probe_devices() to use those default values when > env_get("mtdparts") or env_get("mtdids") return NULL. > > This implementation is based on the logic

[U-Boot] [PATCH 2/2] odroid: Update README.odroid for support of Odroid HC1

2018-11-12 Thread Anand Moon
updated READM.odroid for supported Odroid HC1 development board. Signed-off-by: Anand Moon --- doc/README.odroid | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/README.odroid b/doc/README.odroid index c088ec4cb0..bc77ae3175 100644 --- a/doc/README.odroid +++

[U-Boot] [PATCH 1/2] exynos5-dt-types: add missing dtb file for Odroid HC1/HC2

2018-11-12 Thread Anand Moon
Add missing exynos5422-odroidhc1.dtb needed to set for dfu env. Signed-off-by: Anand Moon --- include/configs/odroid_xu3.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/odroid_xu3.h b/include/configs/odroid_xu3.h index f683ee46e3..b44f58ed15 100644 ---

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Jagan Teki
On Mon, Nov 12, 2018 at 1:58 PM Boris Brezillon wrote: > > U-boot provides a mean to define default values for mtdids and mtdparts > when they're not defined in the environment. Patch mtd_probe_devices() > to use those default values when env_get("mtdparts") or > env_get("mtdids") return NULL. >

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Jagan Teki
On Mon, Nov 12, 2018 at 2:54 PM Miquel Raynal wrote: > > Hi Boris, Tom, > > Boris Brezillon wrote on Mon, 12 Nov 2018 > 09:28:05 +0100: > > > U-boot provides a mean to define default values for mtdids and mtdparts > > when they're not defined in the environment. Patch mtd_probe_devices() > > to

[U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
With -device virtio-blk-device,drive=hd0, it could detect distro boot target. Signed-off-by: Sumit Garg --- Depends on https://patchwork.ozlabs.org/patch/995524/ which adds VirtIO distro boot command. include/configs/qemu-arm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH v2 1/5] mtd: Use default mtdparts/mtids when not defined in the environment

2018-11-12 Thread Miquel Raynal
Hi Boris, Tom, Boris Brezillon wrote on Mon, 12 Nov 2018 09:28:05 +0100: > U-boot provides a mean to define default values for mtdids and mtdparts > when they're not defined in the environment. Patch mtd_probe_devices() > to use those default values when env_get("mtdparts") or >

Re: [U-Boot] [PATCH 1/2] dfu: nand: Add missing dependency on CMD_MTDPARTS

2018-11-12 Thread Boris Brezillon
On Mon, 12 Nov 2018 12:41:15 +0530 Jagan Teki wrote: > On Mon, Nov 12, 2018 at 12:15 PM Boris Brezillon > wrote: > > > > Hi Jagan, > > > > On Mon, 12 Nov 2018 10:13:40 +0530 > > Jagan Teki wrote: > > > > > On Sat, Nov 10, 2018 at 4:52 PM Boris Brezillon > > > wrote: > > > > > > > >

[U-Boot] [PATCH v2 5/5] mtd: Drop duplicate MTD_PARTITIONS Kconfig option

2018-11-12 Thread Boris Brezillon
Commit 9c5b00973bce ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig") introduced a publicly visible Kconfig entry for the CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning was in progress, and we somehow did not notice that the same Kconfig entry was added by commit 4048a5c519a8

  1   2   >