Skip to contentSkip to conversation

Running w/o flash

U-Boot-Users Ulf Samuelsson 2 participants 8 messages Mar 27, 2007 – Mar 28, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Wolfgang Denk skrev:

Quoted 5 lines
Quoted 1 line · In message <[email protected]> you wrote:

Yes, but there is still code compiled in which is not neccessary.

I disagree.

I do not understand!

You believe that the code ifdef'ed away is neccessary if you do not have any parallel flash?

Quoted 4 lines
Quoted 1 line

See patch: 24.noflash, just sent.

See my NAK to your patch which adds unnecessary empty functions.

They are not unneccessary, they are the first patches of a set, which you are well aware that I would like to have merged with the mainline.

Quoted 4 lines

Best regards,

Wolfgang Denk

Signature · 19 lines
Best Regards,
Ulf Samuelsson                ulf at atmel.com
Atmel Nordic AB
Mail:  Box 2033, 174 02 Sundbyberg, Sweden
Visit:  Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22     Fax +46 (8) 441 54 29
GSM    +46 (706) 22 44 57

Technical support when I am not available:
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
links: www.avrfreaks.net; www.at91.com; avr32linux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulf.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070327/a319fdae/attachment.vcf 
#2 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

You believe that the code ifdef'ed away is neccessary if you do not have any parallel flash?

No. The whole file is not compiled as it starts

	#if (CONFIG_COMMANDS & CFG_CMD_FLASH)

If you have no flash, you need no flash commands, so you don't define CFG_CMD_FLASH and everything is fine.

Quoted 3 lines

They are not unneccessary, they are the first patches of a set, which you are well aware that I would like to have merged with the mainline.

I'm not sure what you mean. But if there is no flash, we don't need no flash commands either, no matter if these are empty or not. Agreed?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Systems programmers are the high priests of a low cult.
                                                       -- R.S. Barton
#3 lore raw

Wolfgang Denk skrev:

Quoted 11 lines
Quoted 2 lines · In message <[email protected]> you wrote:

You believe that the code ifdef'ed away is neccessary if you do not have any parallel flash?

No. The whole file is not compiled as it starts

	#if (CONFIG_COMMANDS & CFG_CMD_FLASH)

If you have no flash, you need no flash commands, so you don't define CFG_CMD_FLASH and everything is fine.

I have flash, just not parallel flash.
and I need the flash commands but not the stuff related to parallel flash.

Quoted 6 lines
Quoted 3 lines

They are not unneccessary, they are the first patches of a set, which you are well aware that I would like to have merged with the mainline.

I'm not sure what you mean. But if there is no flash, we don't need no flash commands either, no matter if these are empty or not. Agreed?

Exactly, but there is flash, but not any *parallel* flash so the flash commands are needed, but not the stuff related to parallel flash.

Quoted 5 lines

Best regards,

Wolfgang Denk

Signature · 19 lines
Best Regards,
Ulf Samuelsson                ulf at atmel.com
Atmel Nordic AB
Mail:  Box 2033, 174 02 Sundbyberg, Sweden
Visit:  Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22     Fax +46 (8) 441 54 29
GSM    +46 (706) 22 44 57

Technical support when I am not available:
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
links: www.avrfreaks.net; www.at91.com; avr32linux.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulf.vcf
Type: text/x-vcard
Size: 301 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070327/b1325fbf/attachment.vcf 
#4 lore raw
Quoted 10 lines · In message <[email protected]> you wrote:
Quoted 7 lines

No. The whole file is not compiled as it starts

	#if (CONFIG_COMMANDS & CFG_CMD_FLASH)

If you have no flash, you need no flash commands, so you don't define CFG_CMD_FLASH and everything is fine.

I have flash, just not parallel flash.
and I need the flash commands but not the stuff related to parallel flash.

There is no such concept as "parallel" flash in U-Boot. The term "flash" is usually (*) used to name flash memory, i. e. some form of non-volatile, byte-addressable, often block-erasable memory. And before there is more confusion in terms: memory is something the CPU can address on the address bus and read/write data from/to on the data bus.

(*) The "usually" above refers to the fact that there are other types
of storage devices like NAND flash, data flash, CompactFlash, ... that also use the work "flash" in their name, but without providing a memory-like interface, so it is technically wrong to call these "flash memory".

