Re: How to change filesystem size of root

2017-04-17 Thread Alexander Aring
Hi, On 04/14/2017 05:40 AM, 张忠山 wrote: > When transfer a large file to root through tftp. "Out of memory" error like > this: > > # tftp /xy7520/output_file.rbf a.rbf > T [###write: Out of memory ] > > My board has 1G ddr but the file jus 23M. So the

[PATCH 2/2] ifup: fix handling when ip env is not given

2016-06-14 Thread Alexander Aring
This patch handles the ip env to "" if no ip env is given. Otherwise we get a NULL pointer derefence. Signed-off-by: Alexander Aring <a...@pengutronix.de> --- net/ifup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ifup.c b/net/ifup.c index 17e1b2f..59df069 100644

[PATCH 1/2] ifup: remove deletion of ip env

2016-06-14 Thread Alexander Aring
in network env: use the ip="dhcp" from shell Signed-off-by: Alexander Aring <a...@pengutronix.de> --- Don't know if this patch breaks to much handling with previous env handling, but I would except such handling. Also don't know if the example is correct or I mixed something with g

[PATCH RFC] common: env: handle var="" not as var=NULL

2016-06-13 Thread Alexander Aring
known ip env. Note: Also check commit e7ed69d5 ("setenv: be robust against setenv(, NULL") which says that hush will handle "" and NULL as the same. Another check would be: $ grep -r "NULL" | grep setenv which should show the behaviour in case of deleting

Re: Ethernet PHY KSZ9031 is not working

2016-03-09 Thread Alexander Aring
Hi, On Thu, Mar 03, 2016 at 03:42:01PM +0100, Holger Schurig wrote: > > USB Host-A has to be tested, but if I type: > > > >>> usb > >> USB: scanning bus for devices... > >> Bus 001 Device 001: ID : EHCI Host Controller > >> 1 USB Device(s) found > > > > so I can suppose the host

Re: [RFC] device probe order

2015-12-25 Thread Alexander Aring
On Thu, Dec 24, 2015 at 07:10:29PM +0300, Peter Mamonov wrote: > Let me summarize my efforts: > > "Global variable" solution works fine, however it is not elegant enough: > > diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c > index 862444b..d06e001 100644 > ---

Re: [RFC] device probe order

2015-12-24 Thread Alexander Aring
uhci: uhci@1ba0 { > compatible = "generic-uhci"; > reg = <0x 0x200>; > status = "disabled"; > }; > > Probably, we can add "companion = <>;" into the uhci node and > check

Re: [RFC] device probe order

2015-12-23 Thread Alexander Aring
On Wed, Dec 23, 2015 at 07:56:44PM +0300, Peter Mamonov wrote: > On Wed, 23 Dec 2015 17:35:51 +0100 > Alexander Aring <alex.ar...@gmail.com> wrote: > > > On Wed, Dec 23, 2015 at 07:10:58PM +0300, Peter Mamonov wrote: > > > Dear All, > > > > >

Re: [RFC] device probe order

2015-12-23 Thread Alexander Aring
On Wed, Dec 23, 2015 at 07:10:58PM +0300, Peter Mamonov wrote: > Dear All, > > I've ported an UHCI driver from the u-boot to the barebox (WIP). To > interoperate with the EHCI driver, the UHCI driver should be probed > ater the EHCI driver. Both drivers are binded via the device tree > mechanism.

[PATCH 5/7] bcm283x: mbox: align to cachesize

2015-12-19 Thread Alexander Aring
). Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- arch/arm/mach-bcm283x/include/mach/mbox.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h index 4c3fd77..09b31f2

[PATCH 7/7] arm: bcm283x: add rpi2 support

2015-12-19 Thread Alexander Aring
This patch adds Raspberry Pi 2 support in barebox. The features should be the same like the current RPi status in barebox. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- arch/arm/Kconfig | 5 + arch/arm/boards/Makefile | 2 +-

[PATCH 3/7] arm: bcm2835: fix indentation

2015-12-19 Thread Alexander Aring
This patch fix indentation in core.h of mach-bcm2835. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- arch/arm/mach-bcm2835/include/mach/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm2835/include/mach/core.h b/arch/arm/mach-bcm2835/i

[PATCH 4/7] bcm2835: introduce mach-bcm283x

