[PATCH v2] cmd: gpio: Add `gpio read` subcommand

2022-04-11 Thread Diego Rondini
the value of a GPIO in scripts we introduce the `gpio read` command that sets the variable `name` to the value of the pin. Return code of the `gpio read` command can be used to check for CMD_RET_SUCCESS or CMD_RET_FAILURE. CONFIG_CMD_GPIO_READ is used to enable the `gpio read` command. Signed-off

[PATCH] cmd: gpio: Add `gpio read` subcommand

2022-03-22 Thread Diego Rondini
the value of a GPIO in scripts we introduce the `gpio read` command that sets the variable `name` to the value of the pin. Return code of the `gpio read` command can be used to check for CMD_RET_SUCCESS or CMD_RET_FAILURE. Signed-off-by: Diego Rondini --- cmd/gpio.c

[PATCH] vexpress64_fvp: Set DRAM to 4G to match with kernel devicetree

2021-02-15 Thread Diego Sueiro
Currently, the kernel devicetree is setting the DRAM size to ~4G. Signed-off-by: Diego Sueiro --- configs/vexpress_aemv8a_semi_defconfig | 2 +- include/configs/vexpress_aemv8a.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/vexpress_aemv8a_semi_defconfig

Re: [U-Boot] How to enable USB Mass Storage

2020-05-22 Thread Diego Rondini
eported also elsewhere: http://patchwork.ozlabs.org/project/uboot/patch/caexmxltm9bhx7aaub+mazgbdw2ccsoo3ne6ep7dbm8mmrya...@mail.gmail.com/#1976362 http://linux-sunxi.org/U-Boot/USB_Mass_Storage#Prerequisites Regards, Diego Rondini

Re: Sourcing a signed boot script

2019-12-06 Thread Diego Rondini
Hi Lukasz, On Thu, Dec 5, 2019 at 11:14 PM Lukasz Majewski wrote: > > Hi Diego, > > > Hi, > > > > I would like to ask if it is possible to source a script after > > verifying its signature. > > > > Currently I've been able to source a script fro

Sourcing a signed boot script

2019-12-05 Thread Diego Rondini
According to the docs[1] it seems that it's not possible yet to verify a FIT image signature without also booting the corresponding image. Is that right? [1] https://gitlab.denx.de/u-boot/u-boot/blob/v2019.10/doc/uImage.FIT/signature.txt#L580 Thank you, Diego Rondini

Re: [PATCH v2] sun8i: h3: Support H3 variant of Orange Pi Zero Plus 2

2019-12-05 Thread Diego Rondini
On Tue, Nov 19, 2019 at 2:47 PM Diego Rondini wrote: > > Orangepi Zero Plus 2 is an open-source single-board computer, available > in two Allwinner SOC variants, H3 and H5. We add support for H3 variant > here, as the H5 is already supported. > > H3 Orangepi Zero Plus 2 has: &g

[U-Boot] [PATCH v2] sun8i: h3: Support H3 variant of Orange Pi Zero Plus 2

2019-11-19 Thread Diego Rondini
a6912f4811) has been avoided as it breaks U-Boot build. Signed-off-by: Diego Rondini --- Changes in v2: - clarify where the dts comes from --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts | 139 ++ boa

[U-Boot] [PATCH] sun8i: h3: Support H3 variant of Orange Pi Zero Plus 2

2019-11-06 Thread Diego Rondini
- Wifi + BT - OTG + power supply Signed-off-by: Diego Rondini --- arch/arm/dts/Makefile | 3 +- arch/arm/dts/sun8i-h3-orangepi-zero-plus2.dts | 139 ++ board/sunxi/MAINTAINERS | 5 + configs/orangepi_zero_plus2_h3_defconfig

Re: [U-Boot] [linux-sunxi] A20-olinuxino-micro hangs in U-boot if powered from MINI-USB only.

