Re: [PATCH v2] mtd: fix 'write: Invalid argument' while writing to nand-bb devices

2012-07-16 Thread Sascha Hauer
On Thu, Jul 12, 2012 at 11:46:02AM +0200, Jan Luebbe wrote: > The 'off_t cur_ofs' variable was missed during the 64 bit conversion. > For the MEMGETBADBLOCK ioctl, a pointer to a loff_t is needed. > > Also adjust the debug format strings. Applied, thanks Sascha > > Signed-off-by: Jan Luebbe >

Re: [PATCH] usb: gadget: enable for MXS

2012-07-16 Thread Sascha Hauer
Hi Marc, On Thu, Jul 12, 2012 at 11:01:29PM +0200, Marc Kleine-Budde wrote: > Signed-off-by: Marc Kleine-Budde > --- > drivers/usb/gadget/Kconfig |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig > index f7f2697..

Re: [PATCH] filetype: add forgotten mips barebox filetype_str

2012-07-16 Thread Sascha Hauer
On Sun, Jul 15, 2012 at 04:21:57PM +0400, Antony Pavlov wrote: > Signed-off-by: Antony Pavlov Applied, thanks Sascha > --- > common/filetype.c |1 + > 1 file changed, 1 insertion(+) > > diff --git a/common/filetype.c b/common/filetype.c > index 39c2098..1a5b82d 100644 > --- a/common/filet

Re: [PATCH 02/18] ARM/Samsung: unify device registration for the S3C24XX SoCs

2012-07-16 Thread Sascha Hauer
On Fri, Jul 13, 2012 at 09:00:54PM +0200, Juergen Beisert wrote: > Barebox crashes since it has trouble with a resource size of 0. Most of the > S3C24XX based platforms crashes at runtime and can't use devices with resource > sizes of 0 anymore. This patch fix it by unifying the device registration

Re: [PATCH 11/18] ARM/Samsung: add generic lowlevel init

2012-07-16 Thread Sascha Hauer
On Fri, Jul 13, 2012 at 09:01:03PM +0200, Juergen Beisert wrote: > Just a placeholder for some required low level routines > --- > arch/arm/mach-samsung/Makefile |1 + > arch/arm/mach-samsung/lowlevel-s3c64xx.c | 14 ++ > 2 files changed, 15 insertions(+) > create mode

Atmel AT91 SD/MMC clock too fast

2012-07-16 Thread George Pontis
Due to integer truncation, the calculated divisor for the SD/MMC clock may be too low, resulting in a clock that is too fast. For example, the at91sam9g45 is typically run with a master clock at 133 MHz. There is no divisor possible that will result in a 25 or 50 MHz clock as is typically used for

Re: [PATCH 05/18] Samsung/serial: make the clock source configureable

2012-07-16 Thread Sascha Hauer
On Fri, Jul 13, 2012 at 09:00:57PM +0200, Juergen Beisert wrote: > Instead of taking the value from somewhere, use the menu to select one. Also > provide sane default values for known SoCs. Do we really really need this in Kconfig? I don't like having things in Kconfig which decide between 'right'

Re: [PATCH 02/18] ARM/Samsung: unify device registration for the S3C24XX SoCs

2012-07-16 Thread Juergen Beisert
Sascha Hauer wrote: > On Fri, Jul 13, 2012 at 09:00:54PM +0200, Juergen Beisert wrote: > > Barebox crashes since it has trouble with a resource size of 0. Most of > > the S3C24XX based platforms crashes at runtime and can't use devices with > > resource sizes of 0 anymore. This patch fix it by unif

Re: [PATCH 1/5] imx_fec: Allow driver clients to supply MAC address

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:04:55AM +1000, Marc Reilly wrote: > This patch adds a handler to the fec platform data to get MAC address. > If a handler is not specified the driver uses the existing one. We already have a generic mechanism for that. See eth_register_ethaddr. If you pass a MAC address

Re: [PATCH 4/5] at24: add I2C eeprom for 24cl02

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:04:58AM +1000, Marc Reilly wrote: > This series adds a driver for at24 eeproms. Much of the guts of the code > is taken from the at24 driver in the linux kernel. > > Signed-off-by: Marc Reilly > --- > drivers/eeprom/Kconfig |7 +++ > drivers/eeprom/Makefile |1

[PATCH v2] usb: gadget: enable for MXS

2012-07-16 Thread Marc Kleine-Budde
Signed-off-by: Marc Kleine-Budde --- Changes since v1: - enable Arc OTG Driver, too (tnx Sascha) Marc drivers/usb/gadget/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index f7f2697..465121c 100644 --- a

Re: Atmel AT91 SD/MMC clock too fast

