Re: git pull failed: CONFLICT

2012-01-19 Thread Uwe Kleine-König
Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH] hush: bail out of scripts on syntax error

2012-05-02 Thread Uwe Kleine-König
the problem I had (i.e. a boot loop caused by a stray fi in /env/bin/init). Reported-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Tested-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial

Re: Flashing kernel from Linux

2012-05-02 Thread Uwe Kleine-König
. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org

[PATCH] fix typo addreee - address

2012-05-09 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/eukrea_cpuimx27/lowlevel_init.S|2 +- arch/arm/boards/freescale-mx25-3-stack/lowlevel_init.S |2 +- arch/arm/boards/freescale-mx35-3-stack/lowlevel_init.S |2 +- arch/arm/boards/imx21ads

Re: [PATCH] ARM: put a valid barebox signature in the header on big-endian systems.

2012-05-12 Thread Uwe Kleine-König
there and I don't really care (neither about big endian images nor about this change). So feel free to ignore my concerns if you know better. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http

Re: [PATCH] ramfs: rember last accessed chunk

2012-05-16 Thread Uwe Kleine-König
already too late: $Subject ~= s/rember/remember/ Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list

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

2012-06-20 Thread Uwe Kleine-König
that, I wonder what is the difference between static const char wake[] = WKE; ... use wake here ... and ... just use WKE ... . Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions

Re: [PATCH 1/2] ARM/MXS: add new way to reset the whole SoC

2012-06-20 Thread Uwe Kleine-König
.c respectively. Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org

[PATCH] commands/crc: add a trailing newline after output of checksum

2012-06-27 Thread Uwe Kleine-König
Without this patch the next command prompt starts directly after the calculated check sum. While at it also fix the coding style. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- commands/crc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands

[PATCH] commands/crc: assert newline after output with big offsets

2012-06-27 Thread Uwe Kleine-König
to an int (which is -2081423360), returned to do_crc and interpreted as error there without yielding another error message. This also makes crc32 -f /dev/mem 0x+0x1 die on a NULL pointer exception instead of reporting: lseek: No error :-) Signed-off-by: Uwe Kleine-König

Re: Flashing automatically the default environment

2012-07-10 Thread Uwe Kleine-König
that in this case (the first boot) the default config is flashed in the nand (save) command. Any idea how to do that ? if [ ! -e /dev/saved ]; then echo -o /dev/saved saveenv fi Is /dev/saved persistent over a reboot? Uwe -- Pengutronix e.K. | Uwe Kleine

Re: [PATCH] commands/crc: assert newline after output with big offsets

2012-07-17 Thread Uwe Kleine-König
Hello Sascha, On Wed, Jun 27, 2012 at 11:08:33AM +0200, Uwe Kleine-König wrote: This fixes barebox@Very long board name:/ crc32 -f /dev/mem 0x83f0+0xfff CRC32 for /dev/mem 0x83fff000 ... 0x83fe == 0xa080584bbarebox@Very long board name:/ The problem here

[PATCH] ARM/imx/pcm043: increase size of self partition

2012-07-27 Thread Uwe Kleine-König
A barebox image generated from pcm043_defconfig doesn't fit into the 0x4 byte sized self partition as of v2012.07.0-153-g14c8c60 (command: add missing EXPORT_SYMBOL for find_cmd) . Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/pcm043/pcm043.c

Re: [PATCH 7/7] drivers/eeprom: at24: add I2C eeprom driver for 24c01/02

2012-07-30 Thread Uwe Kleine-König
list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de

[PATCH v2] ARM/imx/pcm043: increase size of self partition

2012-07-30 Thread Uwe Kleine-König
A barebox image generated from pcm043_defconfig doesn't fit into the 0x4 byte sized self partition as of v2012.07.0-153-g14c8c60 (command: add missing EXPORT_SYMBOL for find_cmd) . Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/pcm043/env/config

Re: [ANNOUNCE] Barebox Logo

2012-07-30 Thread Uwe Kleine-König
but at least also Eric who has this problem. Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org

[PATCH v2] arm/imx: provide command to add ram device with autodetected size