2018-12-24 Thread Diego Roversi
the usb otg, and for a fraction of second the power is disconnected. I solved it by attaching a battery (and I have a PSU as a side effect :) ). Regards, Diego. -- Diego Roversi ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] mx8mqevk: Update README with additional info

2018-01-23 Thread Diego Dorta
The main reason for this update is due the currently README has no enough info to boot the board. Add a few more steps that make the board bootable. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- This patch depends on Peng Fan's patch series: https://patchwork.ozlabs.org/cover/

[U-Boot] [PATCH] mx8mqevk: Update README with additional info

2018-01-23 Thread Diego Dorta
The main reason for this update is due the currently README has no enough info to boot the board. Add a few more steps that make the board bootable. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- This patch depends on Peng Fan's patch series: https://patchwork.ozlabs.org/cover/

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-22 Thread Diego Dorta
add i.MX8M support > mmc: fsl_esdhc: support i.MX8M > imx: lcdif: include i.MX8M > gpio: mxc: add i.MX8M support > net: fec: do not access reserved register for i.MX8M > imx: imx8mq: add dtsi file > power: pmic/regulator all

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-18 Thread Diego Dorta
Regards, > Peng. I talked to Peng offline, and we will work on improving the README file. Thanks, Diego ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-17 Thread Diego Dorta
Hi Peng, 2018-01-16 10:25 GMT-02:00 Peng Fan <peng@nxp.com>: > > >> -Original Message----- >> From: Diego Dorta [mailto:diegohdo...@gmail.com] >> Sent: Tuesday, January 16, 2018 8:15 PM >> To: Peng Fan <van.free...@gmail.com> >>

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-16 Thread Diego Dorta
Hi Peng, 2018-01-13 8:55 GMT-02:00 Peng Fan <van.free...@gmail.com>: > Hi Diego, > On Thu, Jan 11, 2018 at 10:36:02AM -0200, Diego Dorta wrote: >>Hi Peng, >> >>2018-01-10 23:16 GMT-02:00 Peng Fan <van.free...@gmail.com>: >>> Hi Diego, >>> >

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-11 Thread Diego Dorta
Hi Peng, 2018-01-10 23:16 GMT-02:00 Peng Fan <van.free...@gmail.com>: > Hi Diego, > > On Wed, Jan 10, 2018 at 11:08:54AM -0200, Diego Dorta wrote: >>Hi Peng, >> >>2018-01-10 3:20 GMT-02:00 Peng Fan <peng@nxp.com>: >>> This patchset is

Re: [U-Boot] [PATCH V5 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-10 Thread Diego Dorta
ddr controller memory map > imx: add i.MX8MQ EVK support > > Tom Rini (1): > arm: imx: Rework i.MX specific commands to be excluded from SPL Thanks for your V5 patches, this time I had no problem on compiling it. But, even following your README step by step, the U-Boot hangs completely on this point: U-Boot SPL 2018.01-00038-gb464677cc7 (Jan 10 2018 - 09:50:45) PMIC: PFUZE100 ID=0x10 PMU message timeout Normal Boot Trying to boot from MMC2 Do you know how to solve it? If so, please add this information on the README file. Thanks, Diego ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH V3 00/31] imx: add i.MX8M support and i.MX8MQ EVK

2018-01-09 Thread Diego Dorta
board/freescale/mx8mq_evk/ddr/ddr_init.c patching file board/freescale/mx8mq_evk/ddr/ddrphy_train.c patching file board/freescale/mx8mq_evk/ddr/helper.c patching file board/freescale/mx8mq_evk/mx8mq_evk.c patching file board/freescale/mx8mq_evk/spl.c patching file configs/mx8mq_evk_defconfig patching file include/configs/mx8mq_evk.h Is this right? How can I avoid this error? Thanks, Diego ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK

2017-12-01 Thread Diego Dorta
Hi Peng, 2017-11-29 0:42 GMT-02:00 Peng Fan <van.free...@gmail.com>: > Hi Diego, > > On Tue, Nov 28, 2017 at 02:42:20PM -0200, Diego Dorta wrote: >>Hi Peng Fan, >> >>2017-11-28 10:31 GMT-02:00 Peng Fan <peng@nxp.com>: >>> This patchset is to

