Skip to contentSkip to conversation

allow flash "ranges" to default to end of flash

PATCH New Murray.Jensen at csiro.au 2 participants 5 messages Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 allow flash "ranges" to default to end of flash

This patch modifies the flash "range" code slightly to allow a range to "default" to the "end of the bank". Currently, you must specify "<first>-<last>" where <first> and <last> are sector numbers (zero based) within the "bank". This code allows you to say "<first>-" and <last> will default to the sector number of the last sector in the "bank". I thought I needed this - but now I don't use it anymore. However, the code might still be useful to someone. Cheers!

								Murray...
Signature · 20 lines
Murray Jensen, CSIRO Manufacturing & Infra. Tech.      Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia.         Fax: +61 3 9662 7853
Internet: Murray.Jensen at csiro.au

To the extent permitted by law, CSIRO does not represent, warrant and/or
guarantee that the integrity of this communication has been maintained or
that the communication is free of errors, virus, interception or interference.

The information contained in this e-mail may be confidential or privileged.
Any unauthorised use or disclosure is prohibited. If you have received this
e-mail in error, please delete it immediately and notify Murray Jensen on
+61 3 9662 7763. Thank you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMD-FLAS.PAT
Type: text/x-patch
Size: 1892 bytes
Desc: cmd-flash-range-end.patch
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050630/742135f5/attachment.bin 
#1 lore raw

PATCH 1/1 allow flash "ranges" to default to end of flash

Quoted 5 lines · In message <29153.1120110630@gerd> you wrote:

This patch modifies the flash "range" code slightly to allow a range to "default" to the "end of the bank". Currently, you must specify "<first>-<last>" where <first> and <last> are sector numbers (zero based) within the "bank". This code allows you to say "<first>-" and <last> will

No, numbers don't have to be within one bank.

Quoted 3 lines

default to the sector number of the last sector in the "bank". I thought I needed this - but now I don't use it anymore. However, the code might still be useful to someone. Cheers!

I will not include this patch as we have another, IMHO more useful extension in the queue: "first +size", so you can for example use "era $(start) +$(filesize)".

Quoted 3 lines

The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify Murray Jensen on

And I cannot use any stuff with such a "copyright" note anyway.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I can't say I've ever been lost, but I was bewildered once for  three
days.                                     - Daniel Boone (Attributed)
#2 lore raw

PATCH 1/1 allow flash "ranges" to default to end of flash

Quoted 8 lines · Wolfgang Denk
Quoted 5 lines · In message <29153.1120110630@gerd> you wrote:

This patch modifies the flash "range" code slightly to allow a range to "default" to the "end of the bank". Currently, you must specify "<first>-<last>" where <first> and <last> are sector numbers (zero based) within the "bank". This code allows you to say "<first>-" and <last> will

No, numbers don't have to be within one bank.

I wrote the code - even though it was a long time ago, my memory is that they do in fact have to be within one bank. I left out a bit of the syntax, it is actually "<bank>:<first>[-<last>]". The patch changes this to "<bank>:<first>[-[<last>]]".

Quoted 3 lines

I will not include this patch as we have another, IMHO more useful extension in the queue: "first +size", so you can for example use "era $(start) +$(filesize)".

This can co-exist with the bank/sector notation.

Quoted 5 lines
Quoted 3 lines

The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify Murray Jensen on

And I cannot use any stuff with such a "copyright" note anyway.

This isn't a "copyright note" (notice?). It is a standard disclaimer. I cannot send public email from this account without it. See previous email. Cheers!

								Murray...

--
Murray Jensen, CSIRO Manufacturing & Infra. Tech. Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 9662 7853
Internet: Murray.Jensen at csiro.au

To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify Murray Jensen on +61 3 9662 7763. Thank you.

#3 lore raw

PATCH 1/1 allow flash "ranges" to default to end of flash

Quoted 9 lines · In message <7905.1120137280@huldra> you wrote:
Quoted 6 lines
Quoted 4 lines

The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify Murray Jensen on

And I cannot use any stuff with such a "copyright" note anyway.

This isn't a "copyright note" (notice?). It is a standard disclaimer. I cannot send public email from this account without it. See previous email. Cheers!

It is the ONLY information in your whole message about the legal state of the content. I must assume it does apply to your patch. It it may be confidential information I cannot and will not use it. It does not matter if you have any actual right to release GPLed stuff under such a restrictive "license".

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I will also, for an appropriate fee, certify that  your  keyboard  is
object-oriented,  and  that  the bits on your hard disk are template-
compatible.            - Jeffrey S. Haemer in <[email protected]>
#4 lore raw

PATCH 1/1 allow flash "ranges" to default to end of flash

Quoted 2 lines · Wolfgang Denk

It is the ONLY information in your whole message about the legal state of the content. I must assume it does apply to your patch.

My thinking was that it *cannot* apply, since the code is modifications to other code which was licenced under the GPL, hence the modifcations must also be licenced under the GPL.

Anyway, I hate these standard disclaimers as much as you do (maybe more). I will make it clear in future, so there is no doubt about the patches.

Quoted 3 lines

it may be confidential information I cannot and will not use it. It does not matter if you have any actual right to release GPLed stuff under such a restrictive "license".

That was my point - CSIRO has no claim, therefore the disclaimer *cannot* apply. Oh well - this wonderful brave new world of litigation we live in means we all have to be lawyers, whether we like it or not. Cheers!

								Murray...

--
Murray Jensen, CSIRO Manufacturing & Infra. Tech. Phone: +61 3 9662 7763
Locked Bag No. 9, Preston, Vic, 3072, Australia. Fax: +61 3 9662 7853
Internet: Murray.Jensen at csiro.au

To the extent permitted by law, CSIRO does not represent, warrant and/or guarantee that the integrity of this communication has been maintained or that the communication is free of errors, virus, interception or interference.

The information contained in this e-mail may be confidential or privileged. Any unauthorised use or disclosure is prohibited. If you have received this e-mail in error, please delete it immediately and notify Murray Jensen on +61 3 9662 7763. Thank you.