2012-08-02 Thread Uwe Kleine-König
The amount of available ram is determined by the ESDCTL register, so better don't hardcode the value. This commit provides a command that can be used instead of arm_add_mem_device and convertes pcm043 (on which this patch was tested) to it. Signed-off-by: Uwe Kleine-König u.kleine-koe

Re: [PATCH 1/4] fs/mount: add autodetection type support

2012-08-13 Thread Uwe Kleine-König
to this loop only. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http

Re: [PATCH 1/4] fs/mount: add autodetection type support

2012-08-13 Thread Uwe Kleine-König
On Mon, Aug 13, 2012 at 09:30:01AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: On 09:08 Mon 13 Aug , Uwe Kleine-König wrote: Hello, On Sun, Aug 12, 2012 at 01:49:36PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: +static const char * detect_fs(const char *filename

[PATCH] [RFC] fec: fix calculation of mii bus speed on mxs

2012-09-06 Thread Uwe Kleine-König
the calculation accordingly. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de -- But note that this doesn't fix accessing the phy on my machine. The calculated value is 9 (with and without this patch btw) but accessing the phy only gets reliable with a value of =20 or alternatively

Re: [PATCH] arm: mxs: add proper resource length

2012-09-10 Thread Uwe Kleine-König
hit the same problem, but for me it was the fec that failed first :-) Acked-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH] [RFC] i2c-imx: send a soft bus reset during probe

2012-09-28 Thread Uwe Kleine-König
Hi Johannes, On Thu, Sep 27, 2012 at 12:33:23PM +0200, Johannes Stezenbach wrote: On Thu, Sep 27, 2012 at 11:53:12AM +0200, Sascha Hauer wrote: On Thu, Sep 27, 2012 at 12:56:46AM +0200, Uwe Kleine-König wrote: 2-WIRE SOFTWARE RESET: After an interruption in protocol, power

Re: [PATCH] [RFC] i2c-imx: send a soft bus reset during probe

2012-09-28 Thread Uwe Kleine-König
diagnoses a loss of arbitration before even trying to start pulling SDA low to create a start indication. So I have to use gpio bitbanging and there is no chance to implement this in generic code only. On Thu, Sep 27, 2012 at 12:56:46AM +0200, Uwe Kleine-König wrote: If an i2c slave pulls SDA low

[PATCH] iomux-imx35: add missing comma in pad definition

2012-10-31 Thread Uwe Kleine-König
The same issue was fixed in the Linux kernel in commit 66ddfc6 (mx35: add a missing comma in a pad definition) for 2.6.33-rc7. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/mach-imx/include/mach/iomux-mx35.h |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] Extend device_platform_driver macro

2013-03-09 Thread Uwe Kleine-König
. Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman

[PATCH] of: fix how an initrd is passed to Linux

2013-04-25 Thread Uwe Kleine-König
. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- drivers/of/base.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index d22031f..6cb5521 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1078,6 +1078,10 @@ int

Re: [PATCH] of: fix how an initrd is passed to Linux

2013-04-25 Thread Uwe Kleine-König
On Thu, Apr 25, 2013 at 02:49:47PM +0200, Uwe Kleine-König wrote: Linux expects linux,initrd-end to contain the first unused address. As this doesn't match the end semantic used by barebox (i.e. end contains the last used address) adding one is necessary. Without this change Linux fails

[PATCH RFC 1/2] bootm: Simplify initrd address handling

2013-05-02 Thread Uwe Kleine-König
the user passes -L UIMAGE_SOME_ADDRESS or -L UIMAGE_INVALID_ADDRESS to bootm. (-L UIMAGE_SOME_ADDRESS is now used literally instead of ignored before. -L UIMAGE_INVALID_ADDRESS used to skip getting the initrd-address from the uInitrd, now the uInitrd address is honored.) Signed-off-by: Uwe Kleine-König

[PATCH RFC 2/2] Don't honor initrd load address

2013-05-02 Thread Uwe Kleine-König
. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- commands/bootm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/commands/bootm.c b/commands/bootm.c index bb44776..5dd1703 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -127,9 +127,6 @@ static int