Re: [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK

2017-11-28 Thread Diego Dorta
> in mailist to not merged. Pick it up. > > The board support is a large patch because of the ddr related code. > If it is not good, please first review/pick-up other patches if they > are ok. > I applied your patches and I am facing the following errors: LD u-boot arch/arm/lib/b

[U-Boot] [PATCH 1/2] mx6: clock: Add a prototype for do_mx6_showclocks()

2017-10-05 Thread Diego Dorta
the function prototype into arch-mx6/clock.h file. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- arch/arm/include/asm/arch-mx6/clock.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/include/asm/arch-mx6/clock.h b/arch/arm/include/asm/arch-mx6/clock.h index 2d9c45e..26afefb

[U-Boot] [PATCH 2/2] mx6: sys_proto: Add prototypes for imx6_pcie_toggle() functions

2017-10-05 Thread Diego Dorta
’ [-Wmissing-prototypes] __weak int imx6_pcie_toggle_reset(void) Remove these warnings by adding the functions prototypes on arch-mx6/sys_proto. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- arch/arm/include/asm/arch-mx6/sys_proto.h | 3 +++ 1 file changed, 3 insertions(+) diff --git

[U-Boot] [PATCH] common: Add a prototype for s_init()

2017-10-05 Thread Diego Dorta
When compiling with W=1 the following warning is observed: arch/arm/mach-imx/mx6/soc.c:590:6: warning: no previous prototype for ‘s_init’ [-Wmissing-prototypes] void s_init(void) Remove this warning by adding the function prototype into include/common.h file. Signed-off-by: Diego Dorta

[U-Boot] [PATCH 3/4] usb: ehci-ci: Add a prototype for board_ehci_power()

2017-09-27 Thread Diego Dorta
file. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- include/usb/ehci-ci.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/usb/ehci-ci.h b/include/usb/ehci-ci.h index cd3eb47..8c9f3cd 100644 --- a/include/usb/ehci-ci.h +++ b/include/usb/ehci-ci.h @@ -280,6 +280,7 @@

[U-Boot] [PATCH 2/4] mx6sabresd: Include header file

2017-09-27 Thread Diego Dorta
When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:680:5: warning: no previous prototype for ‘board_spi_cs_gpio’ [-Wmissing-prototypes] int board_spi_cs_gpio(unsigned bus, unsigned cs) Remove this warning by including . Signed-off-by: Diego

[U-Boot] [PATCH 4/4] mx6sabresd: Include header file

2017-09-27 Thread Diego Dorta
When compiling with W=1 the following warning is observed: board/freescale/mx6sabresd/mx6sabresd.c:586:5: warning: no previous prototype for ‘board_ehci_hcd_init’ [-Wmissing-prototypes] int board_ehci_hcd_init(int port) Remove this warning by including . Signed-off-by: Diego Dorta <diego

[U-Boot] [PATCH 1/4] mx6: soc: Include header file

2017-09-27 Thread Diego Dorta
When compiling with W=1 the following warning is observed: arch/arm/mach-imx/mx6/soc.c:213:12: warning: no previous prototype for ‘get_board_rev’ [-Wmissing-prototypes] u32 __weak get_board_rev(void) Fix the build warning by including . Signed-off-by: Diego Dorta <diego.do...@nxp.

Re: [U-Boot] Issues with mx6 (cubox/wandboard) with 2017.09

2017-09-26 Thread Diego Dorta
l detected: default to HDMI Display: HDMI (1024x768) In:serial Out: serial Err: serial Net: FEC [PRIME] Hit any key to stop autoboot: 0 > ___ > U-Boot mailing list > U-Boot@lists.denx.de > https://lists.denx.de/listinfo/u-boot Thanks, Diego ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] imx: Include header file

2017-09-22 Thread Diego Dorta
When building with W=1 errors like the one below is seen: board/freescale/mx6sabresd/mx6sabresd.c:546:5: warning: no previous prototype for ‘overwrite_console’ [-Wmissing-prototypes] int overwrite_console(void) Fix the build warnings by including . Signed-off-by: Diego Dorta <diego

[U-Boot] [PATCH v2] imx: sys_proto: Add a prototype for board_mmc_get_env_dev()

2017-09-21 Thread Diego Dorta
file. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- Changes since v1: - Add 'mmc' prefix - Change function prototype to sys_proto.h - Update commit log accordingly arch/arm/include/asm/mach-imx/sys_proto.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/ma

[U-Boot] [PATCH] Remove "no previous prototype" warning

2017-09-21 Thread Diego Dorta
. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- include/mmc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mmc.h b/include/mmc.h index 010ebe0..3ddfc2d 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -588,6 +588,7 @@ int board_mmc_init(bd_t *bis); int cpu_mmc_init(bd_

Re: [U-Boot] [PATCHv4 0/2] ARM: sunxi: Add support for OLinuXino Lime2 eMMC

2017-07-26 Thread Diego
> On Mon, Jul 10, 2017 at 03:44:17PM +0200, Olliver Schinagl wrote: > > Ping, > > > > any reason this hasn't been merged yet? :) > > I don't know. Jagan? > > Maxime It looks like Jagan isn't responding. Anybody else tha

Re: [U-Boot] [PATCH] mx6sabreauto: Make Ethernet functional again

2017-07-13 Thread Diego Dorta
clock > delay that need to be done in the board file. > > This is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL <miquel.ray...@free-electrons.com> > Signed-o

Re: [U-Boot] [PATCH] mx6sabreauto: Make Ethernet functional again

2017-07-13 Thread Diego Dorta
clock > delay that need to be done in the board file. > > This is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL <miquel.ray...@free-electrons.com> > Signed-o

Re: [U-Boot] [PATCH] mx6sabreauto: Make Ethernet functional again

2017-07-13 Thread Diego Dorta
clock > delay that need to be done in the board file. > > This is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL <miquel.ray...@free-electrons.com> > Signed-o

[U-Boot] [PATCH] mx6sabreauto: Add Falcon mode support

2017-07-07 Thread Diego Dorta
Add support for Falcon mode and explain in the README the steps to boot the kernel directly without loading the full U-Boot. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- board/freescale/mx6sabreauto/README | 62 + board/freescale/mx6sab

Re: [U-Boot] U-boot multi-file format

2017-03-30 Thread Diego
In data domenica 19 marzo 2017 23:14:14 CEST, Diego ha scritto: > Hi all, > > I'm trying to use the multi-file format mentioned in pages 12-13 of "U-Boot > – Multi image booting scenarios" PDF slides. > > I'd like to use FIT format, but I already have units in th

[U-Boot] U-boot multi-file format

2017-03-19 Thread Diego
d? cpio.gz initramfs? Thanks for any help! Bests, Diego ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] mx6ull_14x14_evk: Add README file

2016-11-10 Thread Diego Dorta
Add a README file to help users getting started with the board. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- board/freescale/mx6ullevk/README | 36 1 file changed, 36 insertions(+) create mode 100644 board/freescale/mx6ullevk/README diff

Re: [U-Boot] Help with spl: zImage support in Falcon mode

2016-10-19 Thread Diego Dorta
Hi Ladislay, >From: Ladislav Michl <la...@linux-mips.org> >Sent: Wednesday, October 19, 2016 7:50 AM >To: Diego Dorta >Cc: u-boot@lists.denx.de; h...@denx.de >Subject: Re: Help with spl: zImage support in Falcon mode > >Hi, > >On Tue, Oct 18, 2016 at 04:36:54PM +0

[U-Boot] Help with spl: zImage support in Falcon mode

2016-10-18 Thread Diego Dorta
ROR: booting os 'Invalid OS' (0) is not supported ERROR: booting os 'Invalid OS' (0) is not supported ERROR prep subcommand failed! Subcommand failed I can't understand this error. Does anybody know how to fix it? Regards, Diego ___ U-Boot mailing

[U-Boot] [PATCH 2/2] mx6sabresd: Add README file

2016-10-11 Thread Diego Dorta
Add a README to explain the steps for booting mx6sabresd in different ways: 1. Booting via Normal U-Boot (u-boot.imx) 2. Booting via SPL (SPL and u-boot.img) 3. Booting via Falcon mode (SPL launches the kernel directly) Signed-off-by: Diego Dorta <diego.do...@nxp.com> ---

[U-Boot] [PATCH 1/2] mx6sabresd: Add Falcon mode support

2016-10-11 Thread Diego Dorta
Allow i.MX6Q Sabre SD to load the kernel and dtb via SPL in Falcon mode. Based on the Falcon mode code for MX6 Gateworks Ventana board. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- board/freescale/mx6sabresd/mx6sabresd.c | 12 include/configs/mx6sabresd.h

Re: [U-Boot] Help Falcon Mode on Wanboard

2016-08-13 Thread Diego Dorta
> From: Stefano Babic <sba...@denx.de> > > > Hi Diego, > > On 08/08/2016 18:12, Diego Dorta wrote: > > Hi Stefano, >> > > I downloaded the patch about Falcon Mode from: >> > > https://www.amazon.com/clouddrive/share/hVlzRXoJv1Jq4DJdgDc

[U-Boot] Help Falcon Mode on Wanboard

2016-08-08 Thread Diego Dorta
to solve this? Regards, Diego Dorta ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] mx6ul_14x14_evk: Remove unused define

