[U-Boot] Wrong RAM Size on Devkit8000

2013-05-14 Thread Maxime Ripard
ideas on how to solve this? Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Wrong RAM Size on Devkit8000

2013-05-16 Thread Maxime Ripard
Hi Andreas, Le 15/05/2013 09:44, Andreas Bießmann a écrit : Dear Maxime Ripard, (CCing Board Maintainer) On 05/14/2013 04:25 PM, Maxime Ripard wrote: Hi, I'm currently testing u-boot 2013.04 with SPL on a Devkit8000 with 256MB of RAM. Trouble is, it only detects 128MB of RAM. The x

Re: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi

2014-08-05 Thread Maxime Ripard
that specifying the clocks in the simplefb dt node is the right way to ensure that the clocks don't get enabled I'm willing at taking a shot on coding this. Agreed. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description

Re: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi

2014-08-05 Thread Maxime Ripard
). Except that here, change u-boot DT settings means recompile u-boot and the DT, and flash the whole thing again to your system. Not really as painless as what you're suggesting. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

Re: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi

2014-08-05 Thread Maxime Ripard
just expect simplefb to go away. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [linux-sunxi] Re: [PATCH] video: add cfb console driver for sunxi

2014-08-06 Thread Maxime Ripard
. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v5 0/8] sunxi: initial upstreaming effort

2014-05-25 Thread Maxime Ripard
some patches for the A31. Unfortunately, we haven't figured out the DRAM initialization, so it's second-stage-only at the moment. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] [PATCH v2 10/10] ARM: sun6i: Add Colombus board defconfig

2014-09-28 Thread Maxime Ripard
, which I do have and can maintain. Unless Maxime agrees to having his name in the MAINTAINERS file I think that would be best, actually if he does agree I see no reason not to have both ;-) That's something I could live with :) Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel

Re: [U-Boot] [PATCH v3 10/10] ARM: sun6i: Add Colombus board defconfig

2014-10-03 Thread Maxime Ripard
...@csie.org Cc: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Maxime Ripard maxime.rip...@free-electrons.com Thanks! -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 6/9] ARM: sunxi: Add support for R_PIO gpio banks

2014-10-13 Thread Maxime Ripard
(but starting from PL for the special pins). And it's true that we do prefix all the functions by s_, once again, just like the datasheet does. The fact that it comes from a different controller is only expressed by where the pinctrl pins node is defined in the DT. Maxime -- Maxime Ripard, Free

Re: [U-Boot] [PATCH 7/7] ARM: sunxi: Add basic A31 support

2014-09-21 Thread Maxime Ripard
Hi Ian, On Sun, Sep 21, 2014 at 07:51:17PM +0100, Ian Campbell wrote: On Mon, 2014-09-08 at 21:28 +0800, Chen-Yu Tsai wrote: From: Maxime Ripard maxime.rip...@free-electrons.com Add a new sun6i machine that doesn't do much for now. Can you briefly outline here what it _does_ do, please

Re: [U-Boot] [PATCH v1 0/9] sunxi: initial upstreamining effort

2014-03-14 Thread Maxime Ripard
we will be able to reuse some of that code, the A31 needs a significant additional effort. The good news is that the newer Allwinner SoCs seem to drop the old (and by old I mean A10/A10s/A13/A20) IPs in favour of the one introduced in the A31. So it's definitely worth doing this effort. -- Maxime

Re: [U-Boot] [linux-sunxi] Re: [PATCH v1 8/9] sunxi: non-FEL SPL boot support for sun7i

2014-03-18 Thread Maxime Ripard
initramfs) that would overwrite the relocated DTB whenever it was decompressing itself. -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot

Re: [U-Boot] [U-Boot, v2, 5/6] dm: sunxi: Modify the GPIO driver to support driver model

2014-10-28 Thread Maxime Ripard
. But the bindings are based on strings for function descriptions, which implies a whole lookup table in the driver. Not sure this would be great for SPL. Also Linus Walleij (pinctrl maintainer) proposed some new generic bindings, though I don't know if we will ever switch over. CCing Maxime Ripard (sunxi

[U-Boot] USB Host not enumerating properly on AM335x-based board

