Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-27 Thread Jaehoon Chung
On 08/28/2017 05:17 AM, Tom Rini wrote: > On Sun, Aug 27, 2017 at 02:10:08PM -0600, Simon Glass wrote: >> Hi, >> >> On 25 August 2017 at 02:16, Ziyuan wrote: >>> hi Jaehoon, >>> >>> On 07/28/2017 09:05 PM, Jaehoon Chung wrote: Hi Kever, On 07/26/2017

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-27 Thread Ziyuan
hi simon, On 08/28/2017 04:10 AM, Simon Glass wrote: Hi, On 25 August 2017 at 02:16, Ziyuan wrote: hi Jaehoon, On 07/28/2017 09:05 PM, Jaehoon Chung wrote: Hi Kever, On 07/26/2017 08:33 PM, Kever Yang wrote: Hi Jaehoon, What's the status of this patch set

Re: [U-Boot] [PATCH v2 6/6] x86: Enable early timer for chromebook_link

2017-08-27 Thread Bin Meng
On Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > Enable this option for link so that the timer is available earlier. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Add new patch to enable early timer for chromebook_link > >

Re: [U-Boot] [PATCH v2 4/6] bootstage: Drop unused options

2017-08-27 Thread Bin Meng
On Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > The CONFIG_BOOTSTAGE_USER_COUNT option is no-longer needed since we can now > support any number of user IDs. Also BOOTSTAGE_ID_COUNT is not needed now. > > Drop these unused options. > > Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH v2 5/6] bootstage: Provide a separate record count setting for SPL

2017-08-27 Thread Bin Meng
On Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > With SPL we often have limited memory and do not need very many bootstage > records. Add a separate Kconfig option for SPL. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > >

Re: [U-Boot] [PATCH v2 3/6] dm: x86: Update timer_get_boot_us to work before DM is ready

2017-08-27 Thread Bin Meng
Hi Simon, On Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > Use the new separate init function so that we can make use of the timer > before driver model is started up. > > At some point we should consider adding the microsecond timer to the timer > uclass interface since

Re: [U-Boot] [PATCH v2 2/6] dm: x86: Allow TSC timer to be used before DM is ready

2017-08-27 Thread Bin Meng
n Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > With bootstage we need access to the timer before driver model is set up. > To handle this, put the required state in global_data and provide a new > function to set up the device, separate from the driver's probe() method.

Re: [U-Boot] [PATCH v2 1/6] board_f: Drop the timer after relocation

2017-08-27 Thread Bin Meng
Hi Simon, On Sun, Aug 27, 2017 at 11:23 PM, Simon Glass wrote: > Once U-Boot relocates itself the existing driver-model timer (if any) is > no-longer valid until the device is reinitialised. Any use of the device > may cause a crash. To handle this, set the timer to NULL after

[U-Boot] [PATCH] armv8: fsl: Use correct conditional compile for ls1012a

2017-08-27 Thread Ran Wang
According current code base, CONFIG_LS1012A should be CONFIG_ARCH_LS1012A, or function fsl_fdt_disable(blob) will be wrongly called to disable all dwc3 USB nodes on LS1012A, which cause Linux USB function stop working at all. Signed-off-by: Ran Wang ---

Re: [U-Boot] [PATCH v2 5/6] rename GPT partitions to detect boot failure

2017-08-27 Thread Chaiken, Alison
On 2017-05-31 01:12, Lukasz Majewski wrote: [ . . . ] And another request -> Could you consider adding tests for those new gpt commands to the 'sandbox' (sandbox_defconfig) ? Then you can 'mount' some gpt test image ('host' command) and use it with: gpt host X . The GPT functionality

[U-Boot] [RFC] ARM: davinci: da850: Enable Caches for DA850-EVM

2017-08-27 Thread Adam Ford
What starting up the DA850-EVM, U-Boot generates a warning: WARNING: Caches not enabled Looking at other arm926 processors, this is an attempt to enable the caches and remove the warning. I am notsure who the proper TI or ARM people are to review this. Signed-off-by: Adam Ford

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 13:21, Sébastien Szymanski wrote: > Hello, > >> On 27 Aug 2017, at 21:17, Stefan Agner wrote: >> >> On 2017-08-27 01:45, Sébastien Szymanski wrote: >>> Hello, >>> On 25 Aug 2017, at 13:33, Stefano Babic wrote: On 16/08/2017 02:49,

