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

2016-04-14 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 vo

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-27 Thread Diego
Il 27 aprile 2016 04:14:45 CEST, Marek Vasut 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 >> EHCI timed out

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 ___

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

2016-04-29 Thread Diego
on TD - 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

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-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-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

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

2017-03-19 Thread Diego
mdisk? ext3.gz initrd? 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

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 u

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. A

[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

[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

[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

[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

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

2018-12-24 Thread Diego Roversi
e 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] 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 --- include/configs/pico-imx6ul.h | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico

[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 --- board/technexion/pico-imx6ul/pico-imx6ul.c | 84 ++ include/configs/pico-imx6ul.h | 10 2 files changed, 94 insertions(+) diff --git a/board/technexion/pico

[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 --- board/freescale/mx6sabresd/mx6sabresd.c | 12 include/configs/mx6sabresd.h| 12 2 files

[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 --- board/freescale/mx6sabresd

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

2016-10-18 Thread Diego Dorta
t 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 list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2016-10-19 Thread Diego Dorta
Hi Ladislay, >From: Ladislav Michl >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 +, Diego Dorta wrote: &g

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

2016-07-25 Thread Diego Dorta
Remove unused define constant. Signed-off-by: Diego Dorta --- 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 index 88d3fbd..160c4c6

[U-Boot] Help Falcon Mode on Wanboard

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

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

2016-08-13 Thread Diego Dorta
> From: Stefano Babic > > > 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/hVlzRXoJv1Jq4DJdgDcVnfmOWjARqR06eCfheWjRcSh

[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 --- board/freescale/mx6sabreauto/README | 62 + board/freescale/mx6sabreauto/mx6sabreauto.c | 7

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

2017-07-13 Thread Diego Dorta
is is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL > Signed-off-by: Fabio Estevam Tested-by: Diego Dorta ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2017-07-13 Thread Diego Dorta
is is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL > Signed-off-by: Fabio Estevam Tested-by: Diego Dorta ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

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

2017-07-13 Thread Diego Dorta
is is the equivalent fix from commit 4b6035da482c ("mx6sabresd: Make > Ethernet functional again"). > > Reported-by: Miquel RAYNAL > Signed-off-by: Fabio Estevam Tested-by: Diego Dorta ___ 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 --- board/freescale/mx6ullevk/README | 36 1 file changed, 36 insertions(+) create mode 100644 board/freescale/mx6ullevk/README diff --git a/board/freescale

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

2017-11-28 Thread Diego Dorta
. 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/built-in.o: In function `d

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 : > 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 : >>> This patchset is to add i.MX8M and i.MX8MQ-EVK support >>> >&g

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

2017-09-21 Thread Diego Dorta
. Signed-off-by: Diego Dorta --- 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_t *bis); int

[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 --- 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/mach-imx/sys_proto

[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 --- board

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

2017-09-26 Thread Diego Dorta
t 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 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 --- arch/arm/mach-imx/mx6

[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 --- board

[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 3/4] usb: ehci-ci: Add a prototype for board_ehci_power()

2017-09-27 Thread Diego Dorta
file. Signed-off-by: Diego Dorta --- 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 @@ struct usb_ehci { int

[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 1/2] mx6: clock: Add a prototype for do_mx6_showclocks()

2017-10-05 Thread Diego Dorta
function prototype into arch-mx6/clock.h file. Signed-off-by: Diego Dorta --- 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 100644 --- a/arch/arm/include

[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 --- arch/arm/include/asm/arch-mx6/sys_proto.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch

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

2018-01-09 Thread Diego Dorta
arch/arm/dts/fsl-imx8mq-evk.dts patching file arch/arm/include/asm/arch-mx8m/ddr.h patching file arch/arm/mach-imx/mx8m/Kconfig patching file board/freescale/mx8mq_evk/Kconfig patching file board/freescale/mx8mq_evk/Makefile patching file board/freescale/mx8mq_evk/README patching file board/freescale/mx8mq_

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

2018-01-10 Thread Diego Dorta
roller 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 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 : > 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 : >>> This patchset is to add i.MX8M and i.MX8MQ-EVK support >>> >>>

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 : > 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 : >>> Hi Diego, >>> >>> On Wed, Jan 10, 2018 at 11:08:54AM -0200, Diego

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 : > > >> -Original Message----- >> From: Diego Dorta [mailto:diegohdo...@gmail.com] >> Sent: Tuesday, January 16, 2018 8:15 PM >> To: Peng Fan >> Cc: Peng Fan ; Fabio Estevam >> ; U-Boot-Denx >>

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

2018-01-18 Thread Diego Dorta
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-22 Thread Diego Dorta
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 allow dm be omitted by SPL > imx: mx8m: add

[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 --- This patch depends on Peng Fan's patch series: https://patchwork.ozlabs.org/cover/857942/ board/free

[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 --- This patch depends on Peng Fan's patch series: https://patchwork.ozlabs.org/cover/857942/ board/free

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

Sourcing a signed boot script

2019-12-05 Thread Diego Rondini
ccording 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: 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 scrip

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

2020-05-22 Thread Diego Rondini
as reported 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

[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

[U-Boot] [U-Boot-Users] standalone code

2013-01-15 Thread Diego Preciado Barón
Hello, I want to use the u-boot drivers such as gpio and spi on a standalone application. What do I need to modify in the Makefile to build and link my code with the rest of the U-boot code in order to include those drivers in my application? because when I try to compile my code, it shows som

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 > m

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 i

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

2014-11-28 Thread Diego Santa Cruz
The eMMC spec mandates that the high-capacity group size definitions should be enabled when the device is partitioned (by setting ERASE_GROUP_DEF in EXT_CSD). The current test to determine when this is required misses a few cases. In particular a device may have been partitioned without setting the

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

2014-11-28 Thread Diego Santa Cruz
hardware partition support. I have tested this with Micron eMMC 4.41 parts and it is working as expected. I am new to sending patches to the U-Boot mailing list, let alone working with git, so please excuse any mishaps. Diego Santa Cruz (18): mmc: show hardware partition sizes in mmcinfo output

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

2014-11-28 Thread Diego Santa Cruz
There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via "mmc dev" and run mmcinfo for each to get the partition's capacity. This commit adds a few lines of output to mmcinfo with the sizes of the pres

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

2014-11-28 Thread Diego Santa Cruz
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is conditi

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

2014-11-28 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. --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 del

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

2014-11-28 Thread Diego Santa Cruz
This adds an API to do hardware partitioning on eMMC devices. The new mmc_hwpart_config() function does the partitioning in one go. As the different attributes and partitioning options on eMMC may be interdependent validation has to be done based on the complete partitioning configuration. The func

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

2014-11-28 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. --- drivers/mmc/mmc.c |

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

2014-11-28 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. --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.

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

2014-11-28 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 --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 414fac6..bc02273 100644 --- a/com

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

2014-11-28 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. --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index bc02273..aa5ba0e 100644 --

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

2014-11-28 Thread Diego Santa Cruz
--- 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 c045f9e..b088fd7 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@ static int mmc_startup(struct mmc *mmc) m

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

2014-11-28 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. --- drivers/mmc/mmc.c |6 ++ include/mmc.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-)

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

2014-11-28 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. --- common/cmd_mmc.c | 10 ++ 1 files changed

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

2014-11-28 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. --- common/cmd_mmc.c | 92 +++

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

2014-11-28 Thread Diego Santa Cruz
This extends the mmcinfo hardware partition info output to show partitions with write reliability enabled with the "WRREL" string. If the partition does not have write reliability enabled the "WRREL" string is omitted; this is analogous to the ehhanced attribute. Example output: Device: OMAP SD/M

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

2014-11-28 Thread Diego Santa Cruz
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not coherent

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

2014-11-28 Thread Diego Santa Cruz
This extends the mmcinfo command's output to show which eMMC partitions have the enhanced attribute set. Note that the eMMC spec says that if the enhanced attribute is supported then the boot and RPMB partitions are of the enhanced type. The output of mmcinfo becomes: Device: OMAP SD/MMC Manufactu

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

2014-11-28 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. --- common/cmd_mmc.c | 116 ++

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

2014-11-28 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. --- common/cmd_mmc.c | 21 +++-- drivers/mmc/mmc.c |

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

2014-11-28 Thread Diego Santa Cruz
Hi Pantelis, [resending as message was rejected due to base64 content] > > Hi Diego, > > This is quite a large patchset, so we'll have to take a close look. Feedback is appreciated. The number of patches is relatively large, but I have tried to break them in small chunks

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

2014-11-28 Thread Diego Santa Cruz
Hi Pantelis, > Hi Diego, > > At first glance it's OK, I'm not the turning of user_enh_start, _size to a > structure > has a lot of benefits. It makes the diff longer. > I did that so that all the user data area members can be easily reset to zero when parsing the

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

2014-11-28 Thread Diego Santa Cruz
Hi, > -Original Message- > From: Joakim Tjernlund [mailto:joakim.tjernl...@transmode.se] > Sent: Friday, November 28, 2014 11:05 AM > To: Diego Santa Cruz > Cc: pa...@antoniou-consulting.com; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 00/18] Support for eMM

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

2014-11-28 Thread Diego Santa Cruz
in my git repo so that I can generate a new patch series. Thanks, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2014-11-28 Thread Diego Santa Cruz
send the patch series? I guess I should resend the whole series to the mailing list for consistency. Best, Diego -- Diego Santa Cruz, PhD Technology Architect spinetix.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

2014-12-04 Thread Diego Santa Cruz
-boot.git master of a few minutes ago. Diego Santa Cruz (18): mmc: show hardware partition sizes in mmcinfo output mmc: extend mmcinfo to show enhanced partition attribute mmc: make eMMC general purpose partition numbering match spec mmc: skip mmcinfo partition info processing for eMMC

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

2014-12-04 Thread Diego Santa Cruz
There is currently no command that will provide an overview of the hardware partitions present on an eMMC device, one has to switch to every partition via "mmc dev" and run mmcinfo for each to get the partition's capacity. This commit adds a few lines of output to mmcinfo with the sizes of the pres

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

2014-12-04 Thread Diego Santa Cruz
This extends the mmcinfo command's output to show which eMMC partitions have the enhanced attribute set. Note that the eMMC spec says that if the enhanced attribute is supported then the boot and RPMB partitions are of the enhanced type. The output of mmcinfo becomes: Device: OMAP SD/MMC Manufactu

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

2014-12-04 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. --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 del

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

2014-12-04 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 --- common/cmd_mmc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index 414fac6..bc02273 100644 --- a/com

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

2014-12-04 Thread Diego Santa Cruz
--- 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 c045f9e..b088fd7 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1023,6 +1023,7 @@ static int mmc_startup(struct mmc *mmc) m

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

2014-12-04 Thread Diego Santa Cruz
The eMMC spec mandates that the high-capacity group size definitions should be enabled when the device is partitioned (by setting ERASE_GROUP_DEF in EXT_CSD). The current test to determine when this is required misses a few cases. In particular a device may have been partitioned without setting the

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

2014-12-04 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. --- drivers/mmc/mmc.c | 15 +++ include/mmc.h |4 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mmc.

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

2014-12-04 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. --- common/cmd_mmc.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index bc02273..aa5ba0e 100644 --

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

2014-12-04 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. --- drivers/mmc/mmc.c |

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

2014-12-04 Thread Diego Santa Cruz
The eMMC spec says that partitioning is only effective after the PARTITION_SETTING_COMPLETED is set in EXT_CSD (and a power cycle was done, but that we cannot know). Thus the partition sizes and attributes should be ignored when that bit is not set, otherwise the various capacities are not coherent

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

2014-12-04 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. --- common/cmd_mmc.c | 10 ++ 1 files changed

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

2014-12-04 Thread Diego Santa Cruz
The mmc_startup() function uses the ext_csd data even if reading it from the mmc device failed. This bug was introduced in commit bc897b1d4d86597311430dbe7b3e6c807c8c53e5. We now bail out if reading it fails, this should not be a problem as ext_csd was introduced in MMC 4.0 and this code is conditi

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

2014-12-04 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. --- drivers/mmc/mmc.c |6 ++ include/mmc.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-)

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

2014-12-04 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. --- common/cmd_mmc.c | 93 +++

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

2014-12-04 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. --- drivers/mmc/mmc.c | 39 +++ incl

  1   2   >