2015-12-19 Thread Alexander Aring
option. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- arch/arm/Kconfig | 18 +++--- arch/arm/Makefile | 2 +- arch/arm/configs/rpi_defconfig | 70 -- arch/arm/{mach-b

[PATCH 6/7] rpi: sync revision detection with u-boot

2015-12-19 Thread Alexander Aring
This patch adds parts from u-boot code for doing RPi revision detection and take care about the "warranty bit". I got this bit on my RPi2. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- arch/arm/boards/raspberry-pi/rpi.c | 15 +++ 1 file changed, 15 ins

[PATCH 1/7] memtest: fix missing arguments in help string

2015-12-19 Thread Alexander Aring
This patch adds some missing arguments in help string of memtest. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- commands/memtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/memtest.c b/commands/memtest.c index d784a5c..99d4864 100644 --- a/co

[PATCH 0/7] bcm283x: add support for raspberry pi 2

2015-12-19 Thread Alexander Aring
changed are the Kconfig entries only. The complete mach-bcm283x doesn't support devicetree handling which may be the next step. Also there is still no support for dwc2 usb. - Alex Alexander Aring (7): memtest: fix missing arguments in help string led: add missing includes arm: bcm2835: fix

Re: rpi2 support

2015-11-30 Thread Alexander Aring
Hi, On Mon, Nov 30, 2015 at 05:17:58AM -0500, Dave Thompson wrote: > Thanks for the quick replies > rpi have only sold 7M, so not that big in the grand scheme of things > But the rpi2 has only been out for 8 months, > I am sure it will be popular > > And now,, out only a few days,, the pizero,

[RFC] regulator: add runtime disable/enable support

2015-11-22 Thread Alexander Aring
This patch adds support to call disable/enable for a specific regulator by name. This can be useful to test various linux boot tests in different regulator states or adding workarounds inside the bootloader when linux doesn't support to enable the regulator for probing. Signed-off-by: Alexander

Re: memtest updates

2015-10-28 Thread Alexander Aring
Hi, On Wed, Oct 28, 2015 at 07:17:55AM +0100, Sascha Hauer wrote: > On Tue, Oct 27, 2015 at 05:55:04PM +0100, Alexander Aring wrote: > > On Tue, Oct 27, 2015 at 09:29:53AM +0100, Sascha Hauer wrote: > > > This series has some updates for the memory test. The output and the &

Re: memtest updates

2015-10-27 Thread Alexander Aring
On Tue, Oct 27, 2015 at 06:27:42PM +0100, Alexander Aring wrote: > On Tue, Oct 27, 2015 at 05:54:59PM +0100, Alexander Aring wrote: > > On Tue, Oct 27, 2015 at 09:29:53AM +0100, Sascha Hauer wrote: > > > This series has some updates for the memory test. The output and the > &

Re: memtest updates

2015-10-27 Thread Alexander Aring
On Tue, Oct 27, 2015 at 05:54:59PM +0100, Alexander Aring wrote: > On Tue, Oct 27, 2015 at 09:29:53AM +0100, Sascha Hauer wrote: > > This series has some updates for the memory test. The output and the > > code are made more compact and some additional options are added. Also >

Re: memtest updates

2015-10-27 Thread Alexander Aring
On Tue, Oct 27, 2015 at 09:29:53AM +0100, Sascha Hauer wrote: > This series has some updates for the memory test. The output and the > code are made more compact and some additional options are added. Also > the remap_range function is reworked. > I currently try to build next with memtest, I

[PATCH 3/3] amba: check if on remove callback

2015-10-26 Thread Alexander Aring
Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- drivers/amba/bus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c index b934e11..ddd9661 100644 --- a/drivers/amba/bus.c +++ b/drivers/amba/bus.c @@ -70,7 +70,8 @@ static

[PATCH 2/3] checkpatch: fix left brace warning

2015-10-26 Thread Alexander Aring
. ... lot of weird things ... )\(.*\).*\s{ <-- HERE / at ./scripts/checkpatch.pl line 2016. This patch fix these warning, an similar commit was done in linux kernel commit: 4e5d56bdf892e18832a6540b63ebf709966bce2a ("checkpatch: fix left brace warning"). Signed-off-by: Alexander A

[PATCH 1/3] loadb: add missing brackets in help

2015-10-26 Thread Alexander Aring
This patch adds missing brackets in the help text of loadb command. Signed-off-by: Alexander Aring <alex.ar...@gmail.com> --- commands/loadb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/loadb.c b/commands/loadb.c index be5830d..aabb00a 100644 --- a/co

Re: [PATCH 10/10] ARM: pbl: Add an option to validate DRAM

2015-05-23 Thread Alexander Aring
Hi, On Sat, May 23, 2015 at 11:48:41AM -0700, Andrey Smirnov wrote: On Tue, May 19, 2015 at 12:06 AM, Sascha Hauer s.ha...@pengutronix.de wrote: Hi Andrey, On Wed, May 13, 2015 at 07:54:27PM -0700, Andrey Smirnov wrote: Add an option to perform DRAM region validation before using it. The

Re: [PATCH] makfiles: add emacs syntax highlighting hint

2015-04-02 Thread Alexander Aring
On Thu, Apr 02, 2015 at 10:59:41AM +0200, Marc Kleine-Budde wrote: On 04/02/2015 10:55 AM, Lucas Stach wrote: Am Donnerstag, den 02.04.2015, 10:35 +0200 schrieb Jean-Christophe PLAGNIOL-VILLARD: On 00:33 Wed 01 Apr , Marc Kleine-Budde wrote: This patches makes a standard emacs to

Re: D-Link DNS-320 build

2015-03-05 Thread Alexander Aring
Hi, On Thu, Mar 05, 2015 at 03:45:13PM +0300, Alexander wrote: Hello! I am trying build barebox for D-Link DNS-320 NAS. There is a file dts/src/arm/kirkwood-dns320.dts However, there is no instructions how to build for this model. Anyone has such experience? I ported successful the

Re: [RFC] [JUST DEMO] commands: implement 'fbputs' command

2015-02-02 Thread Alexander Aring
Hi, On Sun, Jan 25, 2015 at 05:21:30PM +0300, Antony Pavlov wrote: Mainline barebox at the moment has no framebuffer console support. The 'fbputs' demo command displays a text string on fb device. This quick-n-dirty patch demonstates that barebox framebuffer console can be easely

Re: [RFC, PATCH] i.MX6: phytec: Do not hardcode default environment

2014-12-31 Thread Alexander Aring
Hi, On Wed, Dec 31, 2014 at 08:49:50AM -0800, Andrey Smirnov wrote: By default i.MX6 phytec image hardcodes its default environment in initialization code. Define phytec specific defonfig and use CONFIG_DEFAULT_ENVIRONMENT_PATH instead. Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com

Re: [PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Alexander Aring
Hi Sebastian, On Sat, Sep 06, 2014 at 02:25:08PM +0200, Sebastian Block wrote: This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). doesn't commands/readf.c do similar things? - Alex ___ barebox

Re: [PATCH] commands: add lodvar - load variable from file content

2014-09-06 Thread Alexander Aring
On Sat, Sep 06, 2014 at 03:03:07PM +0200, Sebastian Block wrote: Hi Alex, On Sat, Sep 06, 2014 at 02:25:08PM +0200, Sebastian Block wrote: This adds a command to load a variable from file content. It is a work-a-round for var=$(cat file). doesn't commands/readf.c do similar things?

Re: [PATCH 1/5] ARM: phyCORE-AM335x: Updated SPI NOR dts entries

2014-09-05 Thread Alexander Aring
Hi Sascha, On Fri, Sep 05, 2014 at 07:37:33AM +0200, Sascha Hauer wrote: Hi Teresa, On Thu, Sep 04, 2014 at 08:50:36AM +0200, Teresa Gámez wrote: Updated the SPI NOR flash entries. NOR flash got detected but did not work. - Updated muxing - Fixed frequency - Fixed CS - Removed

Re: [PATCH 5/5] ARM: phyCORE-AM335x: Update partition table

2014-09-04 Thread Alexander Aring
Hi Teresa, On Thu, Sep 04, 2014 at 08:50:40AM +0200, Teresa Gámez wrote: Added device tree partition and made rootfs partition variable size depending on nand flash size. Signed-off-by: Teresa Gámez t.ga...@phytec.de --- arch/arm/dts/am335x-phytec-phycore.dts | 22 ++

Re: [PATCH 5/5] ARM: phyCORE-AM335x: Update partition table

2014-09-04 Thread Alexander Aring
On Thu, Sep 04, 2014 at 09:12:58AM +0200, Alexander Aring wrote: Hi Teresa, On Thu, Sep 04, 2014 at 08:50:40AM +0200, Teresa Gámez wrote: Added device tree partition and made rootfs partition variable size depending on nand flash size. Signed-off-by: Teresa Gámez t.ga...@phytec.de

Re: [BUG] readline history

2014-09-01 Thread Alexander Aring
Hi Sascha, On Mon, Sep 01, 2014 at 10:30:33AM +0200, Sascha Hauer wrote: Hi Teresa, On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
On Thu, Aug 28, 2014 at 09:50:05AM +0200, Teresa Gamez wrote: Hello Sascha, I noticed a bug on the latest master. When no history is present and I hit the arrow up key, I get: unable to handle NULL pointer dereference at address 0x0001 pc : [9fe243ba]lr : [9fe268cf] sp : 99d0

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
Hi, the issues is that hist_prev or hist_next runs: list_entry(history_current-next, struct history, list); on an empty list with no entries and history-line is a dangling pointer. because the list head don't include a char *line and on an empty list the attributes are prev == next. I hacked a

Re: [BUG] readline history

2014-08-28 Thread Alexander Aring
Hi, another possible solution which less of runtime decisions. diff --git a/lib/readline.c b/lib/readline.c index b70bca8..f9cfa4b 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -28,7 +28,9 @@ struct history { struct list_head list; }; -static LIST_HEAD(history_list); +static

Re: [PATCH] mtd: add mtdram device (which build mtd over ram area - useful for FRAM oder MRAM)

2014-08-28 Thread Alexander Aring
Hi Sebastian, On Thu, Aug 28, 2014 at 10:59:51AM +0200, ba...@linux-source.de wrote: This adds support for MTD in RAM devices (like FRAM or MRAM). Signed-off-by: Sebastian Block ba...@linux-source.de for what do you need something like this? If for testing I thought about to porting

Re: [PATCH] mtd: add mtdram device (which build mtd over ram area - useful for FRAM oder MRAM)

2014-08-28 Thread Alexander Aring
On Thu, Aug 28, 2014 at 10:59:51AM +0200, ba...@linux-source.de wrote: This adds support for MTD in RAM devices (like FRAM or MRAM). ah, non volatile memory. Okay. :-) - Alex ___ barebox mailing list barebox@lists.infradead.org