The U-Boot command set enabled by the CFG_CMD_FLASH option provides support for flash memory. Similar, the command set CFG_CMD_MEMORY provides additional commands to operate on flash and other memory types.

In U-Boot, the meaning of the term "flash" is consistent, i. e. both CFG_NO_FLASH and CFG_CMD_FLASH refer to exactly the same definition:
flash memory.

If you define CFG_NO_FLASH it makes no sense to define CFG_CMD_FLASH as "no flash" means that: there is no flash memory support on that board. [You might argue that this should actually be automatically handled by U-Boot, i. e. defining both CFG_CMD_FLASH and CFG_NO_FLASH on one board should throw an error condition. I will not reject a patch that implements such checking, although I personally think this is not needed.]

Now back to your statement of having "flash, just not parallel flash." I know what you mean, but in the strict technical sense this staement is wrong. You don't have flash memory (what you call "parallel flash"). We agree on that. But instead of simplyfying your system description into "I have flash" you should correctly state: I have one or more flash storage devices (line NAND, Data Flash, etc.).

This is the crucial point of this discussion, and all the lengthy previous discussions we had about this: U-Boot memory commands and U-Boot flash commands are intended to operate on memory, including flash memory. The are NOT intended to operate on any kind of storage devices. For storage devices a differen set of commands must be used.

I know, that the current code to support Data Flash pretends that such storage devices actually look like memory, but this is wrong. And, as has been discussed several times before, this code shall and will be removed from the U-Boot tree, and replaced by somthing new which better represents tha actual nature and access types to such storage devices.

Quoted 3 lines

Exactly, but there is flash, but not any *parallel* flash so the flash commands are needed, but not the stuff related to parallel flash.

Instead of trying to extend the current, deprecated implementation, I would like to ask you to rather help to eliminate and replace it with something better.

Thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You cannot propel yourself forward by patting yourself on the back.
#5 lore raw
Quoted 9 lines
Quoted 4 lines

Exactly, but there is flash, but not any *parallel* flash so the flash commands are needed, but not the stuff related to parallel flash.

Instead of trying to extend the current, deprecated implementation, I would like to ask you to rather help to eliminate and replace it with something better.

Sorry, but I do not work in the Atmel AT91 Product Line and I believe that they are the ones that should develop this.

However, They have already given up on you and are looking for an alternative solution.

What I am trying to do is to ensure that the existing work is made available to our customers.

Since Grant want to change it, then he should do so, and promptly since now his "idea" seems to block everything.

From my point of view, the best approach is that Grant Applies my patches on his local tree and fixes the mess he has put us in.

Quoted 6 lines

Thanks.

Best regards,

Wolfgang Denk

Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB

Mail:  Box 2033, 174 02 Sundbyberg, Sweden
Visit:  Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden

Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57

Technical support when I am not available:
AT89 C51 Applications Group: mailto:micro.hotline at nto.atmel.com AT90 AVR Applications Group: mailto:avr at atmel.com AT91 ARM Applications Group: mailto:at91support at atmel.com FPSLIC Application Group: mailto:fpslic at atmel.com Best AVR
link: www.avrfreaks.net

#6 lore raw

Dear Ulf,

Quoted 6 lines · in message <022201c770c3$43d20740$01c4af0a@Glamdring> you wrote:

Sorry, but I do not work in the Atmel AT91 Product Line and I believe that they are the ones that should develop this.

However, They have already given up on you and are looking for an alternative solution.

I'm sorry to hear that. Is there anybody I could contact to try to sort out their problems with me?

Quoted 2 lines
Quoted 1 line

From my point of view, the best approach is that Grant Applies

my patches on his local tree and fixes the mess he has put us in.

Stop, please be fair. Grant is not to blame here.

The culprit is me. When the Dataflash code was added, I did not really know what DataFlash is, and I did not take the time to study the code thoroughly enough to understand all the implications. It was my fault that this code was ever added to the U-Boot tree. If I had raised my concerns earlier, all of this would have been much easier.

But I did not understand this then, and now we have the mess. But this mess is my fault, not Grant's.

Grant is trying to help cleaning up.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from the Boss... "I didn't say it was your fault.  I said I was
going to blame it on you."
#7 lore raw
Quoted 4 lines

Dear Ulf,

