[U-Boot] BeagleboneBlack vboot from SPI flash difficulties

2016-08-11 Thread Joe Desbonnet
I've been trying to implement vboot from SPI flash on the BeagleBone Black with only limited success. I'm working with u-boot 2016.07 and using the instructions in beaglebone_vboot.txt (in doc directory). So far: I've had no problem booting regular u-boot from SPI flash. I build with

[U-Boot] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread J Mo
Greetings I am attempting to port LEDE/OpenWRT to a new device; the TRENDnet TEW-827DRU, which is a IPQ806X-based (AP148) system. It has a NAND flash for storage with a UBI (kernel + squashfs + ubifs). When my system attempts to attach the UBI, I see the following error from linux: [

[U-Boot] [PATCH v3 10/27] sf: Rename spi_flash_params => spi_flash_info

2016-08-11 Thread Jagan Teki
Renamed for more readability - spi_flash_params => spi_flash_info - params => info Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek

Re: [U-Boot] [PULL] u-boot-usb/master

2016-08-11 Thread Marek Vasut
The following changes since commit 2863a9bfc29092be37f8beee230883367b057065: Merge git://git.denx.de/u-boot-rockchip (2016-08-06 11:38:14 -0400) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to

[U-Boot] [PATCH] defconfig: am43xx_evm: enable eth driver model

2016-08-11 Thread Mugunthan V N
Enable eth driver model for am43xx_evm as cpsw supports driver model. This was already added with the commit bc705ea1cf12 but with commit 4c4e3b37750f to add fit support CONFIG_DM_ETH was missed. Signed-off-by: Mugunthan V N Cc: Lokesh Vutla ---

Re: [U-Boot] [PATCH 07/21] imx: mx6ull: skip setting ahb clock

2016-08-11 Thread Stefano Babic
On 11/08/2016 08:02, Peng Fan wrote: > Rom already initialized clock at 396M and 132M for arm core and ahb, > so skip setting them again in U-Boot. > > Signed-off-by: Peng Fan > Cc: Stefano Babic > --- > arch/arm/cpu/armv7/mx6/soc.c | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 06/21] imx: timer: update gpt driver for i.MX6ULL

2016-08-11 Thread Stefano Babic
On 11/08/2016 08:02, Peng Fan wrote: > The i.MX6ULL's GPT supportting taking OSC as clock source. > Add i.MX6ULL support. > > Signed-off-by: Peng Fan > Signed-off-by: Ye Li > Cc: Stefano Babic > --- > arch/arm/imx-common/timer.c | 7 --- >

Re: [U-Boot] [PATCH] defconfig: am43xx_evm: enable eth driver model

2016-08-11 Thread Tom Rini
On Thu, Aug 11, 2016 at 02:27:04PM +0530, Mugunthan V N wrote: > Enable eth driver model for am43xx_evm as cpsw supports > driver model. > > This was already added with the commit bc705ea1cf12 but with > commit 4c4e3b37750f to add fit support CONFIG_DM_ETH was missed. > > Signed-off-by:

Re: [U-Boot] A command to discard saved environments?

2016-08-11 Thread Masahiro Yamada
2016-08-04 14:40 GMT+09:00 Wolfgang Denk : > Dear James, > > In message you wrote: >> >> > In your case, you could save the "erase" by overwriting the first 4 >> > bytes (where the CRC32 checksum is stored) with 0x. > > Wrong.

Re: [U-Boot] [PATCH] configs: dra7xx_evm: enable eth driver model

2016-08-11 Thread Lokesh Vutla
On Wednesday 10 August 2016 10:05 PM, Mugunthan V N wrote: > Enable eth driver model for dra7xx_evm as cpsw supports > driver model. > > This was already added with the commit 641b936fa5ba but with > commit bd7245849f7c to add fit support CONFIG_DM_ETH was missed. > > Signed-off-by: Mugunthan

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread york sun
On 08/11/2016 01:15 AM, Jagan Teki wrote: > > Tested on microzed and sandbox > > Tested-by: Jagan Teki > > I've some host issues while running buildman, can anyone please run buildman? > I can compile for power and (limited) arm for you. York

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread Jagan Teki
On 11 August 2016 at 20:47, york sun wrote: > On 08/11/2016 08:12 AM, york@nxp.com wrote: >> On 08/11/2016 01:15 AM, Jagan Teki wrote: >>> >>> Tested on microzed and sandbox >>> >>> Tested-by: Jagan Teki >>> >>> I've some host issues while running

[U-Boot] [PATCH v3 19/27] sf: Add INFO6 flash_info macro

2016-08-11 Thread Jagan Teki
INFO6 is for tabulating 6 byte flash parts, Ex: S25FS256S_64K Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga

[U-Boot] [PATCH] getting ubifs to run