2016-07-25 Thread Diego Dorta
Remove unused define constant. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c

[U-Boot] [PATCH] pico-imx6ul: Add NFS boot support

2016-06-15 Thread Diego Dorta
Add script for retrieving the kernel via TFTP and mounting the rootfs via NFS. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- include/configs/pico-imx6ul.h | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/include/configs/pico-imx6ul.h b/i

[U-Boot] [PATCH] pico-imx6ul: Add Ethernet support

2016-06-10 Thread Diego Dorta
Pico-imx6ul has a KSZ8081 Ethernet PHY. Add support for it. Signed-off-by: Diego Dorta <diego.do...@nxp.com> --- board/technexion/pico-imx6ul/pico-imx6ul.c | 84 ++ include/configs/pico-imx6ul.h | 10 2 files changed, 94 insertions(+) diff

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-05-10 Thread Diego
In data mercoledì 4 maggio 2016 23:36:46, Marek Vasut ha scritto: > On 05/04/2016 04:06 PM, Diego wrote: > > In data mercoledì 4 maggio 2016 13:45:57, Marek Vasut ha scritto: > >> On 05/04/2016 11:13 AM, Diego wrote: > >>> > >>> So I see three option

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-05-04 Thread Diego
In data mercoledì 4 maggio 2016 13:45:57, Marek Vasut ha scritto: > On 05/04/2016 11:13 AM, Diego wrote: > > In data martedì 3 maggio 2016 23:01:10, Marek Vasut ha scritto: > >> On 04/29/2016 09:58 AM, Diego wrote: > >>> For me it fails for files bigger than

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-05-04 Thread Diego
In data martedì 3 maggio 2016 23:01:10, Marek Vasut ha scritto: > On 04/29/2016 09:58 AM, Diego wrote: > > In data venerdì 29 aprile 2016 00:49:22, Marek Vasut ha scritto: > >> Urgh, so you seem to have third revision of this stick. I have two > > > >> sticks wh

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-29 Thread Diego
D - token=0x50008d80 Error reading cluster ** Unable to read file file20.raw ** U-Boot > load usb 0:1 0x10008000 file40.raw reading file40.raw EHCI timed out on TD - token=0x1e008d80 EHCI timed out on TD - token=0x1e008d80 EHCI timed out on TD - token=0x1e008d80 Error reading cluster ** Unable to r

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-28 Thread Diego
0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize064 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x (Bus Powered) Bests, Diego ___ U-Boo

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-27 Thread Diego
Il 27 aprile 2016 04:14:45 CEST, Marek Vasut <ma...@denx.de> ha scritto: >On 04/15/2016 02:13 PM, Diego wrote: >> >> Hi Marek, >> >> yes, I was getting the following error with the Kingston DTSE9 USB >2.0: >> EHCI timed out on TD - token=0x1e008d80

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-15 Thread Diego
In data venerdì 15 aprile 2016 12:53:36, Marek Vasut ha scritto: > On 04/14/2016 03:20 PM, Diego wrote: > > On 18.02.2016, Schrempf Frieder wrote: > >> At the moment I have two sticks with the same chip around for which > >> setting USB_MAX_XFER_BLK from 65535 to 32