Re: [PATCH] scripts: genenv: remove empty files from tempdir

2013-05-28 Thread Uwe Kleine-König
-- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 3/6] ARM: mx23-evk: Fix result checking of devfs_add_partition

2013-10-01 Thread Uwe Kleine-König
-- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH v2 1/2] tegra20: add pinctrl driver

2013-10-22 Thread Uwe Kleine-König
-selectable? (The other pinctrl driver are affected by the same issue.) + help + The pinmux controller found on the Tegra 20 line of SoCs. + endmenu -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http

Re: [BUG] phycard a l1 on lowlevel

2013-10-24 Thread Uwe Kleine-König
[(uchar) cfg] where cfg is set to -1 a few lines above. (BTW, the function hint is wrong, this is in pcaal1_sdrc_init().) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de

[PATCH] blspec: Fix another crash with menu disabled

2013-11-07 Thread Uwe Kleine-König
boot -l crashes with CONFIG_MENU disabled because blspec_alloc returns with blspec-menu being NULL in this case. So guard the usage of blspec-menu accordingly. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- commands/boot.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH] mci: mxs: support overwriting the device name via platform data

2013-11-07 Thread Uwe Kleine-König
similar to what is possible for the imx-esdhc driver. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/mach-mxs/include/mach/mci.h | 1 + drivers/mci/mxs.c| 3 +++ include/mci.h| 2 +- 3 files changed, 5 insertions(+), 1

[PATCH] mci: mxs: support overwriting the device name via platform data

2013-11-07 Thread Uwe Kleine-König
similar to what is possible for the imx-esdhc driver. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Notes: Changes since (implicit) v1, sent with Message-Id: 1383821462-29348-1-git-send-email-u.kleine-koe...@pengutronix.de: - don't check for pd-devname

[PATCH] blspec: fix documention of blspec_scan_directory's return code

2013-11-07 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- common/blspec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/blspec.c b/common/blspec.c index 095809b..2244d5a 100644 --- a/common/blspec.c +++ b/common/blspec.c @@ -135,8 +135,7 @@ static int

[PATCH] partitions: dos: don't open code get_unaligned_le32

2013-11-07 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Hello, note this is only compile tested. Best regards Uwe common/partitions/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/partitions/dos.c b/common/partitions/dos.c index 31b1ed6..9afd122

[PATCH] partitions: dos: improve guess of disk size

2013-11-07 Thread Uwe Kleine-König
The code used to ineffectively take the end of the last partition as guess for the disk size. Better use the end of the partition that has its end rearmost. Also return an unsigned type instead of int as the result is always non-negative. Signed-off-by: Uwe Kleine-König u.kleine-koe

[PATCH] partitions: dos: parse extended partition

2013-11-07 Thread Uwe Kleine-König
DOS MBRs might contain an extended partition that holds several logical partitions. Add these to the partitions of the block device. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- common/partitions/dos.c | 76 - 1 file changed

Re: [PATCH] partitions: dos: improve guess of disk size

2013-11-07 Thread Uwe Kleine-König
On Fri, Nov 08, 2013 at 01:16:31AM +0100, Uwe Kleine-König wrote: The code used to ineffectively take the end of the last partition as guess for the disk size. Better use the end of the partition that has its end rearmost. Also return an unsigned type instead of int as the result is always

Re: [PATCH] partitions: dos: parse extended partition

2013-11-07 Thread Uwe Kleine-König
Hello, On Fri, Nov 08, 2013 at 01:17:26AM +0100, Uwe Kleine-König wrote: DOS MBRs might contain an extended partition that holds several logical partitions. Add these to the partitions of the block device. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- common

[PATCH v2] partitions: dos: improve guess of disk size

2013-11-08 Thread Uwe Kleine-König
The code used to ineffectively take the end of the last partition as guess for the disk size. Better use the end of the partition that has its end rearmost. Also return an unsigned type instead of int as the result is always non-negative. Signed-off-by: Uwe Kleine-König u.kleine-koe

