[U-Boot] [PATCH] fs/fat: fix unaligned access regression

2017-10-09 Thread Jonathan Gray
Since 2460098cffacd18729262e3ed36656e6943783ed (fs/fat: Reduce stack usage) Trying to load a file off a FAT fs on i.MX 6 based CuBox-i4Pro fails: switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... CACHE: Misaligned operation at range [8f89da30, 8f89e230] CACHE: Misaligned

Re: [U-Boot] [PATCH 031/080] serial: ns16550: Fix address translation

2017-10-09 Thread Dr. Philipp Tomsich
> On 9 Oct 2017, at 14:45, Mario Six wrote: > > (adding Philipp since he converted lots of drivers to livetree recently) > > On Mon, Oct 9, 2017 at 6:48 AM, Simon Glass wrote: >> Hi Mario, >> >> On 29 September 2017 at 06:51, Mario Six

Re: [U-Boot] [PATCH v5 0/4] Allwinner SimpleFB Kconfig cleanup and DE2 SimpleFB support

2017-10-09 Thread icenowy
在 2017-09-21 00:18,Icenowy Zheng 写道: This patchset is mainly for Allwinner DE2 HDMI SimpleFB support. The framebuffer initialized by the Allwinner DE2 driver can be passed by to the kernel as simplefb, and this can enable the kernel to display graphics without having full DE2 driver. Add the

Re: [U-Boot] Edison's U-Boot Architecture

2017-10-09 Thread Andy Shevchenko
On Mon, 2017-10-09 at 14:45 +0300, Andy Shevchenko wrote: > On Mon, 2017-10-09 at 08:10 +0200, Zoran Stojsavljevic wrote: > > > > Andy/Andrej, > > Andy is okay :-) > > > Question here: Did I get the correct idea how Edison works with U- > > Boot? Could you, please, elaborate how this is done

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Rob Clark
On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray wrote: > On Mon, Oct 09, 2017 at 06:52:18AM -0400, Rob Clark wrote: >> On Sun, Oct 8, 2017 at 11:33 PM, Jonathan Gray wrote: >> > On Sun, Oct 08, 2017 at 11:33:08AM -0400, Rob Clark wrote: >> >> This fixes an issue

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Simon Glass
Hi, On 3 October 2017 at 08:58, vnktux wrote: > Hi all, > > For my graduation project my company asked to use U-Boot as bare metal > boot-loader on one of their product. The product in an embedded board with a > Xeon Broadwell-DE D-1527 Quad Core. The current boot-loader

[U-Boot] [PATCH 1/1] mmc: stm32_sdmmc2: increase polling status register delay

2017-10-09 Thread patrice.chotard
From: Christophe Kerello MMC commands like MMC_CMD_ALL_SEND_CID or MMC_CMD_SEND_CSD can reach 500 us. This patch increases the polling status register delay to avoid a timeout on a command. Signed-off-by: Christophe Kerello Signed-off-by:

Re: [U-Boot] [PATCH 031/080] serial: ns16550: Fix address translation

2017-10-09 Thread Mario Six
(adding Philipp since he converted lots of drivers to livetree recently) On Mon, Oct 9, 2017 at 6:48 AM, Simon Glass wrote: > Hi Mario, > > On 29 September 2017 at 06:51, Mario Six wrote: >> The dev_read_addr function does not do any bus translations, and

Re: [U-Boot] [PATCH 031/080] serial: ns16550: Fix address translation

2017-10-09 Thread Simon Glass
Hi, On 9 October 2017 at 06:55, Dr. Philipp Tomsich wrote: > >> On 9 Oct 2017, at 14:45, Mario Six wrote: >> >> (adding Philipp since he converted lots of drivers to livetree recently) >> >> On Mon, Oct 9, 2017 at 6:48 AM, Simon Glass

Re: [U-Boot] Antwort: Re: QSPI "sf probe ...", "sf read ..." on Altera SoC FPGA

2017-10-09 Thread Goldschmidt Simon
Hi Clémént, > Did you also test the saveenv and sf unlock ? I did test saveenv and it works. I did not test sf protection. > Did you get some strange behaviors after a "warm reboot" from linux ? Indeed, warm reboot fails. When rebooting via "reboot" command from linux, the last thing I see is

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray wrote: > > On Mon, Oct 09, 2017 at 06:52:18AM -0400, Rob Clark wrote: > >> On Sun, Oct 8, 2017 at 11:33 PM, Jonathan Gray wrote: > >> > On Sun, Oct 08, 2017

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Heinrich Schuchardt
On 10/09/2017 06:06 PM, Rob Clark wrote: > On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: >> On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: >>> On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray wrote: On Mon, Oct 09, 2017 at 06:52:18AM -0400,

Re: [U-Boot] [PATCH 2/2] dm: clk: fix PWR_CR3 register's bit 2 name

2017-10-09 Thread Vikas MANOCHA
Hi, > -Original Message- > From: Patrice CHOTARD > Sent: Monday, October 09, 2017 2:41 AM > To: u-boot@lists.denx.de; albert.u.b...@aribaud.net; s...@chromium.org; Vikas > MANOCHA > Cc: Patrice CHOTARD ; Patrick DELAUNAY >