2012-07-16 Thread Sascha Hauer
Hi George, On Mon, Jul 16, 2012 at 12:22:13AM -0700, George Pontis wrote: > Due to integer truncation, the calculated divisor for the SD/MMC clock may > be too low, resulting in a clock that is too fast. For example, the > at91sam9g45 is typically run with a master clock at 133 MHz. There is no >

Re: [PATCH 1/4] Enable a way to provide the reason for "being here"

2012-07-16 Thread Sascha Hauer
On Fri, Jul 13, 2012 at 08:04:46AM +0200, Juergen Beisert wrote: > Many architectures support a way to detect why the bootloader is running. > This patch adds a global variable to be able to use the cause in some kind of > shell code to do special things on demand. For example to do an emergency >

barebox image size

2012-07-16 Thread christian . buettner
hi, we need to implement a lot of features into the barebox. Finally the size of the image will be bigger than the standard max of 256K. When i flash an image, bigger than 256K to nand, barebox does not boot anymore - if i reduce it to 256K or smaller, everthing works fine. What do i have to do

Re: barebox image size

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 10:37:41AM +0200, christian.buett...@rafi.de wrote: > hi, > > we need to implement a lot of features into the barebox. Finally the size > of the image will be bigger than the standard max of 256K. > When i flash an image, bigger than 256K to nand, barebox does not boot >

Re: AT91SAM9263-EK

2012-07-16 Thread Sascha Hauer
On Fri, Jul 13, 2012 at 11:35:39AM +0200, Stutz Sven wrote: > Hello everybody, > > > But everything without success. It's a little bit strange because > when I execute the command > bootm -v /dev/nand0.kernel.bb > First I get the following output > Barebox:/ bootm -v /dev/nand0.kernel

Antwort: Re: barebox image size