2014-11-20 Thread Maxime Ripard
. Anyone experienced such a thing? Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-11-21 Thread Maxime Ripard
Hi Eric, On Fri, Nov 21, 2014 at 11:20:37AM +0100, Eric Bénard wrote: Hi Maxime, Le Thu, 20 Nov 2014 17:49:17 +0100, Maxime Ripard maxime.rip...@free-electrons.com a écrit : Hi, I'm currently working on 2014.07, on a custom TI AM335x based board. Everything works great so far

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-11-24 Thread Maxime Ripard
Hi, On Sat, Nov 22, 2014 at 12:40:58AM +0100, Anatolij Gustschin wrote: Hi Maxime, On Thu, 20 Nov 2014 17:49:17 +0100 Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, I'm currently working on 2014.07, on a custom TI AM335x based board. Everything works great so far

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-12-08 Thread Maxime Ripard
, and yet the usb storage works as expected. So I don't think it's really the issue there :/ Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] A23 u-boot with SPL / dram init available in my personal git repo

2014-12-08 Thread Maxime Ripard
-wip ChenYu, this also has a mmc fix which you may find interesting, it may explain some of the problems with mmc you've been having on both the A80 board, as well as the A31 dev board you've. Wow, very cool, including PMIC support et al. Thanks a lot :) Maxime -- Maxime Ripard, Free

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-12-10 Thread Maxime Ripard
Hi, On Thu, Nov 20, 2014 at 05:49:17PM +0100, Maxime Ripard wrote: Hi, I'm currently working on 2014.07, on a custom TI AM335x based board. Everything works great so far, except when we're trying to have USB host working. The board has the MUSB1 controller wired as USB Host only

Re: [U-Boot] USB Host not enumerating properly on AM335x-based board

2014-12-11 Thread Maxime Ripard
Hi, On Thu, Dec 11, 2014 at 02:09:30PM +0100, Marek Vasut wrote: On Wednesday, December 10, 2014 at 04:23:49 PM, Maxime Ripard wrote: Hi, On Thu, Nov 20, 2014 at 05:49:17PM +0100, Maxime Ripard wrote: Hi, I'm currently working on 2014.07, on a custom TI AM335x based board

Re: [U-Boot] [linux-sunxi] Announcing easy Linux installation on Allwinner devices for non-geek users

2015-01-22 Thread Maxime Ripard
. The FEX file in a dialect, which is compatible with the sunxi-3.4 kernel Just so you know, I will *not* merge any patch automatically generated that will not have been run on its real board. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free

[U-Boot] [PATCH] gpt: Fix the protective MBR partition size

2015-01-08 Thread Maxime Ripard
error. This confused the AM335x ROM code, and will probably confuse other tools as well. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- disk/part_efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/part_efi.c b/disk/part_efi.c index 612f0926b62b

Re: [U-Boot] [linux-sunxi] Re: Basic A33 support including dram init available in my personal repo

2015-03-09 Thread Maxime Ripard
definitely share as much as possible. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] fastboot boot base address behaviour

2015-04-22 Thread Maxime Ripard
it to the same address, which might not really be what we're after here. What do you think? Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U

[U-Boot] [PATCH] image: android: handle default kernel address

2015-04-24 Thread Maxime Ripard
with the default boot image kernel address, if that address is used, just execute the kernel where it is. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- common/image-android.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/common/image

Re: [U-Boot] fastboot boot base address behaviour

2015-04-25 Thread Maxime Ripard
On Thu, Apr 23, 2015 at 02:00:01PM +0200, Marek Vasut wrote: On Thursday, April 23, 2015 at 09:41:04 AM, Maxime Ripard wrote: On Wed, Apr 22, 2015 at 05:56:23PM +0200, Marek Vasut wrote: I've been trying to use fastboot (and especially the boot command) on sunxi recently, and got

Re: [U-Boot] fastboot boot base address behaviour

2015-04-23 Thread Maxime Ripard
of blindly trusting these tools, U-Boot should handle that address has the de facto default, even if it doesn't make any sense :) Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] fastboot boot base address behaviour

2015-04-29 Thread Maxime Ripard
Hi Rob, On Tue, Apr 28, 2015 at 05:24:59PM -0500, Rob Herring wrote: On Wed, Apr 22, 2015 at 8:04 AM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi, I've been trying to use fastboot (and especially the boot command) on sunxi recently, and got it to work pretty fine (apart

Re: [U-Boot] fastboot boot base address behaviour