Re: [PATCH 1/2] nand: Add Marvell Orion NAND driver

2014-08-26 Thread Alexander Aring
Hi, On Sat, Aug 23, 2014 at 05:19:22PM -0300, Ezequiel Garcia wrote: This commit adds NAND support for the controller present in Kirkwood SoCs. cool! I will test it on my DNS-325 platform, if I find some free time. Thanks for doing this. Signed-off-by: Ezequiel Garcia

Re: [PATCH] commands: saveenv: Fix comment about directories in help text

2014-08-01 Thread Alexander Aring
Hi Sascha, On Fri, Aug 01, 2014 at 08:17:10AM +0200, Sascha Hauer wrote: envfs indeed handles directories, at least since 2007: | commit 913691eccd13c1509470eb8b059aa0beecc6d8d8 | Author: Sascha Hauer s.ha...@pengutronix.de | Date: Tue Sep 25 12:58:52 2007 +0200 | | add directory

Re: does beaglebone black device tree need to specify amount of eMMC flash?

2014-07-07 Thread Alexander Aring
On Mon, Jul 07, 2014 at 08:53:45AM +0200, Sascha Hauer wrote: On Sat, Jul 05, 2014 at 06:47:36AM -0400, Robert P. J. Day wrote: (aside: i'm digging into device trees in barebox and will certainly have a number of questions shortly so i can write some tutorials for an upcoming class,

Re: does beaglebone black device tree need to specify amount of eMMC flash?

2014-07-07 Thread Alexander Aring
07.07.2014, 09:06 +0200 schrieb Alexander Aring: [...] btw.: that's why eMMC is evil. Raw-Flash: Disadvantage: - you can't replace it. Advantage: - no mcu in the middle, access the raw Flash. This isn't an advantage. If your not working for the NAND flash manufacturer you

Re: [PATCH 2/4] sandbox: only access of_add_memory_bank if it's defined

2014-06-27 Thread Alexander Aring
On Thu, Jun 26, 2014 at 10:42:32PM +0200, Sascha Hauer wrote: On Thu, Jun 26, 2014 at 10:49:15AM +0200, Holger Schurig wrote: ... and it's defined only when CONFIG_OFTREE_MEM_GENERIC is on. Signed-off-by: Holger Schurig holgerschu...@gmail.com --- drivers/of/base.c |6 ++ 1

Re: [PATCH] kconfig: Fix compiler warning

2014-06-26 Thread Alexander Aring
Hi Sascha, I get this warning about 1 month and it makes me crazy and I am unsing gcc (GCC) 4.9.0 20140604 (prerelease). Why I didn't sent any patches? Because you say it here it's a compiler bug and the linux world doesn't fix it this way. Look at [0]. ... since we will still want to catch

Re: [RFC 2/2] dns325: initial support for D-Link DNS-325

2014-06-26 Thread Alexander Aring
Hi, On Thu, Jun 26, 2014 at 08:53:02AM +0200, Sebastian Hesselbarth wrote: On 06/26/2014 06:27 AM, Alexander Aring wrote: On Sun, Jun 22, 2014 at 11:50:56PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch add a basic support for the D-Link DNS

Re: [PATCH 2/4] sandbox: only access of_add_memory_bank if it's defined

2014-06-26 Thread Alexander Aring
Hi Holger, can you please check if this is also a solution for this? diff --git a/include/of.h b/include/of.h index e6993fd..76845e7 100644 --- a/include/of.h +++ b/include/of.h @@ -227,7 +227,14 @@ int of_parse_partitions(struct cdev *cdev, struct device_node *node); int

Re: [PATCH 2/4] sandbox: only access of_add_memory_bank if it's defined

2014-06-26 Thread Alexander Aring
On Thu, Jun 26, 2014 at 11:37:01AM +0200, Alexander Aring wrote: Hi Holger, can you please check if this is also a solution for this? diff --git a/include/of.h b/include/of.h index e6993fd..76845e7 100644 --- a/include/of.h +++ b/include/of.h @@ -227,7 +227,14 @@ int of_parse_partitions

Re: [PATCH 2/4] sandbox: only access of_add_memory_bank if it's defined

2014-06-26 Thread Alexander Aring
On Thu, Jun 26, 2014 at 11:37:01AM +0200, Alexander Aring wrote: Hi Holger, can you please check if this is also a solution for this? diff --git a/include/of.h b/include/of.h index e6993fd..76845e7 100644 --- a/include/of.h +++ b/include/of.h @@ -227,7 +227,14 @@ int of_parse_partitions

Re: [PATCH 2/4] sandbox: only access of_add_memory_bank if it's defined

2014-06-26 Thread Alexander Aring
On Thu, Jun 26, 2014 at 11:43:10AM +0200, Holger Schurig wrote: Your patch alone isn't all that's needed, the definition must still be uncommented. Otherwise we'll get: drivers/of/base.c:1700:5: error: redefinition of 'of_add_memory' include/of.h:233:50: note: previous definition of

Re: [PATCH] imx6:phyFLEX: Fix ENTRY_FUNCTION

2014-06-26 Thread Alexander Aring
Hi, On Thu, Jun 26, 2014 at 04:09:17PM +0200, Christian Hemp wrote: For some phyFLEX-i.MX6 modules the call __barebox_arm_head() was not removed. With this function the barebox does not start. Signed-off-by: Christian Hemp christian.h...@gmail.com ---

Re: [PATCH v2] pinctrl: mvebu: add pinctrl drivers for Dove and Kirkwood

2014-06-26 Thread Alexander Aring
Hi, On Thu, Jun 26, 2014 at 07:56:58AM +0200, Sascha Hauer wrote: On Wed, Jun 25, 2014 at 02:40:08PM +0200, Alexander Aring wrote: Hi, I resend this mail. My last one was malformed, because I tried to answert this mail via smartphone while boring lecture at university. On Wed, Jun

Re: [PATCH v2] pinctrl: mvebu: add pinctrl drivers for Dove and Kirkwood

2014-06-25 Thread Alexander Aring
Hi, I resend this mail. My last one was malformed, because I tried to answert this mail via smartphone while boring lecture at university. On Wed, Jun 25, 2014 at 08:56:15AM +0200, Sascha Hauer wrote: On Tue, Jun 24, 2014 at 12:43:48PM +0200, Sebastian Hesselbarth wrote: This adds pinctrl

Re: [RFC 2/2] dns325: initial support for D-Link DNS-325

2014-06-25 Thread Alexander Aring
Hi, On Sun, Jun 22, 2014 at 11:50:56PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch add a basic support for the D-Link DNS-325. Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work

Re: [RFC 2/2] dns325: initial support for D-Link DNS-325

2014-06-23 Thread Alexander Aring
On Sun, Jun 22, 2014 at 11:50:56PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch add a basic support for the D-Link DNS-325. Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment

Re: [RFC 1/2] kirkwood: add support for booting via oftree probe

2014-06-23 Thread Alexander Aring
On Sun, Jun 22, 2014 at 11:45:57PM +0200, Sebastian Hesselbarth wrote: On 06/22/2014 10:34 PM, Alexander Aring wrote: This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice. Signed-off

[PATCH] common: resource: print conflicts as warning

2014-06-23 Thread Alexander Aring
there are many other outputs. This patch replace the debug print to a warning printout. A conflict should normally never happen. If there is a conflict it's much easier to see it with this patch. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- common/resource.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH] commands: ls: add ll as an alias for ls -l

2014-06-23 Thread Alexander Aring
On Mon, Jun 23, 2014 at 09:44:28AM +0200, Sascha Hauer wrote: On Mon, Jun 23, 2014 at 09:20:40AM +0200, Holger Schurig wrote: Wouldn't it be better if barebox's shell gets the alias command? This would solve a problem like this, and we also could get rid of one of edit/sedit commands ...

[RFC 1/2] kirkwood: add support for booting via oftree probe

2014-06-22 Thread Alexander Aring
This patch initialize memory only if we boot a kirkwood arch with device-tree probing. Otherwise some devices like timer or uart will be probed twice. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- I don't know if this is right. The guruplug is the other kirkwood platform but don't have

[RFC 2/2] dns325: initial support for D-Link DNS-325

2014-06-22 Thread Alexander Aring
This patch add a basic support for the D-Link DNS-325. Currently only booting via uart with kwboot is supported. The barebox kwboot utility doesn't work at the moment. Use kwboot utility from u-boot instead. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- I got the kwbimage values from u

Re: [PATCH 09/10] beautify PHY driver names

2014-05-30 Thread Alexander Aring
Hi, On Fri, May 30, 2014 at 11:07:35AM +0200, Holger Schurig wrote: Some device names where texts like Atheros 8035 ethernet or similar. They now got a prefix phy- and just their name and look now much more like the other driver names. these names are taken from linux kernel code to have a

Re: [PATCH 4/6] oftree: remove dump support

2014-05-20 Thread Alexander Aring
Hi Sascha, On Mon, May 19, 2014 at 10:59:42PM +0200, Sascha Hauer wrote: This can now be done with the of_dump command. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/Kconfig | 2 -- commands/oftree.c | 42 +++--- 2 files changed, 3

Re: [PATCH 4/6] oftree: remove dump support

2014-05-20 Thread Alexander Aring
On Tue, May 20, 2014 at 10:01:01AM +0200, Alexander Aring wrote: Hi Sascha, On Mon, May 19, 2014 at 10:59:42PM +0200, Sascha Hauer wrote: This can now be done with the of_dump command. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- commands/Kconfig | 2 -- commands

[PATCH] i2c: correct string format type

2014-05-20 Thread Alexander Aring
The parameter count is u16, otherwise we get: drivers/i2c/i2c.c:186:2: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 5 has type ‘int’ [-Wformat=] dev_dbg(client-dev, %s: %zu@%u -- %d\n, __func__, Signed-off-by: Alexander Aring alex.ar...@gmail.com --- drivers/i2c/i2c.c

Re: [PATCH] commands: add 'findstr' to get string from file

2014-05-20 Thread Alexander Aring
On Tue, May 20, 2014 at 07:27:55PM +0200, Christoph Fritz wrote: Command 'findstr' can be for example used to find the string MAC=1C:BA:8C:F3:82:BB in file /dev/eeprom0 to set the appropriate variable: $ findstr -o 4 -l 17 -t eth0.ethaddr MAC /dev/eeprom0 Usage: findstr [OPTIONS] STRING

Re: [PATCH v2 4/4] phycore-am335x: Added bbu nand xloadslots handler

2014-05-15 Thread Alexander Aring
On Thu, May 15, 2014 at 11:41:08AM +0200, Wadim Egorov wrote: Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov w.ego...@phytec.de --- v2: - changed method to pass device files --- arch/arm/boards/phytec-phycore-am335x/board.c |9 + 1 files

Re: [PATCH v2 4/4] phycore-am335x: Added bbu nand xloadslots handler

2014-05-15 Thread Alexander Aring
On Thu, May 15, 2014 at 11:48:11AM +0200, Alexander Aring wrote: On Thu, May 15, 2014 at 11:41:08AM +0200, Wadim Egorov wrote: Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov w.ego...@phytec.de --- v2: - changed method to pass device files

Re: [PATCH 3/4] ARM: omap: barebox update nand xloadslots handler

2014-05-13 Thread Alexander Aring
Hi, some hints about your string handling in this code... On Mon, May 12, 2014 at 02:24:21PM +0200, Wadim Egorov wrote: ... + + devfilecopy = (char *)malloc(strlen(data-devicefile)); + if (!devfilecopy) { + pr_err(could not allocate enough memory: %s\n, errno_str()); +

Re: New driver crashes with unable to handle paging request

2014-05-13 Thread Alexander Aring
Hi, i am not Christoph but I want to told you my opinion about this. One year ago there was some guy at #barebox in irc.freenode.net with the nickname honshu (or it was a girl). honshu asked if somebody worked at the musb support. Nobody known worked on this support... So he begun to hack this

Re: [PATCH v3] imx6: Add support for phyCARD-i.MX6

2014-04-30 Thread Alexander Aring
On Wed, Apr 30, 2014 at 12:01:36PM +0200, Christian Hemp wrote: Add support for Phytec phyCARD-i.MX6. - 1GB RAM on two banks - 1GB RAM on one bank - 2GB RAM on two banks Signed-off-by: Christian Hemp c.h...@phytec.de --- v2: - remove IP addresses from env - remove

Re: [PATCH] mtd: nand-bb: use list_for_each_entry_safe

2014-04-29 Thread Alexander Aring
Hi, thanks Sascha. On Tue, Apr 29, 2014 at 08:06:46AM +0200, Sascha Hauer wrote: We need list_for_each_entry_safe in dev_remove_bb_dev since the list entries are removed during iteration over the list. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Reported-by: Alexander Aring alex.ar

Re: [PATCH 3/6] mtd: nand: bb: use mtd api directly

2014-04-28 Thread Alexander Aring
Hi Sascha, On Mon, Apr 28, 2014 at 11:49:36AM +0200, Sascha Hauer wrote: The devfs layer just adds an addition indirection between mtd and the bb devices with no purpose. Drop it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/mtd/nand/nand-bb.c | 122

Re: [PATCH 1/2] Add initial regulator support

2014-04-28 Thread Alexander Aring
Hi Sascha, On Mon, Apr 28, 2014 at 10:18:40AM +0200, Sascha Hauer wrote: Provide minimal regulator support. Only supported operations are enabling and disabling regulators. Association of devices with their regulators is limited to devicetree only. If regulator support is disabled the API

Re: [PATCH 1/2] Add initial regulator support

2014-04-28 Thread Alexander Aring
On Mon, Apr 28, 2014 at 06:30:15PM +0200, Alexander Aring wrote: Hi Sascha, On Mon, Apr 28, 2014 at 10:18:40AM +0200, Sascha Hauer wrote: Provide minimal regulator support. Only supported operations are enabling and disabling regulators. Association of devices with their regulators

Re: [PATCH 1/2] Add initial regulator support

2014-04-28 Thread Alexander Aring
Hi, On Mon, Apr 28, 2014 at 08:47:02PM +0200, Sascha Hauer wrote: I think both functions should return 0 without a valid gpio instead. Anyway, there's something wrong here. maybe checking on this at probe time, at the beginning or can this gpio changed at runtime? Maybe you don't need

Re: [PATCH 1/2] Add initial regulator support

2014-04-28 Thread Alexander Aring
On Mon, Apr 28, 2014 at 10:00:30PM +0200, Sascha Hauer wrote: On Mon, Apr 28, 2014 at 08:51:21PM +0200, Alexander Aring wrote: Hi, On Mon, Apr 28, 2014 at 08:47:02PM +0200, Sascha Hauer wrote: I think both functions should return 0 without a valid gpio instead. Anyway, there's

Re: [PATCH 1/4] imx6:mmdc: Move register defines to header file

2014-04-26 Thread Alexander Aring
On Fri, Apr 25, 2014 at 02:54:41PM +0200, Alexander Aring wrote: Hi, On Fri, Apr 25, 2014 at 01:54:25PM +0200, Christian Hemp wrote: Move mmdc register defines to mmdc header file. Signed-off-by: Christian Hemp c.h...@phytec.de --- arch/arm/mach-imx/imx6-mmdc.c | 37

Re: [PATCH 1/4] imx6:mmdc: Move register defines to header file

2014-04-25 Thread Alexander Aring
On Fri, Apr 25, 2014 at 02:54:41PM +0200, Alexander Aring wrote: Hi, On Fri, Apr 25, 2014 at 01:54:25PM +0200, Christian Hemp wrote: Move mmdc register defines to mmdc header file. Signed-off-by: Christian Hemp c.h...@phytec.de --- arch/arm/mach-imx/imx6-mmdc.c | 37

Re: [PATCH 1/4] imx6:mmdc: Move register defines to header file

2014-04-25 Thread Alexander Aring
Hi, On Fri, Apr 25, 2014 at 01:54:25PM +0200, Christian Hemp wrote: Move mmdc register defines to mmdc header file. Signed-off-by: Christian Hemp c.h...@phytec.de --- arch/arm/mach-imx/imx6-mmdc.c | 37 -- arch/arm/mach-imx/include/mach/imx6-mmdc.h |

Re: [PATCH 4/4] imx6: Add support for phyCARD-i.MX6

2014-04-25 Thread Alexander Aring
Hi, On Fri, Apr 25, 2014 at 01:54:28PM +0200, Christian Hemp wrote: Add support for Phytec phyCARD-i.MX6. - 1GB RAM on two banks - 1GB RAM on one bank - 2GB RAM on two banks ... + +extern char __dtb_imx6q_phytec_pbaa03_start[]; + +ENTRY_FUNCTION(start_phytec_pbaa03_1gib,

Re: [PATCH 4/4] imx6: Add support for phyCARD-i.MX6

2014-04-25 Thread Alexander Aring
On Fri, Apr 25, 2014 at 03:16:48PM +0200, Lucas Stach wrote: Am Freitag, den 25.04.2014, 15:10 +0200 schrieb Alexander Aring: Hi, On Fri, Apr 25, 2014 at 01:54:28PM +0200, Christian Hemp wrote: Add support for Phytec phyCARD-i.MX6. - 1GB RAM on two banks - 1GB RAM on one bank

Re: [PATCH 0/3] memtest: small cleanup

2014-04-23 Thread Alexander Aring
On Wed, Apr 23, 2014 at 12:25:40PM +0200, Sascha Hauer wrote: On Thu, Apr 10, 2014 at 02:04:03PM +0200, Alexander Aring wrote: Hi, this are three patches to cleanup the memtest command. It removes the the first and last if condition in the sdram regions loop. It was stupid to handle

[PATCH 1/3] memtest: cleanup error handling

2014-04-10 Thread Alexander Aring
Signed-off-by: Alexander Aring alex.ar...@gmail.com --- commands/memtest.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/memtest.c b/commands/memtest.c index a71576e..dc05e9e 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -232,12 +232,12 @@ out

[PATCH 0/3] memtest: small cleanup

2014-04-10 Thread Alexander Aring
banks, again... - Alex (People that I know they have more than one banks boards): Cc: Sascha Hauer s.ha...@pengutronix.de Cc: Teresa Gámez t.ga...@phytec.de Cc: Christian Hemp c.h...@phytec.de Cc: Jan Weitzel j.weit...@phytec.de Alexander Aring (3): memtest: cleanup error handling memtest

[PATCH 3/3] memtest: copyright to UPPER case and fix typo

2014-04-10 Thread Alexander Aring
Signed-off-by: Alexander Aring alex.ar...@gmail.com --- common/memtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/memtest.c b/common/memtest.c index 5303c92..541d008 100644 --- a/common/memtest.c +++ b/common/memtest.c @@ -1,7 +1,7 @@ /* - * memory_test.c

[PATCH 2/3] memtest: cleanup requests of regions

2014-04-10 Thread Alexander Aring
This patch removes the first and last entry check inside the loop. There should be no functional changes there. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- commands/memtest.c | 66 +++--- 1 file changed, 28 insertions(+), 38 deletions

Re: [PATCH] 2048: port to barebox

2014-04-08 Thread Alexander Aring
Hi Marc, On Tue, Apr 08, 2014 at 11:50:42PM +0200, Marc Kleine-Budde wrote: ... diff --git a/common/Makefile b/common/Makefile index 204241c..b40a078 100644 --- a/common/Makefile +++ b/common/Makefile @@ -44,6 +44,7 @@ obj-$(CONFIG_SHELL_HUSH)+= hush.o obj-$(CONFIG_SHELL_SIMPLE) +=

Re: RFC: barebox-x86 as a coreboot payload

2014-04-05 Thread Alexander Aring
On Sat, Apr 05, 2014 at 11:02:45PM +0400, Alexander Shiyan wrote: Sat, 5 Apr 2014 23:00:29 +0400 от Antony Pavlov antonynpav...@gmail.com: Hi! I have seen your recent activity on barebox-x86 improvements. IMHO using barebox-x86 as a coreboot payload can be beneficial for barebox

Re: [PATCH 2/3] x86: Add support for IDE on the legacy I/O ports

2014-04-04 Thread Alexander Aring
On Tue, Mar 25, 2014 at 12:12:00PM +0100, Michel Stam wrote: --- arch/x86/boards/x86_generic/generic_pc.c | 71 drivers/ata/ide-sff.c| 94 ++-- drivers/ata/intf_platform_ide.c | 14 - include/ata_drive.h

Re: [RESEND PATCH] ppc: P2020RDB: add environment partition support

2014-04-02 Thread Alexander Aring
Hi Renaud, On Wed, Apr 02, 2014 at 03:18:41PM +0100, Renaud Barbier wrote: Add an environment partition and support commands so that the system configuration can be permanent. Signed-off-by: Renaud Barbier renaud.barb...@ge.com --- arch/ppc/boards/freescale-p2020rdb/env/bin/init | 2 ++

Re: Introducing barebOS

2014-04-01 Thread Alexander Aring
On Tue, Apr 01, 2014 at 11:02:29AM +0200, Sascha Hauer wrote: Hi All, barebox more and more comes in the area that is has everything an operating system needs: - support for all kinds of storage devices - support for various different fileystems - Cooperative multitasking with the poller

Re: Introducing barebOS

2014-04-01 Thread Alexander Aring
On Tue, Apr 01, 2014 at 11:35:48AM +0200, Alessandro Rubini wrote: Great news Sascha. I therefore decided that it's no longer necessary to have the overhead of Linux at all. The project will be renamed to barebOS in the next few I believed it, until the rename bit. Actually, adding a

Re: Can i access the barebox env from linux

2014-03-30 Thread Alexander Aring
Hi, On Fri, Mar 28, 2014 at 10:52:41AM +0100, Alexander Aring wrote: On Fri, Mar 28, 2014 at 03:04:40PM +0530, Ashutosh Singh wrote: ya i tried with that too please have a look over barebox log after reboot: nand: ONFI param page 0 valid nand: ONFI flash detected ... nand

Re: Can i access the barebox env from linux

2014-03-26 Thread Alexander Aring
Hi Sascha and Ashutosh, On Wed, Mar 26, 2014 at 07:26:19AM +0100, Sascha Hauer wrote: On Wed, Mar 26, 2014 at 11:25:07AM +0530, Ashutosh Singh wrote: Dear All, Can i access the barebox env from linux. Once the kernel boot if i want to create a directory and store some parameter in

Re: Can i access the barebox env from linux

2014-03-26 Thread Alexander Aring
On Wed, Mar 26, 2014 at 12:31:03PM +0100, Alexander Aring wrote: On Wed, Mar 26, 2014 at 04:44:30PM +0530, Ashutosh Singh wrote: Thanks Alex, The script is quite helpful. But since i am saving my barebox.env in nand and want to mount, modify and write it back to nand. Do you have

Re: Can i access the barebox env from linux

2014-03-26 Thread Alexander Aring
On Wed, Mar 26, 2014 at 12:53:03PM +0100, Michel Stam wrote: In case anyone is interested; for a barebox x86 project I wrote a library that overrides fopen/fclose/open/close/etc a while back, which allows read access to the environment sector if properly configured. I managed to get it working

Re: i.MX21 ADS NAND flash bad blocks scan. Barebox vs Linux

2014-03-18 Thread Alexander Aring
On Mon, Mar 17, 2014 at 10:25:59PM +, Cristiano De Alti wrote: Alexander Aring alex.aring@... writes: Hi, just an idea... don't asking about why. But can you please disable ARM_OPTIMZED_STRING_FUNCTIONS and test it again? I will check something there... - Alex

Re: [PATCH 6/6] ARM: pfla02: Set new ethernet phy tx timings

2014-03-17 Thread Alexander Aring
On Mon, Mar 17, 2014 at 07:24:35AM +0100, Sascha Hauer wrote: On Fri, Mar 14, 2014 at 05:01:33PM +0100, Alexander Aring wrote: On Fri, Mar 14, 2014 at 02:30:20PM +0100, Sascha Hauer wrote: From: Christian Hemp c.h...@phytec.de TX_CLK line is approx. 54mm longer than other TX lines

  1   2   3   4   >