[PATCH v2] partitions: dos: parse extended partition

2013-11-08 Thread Uwe Kleine-König
DOS MBRs might contain an extended partition that holds several logical partitions. Add these to the partitions of the block device. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- common/partitions/dos.c | 76 - 1 file changed

[PATCH 7/9] mount: support filesystem options passed via -o

2014-02-06 Thread Uwe Kleine-König
From: Uwe Kleine-König u...@kleine-koenig.org Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in on of the next commits to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König u.kleine-koe

[PATCH 5/9] nfs: drop an unneeded variable from nfs_do_open()

2014-02-06 Thread Uwe Kleine-König
While at it also fix the type of flen holding a string length (int - size_t). Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index f1643feebbf9..373159d6ffb7

[PATCH 2/9] nfs: skip over stale rpc packets

2014-02-06 Thread Uwe Kleine-König
When a former transaction was aborted by hitting Ctrl-C the old reply might still hang in the ethernet controller making all further transactions fail. So just skip over old replies. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- An alternative would be to drain the ethernet

[PATCH 9/9] nfs: parse nfsport and mount port from file system options

2014-02-06 Thread Uwe Kleine-König
Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 62 +++--- 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index 8eec63078dd3..50b3744b4551 100644 --- a/fs/nfs.c +++ b/fs/nfs.c @@ -1305,6 +1305,38

[PATCH 8/9] nfs: switch to nfs3

2014-02-06 Thread Uwe Kleine-König
This was tested against nfs-kernel-server and unfs3. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 859 --- 1 file changed, 608 insertions(+), 251 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index

[PATCH 0/9] nfs3 support

2014-02-06 Thread Uwe Kleine-König
before 2014.03.0. Uwe Kleine-König (9): net: net_read_uint32: assert that only 32 bit are read nfs: skip over stale rpc packets nfs: shorten and simplify rpc_add_credentials a bit nfs: simplify rpc_lookup_req nfs: drop an unneeded variable from nfs_do_open() net: new function net_read_uint64

[PATCH 1/9] net: net_read_uint32: assert that only 32 bit are read

2014-02-06 Thread Uwe Kleine-König
that uses big endian byte order is s390x ...) Also change the argument to void * because the pointer is not necessarily properly aligned. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- include/net.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 3/9] nfs: shorten and simplify rpc_add_credentials a bit

2014-02-06 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 26 +- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index e9a6eede06bd..a6a47f22934c 100644 --- a/fs/nfs.c +++ b/fs/nfs.c @@ -224,34 +224,18 @@ out_overflow

[PATCH 4/9] nfs: simplify rpc_lookup_req

2014-02-06 Thread Uwe Kleine-König
Instead of letting rpc_lookup_req set mount_port and nfs_port, let it return the port found and let the caller use that information. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff

[PATCH 6/9] net: new function net_read_uint64

2014-02-06 Thread Uwe Kleine-König
From: Uwe Kleine-König u...@kleine-koenig.org This is needed for nfs3 support as some types became bigger compared to nfs2. Signed-off-by: Uwe Kleine-König u...@kleine-koenig.org --- include/net.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/net.h b/include/net.h index

Re: [PATCH 6/9] net: new function net_read_uint64

2014-02-07 Thread Uwe Kleine-König
On Thu, Feb 06, 2014 at 05:40:51PM +0100, Uwe Kleine-König wrote: From: Uwe Kleine-König u...@kleine-koenig.org This was added by mistake. Sascha, can you please drop it and use my pengutronix.de address instead. Ditto for the S-o-b line and patch 7 in this series. Thanks Uwe This is needed

Re: [PATCH 2/9] nfs: skip over stale rpc packets

2014-02-07 Thread Uwe Kleine-König
Hello, On Thu, Feb 06, 2014 at 05:40:47PM +0100, Uwe Kleine-König wrote: When a former transaction was aborted by hitting Ctrl-C the old reply might still hang in the ethernet controller making all further transactions fail. So just skip over old replies. Signed-off-by: Uwe Kleine-König