[U-Boot] [PATCH] imx: mx7: Add support for USB boot mode

2017-08-27 Thread Eric Nelson
This adds support for USB boot mode on the i.MX7D SoC, which is most useful when doing U-Boot development on this chip. i.e., it enables you to enter the ROM boot loader's serial download protocol using the command: => bmode usb Signed-off-by: Eric Nelson ---

Re: [U-Boot] [PATCH] rockchip: clk: rk3368: always run rkclk_init when driver probe

2017-08-27 Thread Dr. Philipp Tomsich
> On 23 Aug 2017, at 09:26, Andy Yan wrote: > > commit 4bebf94e8544("rockchip: clk: rk3368: do not change > CPLL/GPLL before returning to BROM") limits the pll can only > be setup in SPL stage, but there are still some rk3368 based > boards have not use SPL yet, so they

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Sébastien Szymanski
Hello, > On 27 Aug 2017, at 21:17, Stefan Agner wrote: > > On 2017-08-27 01:45, Sébastien Szymanski wrote: >> Hello, >> >>> On 25 Aug 2017, at 13:33, Stefano Babic wrote: >>> >>> On 16/08/2017 02:49, Stefan Agner wrote: From: Stefan Agner

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-27 Thread Tom Rini
On Sun, Aug 27, 2017 at 02:10:08PM -0600, Simon Glass wrote: > Hi, > > On 25 August 2017 at 02:16, Ziyuan wrote: > > hi Jaehoon, > > > > On 07/28/2017 09:05 PM, Jaehoon Chung wrote: > >> > >> Hi Kever, > >> > >> On 07/26/2017 08:33 PM, Kever Yang wrote: > >>> > >>> Hi

Re: [U-Boot] [PATCH 00/23] efi_loader implement missing functions

2017-08-27 Thread Simon Glass
Hi Heinrich, On 26 August 2017 at 16:51, Heinrich Schuchardt wrote: > This patch sequence contains all patches needed to load > iPXE and use it for downloading and executing images > via https or http or to mount iSCSI volumes. > > Network speed on an Odroid C2 reached 30

Re: [U-Boot] [PATCH] moveconfig: fix error message in do_autoconf()

2017-08-27 Thread Simon Glass
+Tom On 27 August 2017 at 02:00, Chris Packham wrote: > Move the % arch outside the double quote so that the missing toolchain > message is displayed correctly. > > Signed-off-by: Chris Packham > --- > > tools/moveconfig.py | 2 +- > 1 file

Re: [U-Boot] Patman avoiding bounces

2017-08-27 Thread Simon Glass
Hi Chris, On 26 August 2017 at 18:17, Bin Meng wrote: > +Simon, Tom, Wolfgang, > > On Sun, Aug 27, 2017 at 7:59 AM, Chris Packham > wrote: >> Hi, >> >> I recently sent a few patches using patman and ran into two problems. >> >> The first is a set of

Re: [U-Boot] [PATCH] rockchip: clk: rk3368: always run rkclk_init when driver probe

2017-08-27 Thread Simon Glass
Hi Andy On 23 August 2017 at 01:26, Andy Yan wrote: > commit 4bebf94e8544("rockchip: clk: rk3368: do not change > CPLL/GPLL before returning to BROM") limits the pll can only > be setup in SPL stage, but there are still some rk3368 based > boards have not use SPL yet, so

Re: [U-Boot] [PATCH v4 8/9] spl: dm: Make it possible for the SPL to pick its own DTB from a FIT

2017-08-27 Thread Simon Glass
Hi Jean-Jacques, On 24 August 2017 at 04:52, Jean-Jacques Hiblot wrote: > Hi Simon, > > On 13/08/2017 23:35, Simon Glass wrote: >> >> Hi Jean-Jacques, >> >> On 7 August 2017 at 04:07, Jean-Jacques Hiblot wrote: >>> >>> u-boot can be embedded within a FIT image

Re: [U-Boot] [PATCH] blk: Remove various places that do flush cache after read

2017-08-27 Thread Simon Glass
On 21 August 2017 at 21:46, Bin Meng wrote: > All these places seem to inherit the codes from the MMC driver where > a FIXME was put in the comment. However the correct operation after > read should be cache invalidate, not flush. > > The underlying drivers should be

Re: [U-Boot] [PATCH 1/2] ofnode: add {ofnode, dev}_read_resource_byname()

2017-08-27 Thread Simon Glass
On 25 August 2017 at 10:12, Masahiro Yamada wrote: > Linux supports platform_get_resource_byname() to look up a resource > by name. > > We want a similar helper. It is useful when a device node has two > or more named register regions. > > Signed-off-by: Masahiro

Re: [U-Boot] [PATCH] fdt: fix 'prop (...) not found!' error in 'fdt set' command

2017-08-27 Thread Simon Glass
On 18 August 2017 at 06:41, Hannes Schmelzer wrote: > This commit brings things back to the well known working state of the > command. > - > With commit 9620d87259572ef21f0df60988d9a932ca673779 > (cmd/fdt: support single value replacement within an array) > > there was an error

Re: [U-Boot] [PATCH] rk3288: Add Vyasa initial board support

2017-08-27 Thread Simon Glass
On 26 August 2017 at 01:23, Jagan Teki wrote: > From: Jagan Teki > > This patch adds support for Vyasa RK3288 initial board > support from Amarula. This sentence says 'support' twice. > > Boot from SDMMC: > --- > U-Boot SPL

Re: [U-Boot] [PATCH 00/22] mmc: Add support for HS200 and UHS modes

2017-08-27 Thread Simon Glass
Hi, On 25 August 2017 at 02:16, Ziyuan wrote: > hi Jaehoon, > > On 07/28/2017 09:05 PM, Jaehoon Chung wrote: >> >> Hi Kever, >> >> On 07/26/2017 08:33 PM, Kever Yang wrote: >>> >>> Hi Jaehoon, >>> >>> >>> What's the status of this patch set now? >>> >>> Can we

Re: [U-Boot] [PATCH v5 01/30] Makefile: Rename 'env' target to 'environ'

2017-08-27 Thread Simon Glass
Hi Mans, On 18 August 2017 at 08:31, Måns Rullgård wrote: > Simon Glass writes: > >> This target stops us using 'env' as a subdirectory. It is not mentioned in >> the help so seems to be an internal target. Rename it. >> >> Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH] fix: fw_env: Prevent writing error message on special files, which don't support fsync

2017-08-27 Thread Tom Rini
On Sun, Aug 27, 2017 at 09:20:19PM +0200, Łukasz Majewski wrote: > Hi Michael, > > >Hi Lukasz, > > > >Am Sonntag, 27. August 2017, 13:46:22 CEST schrieb Lukasz Majewski: > >>According to fsync specification [1] some special files (e.g., a pipe, FIFO, > >>or socket) don't support synchronization

Re: [U-Boot] [PATCH] fix: fw_env: Prevent writing error message on special files, which don't support fsync

2017-08-27 Thread Łukasz Majewski
Hi Michael, Hi Lukasz, Am Sonntag, 27. August 2017, 13:46:22 CEST schrieb Lukasz Majewski: According to fsync specification [1] some special files (e.g., a pipe, FIFO, or socket) don't support synchronization and return either EROFS or EINVAL. On the linux side the sys_fsync -> do_fsync()

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Stefan Agner
On 2017-08-27 01:45, Sébastien Szymanski wrote: > Hello, > >> On 25 Aug 2017, at 13:33, Stefano Babic wrote: >> >> On 16/08/2017 02:49, Stefan Agner wrote: >>> From: Stefan Agner >>> >>> i.MX 6 serial downloader is not necessarily booting via UART but

Re: [U-Boot] [PATCH] fix: fw_env: Prevent writing error message on special files, which don't support fsync

2017-08-27 Thread Michael Heimpold
Hi Lukasz, Am Sonntag, 27. August 2017, 13:46:22 CEST schrieb Lukasz Majewski: > According to fsync specification [1] some special files (e.g., a pipe, FIFO, > or socket) don't support synchronization and return either EROFS or EINVAL. > > On the linux side the sys_fsync -> do_fsync() checks if

Re: [U-Boot] [PATCH v2 4/4] rockchip: enable rockusb for all rockchip SoCs

2017-08-27 Thread Tom Rini
On Sat, Aug 26, 2017 at 07:28:05PM +0200, Łukasz Majewski wrote: > On 08/26/2017 02:46 PM, Tom Rini wrote: > >On Fri, Aug 25, 2017 at 01:06:55PM +0200, Łukasz Majewski wrote: > >>Hi Philipp, Andy, Tom > >>> > On 25 Aug 2017, at 03:51, Andy Yan wrote: > > Hi