Re: [U-Boot] [U-Boot, v1, 4/6] serial: stm32x7: add fifo support for STM32H7

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:51PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add fifo mode support for rx and tx. > As only STM32H7 supports this feature, add has_fifo flag > to uart configuration to use fifo only when possible. > > Signed-off-by:

Re: [U-Boot] [U-Boot, 5/7] configs: stm32h743-disco: enable SDMMC support

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:55:00PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Enable CMD_MMC, DM_MMC and STM32_SDMMC2 flags > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 01:06:26PM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray wrote: > > On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: > >> On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: > >> > On Mon, Oct 09, 2017

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Rob Clark
On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: > On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: >> On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray wrote: >> > On Mon, Oct 09, 2017 at 06:52:18AM -0400, Rob Clark wrote: >> >> On Sun, Oct 8, 2017 at

Re: [U-Boot] [U-Boot, v2, 1/2] fs/fat: Fix 'CACHE: Misaligned operation at range' warnings

2017-10-09 Thread Tom Rini
On Sun, Oct 01, 2017 at 02:25:21AM +0300, Tuomas Tynkkynen wrote: > The 'block' field of fat_itr needs to be properly aligned for DMA and > while it does have '__aligned(ARCH_DMA_MINALIGN)', the fat_itr structure > itself needs to be properly aligned as well. > > While at it use

Re: [U-Boot] [U-Boot, v1, 6/6] serial: stm32x7: remove useless CONFIG_CLK and OF_CONTROL flag

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:53PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > This driver is currently used by STM32F7 and STM32H7 SoCs. > As CONFIG_CLK and OF_CONTROL flags are set by default for these > 2 SoCs, this flag becomes useless in this

Re: [U-Boot] [U-Boot, 1/7] ARM: DTS: stm32: add SDMMC support for stm32h743 disco

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:54:56PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add pinctrl and sdmmc nodes to add MMC support for > STM32H743 discovery board. > > Signed-off-by: Patrice Chotard Applied to u-boot/master,

Re: [U-Boot] ARM: stm32f7: fix prescaler calculation of timer

2017-10-09 Thread Tom Rini
On Mon, Oct 02, 2017 at 10:47:59PM -0700, Bo Shen wrote: > As the timer 2 is on APB1 bus, the maximum of clock frequency of APB1 timer > clock is half of SYSCLK. Then to calculate the timer prescaler for timer 2 > which need to be divided by 2. > > Signed-off-by: Bo Shen >

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Rob Clark
On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray wrote: > On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: >> On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: >> > On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: >> >> On Mon, Oct 9, 2017 at

Re: [U-Boot] [U-Boot, 7/7] configs: stm32h743-eval: enable filesystem related flags

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:55:02PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Enable CMD_GPT/EXT2/EXT4/EXT4_WRITE/FAT_FS_GENERIC flags > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom

[U-Boot] [PATCH] ARM: Add documentation for the qemu-arm board

2017-10-09 Thread Tuomas Tynkkynen
Add brief documentation for the recently merged qemu-arm board. Signed-off-by: Tuomas Tynkkynen --- doc/README.qemu-arm | 54 + 1 file changed, 54 insertions(+) create mode 100644 doc/README.qemu-arm diff --git

Re: [U-Boot] [PATCH 1/2] dm: clk: remove CLK() macro for clk_stm32h7

2017-10-09 Thread Vikas MANOCHA
Hi, > -Original Message- > From: Patrice CHOTARD > Sent: Monday, October 09, 2017 2:41 AM > To: u-boot@lists.denx.de; albert.u.b...@aribaud.net; s...@chromium.org; Vikas > MANOCHA > Cc: Patrice CHOTARD ; Patrick DELAUNAY >

Re: [U-Boot] cmd: Make CMD_LZMA / CMD_UNZIP default y if CMD_BOOTI

2017-10-09 Thread Tom Rini
On Fri, Sep 29, 2017 at 02:32:44PM -0400, Tom Rini wrote: > In the Linux Kernel on ARM64, the Image.COMPRESSION file is not > self-extracting in the way that x86 and ARM images are. So when > CMD_BOOTI is enabled we should also default to enabling CMD_UNZIP and > CONFIG_LZMA in order for the

Re: [U-Boot] U-Boot sunxi pinctrl

2017-10-09 Thread Dr. Philipp Tomsich
Joonas, > On 9 Oct 2017, at 17:49, Joonas Kylmälä wrote: > > I see you have been working on pinctrl for sunxi in U-Boot: > . > But I have no idea how old the patches

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: > > On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: > >> On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray wrote: > >> > On Mon, Oct 09, 2017

Re: [U-Boot] [U-Boot,1/1] ARMv8: fix error in freeing stack frame

2017-10-09 Thread Tom Rini
On Sat, Sep 23, 2017 at 01:30:58PM +0800, zijun_hu wrote: > From: zijun_hu > > relocate_code() allocates 32 bytes stack frame but only 16 bytes are > freed before return. it will cause errors to possible previous frames > and doesn't make relocate_code() look like a function.