Quoted 1 line · in message <022201c770c3$43d20740$01c4af0a@Glamdring> you wrote:
Quoted 10 lines
Quoted 5 lines

Sorry, but I do not work in the Atmel AT91 Product Line and I believe that they are the ones that should develop this.

However, They have already given up on you and are looking for an alternative solution.

I'm sorry to hear that. Is there anybody I could contact to try to sort out their problems with me?

Their problem with you is that you ignore patch request. Not even acknowledgement for 9 months and this was 6 months ago.

This is a systematic problem, which you are trying to fixed by introducing guardian.

When I now try to resubmit 15 months old code (or older) you want this to be totally rewritten in a way which is undefined..

I see is a as pointless in even trying, unless you are prepared to accept at least existing code to be merged

Quoted 11 lines
Quoted 2 lines
Quoted 1 line

From my point of view, the best approach is that Grant Applies

my patches on his local tree and fixes the mess he has put us in.

Stop, please be fair. Grant is not to blame here.

The culprit is me. When the Dataflash code was added, I did not really know what DataFlash is, and I did not take the time to study the code thoroughly enough to understand all the implications. It was my fault that this code was ever added to the U-Boot tree. If I had raised my concerns earlier, all of this would have been much easier.

Once you have accepted blame, you do not assume responsibility for it, you want to offload all the work to others. You have no sensibility for other peoples priorities.

If you want to change U-boot, then do so, but only when you have a definition of how you want to change that. Meanwhile there are AT91 customers which spends a lot of time trying to overcome the problems you are causing by a position, which could be significantly different if you could see it from my (and not unlikely Atmels position)

Quoted 17 lines

But I did not understand this then, and now we have the mess. But this mess is my fault, not Grant's.

Grant is trying to help cleaning up.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from the Boss... "I didn't say it was your fault.  I said I was
going to blame it on you."
#8 lore raw

Dear Ulf,

Quoted 2 lines · in message <003d01c770fe$fc7b1f80$01c4af0a@Glamdring> you wrote:

Their problem with you is that you ignore patch request.

Please be fair - I did not ignore pathches, I did not find time to process them. The end effect may be the same, but there is still a big difference.

Quoted 2 lines

Not even acknowledgement for 9 months and this was 6 months ago.

What should I ack? That I received the patch? I am subscribed to the mailing list. I receive all postings, and I can find them in the archives. Just sending a "received" message seems useless to me.

Quoted 2 lines

This is a systematic problem, which you are trying to fixed by introducing guardian.

Indeed. Please believe me, the previous situation was as frustrating to me as it was to you and others.

Quoted 2 lines

I see is a as pointless in even trying, unless you are prepared to accept at least existing code to be merged

I did not object against this. Lets see what others and especially the custodian say.

Quoted 3 lines

Once you have accepted blame, you do not assume responsibility for it, you want to offload all the work to others. You have no sensibility for other peoples priorities.

I spend an considerable amount of time in the past few days trying to overcome the conflict you have with me. This was important to me, as I think that most of your contributions are valuable for the U-Boot community, even though I disagree with a few directions you have taken. All my attempts seem to have failed. Instead of helping to de-escalate the situation, you continue to insult me.

I stop here. I tried, and failed, again.

Quoted 2 lines

If you want to change U-boot, then do so, but only when you have a definition of how you want to change that.

The definition has been made. See the archives.

Quoted 4 lines

Meanwhile there are AT91 customers which spends a lot of time trying to overcome the problems you are causing by a position, which could be significantly different if you could see it from my (and not unlikely Atmels position)

I can see it from your position. But as maintainer of the whole project, I cannot allow for each and every special solution. I've done this too often before, and the result has always caused more harm that benefit. I cannot accept each and every contribution, even if it solves a local problem or helps a certain group of users. I have to reject stuff that breaks consistency and design principles of the U-Boot code, at least when a better way to solve this problem is known and feasible.

I am aware that we cannot replace Dataflash support with something new and better immediately, so you can be assured that it won't be ripped out. But I will also reject patches even extend this current implementation. If you want to help, please do this by helping to replace that old code instead of adding to it.

If you really have the AT91 customers in mind, your best contribution is to participate in the new design and implementation, so your ideas and wishes can be considered.

Let's stop this discussion now, please. I don;t see any results coming out of it.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"If you can, help others. If you can't, at least don't hurt  others."
- the Dalai Lama