[U-Boot] [PATCH] env: Fix operation of 'make environ'

2017-08-27 Thread Simon Glass
This was broken by the recent environment refactoring. Specifically: $ make environ scripts/Makefile.build:59: tools/environ/Makefile: No such file or directory make[1]: *** No rule to make target 'tools/environ/Makefile'. Stop. make: *** [Makefile:1469: environ] Error 2 Fix this by updating

[U-Boot] [PATCH] sh: Fix linking of ms7722se

2017-08-27 Thread Tom Rini
While it is true that we no longer have 'ppcenv' and similar sections, including env/embedded.o at all results in the text/etc sections being available for the rest of the link. This in turn is required for the setup used on ms7722se. This also, likely, needs further fine-tuning. Fixes:

[U-Boot] [PATCH v2 6/6] x86: Enable early timer for chromebook_link

2017-08-27 Thread Simon Glass
Enable this option for link so that the timer is available earlier. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to enable early timer for chromebook_link configs/chromebook_link64_defconfig | 1 + configs/chromebook_link_defconfig | 1 + 2 files changed,

[U-Boot] [PATCH v2 2/6] dm: x86: Allow TSC timer to be used before DM is ready

2017-08-27 Thread Simon Glass
With bootstage we need access to the timer before driver model is set up. To handle this, put the required state in global_data and provide a new function to set up the device, separate from the driver's probe() method. This will be used by the 'early' timer also. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 3/6] dm: x86: Update timer_get_boot_us to work before DM is ready

2017-08-27 Thread Simon Glass
Use the new separate init function so that we can make use of the timer before driver model is started up. At some point we should consider adding the microsecond timer to the timer uclass interface since it would reduce the amount of plumbing here slightly. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 4/6] bootstage: Drop unused options

2017-08-27 Thread Simon Glass
The CONFIG_BOOTSTAGE_USER_COUNT option is no-longer needed since we can now support any number of user IDs. Also BOOTSTAGE_ID_COUNT is not needed now. Drop these unused options. Signed-off-by: Simon Glass --- Changes in v2: None common/Kconfig | 9

[U-Boot] [PATCH v2 5/6] bootstage: Provide a separate record count setting for SPL

2017-08-27 Thread Simon Glass
With SPL we often have limited memory and do not need very many bootstage records. Add a separate Kconfig option for SPL. Signed-off-by: Simon Glass --- Changes in v2: None common/Kconfig | 7 +++ common/bootstage.c | 6 +++--- 2 files changed, 10 insertions(+), 3

[U-Boot] [PATCH v2 1/6] board_f: Drop the timer after relocation

2017-08-27 Thread Simon Glass
Once U-Boot relocates itself the existing driver-model timer (if any) is no-longer valid until the device is reinitialised. Any use of the device may cause a crash. To handle this, set the timer to NULL after relocation. Signed-off-by: Simon Glass --- Changes in v2: None

[U-Boot] [PATCH v2 0/6] x86: bootstage: Fix bootstage operation on link

2017-08-27 Thread Simon Glass
Recent bootstage changes have provoked problems with chromebook_link. Bootstage uses the timer before driver model is ready, but link uses driver model for the timer. This series: - Updates the TSC timer to make the bootstage work before DM is ready - Provides a way to have a separate setting for

[U-Boot] DA850evm SPI Flash Partitions between Linux and U-boot are Inconsistent

2017-08-27 Thread Adam Ford
I was trying to enable MTD Partitions to make loading the Kernel and FS easier from within U-Boot The da850evm spi-flash partitions in Linux show "U-Boot-SPL" @ offset 0, size 64K "U-Boot"; @ offset 0x0001, size 512K "U-Boot-Env"; @ offset 0x0009 However U-Boot shows the following:

[U-Boot] am33xx ddr tests

2017-08-27 Thread Ryan
Hello, I have 2 chips which are 512mb each connected to the AM33xx processor. I want to check if the base address is configured for each chip in u-boot or kernel. If it is configured in u-boot can anyone point me to where it is configured. The problem i am facing is i dont if i need to do a

[U-Boot] [PATCH] fix: fw_env: Prevent writing error message on special files, which don't support fsync