Re: [PATCH 9/9] nfs: parse nfsport and mount port from file system options

2014-02-07 Thread Uwe Kleine-König
-- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 07/14] comamnds: uimage: actually print error message

2014-02-07 Thread Uwe Kleine-König
); + goto err; I'd drop the printf instead because in the bad crc case uimage_verify() already printfs an error. But instead let it give tongue in the other error cases (like lseek() or read() failing) Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König

Re: [PATCH 8/9] nfs: switch to nfs3

2014-02-07 Thread Uwe Kleine-König
that is). nfsd-v3 support is in Linux 2.4.0 (from 2003) and I bet that any distro-Kernel that has nfsd enabled also knows about nfs3. So I think it's sane to drop nfs2 support from barebox which will only bitrot otherwise. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König

Re: [PATCH 9/9] nfs: parse nfsport and mount port from file system options

2014-02-07 Thread Uwe Kleine-König
kernel commandline parser it's fine to hardcode ',' and let it live in fs/. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de

[PATCH v2 03/11] nfs: skip over stale rpc packets

2014-02-07 Thread Uwe Kleine-König
When a former transaction was aborted by hitting Ctrl-C the old reply might still hang in the ethernet controller making all further transactions fail. So just skip over old replies. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Notes: Changed in v2: - use

[PATCH v2 05/11] nfs: simplify rpc_lookup_req

2014-02-07 Thread Uwe Kleine-König
Instead of letting rpc_lookup_req set mount_port and nfs_port, let it return the port found and let the caller use that information. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff

[PATCH v2 07/11] net: new function net_read_uint64

2014-02-07 Thread Uwe Kleine-König
This is needed for nfs3 support as some types became bigger compared to nfs2. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- include/net.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/net.h b/include/net.h index 8388e2f12ebe..6c86947d9ca3 100644

[PATCH v2 10/11] mount: support filesystem options passed via -o

2014-02-07 Thread Uwe Kleine-König
Similar to mount(8) the barebox command mount now supports passing a string to the file system driver via -o. This is used in the next commit to let the user specify port numbers for nfs mounts. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/raspberry-pi

[PATCH v2 11/11] nfs: parse nfsport and mount port from file system options

2014-02-07 Thread Uwe Kleine-König
Kleine-König u.kleine-koe...@pengutronix.de --- Notes: move parseopt_hu into a seperate file. For now compile it depending on CONFIG_FS_NFS. fs/Makefile | 2 +- fs/nfs.c | 32 +--- fs/parseopt.c | 34 ++ fs/parseopt.h

[PATCH v2 09/11] nfs: switch to nfs3

2014-02-07 Thread Uwe Kleine-König
This was tested against nfs-kernel-server and unfs3. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Notes: Changes since implicit v1: - fix PROG_MOUNT version to 3 - add empty line as requested by Jean-Christophe - use {hton,ntoh}{16,32,64} fs/nfs.c | 894

[PATCH v2 08/11] net: provide alternatives to {ntoh, hton}[sl] funtions with cleaner semantics

2014-02-07 Thread Uwe Kleine-König
ntohl always converts 32 bits even on archs where sizeof(long) == 8. ntoh32 is a much more intuitive name here. Also the name of the 64 bit variant that is also added isn't questionable. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Notes: new in v2 include/byteorder.h

[PATCH v2 02/11] nfs: fix mount prog version in portmap lookup

2014-02-07 Thread Uwe Kleine-König
We're speaking rpc mount version 2 (i.e. the same version as the implemented nfs protocol), so also specify that in the lookup. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Notes: new in v2 fs/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 06/11] nfs: drop an unneeded variable from nfs_do_open()

2014-02-07 Thread Uwe Kleine-König
While at it also fix the type of flen holding a string length (int - size_t). Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/nfs.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/fs/nfs.c b/fs/nfs.c index 761bfd626716..79df6a8e4f7a

Re: [PATCH v2 04/11] nfs: shorten and simplify rpc_add_credentials a bit

