Re: [U-Boot] [linux-sunxi] CONFIG_DM_USB breakage on sunxi boards with musb?

2018-12-18 Thread Jagan Teki
On Wed, Dec 19, 2018 at 1:23 PM Priit Laes wrote: > > Heya! > > I ran into following error when trying to fel-boot > A20 OLinuxino Lime2 eMMC board with latest u-boot: > > [snip] > U-Boot 2019.01-rc2-5-gbf60dae9dd (Dec 19 2018 - 09:47:08 +0200) Allwinner > Technology > > CPU: Allwinner A20

[U-Boot] CONFIG_DM_USB breakage on sunxi boards with musb?

2018-12-18 Thread Priit Laes
Heya! I ran into following error when trying to fel-boot A20 OLinuxino Lime2 eMMC board with latest u-boot: [snip] U-Boot 2019.01-rc2-5-gbf60dae9dd (Dec 19 2018 - 09:47:08 +0200) Allwinner Technology CPU: Allwinner A20 (SUN7I) Model: Olimex A20-OLinuXino-LIME2-eMMC I2C: ready DRAM: 1 G

[U-Boot] [PATCH] arm: K3: Fix usage of CONFIG_SYS_K3_KEY

2018-12-18 Thread Lokesh Vutla
For signing the tiboot3.bin image, an optional KEY file can be passed using CONFIG_SYS_K3_KEY. Right now, Makefile scripts directly takes the config value and uses it for signing. This is okay if the build directory is a sub-directory of source tree, otherwise it fails. Fix it by using the path rel

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Anup Patel
On Wed, Dec 19, 2018 at 11:02 AM Bin Meng wrote: > > Hi Anup, > > On Wed, Dec 19, 2018 at 12:41 PM Anup Patel wrote: > > > > On Tue, Dec 18, 2018 at 4:06 PM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Tue, Dec 18, 2018 at 6:33 PM Anup Patel wrote: > > > > > > > > On Tue, Dec 18, 2018 at

[U-Boot] [PATCH v7 4/4] arm: socfpga: stratix10: Enable Stratix10 FPGA Reconfiguration

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Select CONFIG_FPGA_STRATIX10 for CONFIG_TARGET_SOCFPGA_STRATIX10. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index 06f8527..5e87371 1006

[U-Boot] [PATCH v7 2/4] arm: socfpga: stratix10: Add Stratix 10 FPGA Reconfiguration Driver

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable FPGA reconfiguration support for Stratix 10 SoC. Signed-off-by: Ang, Chee Hong --- drivers/fpga/Kconfig | 11 ++ drivers/fpga/Makefile| 1 + drivers/fpga/stratix10.c | 288 +++ include/altera.h | 4 +

