* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. @ 2008-05-06 14:05 Remy Bohmer 2008-05-06 15:23 ` Haavard Skinnemoen 2008-05-09 20:44 ` Wolfgang Denk 0 siblings, 2 replies; 20+ messages in thread From: Remy Bohmer @ 2008-05-06 14:05 UTC (permalink / raw) To: u-boot Hello All, Commit c0559be371b2a64b1a817088c3308688e2182f93 introduces a bug in the environment setting storage in U-boot-1.3.3-rc3. Settings are retrieved from dataflash when only settings in RAM are valid, resulting in corrupt environment settings, failing printenv command, and duplicate variables. This patch fixes this by always using the RAM area when it is created and initialized. (Matches more the behavior as it was prior to this particular commit.) See attached (Sorry, my mailer does not handle inline-patches properly) Kind Regards, Remy -------------- next part -------------- A non-text attachment was scrubbed... Name: fix-corrupt-environment.patch Type: text/x-patch Size: 1175 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20080506/f81120ca/attachment.bin ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-06 14:05 [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM Remy Bohmer @ 2008-05-06 15:23 ` Haavard Skinnemoen 2008-05-07 7:52 ` Remy Bohmer 2008-05-09 20:46 ` Wolfgang Denk 2008-05-09 20:44 ` Wolfgang Denk 1 sibling, 2 replies; 20+ messages in thread From: Haavard Skinnemoen @ 2008-05-06 15:23 UTC (permalink / raw) To: u-boot "Remy Bohmer" <linux@bohmer.net> wrote: > This patch fixes this by always using the RAM area when it is created > and initialized. (Matches more the behavior as it was prior to this > particular commit.) Hmm...maybe this is a stupid question, but why can't it _always_ use the RAM area to look up the environment? env_init() is one of the first things to be called during bootstrap... Maybe it's wishful thinking, but if we could get rid of this extra logic, u-boot would become simpler, smaller and faster, right? Haavard ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-06 15:23 ` Haavard Skinnemoen @ 2008-05-07 7:52 ` Remy Bohmer 2008-05-07 9:14 ` Haavard Skinnemoen 2008-05-09 20:46 ` Wolfgang Denk 1 sibling, 1 reply; 20+ messages in thread From: Remy Bohmer @ 2008-05-07 7:52 UTC (permalink / raw) To: u-boot Hello Haavard, Wolfgang > Hmm...maybe this is a stupid question, but why can't it _always_ use > the RAM area to look up the environment? env_init() is one of the first > things to be called during bootstrap... > Maybe it's wishful thinking, but if we could get rid of this extra > logic, u-boot would become simpler, smaller and faster, right? There are no stupid questions, just stupid answers... ;-) I think it is nicer too, but that appears to me as a good thing to investigate for the next release of U-boot, not changing this on the deadline of the current release. I think the patch I posted yesterday should be integrated in the current release, because it is limited to fixing a very annoying bug (bogus environment settings on at least the Atmel at91 boards using dataflash as environment settings storage, maybe also other boards) In fact, If it was up to me, I would classify such a bug as a showstopper... Wolfgang, have you looked at this patch already? Kind Regards, Remy ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-07 7:52 ` Remy Bohmer @ 2008-05-07 9:14 ` Haavard Skinnemoen 0 siblings, 0 replies; 20+ messages in thread From: Haavard Skinnemoen @ 2008-05-07 9:14 UTC (permalink / raw) To: u-boot "Remy Bohmer" <linux@bohmer.net> wrote: > I think it is nicer too, but that appears to me as a good thing to > investigate for the next release of U-boot, not changing this on the > deadline of the current release. Yeah, I completely agree. We probably need some time to shake out any fallout from such a change...your change does nothing but fix the problem, so it is much more appropriate at this point. Haavard ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-06 15:23 ` Haavard Skinnemoen 2008-05-07 7:52 ` Remy Bohmer @ 2008-05-09 20:46 ` Wolfgang Denk 1 sibling, 0 replies; 20+ messages in thread From: Wolfgang Denk @ 2008-05-09 20:46 UTC (permalink / raw) To: u-boot In message <20080506172309.1dff34bc@hskinnemo-gx620.norway.atmel.com> you wrote: > > Hmm...maybe this is a stupid question, but why can't it _always_ use > the RAM area to look up the environment? env_init() is one of the first > things to be called during bootstrap... One of the first accesses to the environment happens when we need to read the console baudrate to initialize the serial interface. This happens very, very early in the initialization, long before RAM is even usable. > Maybe it's wishful thinking, but if we could get rid of this extra > logic, u-boot would become simpler, smaller and faster, right? Unfortunately this is not the case. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de All I ask is a chance to prove that money can't make me happy. ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-06 14:05 [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM Remy Bohmer 2008-05-06 15:23 ` Haavard Skinnemoen @ 2008-05-09 20:44 ` Wolfgang Denk 2008-05-10 9:46 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby " Ulf Samuelsson 2008-05-10 13:53 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by " Remy Bohmer 1 sibling, 2 replies; 20+ messages in thread From: Wolfgang Denk @ 2008-05-09 20:44 UTC (permalink / raw) To: u-boot In message <3efb10970805060705l112c623at96bf0521eed8a211@mail.gmail.com> you wrote: > > Commit c0559be371b2a64b1a817088c3308688e2182f93 introduces a bug in > the environment setting storage in U-boot-1.3.3-rc3. > Settings are retrieved from dataflash when only settings in RAM are > valid, resulting in corrupt environment settings, failing printenv > command, and > duplicate variables. > > This patch fixes this by always using the RAM area when it is created > and initialized. (Matches more the behavior as it was prior to this > particular commit.) Sorry, but this patch makes littles sense to me. > See attached (Sorry, my mailer does not handle inline-patches properly) Chose another one? Or rather use "git-send-email" directly? - /* if relocated to RAM */ - if (gd->flags & GD_FLG_RELOC) + /* if relocated to RAM, OR if the environment in Malloc-ed RAM is valid */ + if ((gd->flags & GD_FLG_RELOC) || (gd->env_valid)) Let's keep in mind that the normal logic of the U-Boot startup sequence is like this: * U-Boot boots and initializes the RAM * U-Boot relocates itself into RAM, sets GD_FLG_RELOC and continues running from RAM * U-Boot continues with the initialization, for xample by setting up the malloc arena, loading the working copy of the environment into RAM (after which it set's gd->env_valid), etc. So the relocation to RAM always preceeds any use of malloc() and the setting of gd->env_valid. Or, put the other way round, we always set GD_FLG_RELOC long before gd->env_valid get's set. Thus your change above is just redundant. Now, if your board does not perform proper relocation for some reason, it should still set GD_FLG_RELOC at the appropriate place, i. e. as soon as U-Boot is ready for and starts running out of RAM. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Democracy is mob rule, but with income taxes. ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby reading uninitialized flash memory instead of RAM. 2008-05-09 20:44 ` Wolfgang Denk @ 2008-05-10 9:46 ` Ulf Samuelsson 2008-05-11 20:48 ` Wolfgang Denk 2008-05-10 13:53 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by " Remy Bohmer 1 sibling, 1 reply; 20+ messages in thread From: Ulf Samuelsson @ 2008-05-10 9:46 UTC (permalink / raw) To: u-boot > In message <3efb10970805060705l112c623at96bf0521eed8a211@mail.gmail.com> you wrote: >> >> Commit c0559be371b2a64b1a817088c3308688e2182f93 introduces a bug in >> the environment setting storage in U-boot-1.3.3-rc3. >> Settings are retrieved from dataflash when only settings in RAM are >> valid, resulting in corrupt environment settings, failing printenv >> command, and >> duplicate variables. >> >> This patch fixes this by always using the RAM area when it is created >> and initialized. (Matches more the behavior as it was prior to this >> particular commit.) > > Sorry, but this patch makes littles sense to me. > >> See attached (Sorry, my mailer does not handle inline-patches properly) > > Chose another one? Or rather use "git-send-email" directly? > > - /* if relocated to RAM */ > - if (gd->flags & GD_FLG_RELOC) > + /* if relocated to RAM, OR if the environment in Malloc-ed RAM is valid */ > + if ((gd->flags & GD_FLG_RELOC) || (gd->env_valid)) > > Let's keep in mind that the normal logic of the U-Boot startup > sequence is like this: > > * U-Boot boots and initializes the RAM > * U-Boot relocates itself into RAM, sets GD_FLG_RELOC and continues > running from RAM > * U-Boot continues with the initialization, for xample by setting up > the malloc arena, loading the working copy of the environment into > RAM (after which it set's gd->env_valid), etc. > When you have a dataflash, this is not the normal behaviour. A typical behaviour of an AT91 would be: 1) BootROM copies initial bootloader (at91bootstrap/dataflashboot) to internal SRAM 2) BootROM jumps to start of initial bootloader 3) Initial bootloader does low-level init (including configuring the SDRAM controller) 4) Initial bootloader copies U-Boot from dataflash to SDRAM 5) Initial bootloader jumps to U-Boot 6) U-Boot needs to skip low-level init > So the relocation to RAM always preceeds any use of malloc() and the > setting of gd->env_valid. Or, put the other way round, we always set > GD_FLG_RELOC long before gd->env_valid get's set. > > Thus your change above is just redundant. > > > Now, if your board does not perform proper relocation for some > reason, it should still set GD_FLG_RELOC at the appropriate place, i. > e. as soon as U-Boot is ready for and starts running out of RAM. > > Best regards, > > Wolfgang Denk > Best Regards Ulf Samuelsson ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby reading uninitialized flash memory instead of RAM. 2008-05-10 9:46 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby " Ulf Samuelsson @ 2008-05-11 20:48 ` Wolfgang Denk 0 siblings, 0 replies; 20+ messages in thread From: Wolfgang Denk @ 2008-05-11 20:48 UTC (permalink / raw) To: u-boot In message <004901c8b3a6$00a670b0$030514ac@atmel.com> you wrote: > > > Let's keep in mind that the normal logic of the U-Boot startup > > sequence is like this: > > > > * U-Boot boots and initializes the RAM > > * U-Boot relocates itself into RAM, sets GD_FLG_RELOC and continues > > running from RAM > > * U-Boot continues with the initialization, for xample by setting up > > the malloc arena, loading the working copy of the environment into > > RAM (after which it set's gd->env_valid), etc. > > > > When you have a dataflash, this is not the normal behaviour. Well, it is still the normal behaviour, except that booting from dataflash works differently, i. e. it is a special case. > A typical behaviour of an AT91 would be: > > 1) BootROM copies initial bootloader (at91bootstrap/dataflashboot) to internal SRAM > 2) BootROM jumps to start of initial bootloader > 3) Initial bootloader does low-level init (including configuring the SDRAM controller) > 4) Initial bootloader copies U-Boot from dataflash to SDRAM > 5) Initial bootloader jumps to U-Boot Yes, I am aware of this sequence. I wanted to explain that it is the responsibility of the running code to make sure that GD_FLG_RELOC is set before any of the "real" U-Boot code gets executed. It seems, this is missing in the case described here. > 6) U-Boot needs to skip low-level init It may skip the normal low-level init sequence, but it still has to set up the same environment that normally is set up by that code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Well I don't see why I have to make one man miserable when I can make so many men happy." - Ellyn Mustard, about marriage ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-09 20:44 ` Wolfgang Denk 2008-05-10 9:46 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby " Ulf Samuelsson @ 2008-05-10 13:53 ` Remy Bohmer 2008-05-11 22:43 ` Wolfgang Denk 1 sibling, 1 reply; 20+ messages in thread From: Remy Bohmer @ 2008-05-10 13:53 UTC (permalink / raw) To: u-boot Hello Wolfgang, 2008/5/9 Wolfgang Denk <wd@denx.de>: > In message <3efb10970805060705l112c623at96bf0521eed8a211@mail.gmail.com> you wrote: >> Commit c0559be371b2a64b1a817088c3308688e2182f93 introduces a bug in >> the environment setting storage in U-boot-1.3.3-rc3. >> Settings are retrieved from dataflash when only settings in RAM are >> valid, resulting in corrupt environment settings, failing printenv >> command, and >> duplicate variables. >> This patch fixes this by always using the RAM area when it is created >> and initialized. (Matches more the behavior as it was prior to this >> particular commit.) > Sorry, but this patch makes littles sense to me. If you do not like the way it is fixed, then remove git-commit c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression for the time being, to buy more time to fix it in a different/better way for the next release. Now with this commit the complete at91-board series (boards that boot from dataflash or nandflash) are broken. So,we have a serious regression here. BTW: If you look at the code _before_ commit c0559be371b2a64b1a817088c3308688e2182f93 you will see that immediately when the gd->env_valid is set to 1, _always_ the memory routines are used to read the environment settings. It has been that for many years. Commit c0559be371b2a64b1a817088c3308688e2182f93 changes this behavior, although it suggests that it only would change the use of early global variables. Notice that this commit is more like a cosmetic change, so it would do no harm to leave it out until the next release. With my patch I tried to get this old behavior back in the tree, and therefor it should work properly for other boards as well. Even if it sounds redundant. >> See attached (Sorry, my mailer does not handle inline-patches properly) > Chose another one? Or rather use "git-send-email" directly? Stuck to company rules, and from behind a http-proxy, which blocks this kind of traffic? No way is that going to work... > Let's keep in mind that the normal logic of the U-Boot startup > sequence is like this: > * U-Boot boots and initializes the RAM Nope, not on AT91 with dataflash (or nandflash) boot... AT91Bootstrap is used to initialize the RAM, copies the U-boot code from serial dataflash (SPI bus) to RAM, and then starts executing U-Boot. > * U-Boot relocates itself into RAM, sets GD_FLG_RELOC and continues > running from RAM U-boot will not _relocate_ itself in RAM, because it is already there. CONFIG_SKIP_RELOCATE_UBOOT is set for these boards, so GD_FLG_RELOC is never set. > * U-Boot continues with the initialization, for xample by setting up > the malloc arena, loading the working copy of the environment into > RAM (after which it set's gd->env_valid), etc. > So the relocation to RAM always preceeds any use of malloc() and the > setting of gd->env_valid. Or, put the other way round, we always set > GD_FLG_RELOC long before gd->env_valid get's set. > Thus your change above is just redundant. Not on AT91, because GD_FLG_RELOC is never set on AT91. > Now, if your board does not perform proper relocation for some > reason, it should still set GD_FLG_RELOC at the appropriate place, i. > e. as soon as U-Boot is ready for and starts running out of RAM. Figuring this out would take some time, and if you want to freeze 1.3.3 in the mean time, I would suggest to leave this commit out until there is a proper fix for this regression. I can start looking at it again next week, maybe Stelian (who created the AT91 board support in the first place) is faster than me... Kind Regards, Remy ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-10 13:53 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by " Remy Bohmer @ 2008-05-11 22:43 ` Wolfgang Denk 2008-05-12 7:25 ` Joakim Tjernlund 0 siblings, 1 reply; 20+ messages in thread From: Wolfgang Denk @ 2008-05-11 22:43 UTC (permalink / raw) To: u-boot In message <3efb10970805100653xc8c3848jf46c840cf33f95e7@mail.gmail.com> you wrote: > > If you do not like the way it is fixed, then remove git-commit > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression > for the time being, to buy more time to fix it in a different/better > way for the next release. Now with this commit the complete at91-board > series (boards that boot from dataflash or nandflash) are broken. > So,we have a serious regression here. That's what I did now: I reverted commit c0559be3. Joakim, please re-submit after the problems were understood and fixed. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de There's another way to survive. Mutual trust -- and help. -- Kirk, "Day of the Dove", stardate unknown ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-11 22:43 ` Wolfgang Denk @ 2008-05-12 7:25 ` Joakim Tjernlund 2008-05-28 18:25 ` Joakim Tjernlund [not found] ` <-6864379040381327023@unknownmsgid> 0 siblings, 2 replies; 20+ messages in thread From: Joakim Tjernlund @ 2008-05-12 7:25 UTC (permalink / raw) To: u-boot On Mon, 2008-05-12 at 00:43 +0200, Wolfgang Denk wrote: > In message <3efb10970805100653xc8c3848jf46c840cf33f95e7@mail.gmail.com> you wrote: > > > > If you do not like the way it is fixed, then remove git-commit > > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression > > for the time being, to buy more time to fix it in a different/better > > way for the next release. Now with this commit the complete at91-board > > series (boards that boot from dataflash or nandflash) are broken. > > So,we have a serious regression here. > > That's what I did now: I reverted commit c0559be3. > > Joakim, please re-submit after the problems were understood and fixed. You want me to resubmit something I got no control over? That won't happen and I doubt the problem boards will care either so I guess this improvement is lost. Jocke ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-12 7:25 ` Joakim Tjernlund @ 2008-05-28 18:25 ` Joakim Tjernlund 2008-06-04 22:05 ` Wolfgang Denk [not found] ` <-6864379040381327023@unknownmsgid> 1 sibling, 1 reply; 20+ messages in thread From: Joakim Tjernlund @ 2008-05-28 18:25 UTC (permalink / raw) To: u-boot > -----Original Message----- > From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] > On Behalf Of Joakim Tjernlund > Sent: den 12 maj 2008 09:26 > To: Wolfgang Denk > Cc: Haavard Skinnemoen; u-boot-users at lists.sourceforge.net; Nicolas FERRE > Subject: Re: [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized > flash memory instead of RAM. > > > On Mon, 2008-05-12 at 00:43 +0200, Wolfgang Denk wrote: > > In message <3efb10970805100653xc8c3848jf46c840cf33f95e7@mail.gmail.com> you wrote: > > > > > > If you do not like the way it is fixed, then remove git-commit > > > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression > > > for the time being, to buy more time to fix it in a different/better > > > way for the next release. Now with this commit the complete at91-board > > > series (boards that boot from dataflash or nandflash) are broken. > > > So,we have a serious regression here. > > > > That's what I did now: I reverted commit c0559be3. > > > > Joakim, please re-submit after the problems were understood and fixed. > > You want me to resubmit something I got no control over? That won't > happen and I doubt the problem boards will care either so I guess > this improvement is lost. > > Jocke Has the problem boards been fixed yet? If so please resubmit commit c0559be3. Jocke ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-05-28 18:25 ` Joakim Tjernlund @ 2008-06-04 22:05 ` Wolfgang Denk 2008-06-12 6:52 ` Joakim Tjernlund 2008-07-16 12:43 ` Remy Bohmer 0 siblings, 2 replies; 20+ messages in thread From: Wolfgang Denk @ 2008-06-04 22:05 UTC (permalink / raw) To: u-boot In message <005801c8c0f0$2baed020$830c7060$@Tjernlund@transmode.se> you wrote: > > > > > If you do not like the way it is fixed, then remove git-commit > > > > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression > > > > for the time being, to buy more time to fix it in a different/better > > > > way for the next release. Now with this commit the complete at91-board > > > > series (boards that boot from dataflash or nandflash) are broken. > > > > So,we have a serious regression here. > > > > > > That's what I did now: I reverted commit c0559be3. > > > > > > Joakim, please re-submit after the problems were understood and fixed. > > > > You want me to resubmit something I got no control over? That won't > > happen and I doubt the problem boards will care either so I guess > > this improvement is lost. > > > > Jocke > > Has the problem boards been fixed yet? If so please resubmit commit c0559be3. So what *is* the state of this? If nobody responds soon, I will indeed re-apply that patch, andthen I will not revert this commit again. So if you think this bytes you, please speak up *now*. Jock, would you please send me a reminder in a week or so? Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Hindsight is an exact science. ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-06-04 22:05 ` Wolfgang Denk @ 2008-06-12 6:52 ` Joakim Tjernlund 2008-07-05 22:32 ` Wolfgang Denk 2008-07-16 12:43 ` Remy Bohmer 1 sibling, 1 reply; 20+ messages in thread From: Joakim Tjernlund @ 2008-06-12 6:52 UTC (permalink / raw) To: u-boot On Thu, 2008-06-05 at 00:05 +0200, Wolfgang Denk wrote: > In message <005801c8c0f0$2baed020$830c7060$@Tjernlund@transmode.se> you wrote: > > > > > > > If you do not like the way it is fixed, then remove git-commit > > > > > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression > > > > > for the time being, to buy more time to fix it in a different/better > > > > > way for the next release. Now with this commit the complete at91-board > > > > > series (boards that boot from dataflash or nandflash) are broken. > > > > > So,we have a serious regression here. > > > > > > > > That's what I did now: I reverted commit c0559be3. > > > > > > > > Joakim, please re-submit after the problems were understood and fixed. > > > > > > You want me to resubmit something I got no control over? That won't > > > happen and I doubt the problem boards will care either so I guess > > > this improvement is lost. > > > > > > Jocke > > > > Has the problem boards been fixed yet? If so please resubmit commit c0559be3. > > > So what *is* the state of this? > > > If nobody responds soon, I will indeed re-apply that patch, andthen I > will not revert this commit again. So if you think this bytes you, > please speak up *now*. > > Jock, would you please send me a reminder in a week or so? Thanks. About week has passed so here is the reminder :) Jocke ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-06-12 6:52 ` Joakim Tjernlund @ 2008-07-05 22:32 ` Wolfgang Denk 2008-07-06 10:30 ` Joakim Tjernlund 0 siblings, 1 reply; 20+ messages in thread From: Wolfgang Denk @ 2008-07-05 22:32 UTC (permalink / raw) To: u-boot In message <1213253528.5446.48.camel@gentoo-jocke.transmode.se> you wrote: > > > So what *is* the state of this? > > > > If nobody responds soon, I will indeed re-apply that patch, andthen I > > will not revert this commit again. So if you think this bytes you, > > please speak up *now*. > > > > Jock, would you please send me a reminder in a week or so? Thanks. > > About week has passed so here is the reminder :) Unfortunately, the original patch does not apply any more; could you please rebase and resubmit it? Thanks in advance. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You could end up being oddly sad and full of a strange, diffuse com- passion which would lead you to believe that it might be a good idea to wipe out the whole human race and start again with amoebas. - Terry Pratchett, _Guards! Guards!_ ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-07-05 22:32 ` Wolfgang Denk @ 2008-07-06 10:30 ` Joakim Tjernlund 2008-07-09 21:59 ` Wolfgang Denk 0 siblings, 1 reply; 20+ messages in thread From: Joakim Tjernlund @ 2008-07-06 10:30 UTC (permalink / raw) To: u-boot On Sun, 2008-07-06 at 00:32 +0200, Wolfgang Denk wrote: > In message <1213253528.5446.48.camel@gentoo-jocke.transmode.se> you wrote: > > > > > So what *is* the state of this? > > > > > > If nobody responds soon, I will indeed re-apply that patch, andthen I > > > will not revert this commit again. So if you think this bytes you, > > > please speak up *now*. > > > > > > Jock, would you please send me a reminder in a week or so? Thanks. > > > > About week has passed so here is the reminder :) > > Unfortunately, the original patch does not apply any more; could you > please rebase and resubmit it? Thanks in advance. ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-07-06 10:30 ` Joakim Tjernlund @ 2008-07-09 21:59 ` Wolfgang Denk 0 siblings, 0 replies; 20+ messages in thread From: Wolfgang Denk @ 2008-07-09 21:59 UTC (permalink / raw) To: u-boot In message <1215340209.6205.134.camel@gentoo-jocke.transmode.se> you wrote: > > Subject: [PATCH] Change env_get_char from a global function ptr to a function > > This avoids an early global data reference > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> > --- > > OK, here it is again. I am on vacation now so I have only compile tested > this version. > > common/env_common.c | 19 +++++++++++++------ > include/environment.h | 4 ++-- > 2 files changed, 15 insertions(+), 8 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de [Braddock:] Mr. Churchill, you are drunk. [Churchill:] And you madam, are ugly. But I shall be sober tomorrow. ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-06-04 22:05 ` Wolfgang Denk 2008-06-12 6:52 ` Joakim Tjernlund @ 2008-07-16 12:43 ` Remy Bohmer 2008-07-22 12:26 ` Remy Bohmer 1 sibling, 1 reply; 20+ messages in thread From: Remy Bohmer @ 2008-07-16 12:43 UTC (permalink / raw) To: u-boot Hello Wolfgang, >> Has the problem boards been fixed yet? If so please resubmit commit c0559be3. > So what *is* the state of this? > If nobody responds soon, I will indeed re-apply that patch, andthen I > will not revert this commit again. So if you think this bytes you, > please speak up *now*. Oops, due to my summer holidays I missed this one... But no problem, I have a decent fix for the AT91 boards ready, and can post it when I am back at work. I only have to rebase it to the latest git tree. Remy ^ permalink raw reply [flat|nested] 20+ messages in thread
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. 2008-07-16 12:43 ` Remy Bohmer @ 2008-07-22 12:26 ` Remy Bohmer 0 siblings, 0 replies; 20+ messages in thread From: Remy Bohmer @ 2008-07-22 12:26 UTC (permalink / raw) To: u-boot Hello Wolfgang, >>> Has the problem boards been fixed yet? If so please resubmit commit c0559be3. >> So what *is* the state of this? > Oops, due to my summer holidays I missed this one... > But no problem, I have a decent fix for the AT91 boards ready, and can > post it when I am back at work. > I only have to rebase it to the latest git tree. As promised, I have posted my patch for this problem. You can find with the subject: '[patch 1/1] Set GD_FLG_RELOC for boards skipping relocation to RAM' Kind Regards, Remy ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <-6864379040381327023@unknownmsgid>]
* [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM. [not found] ` <-6864379040381327023@unknownmsgid> @ 2008-05-29 18:33 ` Remy Bohmer 0 siblings, 0 replies; 20+ messages in thread From: Remy Bohmer @ 2008-05-29 18:33 UTC (permalink / raw) To: u-boot Hello Joakim, I am currently quite busy with other work (but still U-boot and Atmel boards related), and I still have it on my list, so it still has my attention. I expect to get at it again half next week. Kind Regards, Remy 2008/5/28 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>: >> -----Original Message----- >> From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] >> On Behalf Of Joakim Tjernlund >> Sent: den 12 maj 2008 09:26 >> To: Wolfgang Denk >> Cc: Haavard Skinnemoen; u-boot-users at lists.sourceforge.net; Nicolas FERRE >> Subject: Re: [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized >> flash memory instead of RAM. >> >> >> On Mon, 2008-05-12 at 00:43 +0200, Wolfgang Denk wrote: >> > In message <3efb10970805100653xc8c3848jf46c840cf33f95e7@mail.gmail.com> you wrote: >> > > >> > > If you do not like the way it is fixed, then remove git-commit >> > > c0559be371b2a64b1a817088c3308688e2182f93 which causes this regression >> > > for the time being, to buy more time to fix it in a different/better >> > > way for the next release. Now with this commit the complete at91-board >> > > series (boards that boot from dataflash or nandflash) are broken. >> > > So,we have a serious regression here. >> > >> > That's what I did now: I reverted commit c0559be3. >> > >> > Joakim, please re-submit after the problems were understood and fixed. >> >> You want me to resubmit something I got no control over? That won't >> happen and I doubt the problem boards will care either so I guess >> this improvement is lost. >> >> Jocke > > Has the problem boards been fixed yet? If so please resubmit commit c0559be3. > > Jocke > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users > ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2008-07-22 12:26 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 14:05 [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by reading uninitialized flash memory instead of RAM Remy Bohmer
2008-05-06 15:23 ` Haavard Skinnemoen
2008-05-07 7:52 ` Remy Bohmer
2008-05-07 9:14 ` Haavard Skinnemoen
2008-05-09 20:46 ` Wolfgang Denk
2008-05-09 20:44 ` Wolfgang Denk
2008-05-10 9:46 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corruptby " Ulf Samuelsson
2008-05-11 20:48 ` Wolfgang Denk
2008-05-10 13:53 ` [U-Boot-Users] [PATCH]: Fix for bug: U-boot environment corrupt by " Remy Bohmer
2008-05-11 22:43 ` Wolfgang Denk
2008-05-12 7:25 ` Joakim Tjernlund
2008-05-28 18:25 ` Joakim Tjernlund
2008-06-04 22:05 ` Wolfgang Denk
2008-06-12 6:52 ` Joakim Tjernlund
2008-07-05 22:32 ` Wolfgang Denk
2008-07-06 10:30 ` Joakim Tjernlund
2008-07-09 21:59 ` Wolfgang Denk
2008-07-16 12:43 ` Remy Bohmer
2008-07-22 12:26 ` Remy Bohmer
[not found] ` <-6864379040381327023@unknownmsgid>
2008-05-29 18:33 ` Remy Bohmer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox