Re: tftp: more helpful help text

2014-07-21 Thread Sascha Hauer
On Mon, Jul 21, 2014 at 11:37:37PM +0200, Pavel Machek wrote: > > It took me a while to figure out syntax of tftp command, document that > server address is taken from environment. > > Signed-off-by: Pavel Machek Applied, thanks Sascha > > diff --git a/commands/tftp.c b/commands/tftp.c > in

Re: [PATCH] arch/arm/lib/bootm: fix length check of kernel image

2014-07-21 Thread Sascha Hauer
Hi Sebastian, On Mon, Jul 21, 2014 at 12:43:13PM +0200, ba...@linux-source.de wrote: > Signed-off-by: Sebastian Block > --- > arch/arm/lib/bootm.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c > index 4896d01..d9b9111 100

tftp: more helpful help text

2014-07-21 Thread Pavel Machek
It took me a while to figure out syntax of tftp command, document that server address is taken from environment. Signed-off-by: Pavel Machek diff --git a/commands/tftp.c b/commands/tftp.c index c066631..62b9424 100644 --- a/commands/tftp.c +++ b/commands/tftp.c @@ -92,7 +92,8 @@ err_free: }

Re: [RFC v3 4/5] commands: add hwclock

2014-07-21 Thread Antony Pavlov
On Mon, 21 Jul 2014 19:41:50 +0400 Antony Pavlov wrote: > On Mon, 21 Jul 2014 10:11:50 +0200 > Sascha Hauer wrote: > > > On Mon, Jul 21, 2014 at 11:10:25AM +0400, Antony Pavlov wrote: > > > On Mon, 21 Jul 2014 08:41:06 +0200 > > > Sascha Hauer wrote: > > > > > > > On Sun, Jul 20, 2014 at 09:5

[PATCH 2/2] sama5d3x: HSMC NAND initialize TIMINGS and import values from U-Boot

2014-07-21 Thread Matteo Fortini
The configuration for NAND has been aligned with values from U-Boot and completed with TIMINGS initialization Signed-off-by: Matteo Fortini --- arch/arm/boards/sama5d3xek/init.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/arch/arm/boards/sa

[PATCH 1/2] sama5d3x: fix HSMC MODE register offset and add TIMINGS register

2014-07-21 Thread Matteo Fortini
As stated in section 29.19.35 of SAMA5D3 Series Datasheet, MODE register has offset 0x10 and at offset 0x0C there is a TIMINGS register. Signed-off-by: Matteo Fortini --- arch/arm/mach-at91/include/mach/at91sam9_smc.h | 34 ++- arch/arm/mach-at91/sam9_smc.c |

[PATCH V3] sama5d3x: fix HSMC MODE register offset and add TIMINGS register

2014-07-21 Thread Matteo Fortini
As we discussed on the list, I used a single struct and two different config functions [PATCH 1/2] sama5d3x: fix HSMC MODE register offset and add TIMINGS [PATCH 2/2] sama5d3x: HSMC NAND initialize TIMINGS and import values ___ barebox mailing list bar

Re: [RFC v3 4/5] commands: add hwclock

2014-07-21 Thread Antony Pavlov
On Mon, 21 Jul 2014 10:11:50 +0200 Sascha Hauer wrote: > On Mon, Jul 21, 2014 at 11:10:25AM +0400, Antony Pavlov wrote: > > On Mon, 21 Jul 2014 08:41:06 +0200 > > Sascha Hauer wrote: > > > > > On Sun, Jul 20, 2014 at 09:55:22AM +0400, Antony Pavlov wrote: > > > > On Sat, 19 Jul 2014 21:02:22 +0

[PATCH 05/23] USB: gadget: usbserial: Always enable console

2014-07-21 Thread Sascha Hauer
When a USB console is registered on the command line it doesn't make much sense to disable it in the core. Always enable the USB console to make it usable without additional commands when registered. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/u_serial.c | 2 ++ 1 file changed, 2 insertio

[PATCH 06/23] param: Add dev_add_param_string

2014-07-21 Thread Sascha Hauer
This function allows drivers to create a string parameter and provides access to it via a pointer. Using regular dev_add_param only allows access via dev_get_param(). Signed-off-by: Sascha Hauer --- include/param.h | 13 ++ lib/parameter.c | 76 +++

[PATCH 12/23] USB: gadget: DFU: Move stuff to dfu_bind