Re: [U-Boot] [U-Boot,v3,2/3] board: STiH410-B2260: fix sdram size

2017-10-09 Thread Tom Rini
On Mon, Sep 25, 2017 at 09:14:19AM +0200, patrice.chot...@st.com wrote: > From: Nicolas Le Bayon > > 32MB are reserved for TrustZone purpose > > Signed-off-by: Nicolas Le Bayon Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [U-Boot, 3/7] dm: mmc: remove DM_MMC_OPS for STM32_SDMMC

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:54:58PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Since e7881d85 "dm: mmc: Drop CONFIG_DM_MMC_OPS" DM_MMC_OPS > is no more used, remove it from STM32_SDMMC2 dependencies > > Signed-off-by: Patrice Chotard

Re: [U-Boot] [PATCH] armv8: configs: ls1012a: correct the generic timer frequency issue

2017-10-09 Thread York Sun
On 10/08/2017 11:48 PM, andy.t...@nxp.com wrote: > From: Yuantian Tang > > Generic Timer frequency should be 25Mhz. Current setting is > CONFIG_SYS_CLK_FREQ/4 which is about 31Mhz, which is not correct. > So correct it. > > Signed-off-by: Tang Yuantian >

Re: [U-Boot] [U-Boot, v3, 3/3] board: STiH410-B2260: set ramdisk_addr_r to 0x48000000

2017-10-09 Thread Tom Rini
On Mon, Sep 25, 2017 at 09:14:20AM +0200, patrice.chot...@st.com wrote: > From: Lee Jones > > Add missing ramdisk_addr_r param and set it to 0x4800 > > Signed-off-by: Lee Jones > Reviewed-by: Simon Glass Applied to

Re: [U-Boot] [U-Boot,v1,5/6] serial: stm32x7: add STM32F4 support

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:52PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > stm32f4 doesn't support FIFO and OVERRUN feature. > The enable bit is not at the same location in CR1 > register than for STM32F7 and STM32H7. > > Signed-off-by: Patrice

Re: [U-Boot] [U-Boot, v1, 3/6] serial: stm32x7: prepare the ground to STM32F4 support

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:50PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > STM32F4 serial IP is similar to F7 and H7, but registers > are not located at the same offset and some feature are > only supported by F7 and H7 version. > > Registers

Re: [U-Boot] [U-Boot, 1/1] ARMv8: make master CPU checking logic more clear

2017-10-09 Thread Tom Rini
On Mon, Sep 25, 2017 at 03:28:50PM +0800, zijun_hu wrote: > From: zijun_hu > > macro branch_if_master checks master CPU via (Aff3 & (Aff2:Aff1:Aff0)) > it is simple but a little obscure. > > fix by checking Affx fields within MPIDR_EL1 directly. > > Signed-off-by: zijun_hu

Re: [U-Boot] [U-Boot, 6/7] configs: stm32h743-disco: enable filesystem related flags

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:55:01PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Enable CMD_GPT/EXT2/EXT4/EXT4_WRITE/FAT_FS_GENERIC flags > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [U-Boot, 4/7] configs: stm32h743-eval: enable SDMMC support

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:54:59PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Enable CMD_MMC, DM_MMC and STM32_SDMMC2 flags > > Signed-off-by: Patrice Chotard Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Zoran Stojsavljevic
> It allows U-Boot to boot from EFI. This is a true art of overkill... Really. Full EFI (around 1 to 2 million lines of code: SEC, PEI, DXE phases, with ME HECI involved, altogether) -> U-Boot -> YOCTO. Wow. ;-) Zoran On Mon, Oct 9, 2017 at 4:43 PM, Simon Glass wrote: >

Re: [U-Boot] [U-Boot, 1/1] ARMv8: get new GD address from gd->new_gd directly

2017-10-09 Thread Tom Rini
On Fri, Sep 22, 2017 at 02:39:13PM +0800, zijun_hu wrote: > From: zijun_hu > > the new GD address is calculated via board data BD currently > it require the new GD area locates below BD tightly, so a strict > constraint is imposed on memory layout which maybe make special >

Re: [U-Boot] [PATCH RESEND] DW SPI: Get clock value from Device Tree

2017-10-09 Thread Eugeniy Paltsev
Hi, Maybe you have any comments or remarks about this patch? And if you don't could you please apply it.  Thanks! On Tue, 2017-09-26 at 16:10 +0300, Eugeniy Paltsev wrote: > Add option to set spi controller clock frequency via device tree > using standard clock bindings. > Old way of setting

Re: [U-Boot] [U-Boot, v3, 1/3] board: STiH410-B2260: update environment variable

2017-10-09 Thread Tom Rini
On Mon, Sep 25, 2017 at 09:14:18AM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Update environment variable by updating: > _ BOOT_TARGET_DEVICE > _ CONFIGS_BOOTARGS > _ kernel_addr_r, fdtfile, fdt_addr_r, scriptaddr, fdt_high, intird_high > >