2016-08-11 Thread Marco
Signed-off-by: Marco --- arch/microblaze/include/asm/atomic.h | 114 +++ arch/microblaze/include/asm/bitops.h | 8 +-- fs/ubifs/io.c| 2 +- fs/ubifs/log.c | 99

[U-Boot] [PATCH v2 5/7] smbios: Expose in efi_loader as table

2016-08-11 Thread Alexander Graf
We can pass SMBIOS easily as EFI configuration table to an EFI payload. This patch adds enablement for that case. While at it, we also enable SMBIOS generation for ARM systems, since they support EFI_LOADER. Signed-off-by: Alexander Graf --- v1 -> v2: - fix whitespace ---

[U-Boot] [PATCH] drivers: net: keystone_net: add rgmii link type support when parsing dt

2016-08-11 Thread Mugunthan V N
Add support to detect RGMII link interface from link-interface device tree entry. Also rename the existing link type enums so that it provides meaningful interface like SGMII. Signed-off-by: Mugunthan V N --- Tested this patch on Keystone K2G evm, logs [1] [1] -

Re: [U-Boot] [PATCH] net: asix: Fix ASIX 88772B with driver model

2016-08-11 Thread Marek Vasut
On 08/11/2016 12:28 PM, Alban Bedel wrote: > On Thu, 11 Aug 2016 11:26:23 +0200 > Marek Vasut wrote: > >> On 08/11/2016 10:52 AM, Alban Bedel wrote: >>> On Tue, 9 Aug 2016 14:32:14 +0200 >>> Marek Vasut wrote: >>> On 08/09/2016 02:14 PM, Marcel Ziswiler wrote:

Re: [U-Boot] A command to discard saved environments?

2016-08-11 Thread Wolfgang Denk
Dear Masahiro, In message

[U-Boot] [PATCH v3 02/27] sf: Remove e_rd_cmd from param table

2016-08-11 Thread Jagan Teki
e_rd_cmd is maintained separately for fastest read command code, since the read commands are computed normally this e_rd_cmd is not required in spi_flash_params table. Cc: Simon Glass Cc: Bin Meng Cc: Michal Simek Cc: Siva Durga

[U-Boot] [PATCH v3 13/27] sf: sandbox: Fix ID exctract from spi_flash_info

2016-08-11 Thread Jagan Teki
This patch fix the id exctract from spi_flash_info ids. Cc: Simon Glass Cc: Bin Meng Signed-off-by: Jagan Teki --- drivers/mtd/spi/sandbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [U-Boot] [PATCH] net: asix: Fix ASIX 88772B with driver model

2016-08-11 Thread Alban Bedel
On Thu, 11 Aug 2016 11:26:23 +0200 Marek Vasut wrote: > On 08/11/2016 10:52 AM, Alban Bedel wrote: > > On Tue, 9 Aug 2016 14:32:14 +0200 > > Marek Vasut wrote: > > > >> On 08/09/2016 02:14 PM, Marcel Ziswiler wrote: > >>> On Thu, 2016-08-04 at 11:12 +0200, Marek

Re: [U-Boot] disabling mmc in spl when booting using bootrom

2016-08-11 Thread Ziyuan Xu
On 2016年08月11日 19:39, Sandy Patterson wrote: On Thu, Aug 11, 2016 at 7:35 AM, Ziyuan Xu > wrote: On 2016年08月11日 19:31, Sandy Patterson wrote: Simon, I am trying to format a patch to disable MMC in the SPL if

Re: [U-Boot] [PATCH 0/2] efi_loader: Implement reset on RPi

2016-08-11 Thread Alexander Graf
On 08.08.16 23:44, Simon Glass wrote: > Hi, > > On 7 August 2016 at 10:59, Andreas Färber wrote: >> Am 14.07.2016 um 08:18 schrieb Alexander Graf: Am 14.07.2016 um 06:48 schrieb Andreas Färber : Hi Alex, > Am 05.06.2016 um 23:17

Re: [U-Boot] [PATCH v3] drivers: net: cpsw: always flush cache of size aligned to PKTALIGN

2016-08-11 Thread Tom Rini
On Thu, Aug 11, 2016 at 01:00:59PM +0530, Lokesh Vutla wrote: > cpsw tries to flush dcache which is not in the range of PKTALIGN. > Because of this the following warning comes while flushing: > > CACHE: Misaligned operation at range [dffecec0, dffed016] > > Fix it by flushing cache of size

Re: [U-Boot] [PATCH v3] drivers: net: cpsw: always flush cache of size aligned to PKTALIGN

2016-08-11 Thread Mugunthan V N
On Thursday 11 August 2016 01:00 PM, Lokesh Vutla wrote: > cpsw tries to flush dcache which is not in the range of PKTALIGN. > Because of this the following warning comes while flushing: > > CACHE: Misaligned operation at range [dffecec0, dffed016] > > Fix it by flushing cache of size aligned to