2014-07-21 Thread Sascha Hauer
When we want to create a composite device dfu_bind_config will not be called for a composite device. Move the initialisation needed by both the composite device and the single function device from dfu_bind_config to dfu_bind. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 74

[PATCH 03/23] USB: gadget: composite: Break out of potential endless loop

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/usb/gadget/composite.c | 7 ++- include/usb/composite.h| 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 37c67d5..ba3b9da 100644 --- a/drivers/usb/gadget/c

[PATCH 07/23] USB: gadget: specify vendor/product id with device parameters

2014-07-21 Thread Sascha Hauer
This introduces the device parameters: usbgadget.product usbgadget.vendor usbgadget.manufacturer usbgadget.productname These variables are used to configure the USB vendor id, product id, manufacturer name and product name. Previously these were configured with arguments to the usbserial and dfu

[PATCH 10/23] USB: gadget: DFU: Move locally used defines/structs to dfu driver

2014-07-21 Thread Sascha Hauer
There's no reason to have them under include/ Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 66 +++ include/usb/dfu.h| 67 2 files changed, 66 insertions(+), 67 deletions(-) diff --

USB Gadget updates

2014-07-21 Thread Sascha Hauer
This series is a huge rework of the USB Gadget stack. Highlights are: - Update the Gadget stack to Linux-3.15 - Make USB serial support non experimental - Add Android Fastboot support - Add Composite Multifunction Device support Sascha

[PATCH 18/23] Add release string

2014-07-21 Thread Sascha Hauer
Currently we only have version_string which contains information about the date the binary was compiled and by whom it has been compiled. This adds a release_string which only contains the plain release version. Signed-off-by: Sascha Hauer --- common/version.c | 4 include/common.h | 1 + 2

[PATCH 23/23] Documentation: Add documentation for Fastboot and Composite Multifunction Gadget

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- Documentation/user/usb.rst | 48 ++ 1 file changed, 48 insertions(+) diff --git a/Documentation/user/usb.rst b/Documentation/user/usb.rst index f67a2f1..7cdd6ac 100644 --- a/Documentation/user/usb.rst +++ b/Documentation

[PATCH 22/23] Documentation: Add documentation for USB serial console

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- Documentation/user/usb.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/user/usb.rst b/Documentation/user/usb.rst index 8b700d3..f67a2f1 100644 --- a/Documentation/user/usb.rst +++ b/Documentation/user/usb.rst @@ -88,3 +88,10 @@ the foll

[PATCH 13/23] USB: gadget: DFU: use usb_gstrings_attach

2014-07-21 Thread Sascha Hauer
Instead of allocating string ids one by one use usb_gstrings_attach() to simplify things. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c index

[PATCH 17/23] USB: gadget: DFU: drop app idle state

2014-07-21 Thread Sascha Hauer
The app idle state hasn't been correctly implemented. It isn't useful for barebox anyway since in barebox there is no app running we have to stop first. We can just start in DFU mode. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 42 ++ 1 file

[PATCH 04/23] USB: gadget: fsl_udc: Warn about freeing queued descriptors

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/usb/gadget/fsl_udc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index 3cfeb8a..5266fb6 100644 --- a/drivers/usb/gadget/fsl_udc.c +++ b/drivers/usb/gadget/fsl_udc.c @@ -1047,6 +1047,11

[PATCH 14/23] USB: gadget: DFU: free resources when usb_gadget_poll fails

2014-07-21 Thread Sascha Hauer
Make sure usb_composite_unregister() is called after usb_composite_probe() Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c index 616d7ad..1d35f50 100644 --- a/drivers/

[PATCH 15/23] USB: gadget: DFU: return -EINTR when interrupted

2014-07-21 Thread Sascha Hauer
Instead of returning succesfully when ctrl-c is pressed return with -EINTR. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c index 1d35f50..ca7462b 100644 --- a

[PATCH 02/23] USB: gadget: dequeue descriptor before freeing it

2014-07-21 Thread Sascha Hauer
The same patch has been sent for the Kernel. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/composite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index d6638fe..37c67d5 100644 --- a/drivers/usb/gadget/composite.c +++ b

[PATCH 11/23] Add function to parse a string in dfu format

2014-07-21 Thread Sascha Hauer
The dfu command parses a string which contains a list of devices and flags. This format is useful for other users aswell, so add common helper functions to parse it and let the dfu command use this format. Signed-off-by: Sascha Hauer --- commands/dfu.c | 90 +++--

[PATCH 19/23] USB: gadget: Add Android fastboot support