Re: [U-Boot] [U-Boot, v1, 2/6] serial: stm32x7: remove stm32f7-usart and stm32h7-usart compatible

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:49PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > This patch remove the extra compatibility string "st,stm32h7-usart" > and "st,stm32f7-usart" to avoid confusion, save some time & space. > > Signed-off-by: Patrice

Re: [U-Boot] configs: stm32: update SRAM address for STM32H7 disco and eval

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:47:59PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > As suggested by Vikas Manocha, update embedded SRAM address > to use AXI SRAM available on D1 domain instead of using > AHB SRAM (D2 domain). > On some STM32H743 SoCs, D2

Re: [U-Boot] [U-Boot, 2/7] ARM: DTS: stm32: add SDMMC support fo stm32h743-eval

2017-10-09 Thread Tom Rini
On Tue, Oct 03, 2017 at 03:54:57PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Add pinctrl and sdmmc nodes to add MMC support for > STM32H743 evaluation board. > > Evaluation board needs a second pinctrl node > "pinctrl_sdmmc1_level_shifter" to

Re: [U-Boot] scripts: Move Kconfig contents to cmd/Kconfig

2017-10-09 Thread Tom Rini
On Thu, Sep 28, 2017 at 12:33:45PM -0700, Sam Protsenko wrote: > On case-insensitive file systems we have collision between > scripts/kconfig/ directory and scripts/Kconfig file. This patch moves > scripts/Kcofnig contents to cmd/Kconfig to fix that. > > Signed-off-by: Sam Protsenko

Re: [U-Boot] [U-Boot,v1,1/6] serial: stm32x7: cleanup code

2017-10-09 Thread Tom Rini
On Wed, Sep 27, 2017 at 03:44:48PM +0200, patrice.chot...@st.com wrote: > From: Patrice Chotard > > Use BIT() macro and GENMASK() macro > > Signed-off-by: Patrice Chotard > Reviewed-by: Vikas Manocha Applied to

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Rob Clark
On Mon, Oct 9, 2017 at 12:22 PM, Heinrich Schuchardt wrote: > On 10/09/2017 06:06 PM, Rob Clark wrote: >> On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray wrote: >>> On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: On Mon, Oct 9, 2017 at 8:25 AM,

Re: [U-Boot] [U-Boot, v2, 2/2] fs/fat: Check malloc return values and fix memory leaks