[U-Boot] [PATCH v3 12/27] sf: Simplify lock ops detection code

2016-08-11 Thread Jagan Teki
Simplify the flash_lock ops detection code and added meaningful comment. Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc:

[U-Boot] [PATCH v3 16/27] sf: nr_sectors -> n_sectors

2016-08-11 Thread Jagan Teki
Rename nr_sectors as n_sectors to sync with Linux. Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad

[U-Boot] [PATCH v3 17/27] sf: Add SPI_FLASH_MAX_ID_LEN

2016-08-11 Thread Jagan Teki
Add id length of 5 bytes numerical value to macro. Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad

[U-Boot] [PATCH 1/5] configs: am335x: Enable CMD_TIME

2016-08-11 Thread Lokesh Vutla
Enable CONFIG_CMD_TIME for all am335x platforms Signed-off-by: Lokesh Vutla --- configs/am335x_boneblack_defconfig | 1 + configs/am335x_evm_defconfig | 1 + configs/am335x_evm_nor_defconfig | 1 + configs/am335x_evm_norboot_defconfig | 1 +

[U-Boot] [PATCH 0/5] ARM: Enable CMD_TIME on all TI platforms

2016-08-11 Thread Lokesh Vutla
This series enables CMD_TIME on all TI platforms. Lokesh Vutla (5): configs: am335x: Enable CMD_TIME configs: am43xx: Enable CMD_TIME configs: am57xx: Enable CMD_TIME configs: dra7xx: Enable CMD_TIME configs: ks2: Enable CMD_TIME configs/am335x_boneblack_defconfig| 1 +

Re: [U-Boot] [PATCH] rockchip: Fix SPL console output when ROCKCHIP_SPL_BACK_TO_BROM is enabled

2016-08-11 Thread Sandy Patterson
On Wed, Aug 10, 2016 at 11:01 PM, Ziyuan Xu wrote: > > > On 2016年08月10日 22:21, Sandy Patterson wrote: > >> Move back_to_bootrom() call later in SPL init so that the console is >> initialized and printouts happen. >> >> Currently when ROCKCHIP_SPL_BACK_TO_BROM is enabled

[U-Boot] [PATCH 1/3 v2] Sandbox: document support of block device emulation

2016-08-11 Thread Stefan Brüns
Signed-off-by: Stefan Brüns Acked-by: Simon Glass --- board/sandbox/README.sandbox | 19 +++ 1 file changed, 19 insertions(+) diff --git a/board/sandbox/README.sandbox b/board/sandbox/README.sandbox index ed820d3..02d8ab3 100644

[U-Boot] [PATCH 2/2] armv8:ls1012a: Use common MMDC driver for ls1012a

2016-08-11 Thread Shengzhou Liu
Let's use common MMDC driver for DDR initialization on LS1012ARDB, LS1012AQDS, LS1012AFRDM boards. Signed-off-by: Shengzhou Liu --- board/freescale/ls1012afrdm/ls1012afrdm.c | 116 -- board/freescale/ls1012aqds/ls1012aqds.c | 116