2014-07-21 Thread Sascha Hauer
The Android fastboot protocol Can be used to update firmware and to issue other lowlevel commands to the bootloader. This adds a fastboot implementation based on the U-Boot fatboot code. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/Kconfig | 5 +- drivers/usb/gadget/Makefile |

[PATCH 21/23] USB: gadget: fsl_udc: Be more tolerant in fsl_ep_dequeue

2014-07-21 Thread Sascha Hauer
When an endpoint hasn't been enabled ep->desc is NULL and fsl_ep_dequeue crashes with a NULL pointer dereference. Check ep->desc before continuing. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/fsl_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/

[PATCH 09/23] USB: gadget: DFU: Use usb_assign_descriptors/usb_free_all_descriptors

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c index a685cc1..5252703 100644 --- a/drivers/usb/gadget/dfu.c +++ b/drivers/usb/gadget/dfu.c @@ -

[PATCH 08/23] USB: gadget: DFU: remove unused code

2014-07-21 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- drivers/usb/gadget/dfu.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/gadget/dfu.c b/drivers/usb/gadget/dfu.c index 85d99e9..a685cc1 100644 --- a/drivers/usb/gadget/dfu.c +++ b/drivers/usb/gadget/dfu.c @@ -102,17 +102,6 @@ static s

[PATCH 16/23] USB: gadget: DFU: register as USB function

2014-07-21 Thread Sascha Hauer
Register DFU as usb_function_instance to make it work with composite gadgets. Also use this internally for registering as DFU device (with the 'dfu' command). Signed-off-by: Sascha Hauer --- commands/dfu.c | 12 ++-- drivers/usb/gadget/dfu.c | 141 -

[PATCH 20/23] USB: gadget: Add a multi function gadget

2014-07-21 Thread Sascha Hauer
Similar to the Kernel multi function this gadget driver is used for creating a USB device with multiple functions. This is created and removed with the newly created 'usbgadget' command. Based on the options it creates combinations of DFU, fastboot and serial USB functions. Signed-off-by: Sascha H

[PATCH] ARM: Increase automatic malloc area space

2014-07-21 Thread Sascha Hauer
This increases the malloc to half of the available memory in a bank. This helps with some usecases requiring a lot of memory. The other half is still available as scratch area and for putting the kernel binary. Signed-off-by: Sascha Hauer --- arch/arm/cpu/start.c | 6 +++--- 1 file changed, 3 in

[PATCH] ARM: Android image boot: automatically assign space for kernel

2014-07-21 Thread Sascha Hauer
The Android image format makes the same mistake as the U-Boot uImage format: It makes the load address mandatory. In a way it is even worse since the 'fastboot' host tool thinks that 0x1000 is a good default when no address has been specified on the command line. Instead of only relying on the

[PATCH] arch/arm/lib/bootm: fix length check of kernel image

2014-07-21 Thread basti
Signed-off-by: Sebastian Block --- arch/arm/lib/bootm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 4896d01..d9b9111 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -314,7 +314,7 @@ static int do_bootz_l

Re: Problems with pyhBoard-Wega-AM335x

2014-07-21 Thread Frede Florian
Hello... now I have a working Barebox 2014.07 on the pyhCore... * I used the attached configuration * Generated a patch to the git (commit 9d7b0ba957a665d6013c4fa53df04ac324618a40) * For NAND support it is important to enable *CONFIG_BUS_OMAP_GPMC* after that the Barebox starts and bo

Re: [RFC v3 4/5] commands: add hwclock

2014-07-21 Thread Sascha Hauer
On Mon, Jul 21, 2014 at 11:10:25AM +0400, Antony Pavlov wrote: > On Mon, 21 Jul 2014 08:41:06 +0200 > Sascha Hauer wrote: > > > On Sun, Jul 20, 2014 at 09:55:22AM +0400, Antony Pavlov wrote: > > > On Sat, 19 Jul 2014 21:02:22 +0200 > > > Holger Schurig wrote: > > > > > > > I'd prefer a more log

Re: [RFC v3 4/5] commands: add hwclock

2014-07-21 Thread Antony Pavlov
On Mon, 21 Jul 2014 08:41:06 +0200 Sascha Hauer wrote: > On Sun, Jul 20, 2014 at 09:55:22AM +0400, Antony Pavlov wrote: > > On Sat, 19 Jul 2014 21:02:22 +0200 > > Holger Schurig wrote: > > > > > I'd prefer a more logical format (and that is also in the help). > > > However, in this case I would