2014-02-08 Thread Uwe Kleine-König
On Sat, Feb 08, 2014 at 07:51:28AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 22:28 Fri 07 Feb , Uwe Kleine-K??nig wrote: Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de keep the hostname I use it on nfs for export filter Which hostname? There is only one used

Re: [PATCH] read_file: Use read_full

2014-02-17 Thread Uwe Kleine-König
Kleine-König u.kleine-koe...@pengutronix.de Thanks Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox

[PATCH 2/5] ARM: sama5d3xek: convert to devfs_append_partition

2014-02-18 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/sama5d3xek/init.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c index 4f866aa6f85d..ba5f90c7063c

[PATCH 3/5] ARM: a9m2410: convert to devfs_append_partition

2014-02-18 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/a9m2410/a9m2410.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c index b2b6c87117a3

[PATCH 5/5] ARM: pca100: convert to devfs_append_partition

2014-02-18 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/phycard-i.MX27/pca100.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/phycard-i.MX27/pca100.c b/arch/arm/boards/phycard-i.MX27/pca100.c index 2ff1b793291c..b211ef563532

[PATCH 0/5] Introduce devfs_append_partition and a few users

2014-02-18 Thread Uwe Kleine-König
the hole in the partitioning layout. Still I think it's a nice cleanup because holes in the partitioning (which should be the exception) are more explicit now. Best regards Uwe Jan Luebbe (1): devfs-core: introduce devfs_append_partition Uwe Kleine-König (4): ARM: sama5d3xek: convert

[PATCH 4/5] ARM: freescale-mx35-3-stack: convert to devfs_append_partition

2014-02-18 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/freescale-mx35-3-stack/3stack.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/arm/boards/freescale-mx35-3-stack/3stack.c b/arch/arm/boards/freescale-mx35-3-stack/3stack.c

[PATCH 1/5] devfs-core: introduce devfs_append_partition

2014-02-18 Thread Uwe Kleine-König
the new partition).] Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/devfs-core.c | 9 + include/driver.h | 6 -- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/fs/devfs-core.c b/fs/devfs-core.c index 44f0169e6324..c10345b3bfed 100644 --- a/fs/devfs

[PATCH 08/10] ARM: pca100: convert to devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/phycard-i.MX27/pca100.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/phycard-i.MX27/pca100.c b/arch/arm/boards/phycard-i.MX27/pca100.c index

[PATCH 06/10] ARM: a9m2410: convert to devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/a9m2410/a9m2410.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards/a9m2410/a9m2410.c b/arch/arm/boards/a9m2410/a9m2410.c index b2b6c87117a3..8d528cf60378

[PATCH 00/10] new partitioning helper

2014-02-25 Thread Uwe Kleine-König
, but in return the new call is better understandable without checking its prototype and it supports creating partitions that start directly at the end of the previous one without the need to explicitly calculate its offset. This also includes a few fixes and cleanups. Best regards Uwe Uwe Kleine

[PATCH 10/10] ARM: sama5d3xek: convert to devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/sama5d3xek/init.c | 38 ++ 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c index

[PATCH 03/10] Documentation: fix example call to devfs_add_partition

2014-02-25 Thread Uwe Kleine-König
The flags parameter was skipped in the example. Add it as DEVFS_PARTITION_FIXED. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Documentation/porting.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/porting.txt b/Documentation/porting.txt

[PATCH 02/10] devfs_add_partition: make flags parameter unsigned

2014-02-25 Thread Uwe Kleine-König
The value is only used to assign to a (*struct cdev)-flags which is an unsigned int and it is passed as fourth parameter of mtd_add_partition which is an unsigned long. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/devfs-core.c | 2 +- include/driver.h | 8 2

[PATCH 09/10] ARM: pcm038: convert to devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/pcm038/pcm038.c | 41 +++-- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c index 1733261f7d04

[PATCH 01/10] devfs: partitioning: add missing free in error path

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- fs/devfs-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/devfs-core.c b/fs/devfs-core.c index 44f0169e6324..5a120c64879a 100644 --- a/fs/devfs-core.c +++ b/fs/devfs-core.c @@ -292,6 +292,7 @@ struct cdev