[U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-11 Thread Shengzhou Liu
This patch adds basic support for Freescale MMDC(Multi Mode DDR Controller). Currently MMDC is integrated on ARMv8 LS1012A SoC for DDR3L, there will be a update to this driver to support more flexible configuration if new features (DDR4, multiple controllers/chip selections, etc) are implimented

Re: [U-Boot] [PATCH v2] drivers: net: cpsw: always flush cache of size PKTSIZE_ALIGN

2016-08-11 Thread Lokesh Vutla
On Thursday 11 August 2016 03:11 AM, Joe Hershberger wrote: > Hi Lokesh, > > On Wed, Aug 10, 2016 at 7:02 AM, Lokesh Vutla wrote: >> >> >> On Wednesday 10 August 2016 08:43 AM, Joe Hershberger wrote: >>> Hi Lokesh >>> >>> On Tue, Aug 9, 2016 at 12:47 AM, Lokesh Vutla

[U-Boot] [PATCH v3 04/27] spi: Remove SPI_RX_FAST

2016-08-11 Thread Jagan Teki
Removed SPI_RX_FAST since default read for spi slaves are always 1-wire fast read. Cc: Simon Glass Cc: Bin Meng Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Vignesh R Cc: Mugunthan V N

[U-Boot] [PATCH v3 06/27] sf: Add CONFIG_SPI_FLASH_USE_4K_SECTORS in spi_flash

2016-08-11 Thread Jagan Teki
Add CONFIG_SPI_FLASH_USE_4K_SECTORS in spi_flash code from header file. Cc: Simon Glass Cc: Bin Meng Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Vignesh R Cc: Mugunthan V N

[U-Boot] [PATCH v3 09/27] sf: Add JEDEC_ID and JEDEC_EXT macro

2016-08-11 Thread Jagan Teki
Few of the flash families with different ext_jedec have changes in page_size so these macros check these ext_jedec and assign page_size accordingly Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V

[U-Boot] [PATCH v3 23/27] sf: Rename sf_params.c to spi_flash_ids

2016-08-11 Thread Jagan Teki
spi_flash_ids.c is more meaningful name as the flash_info table structure spi_flash_info has spi_flash_ids instance. Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc:

[U-Boot] [PATCH v3 22/27] sf: Remove non-meaningful comments

2016-08-11 Thread Jagan Teki
Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki

[U-Boot] [PATCH v3 25/27] sf: ids: Use small letter in ext_jedec

2016-08-11 Thread Jagan Teki
Use small 'd' in s25s512s ext_jedec Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu

Re: [U-Boot] [PATCH v2] serial: bcm283x_mu: Detect disabled serial device

2016-08-11 Thread Alexander Graf
On 09.08.16 06:28, Stephen Warren wrote: > On 08/04/2016 05:15 PM, Alexander Graf wrote: >> >>> On 04 Aug 2016, at 20:11, Stephen Warren wrote: >>> >>> On 08/04/2016 01:11 AM, Alexander Graf wrote: On the raspberry pi, you can disable the serial port to gain dynamic

[U-Boot] [PATCH 3/5] configs: am57xx: Enable CMD_TIME

2016-08-11 Thread Lokesh Vutla
Enable CONFIG_CMD_TIME for all am57x platforms Signed-off-by: Lokesh Vutla --- configs/am57xx_evm_defconfig| 1 + configs/am57xx_hs_evm_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig index

[U-Boot] [PATCH] tools/env: ensure environment starts at erase block boundary

2016-08-11 Thread Andreas Fenkart
56086921 added support for unaligned environments access. U-boot itself does not support this: - env_nand.c fails when using an unaligned offset. It produces an error in nand_erase_opts{drivers/mtd/nand/nand_util.c} - in env_sf/env_flash the unused space at the end is preserved, but not in the

[U-Boot] [PATCH 3/5] mmc: sd: add erase timeout support

2016-08-11 Thread Peng Fan
Add timeout in mmc_cmd, we can use this in driver code. Add mmc_sd_erase_timeout, this function is modified from linux kernel. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass Cc: Bin Meng Cc: Stefan

[U-Boot] [PATCH 4/5] mmc: esdhc: change timeout value

2016-08-11 Thread Peng Fan
Change timeout according to the timeout value in mmc_cmd->timeout. Signed-off-by: Peng Fan Cc: Jaehoon Chung --- drivers/mmc/fsl_esdhc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH 2/2] serial: bcm283x_mu: Detect disabled serial device

2016-08-11 Thread Alexander Graf
On the raspberry pi, you can disable the serial port to gain dynamic frequency scaling which can get handy at times. However, in such a configuration the serial controller gets its rx queue filled up with zero bytes which then happily get transmitted on to whoever calls getc() today. This patch

[U-Boot] [PATCH 1/2] bcm2835_gpio: Implement GPIOF_FUNC

2016-08-11 Thread Alexander Graf
So far we could only tell the gpio framework that a GPIO was mapped as input or output, not as alternative function. This patch adds support for determining whether a function is mapped as alternative. Signed-off-by: Alexander Graf --- arch/arm/mach-bcm283x/include/mach/gpio.h |

[U-Boot] FIT image without relocation

2016-08-11 Thread Stefan Agner
Hi All, Just learn the hard way that avoiding relocation (using fdt_high=0x and initrd_high=0x) can be rather dangerous. My setup: Linux Kernel, Device Tree plus SquashFS used via RAM block device (BLK_DEV_RAM). Downloading the files individually worked, so I knew my setup is

Re: [U-Boot] [PATCH 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-11 Thread Jaehoon Chung
Hi Peng, On 08/11/2016 08:00 PM, Peng Fan wrote: > Add function to read SD_STATUS information. > According to the information, get erase_timeout/erase_size/erase_offset. > Add a structure sd_ssr to include the erase related information. > > Signed-off-by: Peng Fan > Cc:

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Richard Weinberger
Am 11.08.2016 um 13:49 schrieb Daniel Golle: > Hi! > > On Thu, Aug 11, 2016 at 04:28:47AM -0700, J Mo wrote: >> >> I got that good old feeling... like I just jumped onto a bag of flaming poo. >> Ha ha >> >> >> >> On 08/11/2016 03:40 AM, Daniel Golle wrote: >>> >>> Understandable. However, we also

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
Hi, On Thu, Aug 11, 2016 at 05:18:08AM -0700, J Mo wrote: > > > On 08/11/2016 04:28 AM, J Mo wrote: > > > > Hm, I just found another example. I don't know why this didn't turn up > > in my searches yesterday since it's a perfect match with the EXACT > > error. This too was on a QSDK AP148: > >

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
On Thu, Aug 11, 2016 at 02:22:58PM +0200, Richard Weinberger wrote: > Did you intentional drop linux-mtd from the CC's after I offered you > to discuss your patches on linux-mtd? ;-) I replied twice, once including all the CC's with the intention to contribute to the general debate. And once to

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread J Mo
On 08/11/2016 05:31 AM, Daniel Golle wrote: That's what I told you in the previous mail, removing the rootfs= parameter from the dts should do the trick, because you just cannot mount a ubi device (which is a character device in Linux) with a block-based filesystem (like squashfs). This cannot

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
Hi J, On Thu, Aug 11, 2016 at 06:15:32AM -0700, J Mo wrote: > > > On 08/11/2016 05:31 AM, Daniel Golle wrote: > > That's what I told you in the previous mail, removing the rootfs= > > parameter from the dts should do the trick, because you just cannot > > mount a ubi device (which is a

Re: [U-Boot] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Richard Weinberger
Hi! On Thu, Aug 11, 2016 at 4:26 AM, J Mo wrote: > I tried re-flashing my UBI and tftpbooting my kernel before u-boot could > ever get a chance to mangle it, and now I get much further, though I'm still > not able to mount my rootfs for unknown reasons: > > [3.772502]

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread Daniel Golle
Hi Richard, On Thu, Aug 11, 2016 at 11:51:10AM +0200, Richard Weinberger wrote: > Hi! > > On Thu, Aug 11, 2016 at 4:26 AM, J Mo wrote: > > I tried re-flashing my UBI and tftpbooting my kernel before u-boot could > > ever get a chance to mangle it, and now I get much further,

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread J Mo
On 08/11/2016 04:28 AM, J Mo wrote: Hm, I just found another example. I don't know why this didn't turn up in my searches yesterday since it's a perfect match with the EXACT error. This too was on a QSDK AP148: https://patchwork.ozlabs.org/patch/509468/ I think I'll go rip that patch out

Re: [U-Boot] [LEDE-DEV] Older u-boot mangles UBI from ubinize 1.5.2

2016-08-11 Thread J Mo
I got that good old feeling... like I just jumped onto a bag of flaming poo. Ha ha On 08/11/2016 03:40 AM, Daniel Golle wrote: Understandable. However, we also need to experiment and figure out the mess left behind by $vendor which often doesn't leave a lot of reasonable options for

[U-Boot] building u-boot x86 with device tree disabled , still refers to device tree function

2016-08-11 Thread Ding, ChiX
Hi there I'm building u-boot as payload for x86 platform. I didn't enable device tree in menuconfig (CONFIG_OF_CONTROL is not set) because I use a board config file coreboot.h. When I built u-boot, it reports error during linking stage : undefined reference to dm_scan_fdt_dev

[U-Boot] Boot failure with a AT91RM9200 based custom board

2016-08-11 Thread Peter Kardos
Greetings, I'm looking for a AT91RM9200 specialist as I've got stuck porting board support from a old u-boot (v1.1.4) to the latest stable (v2016.07)... I'm using the at91r9200ek board as a template to get things running... With the patches i can get to the state below and here the board

[U-Boot] [PATCH V2] mmc: mmc_legacy: fix the compiler error with disabled CONFIG_DM_MMC_OPS

2016-08-11 Thread Jaehoon Chung
To prevent the compiler error, split the checking condition whether cfg->ops is NULL or not. It's more clearly, because it's not included in mmc_config structure when CONFIG_DM_MMC_OPS is disabled. drivers/mmc/mmc_legacy.c: In function ‘mmc_create’: drivers/mmc/mmc_legacy.c:118:31: error: ‘const

Re: [U-Boot] [PATCH 1/2 v3] x86: Add DFI BT700 BayTrail board support

2016-08-11 Thread Bin Meng
Hi Stefan, On Fri, Aug 12, 2016 at 9:44 AM, Bin Meng wrote: > On Tue, Jul 19, 2016 at 1:51 PM, Stefan Roese wrote: >> This patch adds support for the DFI BayTrail BT700 QSeven SoM installed >> on the DFI Q7X-151 baseboard. The baseboard is equipped with the

Re: [U-Boot] [PATCH 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-11 Thread Peng Fan
Hi Jaehoon, On Fri, Aug 12, 2016 at 11:08:28AM +0900, Jaehoon Chung wrote: >Hi Peng, > >On 08/11/2016 08:00 PM, Peng Fan wrote: >> Add function to read SD_STATUS information. >> According to the information, get erase_timeout/erase_size/erase_offset. >> Add a structure sd_ssr to include the erase

Re: [U-Boot] [PATCH 5/5] mmc: sd: optimize erase

2016-08-11 Thread Peng Fan
Hi Fabio, On Thu, Aug 11, 2016 at 09:53:31PM -0300, Fabio Estevam wrote: >Hi Peng, > >On Thu, Aug 11, 2016 at 8:00 AM, Peng Fan wrote: >> To SD, there is no erase group, then the value erase_grp_size >> will be default 1. When erasing SD blocks, the blocks will be >> erased

Re: [U-Boot] [PATCH 5/5] mmc: sd: optimize erase

2016-08-11 Thread Fabio Estevam
Hi Peng, On Fri, Aug 12, 2016 at 12:02 AM, Peng Fan wrote: >>Just curious: what was the measured increase in performace for the >>erase operation with your series? > > Erasing 4MB. > Before applying this patch set > => time mmc erase 0x10 0x2000 > > MMC erase: dev #

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread york sun
I saw some errors when compiling for arm. Compiling for power is still going. York -- [...truncated 15335 lines...] aarch64: + ls1043aqds_sdcard_ifc + u16 jedec, ext_jedec; + ^ + ^ w+../drivers/mtd/spi/spi_flash.c: In function ‘spi_flash_scan’:

Re: [U-Boot] [RFC: v2] tools/env: ensure environment starts at erase block boundary

2016-08-11 Thread Stefan Agner
On 2016-08-11 12:39, Andreas Fenkart wrote: > 56086921 added support for unaligned environments access. > U-boot itself does not support this: > - env_nand.c fails when using an unaligned offset. It produces an > error in nand_erase_opts{drivers/mtd/nand/nand_util.c} > - in env_sf/env_flash the

Re: [U-Boot] [PATCH 5/5] mmc: sd: optimize erase

2016-08-11 Thread Fabio Estevam
Hi Peng, On Thu, Aug 11, 2016 at 8:00 AM, Peng Fan wrote: > To SD, there is no erase group, then the value erase_grp_size > will be default 1. When erasing SD blocks, the blocks will be > erased one by one, which is time consuming. > > use AU_SIZE as a group to speed up

[U-Boot] [PATCH] kconfig: use bool instead of boolean for type definition attributes

2016-08-11 Thread Masahiro Yamada
Linux stopped the use of keyword 'boolean' in Kconfig. Refer to commit 6341e62b212a2541efb0160c470e90bd226d5496 ("kconfig: use bool instead of boolean for type definition attributes") in Linux Kernel. Signed-off-by: Masahiro Yamada --- arch/arm/cpu/armv7/Kconfig

[U-Boot] [PATCH v2] kconfig: use bool instead of boolean for type definition attributes

2016-08-11 Thread Masahiro Yamada
Linux stopped the use of keyword 'boolean' in Kconfig. Refer to commit 6341e62b212a2541efb0160c470e90bd226d5496 ("kconfig: use bool instead of boolean for type definition attributes") in Linux Kernel. Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix a

Re: [U-Boot] [PATCH v2 5/7] smbios: Expose in efi_loader as table

2016-08-11 Thread Bin Meng
On Thu, Aug 11, 2016 at 5:48 PM, Alexander Graf wrote: > We can pass SMBIOS easily as EFI configuration table to an EFI payload. This > patch adds enablement for that case. > > While at it, we also enable SMBIOS generation for ARM systems, since they > support > EFI_LOADER. > >

Re: [U-Boot] [PATCH v2 7/7] smbios: Provide serial number

2016-08-11 Thread Bin Meng
On Fri, Aug 12, 2016 at 5:45 AM, Alexander Graf wrote: > If the system has a valid "serial#" environment variable set (which boards > that > can find it out programatically set automatically), use that as input for the > serial number and UUID fields in the SMBIOS tables. > >

Re: [U-Boot] [PATCH] x86: conga-qeval20-qa3: Add SMBus support and SMSC2513 config code

2016-08-11 Thread Bin Meng
On Tue, Jul 12, 2016 at 1:20 PM, Bin Meng wrote: > On Tue, Jun 28, 2016 at 9:45 PM, Stefan Roese wrote: >> This patch includes the following changes: >> >> - Remove Designware I2C support from dts as its not used >> - Configure SMBus PADs in dts >> - Enable I2C

Re: [U-Boot] [PATCH v2] i2c: intel_i2c: SMBus driver PCI addition (e.g. BayTrail)

2016-08-11 Thread Bin Meng
On Wed, Aug 10, 2016 at 10:59 AM, Simon Glass wrote: > Hi Stefan, > > On 8 August 2016 at 23:41, Stefan Roese wrote: >> This patch adds support for the SMBus block read/write functionality. >> Other protocols like the SMBus quick command need to get added >> if

[U-Boot] [PATCH 0/5] add pinctrl driver for rk3399

2016-08-11 Thread Kever Yang
This patch set add the pinctrl driver for rk3399 and enable pinctrl for pwm module. Module with pinctrl driver support and with interrupt number and default pinctrl in dts node will get pinctrl initialized when driver probe. Module like pwm which without interrupt number need to call the pinctrl

Re: [U-Boot] [PATCH 1/2 v3] x86: Add DFI BT700 BayTrail board support

2016-08-11 Thread Bin Meng
On Tue, Jul 19, 2016 at 1:51 PM, Stefan Roese wrote: > This patch adds support for the DFI BayTrail BT700 QSeven SoM installed > on the DFI Q7X-151 baseboard. The baseboard is equipped with the Nuvoton > NCT6102D Super IO chip providing the UART as console. > > Signed-off-by: Stefan

[U-Boot] [PATCH 1/5] rk3399: syscon: add support for pmugrf

2016-08-11 Thread Kever Yang
pmugrf is a module like grf which contain some of the iomux registers and other registers. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/clock.h| 1 + arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 1 + 2 files changed, 2 insertions(+) diff

Re: [U-Boot] [PATCH 2/2] x86: Add theadorable-x86-dfi-bt700 board support

2016-08-11 Thread Bin Meng
On Tue, Jul 19, 2016 at 12:24 PM, Bin Meng wrote: > On Wed, Jul 13, 2016 at 2:04 PM, Stefan Roese wrote: >> This patch adds support for the BayTrail based theadorable-x86-dfi-bt700 >> board which uses the DFI BT700 BayTrail Qseven SoM on a custom baseboard. >>

[U-Boot] [PATCH 5/5] dts: rk3399: add pinctrl for sdmmc

2016-08-11 Thread Kever Yang
This patch add pinctrl for sdcard which may not be initialized before uboot. Signed-off-by: Kever Yang --- arch/arm/dts/rk3399.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/dts/rk3399.dtsi

[U-Boot] [PATCH 3/5] config: evb-rk3399: enable pinctrl driver

2016-08-11 Thread Kever Yang
This patch enable rk3399 pinctrl driver and gpio driver which is sub-node of pinctrl. Signed-off-by: Kever Yang --- configs/evb-rk3399_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-rk3399_defconfig b/configs/evb-rk3399_defconfig index

[U-Boot] [PATCH 4/5] rk3399: enable the pwm2/3 pinctrl in board init

2016-08-11 Thread Kever Yang
There is no interrupt line for each PWM which used by pinctrl to get the periph_id, so it's not able to enable the default pinctrl setting by pinctrl framework, let's enable it at board_init(). Signed-off-by: Kever Yang --- board/rockchip/evb_rk3399/evb-rk3399.c | 31

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread york sun
On 08/11/2016 09:17 AM, Jagan Teki wrote: > On 11 August 2016 at 20:47, york sun wrote: >> On 08/11/2016 08:12 AM, york@nxp.com wrote: >>> On 08/11/2016 01:15 AM, Jagan Teki wrote: Tested on microzed and sandbox Tested-by: Jagan Teki

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread Jagan Teki
On 11 August 2016 at 21:50, york sun wrote: > On 08/11/2016 09:17 AM, Jagan Teki wrote: >> On 11 August 2016 at 20:47, york sun wrote: >>> On 08/11/2016 08:12 AM, york@nxp.com wrote: On 08/11/2016 01:15 AM, Jagan Teki wrote: > > Tested on

Re: [U-Boot] [PATCH 1/2] driver/ddr/fsl: Add general MMDC driver

2016-08-11 Thread york sun
On 08/10/2016 09:55 PM, Shengzhou Liu wrote: > This patch adds basic support for Freescale MMDC(Multi Mode DDR Controller). > Currently MMDC is integrated on ARMv8 LS1012A SoC for DDR3L, there will be a > update to this driver to support more flexible configuration if new features > (DDR4,

[U-Boot] [PATCH 2/3 v2] sandbox: Add "host size" hostfs command for fs test

2016-08-11 Thread Stefan Brüns
This complements the size/fatsize/ext4size commands added in commit cf6598193aed5de8855eaf70c1994f2bc437255a load, save and ls are already implemented for hostfs, now tests can cover the same operations on hostfs and emulated block devices. Signed-off-by: Stefan Brüns

[U-Boot] [PATCH v3 11/27] sf: Add JEDEC_MFR

2016-08-11 Thread Jagan Teki
Instead using idcode[0] for detecting manufacture id add JEDEC_MFR macro for code simplicity and undesirability. Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal

[U-Boot] [PATCH v3 18/27] sf: Increase max id length by 1 byte

2016-08-11 Thread Jagan Teki
So, now SPI_FLASH_ID_MAX_LEN is 6 bytes useful for few spansion flash families S25FS-S Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek

[U-Boot] [PATCH v3 14/27] sf: Cleanup spi_flash_info{}

2016-08-11 Thread Jagan Teki
- Proper tabs spaces - Removed unnecessary - Added meaningful comments  Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek Cc: Siva

[U-Boot] [PATCH v3 20/27] sf: params: Add S25FS256S_64K spi flash support

2016-08-11 Thread Jagan Teki
Add Spansion S25FS256S_64K spi flash to the list of spi_flash_ids. In spansion S25FS-S family the physical sectors are grouped as normal and parameter sectors. Parameter sectors are 4kB in size with 8 set located at the bottom or top address of a device. Normal sectors are similar to other flash

[U-Boot] [PATCH v3 15/27] sf: Cleanup sf_params

2016-08-11 Thread Jagan Teki
- Move headers froms sf_params to common header file - Removed unnecessary comment Cc: Simon Glass Cc: Bin Meng Cc: York Sun Cc: Vignesh R Cc: Mugunthan V N Cc: Michal Simek

[U-Boot] [PATCH 1/5] mmc: sd: extracting erase timeout information from sd status

2016-08-11 Thread Peng Fan
Add function to read SD_STATUS information. According to the information, get erase_timeout/erase_size/erase_offset. Add a structure sd_ssr to include the erase related information. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: Simon Glass

Re: [U-Boot] [PATCH] net: asix: Fix ASIX 88772B with driver model

2016-08-11 Thread Marek Vasut
On 08/11/2016 10:52 AM, Alban Bedel wrote: > On Tue, 9 Aug 2016 14:32:14 +0200 > Marek Vasut wrote: > >> On 08/09/2016 02:14 PM, Marcel Ziswiler wrote: >>> On Thu, 2016-08-04 at 11:12 +0200, Marek Vasut wrote: On 08/04/2016 11:07 AM, Alban Bedel wrote: > > On Wed, 3

[U-Boot] [PATCH] ARM: make ARMV7_LPAE select PHYS_64BIT

2016-08-11 Thread Masahiro Yamada
As you see in arch/arm/include/asm/types.h, CONFIG_PHYS_64BIT determines the size of phys_addr_t. The ARM Large Physical Address Extension allows CPUs to access a physical address space larger than 4GB, so the physical address may not fit in 32bit long phys_addr_t. Signed-off-by: Masahiro Yamada

Re: [U-Boot] [PATCH v2 0/5] Enable caches for the RPi2

2016-08-11 Thread Alexander Graf
On 25.03.16 05:13, Stephen Warren wrote: > On 03/16/2016 08:41 AM, Alexander Graf wrote: >> This patch set converts the Raspberry Pi 2 system to properly make use of >> the caches available in it. >> >> Because we're running in HYP mode, we first need to teach U-Boot how to >> make use of HYP

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread york sun
On 08/11/2016 08:12 AM, york@nxp.com wrote: > On 08/11/2016 01:15 AM, Jagan Teki wrote: >> >> Tested on microzed and sandbox >> >> Tested-by: Jagan Teki >> >> I've some host issues while running buildman, can anyone please run >> buildman? >> > > I can compile for power

Re: [U-Boot] [PATCH] ARM: make ARMV7_LPAE select PHYS_64BIT

2016-08-11 Thread Alexander Graf
On 11.08.16 15:36, Masahiro Yamada wrote: > As you see in arch/arm/include/asm/types.h, CONFIG_PHYS_64BIT > determines the size of phys_addr_t. The ARM Large Physical Address > Extension allows CPUs to access a physical address space larger than > 4GB, so the physical address may not fit in

[U-Boot] [PATCH v3 05/27] sf: Remove SECT_32K

2016-08-11 Thread Jagan Teki
SECT_32K never used anywhere in the code. Cc: Simon Glass Cc: Bin Meng Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Vignesh R Cc: Mugunthan V N Signed-off-by:

[U-Boot] [PATCH v3 08/27] sf: Adopt flash table INFO macro from Linux

2016-08-11 Thread Jagan Teki
INFO macro make flash table entries more adjustable like adding new flash_info attributes, update ID length bytes and so on and more over it will sync to Linux way of defining flash_info attributes. Cc: Simon Glass Cc: Bin Meng Cc: York Sun

Re: [U-Boot] [PATCH v3 00/27] spi/sf: Updates on flash detection

2016-08-11 Thread Jagan Teki
On 11 August 2016 at 13:36, Jagan Teki wrote: > Updated spi_flash_info table in sync with Linux, and removed > legacy and unsupported code. > > Changes for v3: > - New patches > - Fix checkpatch.pl > - Fix BIT positions in spi.h > - Fix

  1   2   >