2017-10-09 Thread Tom Rini
On Sun, Oct 01, 2017 at 02:25:22AM +0300, Tuomas Tynkkynen wrote: > Check malloc() return values and properly unwind on errors so > memory allocated for fat_itr structures get freed properly. > > Also fixes a leak of fsdata.fatbuf in fat_size(). > > Fixes: 2460098cffacd1 ("fs/fat: Reduce stack

[U-Boot] [PATCH V2] ARM: imx6: Add DHCOM i.MX6 PDK board support

2017-10-09 Thread Marek Vasut
Add support for the DHCOM i.MX6 PDK board. This board has: - FEC ethernet - EHCI USB host - 3x SDMMC Signed-off-by: Marek Vasut Cc: Stefano Babic --- V2: Use get_cpu_type() and imx_get_mac_from_fuse() --- arch/arm/mach-imx/mx6/Kconfig | 10 +

[U-Boot] [PATCH v2 1/1] efi_loader: MAX_UTF8_PER_UTF16 = 3

2017-10-09 Thread Heinrich Schuchardt
The constant MAX_UTF8_PER_UTF16 is used to calculated required memory when converting from UTF-16 to UTF-8. If this constant is too big we waste memory. A code point encoded by one UTF-16 symbol is converted to a maximum of three UTF-8 symbols, e.g. 0x could be encoded as 0xef 0xbf 0xbf. The

[U-Boot] [PATCH v3 1/1] efi_loader: MAX_UTF8_PER_UTF16 = 3

2017-10-09 Thread Heinrich Schuchardt
The constant MAX_UTF8_PER_UTF16 is used to calculated required memory when converting from UTF-16 to UTF-8. If this constant is too big we waste memory. A code point encoded by one UTF-16 symbol is converted to a maximum of three UTF-8 symbols, e.g. 0x could be encoded as 0xef 0xbf 0xbf. The

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Rob Clark
On Mon, Oct 9, 2017 at 1:48 PM, Jonathan Gray wrote: > On Mon, Oct 09, 2017 at 01:06:26PM -0400, Rob Clark wrote: >> On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray wrote: >> > On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: >> >> On Mon, Oct 9, 2017 at

[U-Boot] [PATCH 1/1] efi_loader: MAX_UTF8_PER_UTF16 = 3

2017-10-09 Thread Heinrich Schuchardt
A code point encoded by one UTF-16 symbol is converted to a maximum of three UTF-8 symbols. 0x could be encoded as 0xef 0xbf 0xbf. The first byte carries four bits, the second and third byte carry six bits each. A code point encoded by two UTF-16 symbols is converted to four UTF-8 symbols.

Re: [U-Boot] [PATCH 1/1] efi_loader: MAX_UTF8_PER_UTF16 = 3

2017-10-09 Thread Heinrich Schuchardt
On 10/09/2017 08:43 PM, Alexander Graf wrote: > > >> Am 09.10.2017 um 20:39 schrieb Heinrich Schuchardt : >> >> A code point encoded by one UTF-16 symbol is converted to a >> maximum of three UTF-8 symbols. >> >> 0x could be encoded as 0xef 0xbf 0xbf. >> The first byte

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Peter Robinson
On Mon, Oct 9, 2017 at 7:20 PM, Rob Clark wrote: > On Mon, Oct 9, 2017 at 1:48 PM, Jonathan Gray wrote: >> On Mon, Oct 09, 2017 at 01:06:26PM -0400, Rob Clark wrote: >>> On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray wrote: >>> > On Mon, Oct

Re: [U-Boot] [PATCH 1/1] efi_loader: MAX_UTF8_PER_UTF16 = 3

2017-10-09 Thread Alexander Graf
> Am 09.10.2017 um 20:39 schrieb Heinrich Schuchardt : > > A code point encoded by one UTF-16 symbol is converted to a > maximum of three UTF-8 symbols. > > 0x could be encoded as 0xef 0xbf 0xbf. > The first byte carries four bits, the second and third byte > carry six

Re: [U-Boot] [PATCH] ARM: imx6: Add DHCOM i.MX6 PDK board support

2017-10-09 Thread Marek Vasut
On 10/09/2017 09:28 PM, Stefano Babic wrote: > Hi Marek, Hi, clip please ... [...] >> +static int setup_dhcom_mac_from_fuse(void) >> +{ >> +unsigned char enetaddr[6]; >> +u32 fuseval[2]; >> +int ret; >> + >> +ret = eth_env_get_enetaddr("ethaddr", enetaddr); >> +if (ret)

Re: [U-Boot] [PATCH] ARM: imx6: Add DHCOM i.MX6 PDK board support

2017-10-09 Thread Stefano Babic
Hi Marek, On 09/10/2017 20:13, Marek Vasut wrote: > Add support for the DHCOM i.MX6 PDK board. This board has: > - FEC ethernet > - EHCI USB host > - 3x SDMMC > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- > arch/arm/mach-imx/mx6/Kconfig |

Re: [U-Boot] fsl_esdhc driver is broken with DM

2017-10-09 Thread Jagan Teki
On Mon, Oct 2, 2017 at 4:36 PM, Fabio Estevam wrote: > Hi Jagan, > > On Mon, Oct 2, 2017 at 7:23 AM, Jagan Teki wrote: > >> Yes, currently I'm using DM_MMC for U-Boot proper and recently I've >> moved SPL as well [1]. But I've seen an issue with

[U-Boot] [PATCH] ARM: imx6: Add DHCOM i.MX6 PDK board support

2017-10-09 Thread Marek Vasut
Add support for the DHCOM i.MX6 PDK board. This board has: - FEC ethernet - EHCI USB host - 3x SDMMC Signed-off-by: Marek Vasut Cc: Stefano Babic --- arch/arm/mach-imx/mx6/Kconfig | 10 + board/dhelectronics/dh_imx6/Kconfig | 12 +

Re: [U-Boot] [PATCH v2 01/14] arm: socfpga: stratix10: Add base address map for Statix10 SoC

2017-10-09 Thread Dinh Nguyen
On Thu, Oct 5, 2017 at 8:07 AM, wrote: > From: Chin Liang See > > Add the base address map for Statix10 SoC > > Signed-off-by: Chin Liang See > --- > arch/arm/mach-socfpga/include/mach/base_addr_s10.h | 56 >

Re: [U-Boot] [PATCH v1 1/3] test/py: gpt: update test_gpt

2017-10-09 Thread Stephen Warren
On 10/09/2017 01:47 AM, Patrick Delaunay wrote: - copy the reference gpt binary file as it is modified during the test to avoid issue if the test fail: the test always restart with clean file - update tests to highlight detected issues on gpt swap command (offset and size of partition are

Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support

2017-10-09 Thread Maxime Ripard
On Mon, Oct 09, 2017 at 07:31:37AM +, Antony Antony wrote: > On Mon, Oct 09, 2017 at 09:22:03AM +0200, Maxime Ripard wrote: > > On Fri, Oct 06, 2017 at 09:11:22AM +, Antony Antony wrote: > > > Hi > > > > > > Thanks Chen-Yu and Maxime. > > > > > > On Tue, Oct 03, 2017 at 10:11:00AM +0800,

Re: [U-Boot] [PATCH] fs/fat: fix unaligned access regression

2017-10-09 Thread Fabio Estevam
On Mon, Oct 9, 2017 at 9:39 AM, Jonathan Gray wrote: > Since > 2460098cffacd18729262e3ed36656e6943783ed (fs/fat: Reduce stack usage) > Trying to load a file off a FAT fs on i.MX 6 based CuBox-i4Pro fails: > > switch to partitions #0, OK > mmc0 is current device > Scanning mmc

Re: [U-Boot] [PATCH] fs/fat: fix unaligned access regression

2017-10-09 Thread Tom Rini
On Mon, Oct 09, 2017 at 06:49:02PM -0300, Fabio Estevam wrote: > On Mon, Oct 9, 2017 at 9:39 AM, Jonathan Gray wrote: > > Since > > 2460098cffacd18729262e3ed36656e6943783ed (fs/fat: Reduce stack usage) > > Trying to load a file off a FAT fs on i.MX 6 based CuBox-i4Pro fails: > > >

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Simon Glass
Hi, On 9 October 2017 at 10:32, Zoran Stojsavljevic wrote: > > > It allows U-Boot to boot from EFI. > > This is a true art of overkill... Really. > > Full EFI (around 1 to 2 million lines of code: SEC, PEI, DXE phases, with ME > HECI involved, altogether) ->

[U-Boot] Please pull u-boot-dm (take 2)

2017-10-09 Thread Simon Glass
Hi Tom, Sorry for the delay with v2. The following changes since commit 0d3aaa35b87573c229d65bc79050ab13f39d8ec2: Travis-CI: Fix microblaze and xilinx jobs (2017-10-07 15:54:18 -0400) are available in the git repository at: git://git.denx.de/u-boot-dm.git for you to fetch changes up to

Re: [U-Boot] Please pull u-boot-video/master

2017-10-09 Thread Tom Rini
On Mon, Oct 09, 2017 at 10:17:29AM +0200, Anatolij Gustschin wrote: > Hi Tom, > > The following changes since commit ec4e99a4a24c84069c710df3202ecb1e501ff60f: > > Merge git://git.denx.de/u-boot-mmc (2017-09-28 23:31:11 -0400) > > are available in the git repository at: > >

Re: [U-Boot] [PATCH] efi_loader: Decouple EFI input/output from stdin/stdout

2017-10-09 Thread Rob Clark
On Mon, Sep 11, 2017 at 10:04 AM, Rob Clark wrote: > In some cases, it is quite useful to have (for example) EFI on screen > but u-boot on serial port. > > Signed-off-by: Rob Clark > --- > Applies on top of my previous efi_loader patchset. > >

Re: [U-Boot] [PATCH] armv8: configs: ls1012a: correct the generic timer frequency issue

2017-10-09 Thread Andy Tang
Hi York, Ls1012a uses the fixed 25Mhz clock, I will update the commit message and resend the patch. Thanks, Andy > -Original Message- > From: York Sun > Sent: Tuesday, October 10, 2017 12:00 AM > To: Andy Tang > Cc: s...@chromium.org; u-boot@lists.denx.de >

Re: [U-Boot] [PATCH] Powerpc: Make pcie link state judge more specific

2017-10-09 Thread York Sun
On 09/24/2017 08:44 PM, Bao Xiaowei wrote: > For some special reset times for longer pcie devices, in this case, the > pcie device may on polling compliance state, the RC considers the pcie > device is link up, but the pcie device is not link up, only the L0 state > is link up state. So add the

[U-Boot] [PATCH] armv8: configs: ls1012a: correct the generic timer frequency issue

2017-10-09 Thread andy.tang
From: Yuantian Tang Generic Timer frequency should be 25Mhz. Current setting is CONFIG_SYS_CLK_FREQ/4 which is about 31Mhz, which is not correct. So correct it. Signed-off-by: Tang Yuantian --- include/configs/ls1012a_common.h | 2 +- 1 file changed, 1

Re: [U-Boot] [PATCH 08/11] efi_selftest: allow to select a single test for exexution

2017-10-09 Thread Alexander Graf
On 09.10.17 08:14, Heinrich Schuchardt wrote: > On 10/09/2017 06:46 AM, Alexander Graf wrote: >> >> >> On 08.10.17 06:57, Heinrich Schuchardt wrote: >>> The second argument of bootefi is passed as a configuration >>> table to the selftest application. It is used to select >>> a single test to be

Re: [U-Boot] [PATCH 06/11] efi_loader: implement SetWatchdogTimer

2017-10-09 Thread Alexander Graf
On 09.10.17 08:05, Heinrich Schuchardt wrote: > On 10/09/2017 06:42 AM, Alexander Graf wrote: >> >> >> On 08.10.17 06:57, Heinrich Schuchardt wrote: >>> The watchdog is initialized with a 5 minute timeout period. >>> It can be reset by SetWatchdogTimer. >>> It is stopped by ExitBoottimeServices.

Re: [U-Boot] [PATCH] usb: xhci: Add Renesas R-Car xHCI driver

2017-10-09 Thread Bin Meng
Hi Marek, On Mon, Oct 9, 2017 at 2:34 AM, Marek Vasut wrote: > Add firmware V3, firmware loader and XHCI glue for the Renesas R-Car > Gen3 SoCs XHCI controller. Thus far only the R-Car Gen3 R8A7795 ES2.0+ > and R8A7796 are supported. > > Signed-off-by: Marek Vasut

Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support

2017-10-09 Thread Maxime Ripard
On Fri, Oct 06, 2017 at 09:11:22AM +, Antony Antony wrote: > Hi > > Thanks Chen-Yu and Maxime. > > On Tue, Oct 03, 2017 at 10:11:00AM +0800, Chen-Yu Tsai wrote: > > On Mon, Oct 2, 2017 at 1:34 AM, Antony Antony wrote: > > > Hi Maxime, > > > > > > sorry for the delayed

Re: [U-Boot] [PATCH v3] sun50i: h5: Add NanoPi Neo Plus2 DT initial support

2017-10-09 Thread Antony Antony
On Mon, Oct 09, 2017 at 09:22:03AM +0200, Maxime Ripard wrote: > On Fri, Oct 06, 2017 at 09:11:22AM +, Antony Antony wrote: > > Hi > > > > Thanks Chen-Yu and Maxime. > > > > On Tue, Oct 03, 2017 at 10:11:00AM +0800, Chen-Yu Tsai wrote: > > > On Mon, Oct 2, 2017 at 1:34 AM, Antony Antony

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Zoran Stojsavljevic
> Yes but at the time there was no FSP. I suspect now it would not be needed. What about booting times? How long it'll take to boot EFI -> U-Boot -> OS loader -> init process on x86? My best guess at least/minimum 10s. Did anybody measure the booting time? Thank you, Zoran On Tue, Oct 10, 2017

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Bin Meng
Hi Zoran, On Tue, Oct 10, 2017 at 11:34 AM, Zoran Stojsavljevic wrote: >> Yes but at the time there was no FSP. I suspect now it would not be > needed. > > What about booting times? How long it'll take to boot EFI -> U-Boot -> OS > loader -> init process on x86? >

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Zoran Stojsavljevic
Hello Bin, You understood me, seems, perfectly. And this is what I am talking about here. The whole story told by Andy (Shevchenko) as RE: to my other thread does not stand, just because of the booting times. But I need Andy's story (further) to investigate, and have currently no any spare/free

Re: [U-Boot] [PATCH] Powerpc: Make pcie link state judge more specific

2017-10-09 Thread Xiaowei Bao
Hi York, I will revise the commit message later. Best regards xiaowei -Original Message- From: York Sun Sent: Monday, October 09, 2017 11:44 PM To: Xiaowei Bao ; M.h. Lian ; Z.q. Hou ; Mingkai Hu ;

Re: [U-Boot] [PATCH 06/11] efi_loader: implement SetWatchdogTimer

2017-10-09 Thread Heinrich Schuchardt
On 10/09/2017 06:42 AM, Alexander Graf wrote: > > > On 08.10.17 06:57, Heinrich Schuchardt wrote: >> The watchdog is initialized with a 5 minute timeout period. >> It can be reset by SetWatchdogTimer. >> It is stopped by ExitBoottimeServices. >> >> Signed-off-by: Heinrich Schuchardt

[U-Boot] Edison's U-Boot Architecture

2017-10-09 Thread Zoran Stojsavljevic
Hello Andy, Thank you very much for the reply. Instead reply-ing to you in Open Source fashion, I'll answer to you in the form of the new @. Easier and more clean/clear approach. Nevertheless, Edison is cancelled. But since it is already out there, and you do it, and using it as the test vehicle

Re: [U-Boot] [PATCH 08/11] efi_selftest: allow to select a single test for exexution

2017-10-09 Thread Heinrich Schuchardt
On 10/09/2017 06:46 AM, Alexander Graf wrote: > > > On 08.10.17 06:57, Heinrich Schuchardt wrote: >> The second argument of bootefi is passed as a configuration >> table to the selftest application. It is used to select >> a single test to be executed. >> >> Tests get an on_request property. If

Re: [U-Boot] [PATCH 10/11] test/py: test reboot by EFI watchdog

2017-10-09 Thread Heinrich Schuchardt
On 10/09/2017 06:49 AM, Simon Glass wrote: > On 7 October 2017 at 22:57, Heinrich Schuchardt wrote: >> Provide a test verifying that the EFI watchdog >> reboots the system upon timeout. >> >> The test depends on CONFIG_CMD_EFI_SELFTEST=y. >> >> Signed-off-by: Heinrich

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-09 Thread Jonathan Gray
On Sun, Oct 08, 2017 at 11:12:28PM -0400, Tom Rini wrote: > On Sun, Oct 08, 2017 at 10:56:26PM -0300, Fabio Estevam wrote: > > On Sun, Oct 8, 2017 at 11:04 AM, Jonathan Gray wrote: > > > > > It turns out to be > > > > > > commit 2460098cffacd18729262e3ed36656e6943783ed > > >

Re: [U-Boot] [PATCH] armv8: configs: ls1012a: correct the generic timer frequency issue

2017-10-09 Thread Prabhakar Kushwaha
Hi York, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Andy Tang > Sent: Tuesday, October 10, 2017 6:36 AM > To: York Sun > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH] armv8: configs: ls1012a: correct the generic >

Re: [U-Boot] Broadwell-DE bare metal

2017-10-09 Thread Bin Meng
Hi Zoran, On Tue, Oct 10, 2017 at 11:53 AM, Zoran Stojsavljevic wrote: > Hello Bin, > > You understood me, seems, perfectly. And this is what I am talking about > here. > > The whole story told by Andy (Shevchenko) as RE: to my other thread does not > stand, just

Re: [U-Boot] [PATCH] dwc: ep0: Allocate and flush dwc->ep0_trb in a cache aligned manner

2017-10-09 Thread Faiz Abbas
+Kishon On Friday 06 October 2017 05:03 PM, Faiz Abbas wrote: > Hi, > > On Thursday 05 October 2017 04:57 PM, Marek Vasut wrote: >> On 10/04/2017 03:11 PM, Faiz Abbas wrote: >>> Hi, >>> >>> On Wednesday 04 October 2017 06:01 PM, Marek Vasut wrote: On 10/04/2017 12:51 PM, Faiz Abbas wrote:

Re: [U-Boot] [PATCH v2] ARM: zynq: Add support for SYZYGY Hub board

2017-10-09 Thread Michal Simek
dtsi" > + > +/ { > + model = "SYZYGY Hub"; > + compatible = "opalkelly,syzygy-hub", "xlnx,zynq-7000"; Patch looks good but only this prefix needs to be added to the Linux kernel. It should be present in this file. Please send the patch and whe

Re: [U-Boot] [PATCH] moveconfig: Fix error message for a missing toolchain

2017-10-09 Thread Masahiro Yamada
2017-10-08 19:31 GMT+09:00 Tuomas Tynkkynen : > Due to misplaced quote the error message is literally e.g.: > > MigoR_defconfig > Tool chain for '%s' is missing. Do nothing. > % arch > > Fix it to correctly show the architecture: > > MigoR_defconfig > Tool

[U-Boot] [PATCH] efi_loader: search all possible disk partitions

2017-10-09 Thread Jonathan Gray
When searching for partitions don't stop if a partition is not present for a given partition number as there may be valid partitions after. Search for up to MAX_SEARCH_PARTITIONS matching the other callers of part_get_info(). This allows OpenBSD to boot via the efi_loader on rpi_3 again after

Re: [U-Boot] efi_loader: enough-uefi-for-shell: [PATCH 06/11] efi_loader: implement SetWatchdogTimer

2017-10-09 Thread Rob Clark
On Sun, Oct 8, 2017 at 6:14 PM, Heinrich Schuchardt wrote: > On 10/08/2017 06:57 AM, Heinrich Schuchardt wrote: >> The watchdog is initialized with a 5 minute timeout period. >> It can be reset by SetWatchdogTimer. >> It is stopped by ExitBoottimeServices. >> >> Signed-off-by:

Re: [U-Boot] [PATCH 08/11] efi_selftest: allow to select a single test for exexution

2017-10-09 Thread Alexander Graf
On 09.10.17 12:54, Heinrich Schuchardt wrote: > On 10/09/2017 08:57 AM, Alexander Graf wrote: >> >> >> On 09.10.17 08:14, Heinrich Schuchardt wrote: >>> On 10/09/2017 06:46 AM, Alexander Graf wrote: On 08.10.17 06:57, Heinrich Schuchardt wrote: > The second argument of bootefi

Re: [U-Boot] the boot process breaks.

2017-10-09 Thread nabil efrin
Hello ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 9/9] configs: ls1012a: add pfe configuration for LS1012A

2017-10-09 Thread Calvin Johnson
Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi --- configs/ls1012afrdm_qspi_defconfig | 1 + configs/ls1012aqds_qspi_defconfig | 1 + configs/ls1012ardb_qspi_defconfig | 1 + drivers/net/Kconfig| 1 +

[U-Boot] [PATCH][v2] driver: fsl-mc: memset pointers after malloc

2017-10-09 Thread Prabhakar Kushwaha
Memory allocated via malloc is not guaranteed to be zeroized. So explicitly memset the memory allocated via malloc. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Replaced malloc/memset with calloc drivers/net/fsl-mc/mc.c | 39

Re: [U-Boot] BUG: Environment is in SPI flash does not even compile (at least for Orange PI PC2

2017-10-09 Thread Jagan Teki
On Wed, Sep 27, 2017 at 12:43 PM, wrote: > > Hi, > > I'm trying to compile u-boot with Environment in SPI flash > (CONFIG_ENV_IS_IN_SPI_FLASH?) for Orange PI PC2. > > Compilation ends with an error: > CC env/sf.o > env/sf.c: In function ‘env_sf_save’: > env/sf.c:266:6:

Re: [U-Boot] [PATCH 016/080] spi: Remove spi_flash_probe_fdt

2017-10-09 Thread Jagan Teki
On Fri, Sep 29, 2017 at 6:21 PM, Mario Six wrote: > Commit ba45756 ("dm: x86: spi: Convert ICH SPI driver to driver model") > removed the last usage of the spi_flash_probe_fdt function, rendering it > obsolete. > > This patch removes the function. > > Signed-off-by: Mario Six

  1   2   >