[U-Boot] [PATCH v7 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable 'fpga' command in u-boot. User will be able to use the FPGA command to program the FPGA on Stratix10 SoC. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/misc.h | 4 ++-- arch/arm/mach-socfpga/misc.c | 26 ++--

[U-Boot] [PATCH v7 1/4] arm: socfpga: stratix10: Add macros for mailbox's arguments

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Add macros for specifying number of arguments in mailbox command. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/include/mach/mailbox_s10.h b/arch/arm/mac

[U-Boot] [PATCH v7 0/4] Stratix10 FPGA reconfiguration support

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Summary of v7 changes: - Patch 1/4, 2/4 and 3/4 are unchanged - Patch 4/4: - Removed CONFIG_FPGA_STRATIX10 from defconfig - select CONFIG_FPGA_STRATIX10 when build for Stratix10 platform v6 patchsets: https://lists.denx.de/pipermail/u-boot/2018-December/352423.html An

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Bin Meng
Hi Anup, On Wed, Dec 19, 2018 at 12:41 PM Anup Patel wrote: > > On Tue, Dec 18, 2018 at 4:06 PM Bin Meng wrote: > > > > Hi Anup, > > > > On Tue, Dec 18, 2018 at 6:33 PM Anup Patel wrote: > > > > > > On Tue, Dec 18, 2018 at 3:21 PM Bin Meng wrote: > > > > > > > > Hi Anup, > > > > > > > > On Mon

Re: [U-Boot] [PATCH v6 4/4] arm: socfpga: stratix10: Enable Stratix10 FPGA Reconfiguration

2018-12-18 Thread Ang, Chee Hong
On Tue, 2018-12-18 at 18:47 +0100, Marek Vasut wrote: > On 12/18/2018 09:54 AM, chee.hong@intel.com wrote: > > > > From: "Ang, Chee Hong" > > > > Enable Stratix10 FPGA reconfiguration support in defconfig. > > > > Signed-off-by: Ang, Chee Hong > > --- > >  configs/socfpga_stratix10_defconf

Re: [U-Boot] [PATCH v6 0/4] Stratix10 FPGA reconfiguration support

2018-12-18 Thread Ang, Chee Hong
On Tue, 2018-12-18 at 18:47 +0100, Marek Vasut wrote: > On 12/18/2018 09:54 AM, chee.hong@intel.com wrote: > > > > From: "Ang, Chee Hong" > > > > Summary of v6 changes: > > - Patch 1/4 and 4/4 are unchanged > > - Patch 2/4: > >   - fixed compilation warnings in drivers/fpga/stratix10.c > > -

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Anup Patel
On Tue, Dec 18, 2018 at 4:06 PM Bin Meng wrote: > > Hi Anup, > > On Tue, Dec 18, 2018 at 6:33 PM Anup Patel wrote: > > > > On Tue, Dec 18, 2018 at 3:21 PM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Mon, Dec 17, 2018 at 7:51 PM Anup Patel wrote: > > > > > > > > This patchset enables Cad

[U-Boot] [PATCH] arm: configs: helios4: Change U-Boot offset on SPI Flash

2018-12-18 Thread Aditya Prayoga
SPI flash support on Helios4 [1] has been merge to u-boot/master on commit 8cb8c0c6a83bef ("Merge git://git.denx.de/u-boot-marvell") However, the SPI image build failed after the merge with following message: COPYspl/u-boot-spl.bin MKIMAGE u-boot-spl.kwb Error: Image header (incl. SPL image)

Re: [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC

2018-12-18 Thread Simon Glass
Hi, On Tue, 14 Aug 2018 at 16:12, Vagrant Cascadian wrote: > > On 2018-08-14, Vagrant Cascadian wrote: > >> Also just tried with v2018.09-rc2, same problem. > > With some debugging in mmc enabled (#define DEBUG at the top of dw_mmc.c > mmc-uclass.c mmc.c rockchip_dw_mmc.c) and CONFIG_MMC_TRACE=y,

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread André Przywara
On 19/12/2018 00:51, André Przywara wrote: > On 18/12/2018 12:06, Jagan Teki wrote: >> On Tue, Dec 18, 2018 at 4:09 PM wrote: >>> >>> From: Karl Palsson >>> >>> This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 >>> >>> This causes DRAM init failures on (at least) >>> * allwinner h3 nan

Re: [U-Boot] [PATCH v3 8/8] cmd: env: add "-e" option for handling UEFI variables

2018-12-18 Thread AKASHI Takahiro
Heinrich, On Tue, Dec 18, 2018 at 07:07:02AM +0100, Heinrich Schuchardt wrote: > On 12/18/18 6:05 AM, AKASHI Takahiro wrote: > > "env [print|set] -e" allows for handling uefi variables without > > knowing details about mapping to corresponding u-boot variables. > > > > Signed-off-by: AKASHI Takah

[U-Boot] [PATCH 1/2] net: phy: promote phy_{read, write}_mmd_indirect from ti.c to generic code

2018-12-18 Thread Vladimir Oltean
* These are convenience functions for accessing PHY MMD registers through clause 22 (indirectly through registers 0xD and 0xE), and are exported in the Linux phylib as well. Signed-off-by: Vladimir Oltean --- drivers/net/phy/phy.c | 68 + drivers/n

[U-Boot] [PATCH 0/2] net: phy: allow disabling SmartEEE for Atheros PHYs

2018-12-18 Thread Vladimir Oltean
The first patch moves the implementations of phy_read_mmd_indirect and phy_write_mmd_indirect from the TI PHY driver into the core PHY driver code, and the second patch makes use of these functions to allow users to disable SmartEEE. Vladimir Oltean (2): net: phy: promote phy_{read,write}_mmd_in

[U-Boot] [PATCH 2/2] net: phy: at803x: Address packet drops at low traffic rate due to SmartEEE feature

2018-12-18 Thread Vladimir Oltean
* According to the AR8031 and AR8035 datasheets, smartEEE mode (active by default) makes the PHY enter sleep after a configurable idle time. It does this autonomously, without LPI (Low Power Idle) signals coming from MAC. AR8021 does not appear to support this. * This patch allows disabling t

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Karl Palsson
Michael Nazzareno Trimarchi wrote: > > Do you have error after relocation or before relocation? Does > it go outside and print DRAM size? The only output I get is what I posted in https://lists.denx.de/pipermail/u-boot/2018-December/352036.html (bad output below) >>> Bad behaviour: U-Boot spl

Re: [U-Boot] [PATCH] board: rockchip: rk3399: add Rockpro64 board support

2018-12-18 Thread Kever Yang
Hi Akash,     You'd better add Philipp and Simon in CC for Rockchip SoC based patches, because they are U-Boot rockchip maintainer, and I will be happy if you can also CC me in the list for I may able to share some advice for patches. Thanks, - Kever On 12/04/2018 02:39 PM, Akash Gajjar wrote:

Re: [U-Boot] [RESEND PATCH v2 2/6] efi_loader: Initial HII database protocols

2018-12-18 Thread AKASHI Takahiro
On Tue, Dec 18, 2018 at 06:01:01PM +0100, Heinrich Schuchardt wrote: > On 12/14/18 11:10 AM, AKASHI Takahiro wrote: > > From: Leif Lindholm > > > > This patch provides enough implementation of the following protocols to > > run EDKII's Shell.efi and UEFI SCT: > > > > * EfiHiiDatabaseProtocol >

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread André Przywara
On 18/12/2018 12:06, Jagan Teki wrote: > On Tue, Dec 18, 2018 at 4:09 PM wrote: >> >> From: Karl Palsson >> >> This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 >> >> This causes DRAM init failures on (at least) >> * allwinner h3 nanopi-duo2 >> * allwinner h2+ orangepi zero v1.1 >> >>

[U-Boot] [PATCH 1/1] efi_loader: signature of efi_set_virtual_address_map()

2018-12-18 Thread Heinrich Schuchardt
The first parameter of efi_set_virtual_address_map() is a pointer to a pointer. This should be reflected both in the signature and in the documentation. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 +- lib/efi_loader/efi_runtime.c | 5 +++-- 2 files changed, 4 insertio

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Priit Laes
On Tue, Dec 18, 2018 at 09:17:27PM +0100, Michael Nazzareno Trimarchi wrote: > Hi Karl > > On Tue, Dec 18, 2018 at 7:12 PM Karl Palsson wrote: > > > > > > Jagan Teki wrote: > > > It's 4 days before, "U-Boot] sunxi: regression in dram init for > > > h3 board" > > > > > > 7 days is not 4-days :) >

[U-Boot] [PATCH v2] net: macb: fix mapping of registers

2018-12-18 Thread Ramon Fried
Some architectures (MIPS) needs mapping to access IOMEM. Fix that. Fixes: f1dcc19b213d ("net: macb: Convert to driver model") Signed-off-by: Ramon Fried --- v2: switched to use dev_reamp_addr() to reduce boilerplate code. (as suggested by Daniel Schwierzeck) drivers/net/macb.c | 4 +++- 1

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Michael Nazzareno Trimarchi
Hi Karl On Tue, Dec 18, 2018 at 7:12 PM Karl Palsson wrote: > > > Jagan Teki wrote: > > It's 4 days before, "U-Boot] sunxi: regression in dram init for > > h3 board" > > > > 7 days is not 4-days :) > > True, it was last week, not a week ago. > > > I would expect some debugging on this during the

[U-Boot] [PATCH] sf: Add support for Macronix mx25u12835f

2018-12-18 Thread Vladimir Vid
Add ID for Macronix mx25u12835f flash. Signed-off-by: Vladimir Vid --- drivers/mtd/spi/spi_flash_ids.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/spi_flash_ids.c b/drivers/mtd/spi/spi_flash_ids.c index ad0a0c8150..4876007ef6 100644 --- a/drivers/mtd/spi/spi_flash_ids.c +

Re: [U-Boot] [PATCH v8 10/10] arm: bootm: fix sp detection at end of address range

2018-12-18 Thread Simon Goldschmidt
Am 18.12.2018 um 16:55 schrieb Frank Wunderlich: Hi, seems that Patch0 does not receive Mailinglist and my answer to it got blocked... i get: arch/arm/lib/bootm.c: In function ‘arch_lmb_reserve’: arch/arm/lib/bootm.c:67:8: error: ‘bi_dram’ undeclared (first use in this function); did you mea

Re: [U-Boot] [PATCH v6 0/4] Stratix10 FPGA reconfiguration support

2018-12-18 Thread Marek Vasut
On 12/18/2018 09:54 AM, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" > > Summary of v6 changes: > - Patch 1/4 and 4/4 are unchanged > - Patch 2/4: > - fixed compilation warnings in drivers/fpga/stratix10.c > - Patch 3/4: > - socfpga_fpga_add() in misc.c > - define fpga descriptor

Re: [U-Boot] [PATCH v6 4/4] arm: socfpga: stratix10: Enable Stratix10 FPGA Reconfiguration

2018-12-18 Thread Marek Vasut
On 12/18/2018 09:54 AM, chee.hong@intel.com wrote: > From: "Ang, Chee Hong" > > Enable Stratix10 FPGA reconfiguration support in defconfig. > > Signed-off-by: Ang, Chee Hong > --- > configs/socfpga_stratix10_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/socfpg

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Karl Palsson
Jagan Teki wrote: > It's 4 days before, "U-Boot] sunxi: regression in dram init for > h3 board" > > 7 days is not 4-days :) True, it was last week, not a week ago. > I would expect some debugging on this during these days and > find the real root cause. Just so there's no unmet expectations h

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Karl Palsson
Jagan Teki wrote: > On Tue, Dec 18, 2018 at 4:09 PM wrote: > > > > From: Karl Palsson > > > > This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 > > > > This causes DRAM init failures on (at least) > > * allwinner h3 nanopi-duo2 > > * allwinner h2+ orangepi zero v1.1 > > > > Signed-of

[U-Boot] [PATCH] api: storage: Fix enumeration of storage devices

2018-12-18 Thread Cristian Ciocaltea
dev_stor_get() is not able to find the next available device in the current storage group when the previous enumerated device belongs to a different group or class (e.g. network). The root cause is the device group iterator not being reset after an unsuccessful search for the last returned device

[U-Boot] [PATCH] fsl-layerscape: dpaa: fix fsl-mc status in fdt with bootefi

2018-12-18 Thread Mian Yousaf Kaukab
fsl-mc lazyapply command applies dpl from efi_exit_boot_services(). Status of fsl-mc node in working fdt is updated at this stage. However, an efi application like grub may already have copied the fdt. So the updates to fdt done at efi_exit_boot_services() may not be visible to the OS. Fix it by up

[U-Boot] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread karlp
From: Karl Palsson This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 This causes DRAM init failures on (at least) * allwinner h3 nanopi-duo2 * allwinner h2+ orangepi zero v1.1 Signed-off-by: Karl Palsson --- Ideally, this should get into 2019.01, so that this release is not broken

[U-Boot] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread karlp
From: Karl Palsson This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 This causes DRAM init failures on (at least) * allwinner h3 nanopi-duo2 * allwinner h2+ orangepi zero v1.1 Signed-off-by: Karl Palsson --- Ideally, this should get into 2019.01, so that this release is not broken

[U-Boot] [PATCH v8 00/10] Fix CVE-2018-18440 and CVE-2018-18439

2018-12-18 Thread Simon Goldschmidt
This series fixes CVE-2018-18440 ("insufficient boundary checks in filesystem image load") by adding restrictions to the 'load' command and fixes CVE-2018-18439 ("insufficient boundary checks in network image boot") by adding restrictions to the tftp code. The functions from lmb.c are used to setup

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-18 Thread Vignesh R
On 18-Dec-18 6:02 PM, Jagan Teki wrote: > On Sat, Dec 15, 2018 at 9:13 PM Vignesh R wrote: >> > 2) For BAR support, lets place it as it is and support via spi-nor Problem is, it not desirable to use BAR as default because its not stateless and does not work with all flash parts

[U-Boot] [PATCH 1/1] lib: crc32: mark static variable as __efi_runtime_data

2018-12-18 Thread Heinrich Schuchardt
In commit 483dbab9f931 ("lib: crc32: mark function crc32() as __efi_runtime") one local static variable was missed. It did not end up in the __efi_runtime_data section as it should. If CONFIG_DYNAMIC_CRC_TABLE=y a data abort execption may occur when the UEFI payload calls the SetVirtualAddressMap(

Re: [U-Boot] [RESEND PATCH v2 2/6] efi_loader: Initial HII database protocols

2018-12-18 Thread Heinrich Schuchardt
On 12/14/18 11:10 AM, AKASHI Takahiro wrote: > From: Leif Lindholm > > This patch provides enough implementation of the following protocols to > run EDKII's Shell.efi and UEFI SCT: > > * EfiHiiDatabaseProtocol > * EfiHiiStringProtocol > > Not implemented are: > * ExportPackageLists() >

Re: [U-Boot] [BeagleBone Black] Possible bug in U-Boot efi loader for BeagleBone Black

2018-12-18 Thread Heinrich Schuchardt
On 12/18/18 2:04 PM, Dominik Adamski wrote: > On 12/14/18 9:15 PM, Heinrich Schuchardt wrote: >> On 12/14/18 3:58 PM, Dominik Adamski wrote: >>> On 12/12/18 7:11 PM, Heinrich Schuchardt wrote: On 12/12/18 3:02 PM, Dominik Adamski wrote: > Hello, > I think that I have found a bug in U-B

Re: [U-Boot] [PATCH 2/2] dm: video: lcd: MIGRATION: Add migration plan for video

2018-12-18 Thread Jagan Teki
On Mon, Dec 17, 2018 at 2:01 AM Simon Glass wrote: > > Add a migration plan for video which is an important subsystem in U-Boot. > > Signed-off-by: Simon Glass > --- > > Makefile | 10 ++ > doc/driver-model/MIGRATION.txt | 8 > 2 files changed, 18 insertio

Re: [U-Boot] [PATCH v8 10/10] arm: bootm: fix sp detection at end of address range

2018-12-18 Thread Frank Wunderlich
Hi, seems that Patch0 does not receive Mailinglist and my answer to it got blocked... i get: arch/arm/lib/bootm.c: In function ‘arch_lmb_reserve’: arch/arm/lib/bootm.c:67:8: error: ‘bi_dram’ undeclared (first use in this function); did you mean ‘blk_dread’? if (!bi_dram[bank].size || sp < g

[U-Boot] [PATCH] cmd: image_info: Add checking of default FIT config

2018-12-18 Thread Bryan O'Donoghue
This patch adds a check for the default FIT config to iminfo. Once applied any signing of the config will show a pass fail similar to rsa+/rsa-. Output looks like this: Hash(es) for Image 0 (kernel@1): sha1+ Hash(es) for Image 1 (f...@imx7s-warp.dtb): sha1+ Hash(es) for Image 2 (ramdisk@

Re: [U-Boot] [PATCH v3 0/5] Add support for MIPS Creator CI20

2018-12-18 Thread Ezequiel Garcia
On Tue, 2018-12-18 at 01:05 +0100, Daniel Schwierzeck wrote: > > Am 16.12.18 um 23:25 schrieb Ezequiel Garcia: > > A new round, addressing feedback from Daniel. > > > > Daniel: do you think this is acceptable as a first submission? > > > > v3: > > * Cleanup SoC reset logic. > > * Move gpio dri

Re: [U-Boot] [PATCH v4 06/10] dm: usb: create a new UCLASS ID for USB gadget devices

2018-12-18 Thread Adam Ford
On Tue, Dec 18, 2018 at 6:08 AM Jagan Teki wrote: > > On Thu, Nov 29, 2018 at 3:30 PM Jean-Jacques Hiblot wrote: > > > > UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host > > controllers, not gadget devices. > > Adding a new UCLASS for gadget devices alone. > > > > Also move the

Re: [U-Boot] [PATCH 1/2] mips: mt76xx: Flush d-cache in arch_misc_init() to solve d-cache issues

2018-12-18 Thread Stefan Roese
Hi Daniel, On 18.12.18 13:16, Daniel Schwierzeck wrote: Am 18.12.18 um 10:27 schrieb Stefan Roese: It has been noticed, that sometimes the d-cache is not in a "clean-state" when U-Boot is running on MT7688. This was detected when using the ethernet driver (which uses d-cache) and a TFTP comma

Re: [U-Boot] [PATCH] poplar: save environment at a different offset

2018-12-18 Thread Alex Elder
On 12/17/18 9:08 PM, Shawn Guo wrote: > From: Alex Elder > > Change CONFIG_ENV_OFFSET for Poplar to be 1MB further into the eMMC > than before. This puts it immediately prior to the space we are > reserving offset 0x20-0x40 for UEFI to save its persistent > data. Define CONFIG_ENV_SIZE

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Jagan Teki
On Tue, Dec 18, 2018 at 6:02 PM Karl Palsson wrote: > > > Jagan Teki wrote: > > On Tue, Dec 18, 2018 at 4:09 PM wrote: > > > > > > From: Karl Palsson > > > > > > This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 > > > > > > This causes DRAM init failures on (at least) > > > * allwinn

Re: [U-Boot] [PATCH 00/16] SF: Migrate to Linux SPI NOR framework

2018-12-18 Thread Jagan Teki
On Sat, Dec 15, 2018 at 9:13 PM Vignesh R wrote: > > >>> 2) For BAR support, lets place it as it is and support via spi-nor > >> > >> Problem is, it not desirable to use BAR as default because its not > >> stateless and does not work with all flash parts. OTOH, it seems like 4 > >> byte addressing

Re: [U-Boot] [PATCH 1/2] mips: mt76xx: Flush d-cache in arch_misc_init() to solve d-cache issues

2018-12-18 Thread Daniel Schwierzeck
Am 18.12.18 um 10:27 schrieb Stefan Roese: > It has been noticed, that sometimes the d-cache is not in a > "clean-state" when U-Boot is running on MT7688. This was detected when > using the ethernet driver (which uses d-cache) and a TFTP command does > not complete. Flushing the complete d-cache

Re: [U-Boot] [PATCH v4 06/10] dm: usb: create a new UCLASS ID for USB gadget devices

2018-12-18 Thread Jagan Teki
On Thu, Nov 29, 2018 at 3:30 PM Jean-Jacques Hiblot wrote: > > UCLASS_USB_DEV_GENERIC was meant for USB devices connected to host > controllers, not gadget devices. > Adding a new UCLASS for gadget devices alone. > > Also move the generic DM code for USB gadgets in a separate file for > clarity. >

Re: [U-Boot] [linux-sunxi] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Jagan Teki
On Tue, Dec 18, 2018 at 4:09 PM wrote: > > From: Karl Palsson > > This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 > > This causes DRAM init failures on (at least) > * allwinner h3 nanopi-duo2 > * allwinner h2+ orangepi zero v1.1 > > Signed-off-by: Karl Palsson > --- > > Ideally, thi

[U-Boot] [PATCH] dm: pinctrl: Prevent (re-)configuring pins when already done before relocation

2018-12-18 Thread Lukasz Majewski
This commit prevents from re-configuring pins if those were configured before relocation. Some pins - like UART or DDR must be setup before relocation (as they have 'u-boot,dm-pre-reloc' property set in DTS). Without this change, those pins are re-configured after relocation (pre_reloc_only = 0, s

Re: [U-Boot] [PATCH] Revert "sunxi: board: Print error after power initialization fails"

2018-12-18 Thread Priit Laes
On Tue, Dec 18, 2018 at 11:11:54AM +, ka...@tweak.net.au wrote: > From: Karl Palsson > > This reverts commit a8011eb84dfac5187cebf00ed8bc981bdb5c1fa1 > > This causes DRAM init failures on (at least) > * allwinner h3 nanopi-duo2 > * allwinner h2+ orangepi zero v1.1 > > Signed-off-by: Karl Pa

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Bin Meng
Hi Anup, On Tue, Dec 18, 2018 at 6:33 PM Anup Patel wrote: > > On Tue, Dec 18, 2018 at 3:21 PM Bin Meng wrote: > > > > Hi Anup, > > > > On Mon, Dec 17, 2018 at 7:51 PM Anup Patel wrote: > > > > > > This patchset enables Cadance MACB ethernet driver for > > > QEMU sifive_u machine. The Cadance M

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Anup Patel
On Tue, Dec 18, 2018 at 3:21 PM Bin Meng wrote: > > Hi Anup, > > On Mon, Dec 17, 2018 at 7:51 PM Anup Patel wrote: > > > > This patchset enables Cadance MACB ethernet driver for > > QEMU sifive_u machine. The Cadance MACB ethernet driver > > works fine for QEMU sifive_u machince in both M-mode an

[U-Boot] Uboot send pull request

2018-12-18 Thread uboot
Hi Tom, Please pull some riscv update: 1. Add DM drivers to support RISC-V CPU and timer, plus some bug fixes. 2. Support SiFive UART 3. Rename ax25-ae350 defconfig https://travis-ci.org/rickchen36/u-boot-riscv/builds/469364551 Thanks Rick The following changes since commit 1f2e948d6d53f77a2d

[U-Boot] [PATCH 1/2] poplar: add DWC2 OTG gadget support

2018-12-18 Thread Shawn Guo
It enables DWC2 OTG gadget driver support for Poplar board. As usb2_phy_init() is being always called from board_init(), we can save the call from board_usb_init(). Signed-off-by: Shawn Guo --- .../asm/arch-hi3798cv200/hi3798cv200.h| 5 board/hisilicon/poplar/poplar.c

[U-Boot] [PATCH 2/2] poplar_defconfig: enable fastboot support

2018-12-18 Thread Shawn Guo
It enables fastboot support on Poplar board by using DWC2 OTG gadget driver. Signed-off-by: Shawn Guo --- configs/poplar_defconfig | 14 ++ 1 file changed, 14 insertions(+) diff --git a/configs/poplar_defconfig b/configs/poplar_defconfig index 946e7caf6bea..48e9c6eaac26 100644 --- a

[U-Boot] [PATCH 0/2] Enable fastboot support for Poplar board

2018-12-18 Thread Shawn Guo
It enables DWC2 OTG gadget driver and fastboot support for Poplar board. Shawn Guo (2): poplar: add DWC2 OTG gadget support poplar_defconfig: enable fastboot support .../asm/arch-hi3798cv200/hi3798cv200.h| 5 board/hisilicon/poplar/poplar.c | 28 ++

Re: [U-Boot] [PATCH 0/3] Ethernet support for QEMU sifive_u machine

2018-12-18 Thread Bin Meng
Hi Anup, On Mon, Dec 17, 2018 at 7:51 PM Anup Patel wrote: > > This patchset enables Cadance MACB ethernet driver for > QEMU sifive_u machine. The Cadance MACB ethernet driver > works fine for QEMU sifive_u machince in both M-mode and > S-mode with some minor fixes. > > The patches are based upon

Re: [U-Boot] [PATCH 1/3] riscv: Add asm/dma-mapping.h for DMA mappings

2018-12-18 Thread Bin Meng
On Mon, Dec 17, 2018 at 7:52 PM Anup Patel wrote: > > From: Anup Patel > > This patch adds asm/dma-mapping.h for Linux-like DMA mappings > APIs required by some of the drivers (such as, Cadance MACB > Ethernet driver). > > Signed-off-by: Anup Patel > --- > arch/riscv/include/asm/dma-mapping.h |

Re: [U-Boot] [PATCH 3/3] riscv: qemu: Imply MACB ethernet for emulation

2018-12-18 Thread Bin Meng
On Mon, Dec 17, 2018 at 7:52 PM Anup Patel wrote: > > From: Anup Patel > > This patch enables Cadence MACB ethernet driver for QEMU RISC-V > emulation by implying MACB, MII, RGMII and NET_RANDOM_ETHADDR on > BOARD_SPECIFIC_OPTIONS. > > Signed-off-by: Anup Patel > --- > board/emulation/qemu-risc

Re: [U-Boot] [PATCH 2/3] net: macb: Fix clk API usage for RISC-V systems

2018-12-18 Thread Bin Meng
On Mon, Dec 17, 2018 at 7:52 PM Anup Patel wrote: > > From: Anup Patel > > This patch does following fixes in MACB ethernet driver > for using it on RISC-V systems (particularly QEMU sifive_u > machine): > 1. asm/arch/clk.h is not available on RISC-V port so include >it only for non-RISC-V sy

[U-Boot] [PATCH 2/2] mips: mt76xx: linkit/gardena: Don't use CONFIG_OF_EMBED

2018-12-18 Thread Stefan Roese
Building with CONFIG_OF_EMBED generates build warnings, as it should only be used for debugging purposes. So let's move all MT7688 targets to CONFIG_OF_SEPARATE instead with this patch. Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1

[U-Boot] [PATCH 1/2] mips: mt76xx: Flush d-cache in arch_misc_init() to solve d-cache issues

2018-12-18 Thread Stefan Roese
It has been noticed, that sometimes the d-cache is not in a "clean-state" when U-Boot is running on MT7688. This was detected when using the ethernet driver (which uses d-cache) and a TFTP command does not complete. Flushing the complete d-cache (again?) here seems to fix this issue. Signed-off-by

Re: [U-Boot] [PATCH] fs: cbfs: remove wrong header validation

2018-12-18 Thread Bin Meng
Hi Christian, On Tue, Dec 18, 2018 at 4:18 PM Christian Gmeiner wrote: > > Am Mi., 12. Dez. 2018 um 15:27 Uhr schrieb Christian Gmeiner > : > > > > Hi Bin, > > > > Finally I have some time to look deeper into this issue. > > > > > > > > On Thu, Sep 20, 2018 at 10:47 PM Christian Gmeiner > > > wr

[U-Boot] [PATCH v6 2/4] arm: socfpga: stratix10: Add Stratix 10 FPGA Reconfiguration Driver

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable FPGA reconfiguration support for Stratix 10 SoC. Signed-off-by: Ang, Chee Hong --- drivers/fpga/Kconfig | 11 ++ drivers/fpga/Makefile| 1 + drivers/fpga/stratix10.c | 288 +++ include/altera.h | 4 +

[U-Boot] [PATCH v6 4/4] arm: socfpga: stratix10: Enable Stratix10 FPGA Reconfiguration

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable Stratix10 FPGA reconfiguration support in defconfig. Signed-off-by: Ang, Chee Hong --- configs/socfpga_stratix10_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig index 5f3d733.

[U-Boot] [PATCH v6 1/4] arm: socfpga: stratix10: Add macros for mailbox's arguments

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Add macros for specifying number of arguments in mailbox command. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/mailbox_s10.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/include/mach/mailbox_s10.h b/arch/arm/mac

[U-Boot] [PATCH v6 3/4] arm: socfpga: stratix10: Add Stratix10 FPGA into FPGA device table

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Enable 'fpga' command in u-boot. User will be able to use the FPGA command to program the FPGA on Stratix10 SoC. Signed-off-by: Ang, Chee Hong --- arch/arm/mach-socfpga/include/mach/misc.h | 4 ++-- arch/arm/mach-socfpga/misc.c | 26 ++--

[U-Boot] [PATCH v6 0/4] Stratix10 FPGA reconfiguration support

2018-12-18 Thread chee . hong . ang
From: "Ang, Chee Hong" Summary of v6 changes: - Patch 1/4 and 4/4 are unchanged - Patch 2/4: - fixed compilation warnings in drivers/fpga/stratix10.c - Patch 3/4: - socfpga_fpga_add() in misc.c - define fpga descriptor structure in misc_arria10.c, misc_gen5.c & misc_s10.c respectively

Re: [U-Boot] Unable to saveenv to MMC

2018-12-18 Thread Heinrich Schuchardt
On 12/6/18 7:12 PM, Robin Polak wrote: > Hello. > > I'm having trouble persisting my environment variables to the SD Card > onto which I have FAT formatted and then written U-Boot to using the > following command: > > sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/disk2 bs=1024 seek=8 > > I get

Re: [U-Boot] [PATCH] fs: cbfs: remove wrong header validation

2018-12-18 Thread Christian Gmeiner
Am Mi., 12. Dez. 2018 um 15:27 Uhr schrieb Christian Gmeiner : > > Hi Bin, > > Finally I have some time to look deeper into this issue. > > > > > On Thu, Sep 20, 2018 at 10:47 PM Christian Gmeiner > > wrote: > > > > > > Coreboot does not contain such a check: > > > https://github.com/coreboot/core