2015-05-01 Thread Maxime Ripard
On Wed, Apr 29, 2015 at 09:11:03AM -0500, Rob Herring wrote: On Wed, Apr 29, 2015 at 3:12 AM, Maxime Ripard maxime.rip...@free-electrons.com wrote: Hi Rob, On Tue, Apr 28, 2015 at 05:24:59PM -0500, Rob Herring wrote: On Wed, Apr 22, 2015 at 8:04 AM, Maxime Ripard maxime.rip...@free

Re: [U-Boot] [PATCH 2/5] sunxi: rsb: Enable R_PIO clock before configuring external pins

2015-06-23 Thread Maxime Ripard
...@csie.org Cc: Maxime Ripard maxime.rip...@free-electrons.com Tested-by: Maxime Ripard maxime.rip...@free-electrons.com Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 0/8] ARM: sunxi: Support PSCI for sun6i and sun8i

2015-05-29 Thread Maxime Ripard
? AFAIK most people can use mmc0, and at least my NAND boot0 seems to check mmc0 for a valid signature, and reboot into that. I guess it depends on the A31 board then. I have a board here that will completely ignore the MMC unless you press a button. Maxime -- Maxime Ripard, Free Electrons

Re: [U-Boot] [PATCH 5/8] ARM: sunxi: Add sun6i specific PSCI implementation

2015-05-29 Thread Maxime Ripard
than the A20's? Maybe that can be shared? Good idea. This might even be shared by some other platforms. psci_text_end should always be linked in last though. Maybe that can be generated directly by the linker script at the end of the PSCI text section? Maxime -- Maxime Ripard, Free

Re: [U-Boot] [PATCH 5/8] ARM: sunxi: Add sun6i specific PSCI implementation

2015-05-28 Thread Maxime Ripard
psci_get_cpu_stack_top @ stack top = r0 + mov sp, r0 + + bx r6 + + .globl psci_text_end Isn't it exactly the same function than the A20's? Maybe that can be shared? Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com

Re: [U-Boot] [PATCH 3/8] ARM: sunxi: Document registers in PSCI code

2015-05-28 Thread Maxime Ripard
not for these? Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u

Re: [U-Boot] [PATCH 0/8] ARM: sunxi: Support PSCI for sun6i and sun8i