2012-07-16 Thread christian . buettner
i am using: static inline struct device_d *imx53_add_nand(struct imx_nand_platform_data *pdata) { struct resource res[] = { { .start = MX53_NFC_BASE_ADDR, .size = SZ_4K, .flags = IORESOURCE_MEM,

Re: barebox image size

2012-07-16 Thread Eric Bénard
Hi Christian, Le Mon, 16 Jul 2012 11:15:24 +0200, christian.buett...@rafi.de a écrit : > imx_nand_load_image() is never used in my imx53 board init code.. is this > the fault? > FWIW I had the same issue on an i.MX51 : I didn't yet had the time to investigate. Eric

Re: Antwort: Re: barebox image size

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:15:24AM +0200, christian.buett...@rafi.de wrote: > > imx_nand_load_image() is never used in my imx53 board init code.. is this > the fault? > On i.MX53 there might be a similar issue. You probably have something like this in your board: struct imx_flash_header_v2 __f

Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread christian . buettner
here it is: struct imx_flash_header_v2 __flash_header_section flash_header = { .header.tag = IVT_HEADER_TAG, .header.length = cpu_to_be16(32), .header.version = IVT_VERSION, .entry = APP_DEST + 0x1000, .dcd_ptr= APP_DEST + 0x400 + offs

[PATCH 1/2] tx51: ensure eth phy resets properly by driving reset pin explicitly.

2012-07-16 Thread Christian Kapeller
diff --git a/arch/arm/boards/karo-tx51/tx51.c b/arch/arm/boards/karo-tx51/tx51.c index 096683a..d862a68 100644 --- a/arch/arm/boards/karo-tx51/tx51.c +++ b/arch/arm/boards/karo-tx51/tx51.c @@ -205,6 +205,12 @@ static inline void tx51_fec_init(void) } /* +*Turn off phy pow

[PATCH 2/2] tx51: Disable kallsyms. It prevents the board from booting.

2012-07-16 Thread Christian Kapeller
diff --git a/arch/arm/configs/tx51stk5_defconfig b/arch/arm/configs/tx51stk5_defconfig index 7fff0f0..e1796b9 100644 --- a/arch/arm/configs/tx51stk5_defconfig +++ b/arch/arm/configs/tx51stk5_defconfig @@ -32,7 +32,6 @@ CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y

[PATCH 0/2] Misc Karo TX51 fixes

2012-07-16 Thread Christian Kapeller
The Karo TX51 port in the master tree is currently not booting. These patches fix it by removing the 'kallsyms' config option. Another issue fixed is unreliable resetting of the ethernet phy chip. Christian Kapeller (2): tx51: ensure eth phy resets properly by driving reset pin explicitly. tx

Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:37:59AM +0200, christian.buett...@rafi.de wrote: > here it is: > > struct imx_flash_header_v2 __flash_header_section flash_header = > { > .header.tag = IVT_HEADER_TAG, > .header.length = cpu_to_be16(32), > .header.version = IVT_VERSION, > >

tx51 ethernet regression

2012-07-16 Thread Christian Kapeller
Hi, I recently came to update my barebox port based on the karo tx51 imx module from v2012.03.0 to v2012.07.0. I discovered, that, when trying to use the ethernet connection, I more often than not get frame errors reported by the FEC. --snip-- barebox@Ka-Ro tx51:/ dhcp phy0: Link is up - 1000/Fu

[PATCH 2/2] input: add i.MX51 platform code for matrix keypad driver

2012-07-16 Thread Christian Kapeller
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c index 6cd50f3..8120f56 100644 --- a/arch/arm/mach-imx/devices.c +++ b/arch/arm/mach-imx/devices.c @@ -52,3 +52,8 @@ struct device_d *imx_add_esdhc(void *base, int id, struct esdhc_platform_data *p { return imx_add_dev

[PATCH 0/2] imx: add matrix keypad (kpp) input driver

2012-07-16 Thread Christian Kapeller
This patchset adds support for the imx matrix keypad peripheral (kpp). I've fleshed out the linux keypad driver, and remodeled it after the gpio_keys driver. Currently platform helper functions are only provided for the imx51. Christian Kapeller (2): input: Add i.MX matrix keypad driver input

[PATCH 1/2] input: Add i.MX matrix keypad driver

2012-07-16 Thread Christian Kapeller
create mode 100644 drivers/input/imx_keypad.c create mode 100644 include/matrix_keypad.h diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index b488553..a5aec03 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -16,4 +16,17 @@ config KEYBOARD_GPIO setup logic

Re: tx51 ethernet regression

2012-07-16 Thread Eric Bénard
Hi Christian, Le Mon, 16 Jul 2012 13:28:13 +0200, Christian Kapeller a écrit : > I recently came to update my barebox port based on the karo tx51 imx > module from v2012.03.0 to v2012.07.0. > > I discovered, that, when trying to use the ethernet connection, I more > often than not get frame erro

Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread christian . buettner
ok i can boot now! Thank you! I flashed from 0x0 to 0x7 (image size: 479K). I flashed the environment image (image size: 3K) from 0x8 to 0xF and changed the config code from barebox/environs/common/config to: ... nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),120M(root)" ...

Re: tx51 ethernet regression

2012-07-16 Thread Christian Kapeller
Hi Eric, thanks for the prompt reply. > Le Mon, 16 Jul 2012 13:28:13 +0200, > Christian Kapeller a écrit : >> I recently came to update my barebox port based on the karo tx51 imx >> module from v2012.03.0 to v2012.07.0. >> >> I discovered, that, when trying to use the ethernet connection, I more

Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread Christian Kapeller
> I flashed from 0x0 to 0x7 (image size: 479K). > I flashed the environment image (image size: 3K) from 0x8 to 0xF > and changed the config code from barebox/environs/common/config to: > > ... > nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),120M(root)" > ... > > Barebox can

Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread christian . buettner
Thx for the hint. What i don't understand is that barebox boots from nand but the environement can't.. Von:Christian Kapeller An: christian.buett...@rafi.de, Kopie: Sascha Hauer , barebox@lists.infradead.org Datum: 16.07.2012 15:47 Betreff:Re: Antwort: Re: Antwort: Re: Antw

Re: tx51 ethernet regression

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 02:52:22PM +0200, Christian Kapeller wrote: > Hi Eric, > > > same problem here. the problem comes from : > > 68b32be4926d3ab5b72036c0ceecef2f82aa0625 "i.MX51: Synchronize iomux > > header file from kernel" > > as now most pins have NO_PAD_CTRL which means the pad doesn't ge

Re: [PATCH 1/2] tx51: ensure eth phy resets properly by driving reset pin explicitly.

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:53:58AM +0200, Christian Kapeller wrote: > > diff --git a/arch/arm/boards/karo-tx51/tx51.c > b/arch/arm/boards/karo-tx51/tx51.c > index 096683a..d862a68 100644 > --- a/arch/arm/boards/karo-tx51/tx51.c > +++ b/arch/arm/boards/karo-tx51/tx51.c > @@ -205,6 +205,12 @@ stati

Re: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread Christian Kapeller
On 07/16/2012 03:52 PM, christian.buett...@rafi.de wrote: > Thx for the hint. > What i don't understand is that barebox boots from nand but the > environement can't.. Good point. In any case the driver isn't able to recognize your nand device. I see from you supplied code snipplets, that your bare

Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread christian . buettner
ahh thank you.. i try that. Von:Christian Kapeller An: christian.buett...@rafi.de, Kopie: barebox@lists.infradead.org, Sascha Hauer Datum: 16.07.2012 16:26 Betreff:Re: Antwort: Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size On 07/16/2012 03:52 PM, christia

Re: [PATCH 1/2] tx51: ensure eth phy resets properly by driving reset pin explicitly.

2012-07-16 Thread Christian Kapeller
On 07/16/2012 04:25 PM, Sascha Hauer wrote: > On Mon, Jul 16, 2012 at 11:53:58AM +0200, Christian Kapeller wrote: >> >> diff --git a/arch/arm/boards/karo-tx51/tx51.c >> b/arch/arm/boards/karo-tx51/tx51.c >> index 096683a..d862a68 100644 >> --- a/arch/arm/boards/karo-tx51/tx51.c >> +++ b/arch/arm/b

Re: [PATCH 2/2] tx51: Disable kallsyms. It prevents the board from booting.

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 11:53:59AM +0200, Christian Kapeller wrote: > > diff --git a/arch/arm/configs/tx51stk5_defconfig > b/arch/arm/configs/tx51stk5_defconfig > index 7fff0f0..e1796b9 100644 > --- a/arch/arm/configs/tx51stk5_defconfig > +++ b/arch/arm/configs/tx51stk5_defconfig > @@ -32,7 +32,6

Re: barebox image size

2012-07-16 Thread Eric Bénard
Hi, Le Mon, 16 Jul 2012 16:25:57 +0200, Christian Kapeller a écrit : > On 07/16/2012 03:52 PM, christian.buett...@rafi.de wrote: > > Thx for the hint. > > What i don't understand is that barebox boots from nand but the > > environement can't.. > > Good point. In any case the driver isn't able t

Re: [PATCH 2/2] tx51: Disable kallsyms. It prevents the board from booting.

2012-07-16 Thread Christian Kapeller
On 07/16/2012 04:31 PM, Sascha Hauer wrote: > On Mon, Jul 16, 2012 at 11:53:59AM +0200, Christian Kapeller wrote: >> >> diff --git a/arch/arm/configs/tx51stk5_defconfig >> b/arch/arm/configs/tx51stk5_defconfig >> index 7fff0f0..e1796b9 100644 >> --- a/arch/arm/configs/tx51stk5_defconfig >> +++ b/a

RE: Atmel AT91 SD/MMC clock too fast

2012-07-16 Thread George Pontis
> -Original Message- > From: Sascha Hauer [mailto:s.ha...@pengutronix.de] > Sent: Monday, July 16, 2012 1:33 AM > To: George Pontis > Cc: barebox@lists.infradead.org > Subject: Re: Atmel AT91 SD/MMC clock too fast > > Hi George, > > On Mon, Jul 16, 2012 at 12:22:13AM -0700, George Ponti

Re: [PATCH 2/2] tx51: Disable kallsyms. It prevents the board from booting.

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 04:41:45PM +0200, Christian Kapeller wrote: > On 07/16/2012 04:31 PM, Sascha Hauer wrote: > > On Mon, Jul 16, 2012 at 11:53:59AM +0200, Christian Kapeller wrote: > >> > >> diff --git a/arch/arm/configs/tx51stk5_defconfig > >> b/arch/arm/configs/tx51stk5_defconfig > >> index

Re: [PATCH v2] usb: gadget: enable for MXS

2012-07-16 Thread Sascha Hauer
On Mon, Jul 16, 2012 at 10:15:31AM +0200, Marc Kleine-Budde wrote: > Signed-off-by: Marc Kleine-Budde > --- > Changes since v1: > - enable Arc OTG Driver, too (tnx Sascha) Applied, thanks Sascha > > Marc > > drivers/usb/gadget/Kconfig |4 ++-- > 1 file changed, 2 insertions(+), 2 deletio

Re: [PATCH/Master] ARM/MXS: the GPIO bitkeeper enable logic is inverse to the pullup enable logic

2012-07-16 Thread Sascha Hauer
On Wed, Jul 11, 2012 at 11:15:58AM +0200, Juergen Beisert wrote: > While a set bit enables the pullup (if exists) it disables the bitkeeper (if > exists). Both features are using the same register bit and only one of this > feature is present on a per pin base. > > Signed-off-by: Juergen Beise

Re: Antwort: Re: Antwort: Re: Antwort: Re: barebox image size

2012-07-16 Thread Marc Reilly
Hi, > I flashed from 0x0 to 0x7 (image size: 479K). > I flashed the environment image (image size: 3K) from 0x8 to 0xF Her you write 512k for env > and changed the config code from barebox/environs/common/config to: > > ... > nand_parts="512k(barebox)ro,768k(bareboxenv),4M(kernel),12