2017-08-27 Thread Lukasz Majewski
According to fsync specification [1] some special files (e.g., a pipe, FIFO, or socket) don't support synchronization and return either EROFS or EINVAL. On the linux side the sys_fsync -> do_fsync() checks if the requested file has f_op->fsync defined. If not it returns EINVAL [2]. This commit

[U-Boot] [PATCH v2 4/4] usb: net: migrate USB Ethernet adapters to Kconfig

2017-08-27 Thread Chris Packham
This migrates ASIX, ASIX88179, MCS7830, RTL8152 and SMSC95XX to Kconfig. Update defconfigs. Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- Changes in v2: - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86 arch/Kconfig

[U-Boot] [PATCH v2 3/4] usb: net: migrate CONFIG_USB_HOST_ETHER to Kconfig

2017-08-27 Thread Chris Packham
CONFIG_USB_HOST_ETHER is the framework that the drivers are dependent on USB_HOST_ETHER. Use this as a menu and move the existing LAN75XX and LAN78XX options under new menu. Finally update the defconfigs that need CONFIG_USB_HOST_ETHER. Signed-off-by: Chris Packham --- I

[U-Boot] [PATCH v2 0/4] usb: net: Migrate USB Ethernet to Kconfig

2017-08-27 Thread Chris Packham
I think the addition of the implies caught more of the -common.h cases so I'm happier with this version. Changes in v2: - collect review from Simon - add imply USB_HOST_ETHER for X86 and TARGET_NITROGEN6X - add imply for TARGET_NITROGEN6X, ARCH_EXYNOS5 and X86 Chris Packham (4): Kconfig: drop

[U-Boot] [PATCH] bch: don't use __BSD_VISIBLE to test for fls

2017-08-27 Thread Jonathan Gray
Commit 4ecc988301bc8e981e6d7538c57cdb3aa82f7c1d assumes fls is in libc if __BSD_VISIBLE is defined. This appears to only be true on FreeBSD and DragonFlyBSD. OpenBSD defines __BSD_VISIBLE and does not have fls in strings.h/libc. Switch the test for __BSD_VISIBLE to one for __DragonFly__ and

[U-Boot] [PATCH v2 1/4] Kconfig: drop CONFIG_USB_ETHER_DM9601

2017-08-27 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- Changes in v2: - collect review from Simon include/configs/dragonboard410c.h | 1 - scripts/config_whitelist.txt | 1 - 2 files changed, 2

[U-Boot] [PATCH v2 2/4] Kconfig: drop CONFIG_USB_ETHER_RNDIS

2017-08-27 Thread Chris Packham
This is not a valid option. Drop it. Signed-off-by: Chris Packham Reviewed-by: Simon Glass --- Changes in v2: - collect review from Simon include/configs/cl-som-am57x.h | 1 - include/configs/cm_t54.h | 1 - include/configs/omap3_beagle.h |

Re: [U-Boot] [PATCH v1 2/2] imx: use BOOT_DEVICE_BOARD instead of UART

2017-08-27 Thread Sébastien Szymanski
Hello, > On 25 Aug 2017, at 13:33, Stefano Babic wrote: > > On 16/08/2017 02:49, Stefan Agner wrote: >> From: Stefan Agner >> >> i.MX 6 serial downloader is not necessarily booting via UART but can >> also boot from USB. In fact only some i.MX chips

[U-Boot] [PATCH] moveconfig: fix error message in do_autoconf()

2017-08-27 Thread Chris Packham
Move the % arch outside the double quote so that the missing toolchain message is displayed correctly. Signed-off-by: Chris Packham --- tools/moveconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/moveconfig.py b/tools/moveconfig.py

Re: [U-Boot] [PATCH 2/2] x86: ich-spi: Clear atomic preop only when SPI settings are not locked

2017-08-27 Thread Stefan Roese
On 27.08.2017 04:22, Bin Meng wrote: The atomic preop register can only be written when SPI settings are not locked, otherwise it's read-only. Signed-off-by: Bin Meng --- drivers/spi/ich.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH 1/2] x86: ich-spi: Remove useless assignment in ich_spi_xfer()

2017-08-27 Thread Stefan Roese
On 27.08.2017 04:22, Bin Meng wrote: In ich_spi_xfer() when the driver presets control fields, control variable gets assigned twice. Apparently only the last assignment takes effect. Remove the other one. Signed-off-by: Bin Meng --- drivers/spi/ich.c | 2 -- 1 file