2015-05-28 Thread Maxime Ripard
been moved over (I'd say something like 2-3 releases) Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-28 Thread Maxime Ripard
On Fri, Jun 26, 2015 at 01:01:12PM +0200, Hans de Goede wrote: Hi, On 26-06-15 12:20, Maxime Ripard wrote: Hi, On Sun, Jun 14, 2015 at 12:40:11PM +0200, Hans de Goede wrote: Paul, can you test these with gadget mode? Specifically if they help the problem you were seeing when switching

Re: [U-Boot] [PATCH 2/3] sunxi:Added Mele i7 eMMC MOD DTS

2015-07-06 Thread Maxime Ripard
to do that to your hardware, you can carry your own patch against a DT, especially since you'll have to modify it to enable the eMMC even it was merged. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description

Re: [U-Boot] [PATCH 01/15] sunxi_nand_spl: Fix CONFIG_SPL_NAND_SUNXI handling

2015-08-19 Thread Maxime Ripard
, and the only user of IS_ENABLED together with this option is the sunxi board. Why not simply replace the IS_ENABLED by an ifdef to maintain consistency? AFAIK, IS_ENABLED doesn't bring anythnig to the table here. Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android

Re: [U-Boot] [PATCH 07/15] sunxi_nand_spl: Turn off clocks when we're done with the nand

2015-08-19 Thread Maxime Ripard
-controller support. The kernel shouldn't behave like that. What issue are you seeing? Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ U

Re: [U-Boot] [PATCH 07/15] sunxi_nand_spl: Turn off clocks when we're done with the nand

2015-08-24 Thread Maxime Ripard
On Thu, Aug 20, 2015 at 08:35:20AM +0200, Hans de Goede wrote: On 08/19/2015 03:48 PM, Maxime Ripard wrote: On Sat, Aug 15, 2015 at 10:02:40PM +0200, Hans de Goede wrote: Turn off the nand and dma clocks when we're done with the nand, this puts the nand and dma controllers back into a clean

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-26 Thread Maxime Ripard
to that thread, and your suggestion on EP0 seems like a good lead, since the ugly http://pastebin.com/9Y6S9Hpw makes it work. Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature

Re: [U-Boot] [PATCH 0/2] sunxi: musb: Fix usb reset handling

2015-06-26 Thread Maxime Ripard
On Fri, Jun 26, 2015 at 01:02:51PM +0200, Hans de Goede wrote: Hi, On 26-06-15 12:20, Maxime Ripard wrote: Hi, On Sun, Jun 14, 2015 at 12:40:11PM +0200, Hans de Goede wrote: Paul, can you test these with gadget mode? Specifically if they help the problem you were seeing when switching

Re: [U-Boot] [PATCH] arm: sunxi: Add icnova-a20-swac defconfig and dts file

2015-10-21 Thread Maxime Ripard
On Mon, Oct 19, 2015 at 12:48:35PM +0200, Stefan Roese wrote: > Hi Maxime, > > On 18.10.2015 11:34, Maxime Ripard wrote: > >>On 01-10-15 11:41, Stefan Roese wrote: > >>>The ICnova-A20-SWAC is a baseboard, equipped with the ICnova-A20 SoM from > >>>In-Cir

Re: [U-Boot] Fastboot behaviour with sparse images

2015-10-22 Thread Maxime Ripard
Hi Tom, On Wed, Oct 21, 2015 at 10:09:28AM -0400, Tom Rini wrote: > On Mon, Oct 12, 2015 at 03:43:01PM +0200, Maxime Ripard wrote: > > Hi, > > > > I'm currently writing the support in U-Boot for NAND-backed devices > > using fastboot [1], and that work derived a bit t

Re: [U-Boot] [PATCH] arm: sunxi: Add icnova-a20-swac defconfig and dts file

2015-10-22 Thread Maxime Ripard
nd send > you a first version for Linux this time. Since I don't have the > ADB4006 baseboard it would be great if you could step in here. That can come as a second step, but yep, let's do it this way. Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Li

Re: [U-Boot] Fastboot behaviour with sparse images

2015-10-22 Thread Maxime Ripard
On Thu, Oct 22, 2015 at 07:22:54AM -0400, Tom Rini wrote: > On Thu, Oct 22, 2015 at 09:57:05AM +0200, Maxime Ripard wrote: > > Hi Tom, > > > > On Wed, Oct 21, 2015 at 10:09:28AM -0400, Tom Rini wrote: > > > On Mon, Oct 12, 2015 at 03:43:01PM +0200, M

Re: [U-Boot] [PATCH v2 09/14] fastboot: Implement NAND backend

2015-10-21 Thread Maxime Ripard
Hi Tom, On Tue, Oct 20, 2015 at 03:46:36PM -0400, Tom Rini wrote: > On Thu, Oct 15, 2015 at 02:34:17PM +0200, Maxime Ripard wrote: > > > So far the fastboot code was only supporting MMC-backed devices for its > > flashing operations (flash and erase). > > > >

Re: [U-Boot] Fastboot behaviour with sparse images

2015-11-04 Thread Maxime Ripard
Hi Colin, On Tue, Oct 27, 2015 at 02:00:24PM -0700, Colin Cross wrote: > On Monday, October 12, 2015 at 6:43:37 AM UTC-7, Maxime Ripard wrote: > > > > Hi, > > > > I'm currently writing the support in U-Boot for NAND-backed devices > > using fastboot

Re: [U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers

2015-10-19 Thread Maxime Ripard
On Sat, Oct 17, 2015 at 04:42:09PM +0200, Hans de Goede wrote: > Hi, > > On 17-10-15 15:59, Hans de Goede wrote: > >Hi, > > > >On 15-10-15 14:34, Maxime Ripard wrote: > >>Hi everyone, > >> > >>Here is the second attempt at getting fa

[U-Boot] [PATCH v2 03/14] sparse: Refactor chunk parsing function

2015-10-15 Thread Maxime Ripard
-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- common/aboot.c | 372 - 1 file changed, 239 insertions(+), 133 deletions(-) diff --git a/common/aboot.c b/common/aboot.c index

[U-Boot] [PATCH v2 04/14] sparse: Simplify multiple logic

2015-10-15 Thread Maxime Ripard
To check the alignment of the image blocks to the storage blocks, the current code uses a convoluted syntax, while a simple mod also does the work. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c | 14 ++ 1 file changed, 10 insertions

[U-Boot] [PATCH v2 10/14] fastboot: nand: Add pre erase and write hooks

2015-10-15 Thread Maxime Ripard
Some devices might need to do some per-partition initialization (ECC/Randomizer settings change for example) before actually accessing it. Add some hooks before the write and erase operations to let the boards define what they need to do if needed. Signed-off-by: Maxime Ripard <maxime.

[U-Boot] [PATCH v2 14/14] sunxi: cubietruck: Enable the USB OTG controller

2015-10-15 Thread Maxime Ripard
The Cubietruck has a mini-USB connector that can be used to power up the board and as an OTG connector. Since we have already some USB host-only ports right beside this one, enable it in gadget mode Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- configs/Cubietruck_def

[U-Boot] [PATCH v2 13/14] sunxi: A13-Olinuxino: Enable the USB OTG controller

2015-10-15 Thread Maxime Ripard
The A13-Olinuxino has a mini-USB connector that can be used to power up the board and as an OTG connector. Since we have already some USB host-only ports right beside this one, enable it in gadget mode Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- confi

[U-Boot] [PATCH v2 11/14] sparse: Rename the file and header

2015-10-15 Thread Maxime Ripard
consistent with the header defining the image structures. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/Makefile | 2 +- common/fb_mmc.c | 2 +- common/fb_nand.c| 2 +- common/{aboot.c => image-sparse.c} | 2 +

[U-Boot] [PATCH v2 12/14] sunxi: Add support for android boot image

2015-10-15 Thread Maxime Ripard
When using the fastboot boot command, the image sent to U-Boot will be an Android boot image. If the support is missing, that won't obviously work, so we need it in our configuration. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- include/configs/sunxi-common.h | 1 +

[U-Boot] [PATCH v2 02/14] sparse: Move main header parsing to a function of its own

2015-10-15 Thread Maxime Ripard
The current sparse image format parser is quite tangled, with a lot of code duplication. Start refactoring it by moving the header parsing function to a function of its own. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Tom Rini <tr...@konsulko.com>

[U-Boot] [PATCH v2 06/14] sparse: Implement storage abstraction

2015-10-15 Thread Maxime Ripard
The current sparse image parser relies heavily on the MMC layer, and doesn't allow any other kind of storage medium to be used. Rework the parser to support any kind of storage medium, as long as there is an implementation for it. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.

[U-Boot] [PATCH v2 05/14] fastboot: Move fastboot response functions to fastboot core

2015-10-15 Thread Maxime Ripard
The functions and a few define to generate a fastboot message to be sent back to the host were so far duplicated among the users. Move them all to a common place. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c

[U-Boot] [PATCH v2 00/14] Implement fastboot over NAND and sparse transfers

2015-10-15 Thread Maxime Ripard
- Take NAND bad blocks into account now Maxime Ripard (14): mtd: uboot: Add meaningful error message sparse: Move main header parsing to a function of its own sparse: Refactor chunk parsing function sparse: Simplify multiple logic fastboot: Move fastboot response functions to fastboot core

[U-Boot] [PATCH v2 09/14] fastboot: Implement NAND backend

2015-10-15 Thread Maxime Ripard
So far the fastboot code was only supporting MMC-backed devices for its flashing operations (flash and erase). Add a storage backend for NAND-backed devices. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/Makefile | 7 +- common/fb_

[U-Boot] [PATCH v2 07/14] fastboot: Implement flashing session counter

2015-10-15 Thread Maxime Ripard
r maintain a counter that will be reset every time the client will retrieve max-download-size, and incremented after each buffer will be flashed, that will allow us to tell whether we should simply resume the flashing where we were, or start back at the beginning of the partition. Signed-off-by: Maxim

[U-Boot] [PATCH v2 08/14] sparse: Implement several chunks flashing

2015-10-15 Thread Maxime Ripard
flashing the next chunk. Retain the last offset we used, and use the session ID to know if we need it or not. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/common/abo

[U-Boot] [PATCH v2 01/14] mtd: uboot: Add meaningful error message

2015-10-15 Thread Maxime Ripard
The current error message in get_part if CONFIG_MTDPARTS is disabled is "offset is not a number" which is confusing and doesn't help at all. Change that for something that might give a hint on what's going on. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Revie

[U-Boot] [PATCH v2 7/7] sunxi: Add CHIP support

2015-10-15 Thread Maxime Ripard
s.dtb \ diff --git a/arch/arm/dts/sun5i-r8-chip.dts b/arch/arm/dts/sun5i-r8-chip.dts new file mode 100644 index ..abf3ccb1a82c --- /dev/null +++ b/arch/arm/dts/sun5i-r8-chip.dts @@ -0,0 +1,214 @@ +/* + * Copyright 2015 Free Electrons + * Copyright 2015 NextThing Co + * + * Maxime Ripard

[U-Boot] [PATCH v2 3/7] sunxi: board: Only try to use the MMC related functions if enabled

2015-10-15 Thread Maxime Ripard
So far, even if CONFIG_MMC was not enabled the board code was trying to use the MMC-related functions, resulting in linker errors. Protect those calls by an ifdef. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- arch/arm/cpu/armv7/sunxi/board.c | 6 +- 1 file chan

[U-Boot] [PATCH v2 6/7] axp209: Sync the DTSI with the kernel

2015-10-15 Thread Maxime Ripard
Linux had a number of changes to the AXP209 DTSI. Sync ours. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- arch/arm/dts/axp209.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/axp209.dtsi b/arch/arm/dts/axp209.dtsi index 24c935c72e5e..051ab3

[U-Boot] [PATCH v2 0/7] ARM: sunxi: Introduce CHIP support

2015-10-15 Thread Maxime Ripard
. Let me know what you think, Maxime Changes from v1: - Rebased on top of current sunxi next branch - Added regulators voltage - Synced the DTS with what has been accepted in the kernel - Added CONFIG_MMC rework Maxime Ripard (7): fastboot: Implement OEM format only when we have MMC support

[U-Boot] [PATCH v2 2/7] mmc: Add generic Kconfig option

2015-10-15 Thread Maxime Ripard
Add a generic Kconfig option for the CONFIG_MMC option that was used before in the configuration headers. Since all the architectures need to be converted to that first, depend on an non-existent config option that will be extended with architectures that use that option. Signed-off-by: Maxime

[U-Boot] [PATCH v2 1/7] fastboot: Implement OEM format only when we have MMC support

2015-10-15 Thread Maxime Ripard
-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- drivers/usb/gadget/f_fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index ca01a018b5d1..

[U-Boot] [PATCH v2 4/7] sunxi: Use Kconfig CONFIG_MMC

2015-10-15 Thread Maxime Ripard
Not all sunxi boards have an MMC embedded. Switching to the Kconfig option will allow to enable or disable the support in each boards' defconfig. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- board/sunxi/Kconfig| 4 drivers/mmc/Kconfig

[U-Boot] [PATCH v2 5/7] sun5i: Sync the DTSI with the kernel

2015-10-15 Thread Maxime Ripard
Add the latest kernel changes to the sun5i family DTSI. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- arch/arm/dts/sun5i-a10s.dtsi | 47 --- arch/arm/dts/sun5i-a13.dtsi | 28 - arch/arm/dts/sun5i-r8.dtsi

Re: [U-Boot] [PATCH] arm: sunxi: Add icnova-a20-swac defconfig and dts file

2015-10-18 Thread Maxime Ripard
pecially doesn't really make sense. The "SWAC" name isn't referenced anywhere, the module cannot be used alone, and there's a single combination available (A20 SODIMM + ADB4006) > > >index 000..773fb6f > >--- /dev/null > >+++ b/arch/arm/dts/sun7i-a20-icnova-a20-s

[U-Boot] Fastboot behaviour with sparse images

2015-10-12 Thread Maxime Ripard
also mean that we don't want to do an erase on the whole partition everytime there's a flash command on it). Thanks! Maxime 1: http://lists.denx.de/pipermail/u-boot/2015-August/226053.html -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com sig

Re: [U-Boot] [PATCH 01/15] sunxi_nand_spl: Fix CONFIG_SPL_NAND_SUNXI handling

2015-08-27 Thread Maxime Ripard
On Thu, Aug 20, 2015 at 08:33:01AM +0200, Hans de Goede wrote: Hi, On 08/19/2015 03:45 PM, Maxime Ripard wrote: On Sat, Aug 15, 2015 at 10:02:34PM +0200, Hans de Goede wrote: CONFIG_SPL_NAND_SUPPORT gets used via IS_ENABLED so it must be defined to 1, rather then just being defined

[U-Boot] [PATCH 13/13] sunxi: cubietruck: Enable the USB OTG controller

2015-08-31 Thread Maxime Ripard
The Cubietruck has a mini-USB connector that can be used to power up the board and as an OTG connector. Since we have already some USB host-only ports right beside this one, enable it in gadget mode Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- configs/Cubietruck_def

[U-Boot] [PATCH 00/13] Implement fastboot over NAND

2015-08-31 Thread Maxime Ripard
already in tree, that was tied to the MMC layer. This serie has been tested on a CHIP and a Cubietruck, two Allwinner devices, the CHIP for the NAND, and the Cubietruck to test the MMC. Let me know what you think, Maxime Maxime Ripard (13): mtd: uboot: Add meaningful error message sparse: Move main

[U-Boot] [PATCH 02/13] sparse: Move main header parsing to a function of its own

2015-08-31 Thread Maxime Ripard
The current sparse image format parser is quite tangled, with a lot of code duplication. Start refactoring it by moving the header parsing function to a function of its own. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.

[U-Boot] [PATCH 07/13] fastboot: Implement NAND backend

2015-08-31 Thread Maxime Ripard
So far the fastboot code was only supporting MMC-backed devices for its flashing operations (flash and erase). Add a storage backend for NAND-backed devices. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/Makefile | 7 +- common/fb_

[U-Boot] [PATCH 04/13] sparse: Simplify multiple logic

2015-08-31 Thread Maxime Ripard
To check the alignment of the image blocks to the storage blocks, the current code uses a convoluted syntax, while a simple mod also does the work. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[U-Boot] [PATCH 08/13] fastboot: nand: Add pre erase and write hooks

2015-08-31 Thread Maxime Ripard
Some devices might need to do some per-partition initialization (ECC/Randomizer settings change for example) before actually accessing it. Add some hooks before the write and erase operations to let the boards define what they need to do if needed. Signed-off-by: Maxime Ripard <maxime.

[U-Boot] [PATCH 05/13] sparse: Implement storage abstraction

2015-08-31 Thread Maxime Ripard
The current sparse image parser relies heavily on the MMC layer, and doesn't allow any other kind of storage medium to be used. Rework the parser to support any kind of storage medium, as long as there is an implementation for it. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.

[U-Boot] [PATCH 01/13] mtd: uboot: Add meaningful error message

2015-08-31 Thread Maxime Ripard
The current error message in get_part if CONFIG_MTDPARTS is disabled is "offset is not a number" which is confusing and doesn't help at all. Change that for something that might give a hint on what's going on. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>

[U-Boot] [PATCH 06/13] fastboot: Move fastboot response functions to fastboot core

2015-08-31 Thread Maxime Ripard
The functions and a few define to generate a fastboot message to be sent back to the host were so far duplicated among the users. Move them all to a common place. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c | 14 ++

[U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

2015-08-31 Thread Maxime Ripard
When using the fastboot boot command, the image sent to U-Boot will be an Android boot image. If the support is missing, that won't obviously work, so we need it in our configuration. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- include/configs/sunxi-common.h | 1 +

[U-Boot] [PATCH 09/13] sparse: Rename the file and header

2015-08-31 Thread Maxime Ripard
consistent with the header defining the image structures. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/Makefile | 2 +- common/fb_mmc.c | 2 +- common/fb_nand.c | 2 +- common/{aboot.c => sparse.c} | 2 +- include/{aboot.h

[U-Boot] [PATCH 12/13] sunxi: A13-Olinuxino: Enable the USB OTG controller

2015-08-31 Thread Maxime Ripard
The A13-Olinuxino has a mini-USB connector that can be used to power up the board and as an OTG connector. Since we have already some USB host-only ports right beside this one, enable it in gadget mode Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- confi

[U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-08-31 Thread Maxime Ripard
When using fastboot and flashing a larger image such as the main partition of a system, the current 32MB limit for the buffer is quite small. Increase it to something that looks decent for such a use case. Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- include/configs

[U-Boot] [PATCH 03/13] sparse: Refactor chunk parsing function

2015-08-31 Thread Maxime Ripard
-by: Maxime Ripard <maxime.rip...@free-electrons.com> --- common/aboot.c | 351 - 1 file changed, 221 insertions(+), 130 deletions(-) diff --git a/common/aboot.c b/common/aboot.c index 7f12677d13a1..65e633acfcb9 100644 --- a/common/aboot.c

Re: [U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

2015-09-01 Thread Maxime Ripard
On Tue, Sep 01, 2015 at 08:08:58AM +0100, Ian Campbell wrote: > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: > > When using the fastboot boot command, the image sent to U-Boot will be an > > Android boot image. If the support is missing, that won't obviously work,

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-01 Thread Maxime Ripard
Hi, On Mon, Aug 31, 2015 at 05:01:42PM +0200, Hans de Goede wrote: > On 31-08-15 16:46, Maxime Ripard wrote: > >When using fastboot and flashing a larger image such as the main partition > >of a system, the current 32MB limit for the buffer is quite small. > > > &

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-01 Thread Maxime Ripard
On Mon, Aug 31, 2015 at 02:17:50PM -0500, Rob Herring wrote: > On Mon, Aug 31, 2015 at 10:01 AM, Hans de Goede <hdego...@redhat.com> wrote: > > Hi, > > > > On 31-08-15 16:46, Maxime Ripard wrote: > >> > >> When using fastboot and flashing a larger imag

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-01 Thread Maxime Ripard
Hi Ian, On Tue, Sep 01, 2015 at 08:22:04AM +0100, Ian Campbell wrote: > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: > > When using fastboot and flashing a larger image such as the main partition > > of a system, the current 32MB limit for the buffer is quite small. &

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-01 Thread Maxime Ripard
On Tue, Sep 01, 2015 at 10:44:58AM +0300, Siarhei Siamashka wrote: > On Tue, 01 Sep 2015 08:22:04 +0100 > Ian Campbell <i...@hellion.org.uk> wrote: > > > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: > > > When using fastboot and flashing a larger im

Re: [U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

2015-09-01 Thread Maxime Ripard
On Tue, Sep 01, 2015 at 11:46:05AM +0100, Ian Campbell wrote: > On Tue, 2015-09-01 at 11:00 +0200, Paul Kocialkowski wrote: > > Le mardi 01 septembre 2015 à 08:08 +0100, Ian Campbell a écrit : > > > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: > > > >

Re: [U-Boot] [PATCH 11/13] sunxi: Add support for android boot image

2015-09-01 Thread Maxime Ripard
On Tue, Sep 01, 2015 at 11:00:53AM +0200, Paul Kocialkowski wrote: > Le mardi 01 septembre 2015 à 08:08 +0100, Ian Campbell a écrit : > > On Mon, 2015-08-31 at 16:46 +0200, Maxime Ripard wrote: > > > When using the fastboot boot command, the image sent to U-Boot will be an > &

Re: [U-Boot] [PATCH 12/13] sunxi: A13-Olinuxino: Enable the USB OTG controller

2015-09-03 Thread Maxime Ripard
Hi Hans, On Tue, Sep 01, 2015 at 11:01:06AM +0200, Hans de Goede wrote: > Hi, > > On 31-08-15 16:46, Maxime Ripard wrote: > >The A13-Olinuxino has a mini-USB connector that can be used to power up > >the board and as an OTG connector. > > > >Since we have alrea

Re: [U-Boot] [PATCH 10/13] sunxi: Make the fastboot buffer larger

2015-09-08 Thread Maxime Ripard
On Tue, Sep 08, 2015 at 08:00:50AM -0500, Rob Herring wrote: > On Tue, Sep 1, 2015 at 2:14 AM, Maxime Ripard > <maxime.rip...@free-electrons.com> wrote: > > On Mon, Aug 31, 2015 at 02:17:50PM -0500, Rob Herring wrote: > >> On Mon, Aug 31, 2015 at 10:01 AM, Hans de

Re: [U-Boot] [PATCH 06/13] fastboot: Move fastboot response functions to fastboot core

2015-09-06 Thread Maxime Ripard
On Fri, Sep 04, 2015 at 01:20:44PM -0400, Tom Rini wrote: > On Mon, Aug 31, 2015 at 04:46:06PM +0200, Maxime Ripard wrote: > > > The functions and a few define to generate a fastboot message to be sent > > back to the host were so far duplicated among the users. > > >

  1   2   3   4   5   6   7   8   9   10   >