Re: [U-Boot] Issue with USB mass storage (thumb drives)

2016-04-15 Thread Diego
of USB_MAX_XFER_BLK from 65535 to 32767 fixed also that "corrupted load" problem, so from what I experienced 32767 is a much more practical and "real life" reliable value. If, as Fabio Estevam suggested, changing USB_MAX_XFER_BLK to 32767 is being considered, I definitely vote fo

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-23 Thread Diego Santa Cruz
-Original Message- From: Stephen Warren [mailto:swar...@wwwdotorg.org] Sent: Thursday, January 22, 2015 8:59 PM To: Pantelis Antoniou Cc: Diego Santa Cruz; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output On 01/22

Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2015-01-23 Thread Diego Santa Cruz
-Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, January 23, 2015 9:35 AM To: Diego Santa Cruz Cc: Stephen Warren; u-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output Hi

[U-Boot] [PATCH v4 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-23 Thread Diego Santa Cruz
Capacity: 64 MiB Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 17 + 1 file changed, 17 insertions(+) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 96478e4..fa765d7 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -73,6 +73,8

[U-Boot] [PATCH v4 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-23 Thread Diego Santa Cruz
ERASE_GROUP_DEF before setting that bit, so it means that the user previously switched to the high capacity definitions. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 52 ++-- 1 file changed, 30 insertions(+), 22

[U-Boot] [PATCH v4 00/18] Support for eMMC partitioning and related fixes

2014-12-23 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. This version resyncs to u-boot.git master d8bec60c1b0de7770f9b56ad092ab9be801d99af as some recent mmc changes conflicted with these patches, in particular the DDR mode support. Diego Santa Cruz

[U-Boot] [PATCH v4 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-23 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v4 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-23 Thread Diego Santa Cruz
Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 5e9926c..86c4db9 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1026,6 +1026,7 @@ static int mmc_startup

[U-Boot] [PATCH v4 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-23 Thread Diego Santa Cruz
Manufacturer ID: fe OEM: 14e Name: MMC16 Tran Speed: 5200 Rd Block Len: 512 MMC version 4.41 High Capacity: Yes Capacity: 13.8 GiB Bus Width: 4-bit User Capacity: 13.8 GiB ENH Boot Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH GP2 Capacity: 64 MiB ENH Signed-off-by: Diego

[U-Boot] [PATCH v4 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-23 Thread Diego Santa Cruz
of the partitioning fields in EXT_CSD, so having partitioning data means someone previously activated that and we should keep it activated. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 58 +-- 1 file

[U-Boot] [PATCH v4 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-23 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 6 ++ include/mmc.h

[U-Boot] [PATCH v4 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-23 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 15 +++ include/mmc.h | 4 2 files changed, 19

[U-Boot] [PATCH v4 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-23 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common

[U-Boot] [PATCH v4 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-23 Thread Diego Santa Cruz
Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH WRREL GP2 Capacity: 64 MiB ENH WRREL Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 12 ++-- drivers/mmc/mmc.c | 2 ++ include/mmc.h | 1 + 3 files changed, 13 insertions(+), 2

[U-Boot] [PATCH v4 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-23 Thread Diego Santa Cruz
and is thus not reversible. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 155 ++ include/mmc.h | 20 +++ 2 files changed, 175 insertions(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

[U-Boot] [PATCH v4 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-23 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_mmc.c b

[U-Boot] [PATCH v4 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-23 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa

[U-Boot] [PATCH v4 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-23 Thread Diego Santa Cruz
is conditional on MMC = 4.0. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 403843b..63a1e0c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c

[U-Boot] [PATCH v4 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-23 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v4 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-23 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers

[U-Boot] [PATCH v4 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-23 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v4 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-23 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. This version of the patches just adds the missing signed-off-by tags. The patch series is against u-boot.git master of a few minutes ago. Diego Santa Cruz (18): mmc: show hardware partition

[U-Boot] [PATCH v3 02/18] mmc: extend mmcinfo to show enhanced partition attribute

2014-12-15 Thread Diego Santa Cruz
Manufacturer ID: fe OEM: 14e Name: MMC16 Tran Speed: 5200 Rd Block Len: 512 MMC version 4.41 High Capacity: Yes Capacity: 13.8 GiB Bus Width: 4-bit User Capacity: 13.8 GiB ENH Boot Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH GP2 Capacity: 64 MiB ENH Signed-off-by: Diego

[U-Boot] [PATCH v3 03/18] mmc: make eMMC general purpose partition numbering match spec

2014-12-15 Thread Diego Santa Cruz
The eMMC spec numbers general purpose partitions starting at 1, but the mmcinfo output follows the internal numbering which starts at 0. Make the mmcinfo command output number partitions as in the eMMC spec to avoid confusion. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v3 05/18] mmc: incomplete test to switch to high-capacity group size definitions

2014-12-15 Thread Diego Santa Cruz
ERASE_GROUP_DEF before setting that bit, so it means that the user previously switched to the high capacity definitions. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 51 +-- include/mmc.h |2 ++ 2 files

[U-Boot] [PATCH v3 06/18] mmc: computation of eMMC GP partition size was missing 512 KiB factor

2014-12-15 Thread Diego Santa Cruz
Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 7f5614e..62b945c 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7

[U-Boot] [PATCH v3 07/18] mmc: read the size of eMMC enhanced user data area

2014-12-15 Thread Diego Santa Cruz
This modification reads the size of the eMMC enhanced user data area upon initialization of an mmc device, it will be used later by mmcinfo. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed

[U-Boot] [PATCH v3 09/18] mmc: fix erase_grp_size computation with high-capacity size definition

2014-12-15 Thread Diego Santa Cruz
The erase_grp_size in struct mmc is to be a size in 512-byte sectors but the code used to compute it for eMMC when EXT_CSD_ERASE_GROUP_DEF is enabled computed it as bytes, leading to erase sizes and alignment much larger than what is actually required by the mmc device. Signed-off-by: Diego Santa

[U-Boot] [PATCH v3 08/18] mmc: display size and start of eMMC enhanced user data area in mmcinfo

2014-12-15 Thread Diego Santa Cruz
This adds output to show the eMMC enhanced user data area size and offset along with the partition sizes in mmcinfo's output. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v3 10/18] mmc: read the high capacity WP group size for eMMC

2014-12-15 Thread Diego Santa Cruz
Read the eMMC high capacity write protect group size at mmc device initialization. This is useful to correctly partition an eMMC device, as partitions need to be aligned to this size. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |6 ++ include/mmc.h

[U-Boot] [PATCH v3 11/18] mmc: show the erase group size and HC WP group size in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
This adds the erase group size and high-capacity WP group size to mmcinfo's output. The erase group size is necessary to properly align erase requests on eMMC. The high-capacity WP group size is necessary to properly align partitions on eMMC. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 14/18] mmc: add API to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
and is thus not reversible. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 154 + include/mmc.h | 20 +++ 2 files changed, 174 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers

[U-Boot] [PATCH v3 16/18] mmc: extend the mmc hardware partitioning API with write reliability

2014-12-15 Thread Diego Santa Cruz
The eMMC partition write reliability settings are to be set while partitioning a device, as per the eMMC spec, so changes to these attributes needs to be done in the hardware partitioning API. This commit adds such support. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers

[U-Boot] [PATCH v3 17/18] mmc: extend the mmc hwpartition sub-command to change write reliability

2014-12-15 Thread Diego Santa Cruz
This change extends the mmc hwpartition sub-command to change the per-partition write reliability settings. It also changes the syntax used for the enhanced user data area slightly to better accomodate the write reliability option. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com

[U-Boot] [PATCH v3 13/18] mmc: the ext_csd data may be used during init even if reading failed

2014-12-15 Thread Diego Santa Cruz
is conditional on MMC = 4.0. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index dc8f830..d208118 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c

[U-Boot] [PATCH v3 12/18] mmc: eMMC partitioning data is not effective till partitioning completed

2014-12-15 Thread Diego Santa Cruz
of the partitioning fields in EXT_CSD, so having partitioning data means someone previously activated that and we should keep it activated. Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- drivers/mmc/mmc.c | 53 ++--- 1 files

[U-Boot] [PATCH v3 15/18] mmc: add mmc hwpartition sub-command to do eMMC hardware partitioning

2014-12-15 Thread Diego Santa Cruz
Adds the mmc hwpartition sub-command to perform eMMC hardware partitioning on an mmc device. The number of arguments can be large for a complex partitioning, but as the partitioning has to be done in one go it is difficult to make it simpler. Signed-off-by: Diego Santa Cruz diego.santac

[U-Boot] [PATCH v3 18/18] mmc: extend mmcinfo output to show partition write reliability settings

2014-12-15 Thread Diego Santa Cruz
Capacity: 16 MiB ENH RPMB Capacity: 128 KiB ENH GP1 Capacity: 64 MiB ENH WRREL GP2 Capacity: 64 MiB ENH WRREL Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 12 ++-- drivers/mmc/mmc.c |2 ++ include/mmc.h |1 + 3 files changed, 13 insertions

[U-Boot] [PATCH v3 04/18] mmc: skip mmcinfo partition info processing for eMMC 4.41

2014-12-15 Thread Diego Santa Cruz
eMMC partitions are defined as of eMMC 4.41, but mmcinfo process partition info for eMMC = 4.0, change it to do it for = 4.41 Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common

[U-Boot] [PATCH v3 01/18] mmc: show hardware partition sizes in mmcinfo output

2014-12-15 Thread Diego Santa Cruz
Capacity: 64 MiB Signed-off-by: Diego Santa Cruz diego.santac...@spinetix.com --- common/cmd_mmc.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 4286e26..1a23b28 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c

Re: [U-Boot] [PATCH v2 00/18] Support for eMMC partitioning and related fixes

2014-12-15 Thread Diego Santa Cruz
Hi Pantelis, -Original Message- From: Pantelis Antoniou [mailto:pa...@antoniou-consulting.com] Sent: Friday, December 12, 2014 8:21 PM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: Re: [PATCH v2 00/18] Support for eMMC partitioning and related fixes Hi Diego, [snip] I

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-12-05 Thread Diego Santa Cruz
-Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Thursday, December 04, 2014 7:29 PM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: RE: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes Diego Santa Cruz

Re: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes

2014-12-05 Thread Diego Santa Cruz
-Original Message- From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] Sent: Friday, December 05, 2014 10:46 AM To: Diego Santa Cruz Cc: u-boot@lists.denx.de Subject: RE: [U-Boot] [PATCH 00/18] Support for eMMC partitioning and related fixes [snip] Write size should

  1   2   >