Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Tom Rini
On Tue, Nov 04, 2014 at 11:11:40PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20141104220213.GN15133@bill-the-cat> you wrote: > > > > > Hm is there a way to determine in advance where we are passing a > > > number as argument [see "common/cmd_fdt.c" lines 260ff] ? > > > > The pr

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Wolfgang Denk
Dear Tom, In message <20141104220213.GN15133@bill-the-cat> you wrote: > > > Hm is there a way to determine in advance where we are passing a > > number as argument [see "common/cmd_fdt.c" lines 260ff] ? > > The problem is that 'fdt set ... ' is valid and 'fdt set ... > <0xhex>' is valid (as

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Tom Rini
On Tue, Nov 04, 2014 at 10:20:46PM +0100, Wolfgang Denk wrote: > Dear Tom, > > In message <20141104205800.GM15133@bill-the-cat> you wrote: > > > > > Well, we probably should not use this FDT centric decoding function > > > directly on arguments passed from the U-Boot command line. > > > > No, lo

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Wolfgang Denk
Dear Tom, In message <20141104205800.GM15133@bill-the-cat> you wrote: > > > Well, we probably should not use this FDT centric decoding function > > directly on arguments passed from the U-Boot command line. > > No, look again at what we're doing. We're not calling a U-Boot function > to do U-Bo

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Tom Rini
On Tue, Nov 04, 2014 at 09:53:02PM +0100, Wolfgang Denk wrote: > Dear Ian, > > In message <1415116135.11486.51.ca...@hellion.org.uk> you wrote: > > > > > > /* > > > > * Parse the user's input, partially heuristic. Valid formats: > > > > * <0x00112233 4 05>- an array of cells. Numbers follo

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Wolfgang Denk
Dear Ian, In message <1415116135.11486.51.ca...@hellion.org.uk> you wrote: > > > > /* > > > * Parse the user's input, partially heuristic. Valid formats: > > > * <0x00112233 4 05> - an array of cells. Numbers follow standard > > > *C conventions. > > > * [00 11 2

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Ian Campbell
On Tue, 2014-11-04 at 10:44 -0500, Tom Rini wrote: > On Thu, Oct 30, 2014 at 03:32:58PM +, Ian Campbell wrote: > > On Thu, 2014-10-30 at 16:21 +0100, Wolfgang Denk wrote: > > > Dear Ian, > > > > > > In message <1414677435.2064.34.ca...@hellion.org.uk> you wrote: > > > > It seems there is some

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params

2014-11-04 Thread Tom Rini
On Thu, Oct 30, 2014 at 03:32:58PM +, Ian Campbell wrote: > On Thu, 2014-10-30 at 16:21 +0100, Wolfgang Denk wrote: > > Dear Ian, > > > > In message <1414677435.2064.34.ca...@hellion.org.uk> you wrote: > > > It seems there is some inconsistency wrt number base between commands > > > which set

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params.

2014-10-30 Thread Ian Campbell
On Thu, 2014-10-30 at 16:21 +0100, Wolfgang Denk wrote: > Dear Ian, > > In message <1414677435.2064.34.ca...@hellion.org.uk> you wrote: > > It seems there is some inconsistency wrt number base between commands > > which set $filesize in the env and the commands which might consume > > them. > > T

Re: [U-Boot] Inconsistency between $filesize and commands which accept numeric params.

2014-10-30 Thread Wolfgang Denk
Dear Ian, In message <1414677435.2064.34.ca...@hellion.org.uk> you wrote: > It seems there is some inconsistency wrt number base between commands > which set $filesize in the env and the commands which might consume > them. That would be bugs, then. > > sun7i# load scsi 0 $fdt_a

[U-Boot] Inconsistency between $filesize and commands which accept numeric params.

2014-10-30 Thread Ian Campbell
It seems there is some inconsistency wrt number base between commands which set $filesize in the env and the commands which might consume them. e.g. sun7i# load scsi 0 $fdt_addr_r dtbs/$fdtfile 21639 bytes read in 191 ms (110.4 KiB/s) sun7i# printenv filesize