[PATCH 05/10] devfs: partitioning: add new helper devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
by the new helper if the bbname is specified for a partition. Note that adding partitions is also more flexible now (also via devfs_add_partition) because negative values for offset and size now have a proper meaning instead of creating broken partitions. Signed-off-by: Uwe Kleine-König u.kleine

[PATCH 07/10] ARM: freescale-mx35-3-stack: convert to devfs_create_partitions

2014-02-25 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/freescale-mx35-3-stack/3stack.c | 36 - 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/arch/arm/boards/freescale-mx35-3-stack/3stack.c b/arch/arm/boards/freescale-mx35-3

Re: [PATCH 06/10] ARM: a9m2410: convert to devfs_create_partitions

2014-02-26 Thread Uwe Kleine-König
On Wed, Feb 26, 2014 at 12:25:20AM +0100, Sebastian Hesselbarth wrote: On 02/25/2014 11:51 PM, Uwe Kleine-König wrote: Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/a9m2410/a9m2410.c | 23 +-- 1 file changed, 17 insertions(+), 6

[PATCH v2 05/10] devfs: partitioning: add new helper devfs_create_partitions

2014-02-27 Thread Uwe Kleine-König
by the new helper if the bbname is specified for a partition. Note that adding partitions is also more flexible now (also via devfs_add_partition) because negative values for offset and size now have a proper meaning instead of creating broken partitions. Signed-off-by: Uwe Kleine-König u.kleine

[PATCH v2 04/10] mtd/nand: constify filename parameter

2014-02-27 Thread Uwe Kleine-König
The string pointed to isn't modified, so declare it as const. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- drivers/mtd/nand/nand-bb.c | 2 +- include/nand.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/nand-bb.c b

[PATCH v2 09/10] ARM: pcm038: convert to devfs_create_partitions

2014-02-27 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/pcm038/pcm038.c | 47 - 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c index 1733261f7d04

[PATCH v2 03/10] Documentation: fix example call to devfs_add_partition

2014-02-27 Thread Uwe Kleine-König
The flags parameter was skipped in the example. Add it as DEVFS_PARTITION_FIXED. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Documentation/porting.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/porting.txt b/Documentation/porting.txt

[PATCH v2 10/10] ARM: sama5d3xek: convert to devfs_create_partitions

2014-02-27 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- arch/arm/boards/sama5d3xek/init.c | 41 +++ 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c index

Re: Beaglebone white: Kernel doesn't start with barebox-2014.03.0

2014-04-16 Thread Uwe Kleine-König
clear here. Best regards Uwe [1] i.e. with CONFIG_ZBOOT_ROM=y it's wrong. -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list

Re: TODO: Rewrite network stack.

2014-05-08 Thread Uwe Kleine-König
| ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de

Re: [PATCH] kconfig: Fix compiler warning

2014-06-30 Thread Uwe Kleine-König
mainline code [1]. Then this is currently not fixed in any way (comment or setting to NULL There is also the macro uninitialized_var (in both kernel and barebox) that could be used here instead of the explicit = NULL. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König

Re: [PATCH] automount: check for recursive automount

2014-07-03 Thread Uwe Kleine-König
the static 'in_automount' with 0? Or can we rely on the compiler, that all statics will be initialized with zeros? static variables are initialized to 0 (for pointers: NULL) by the compiler. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial

Re: [PATCH] automount: check for recursive automount

2014-07-03 Thread Uwe Kleine-König
. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: envfs: provide an intentional way to ignore an existing external environment

2014-07-31 Thread Uwe Kleine-König
could still explicitly load and save the external env. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ barebox mailing list

Re: envfs: provide an intentional way to ignore an existing external environment

2014-07-31 Thread Uwe Kleine-König
On Thu, Jul 31, 2014 at 09:33:02AM +0200, Juergen Borleis wrote: Hi Uwe, On Thursday 31 July 2014 09:14:25 Uwe Kleine-König wrote: [...] Compared with storing the default environment in the external store the only difference is that you don't need to modify it if you change

  1   2   3   4   5   6   7   8   >