From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 07 Dec 2006 21:49:57 -0500 Subject: [U-Boot-Users] [PATCH] 83xx: Put the version (and magic) after the HRCW. In-Reply-To: <45778E52.1040101@comcast.net> References: <829785.55827.qm@web15909.mail.cnb.yahoo.com> <45778E52.1040101@comcast.net> Message-ID: <4578D2D5.9010401@comcast.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Jerry Van Baren wrote: > Sam Song wrote: >> Jerry Van Baren wrote: >>> Put the version (and magic) after the HRCW. This >>> puts it in a fixed location in flash, not at the >> start >>> of flash but as close as we can get. >> Nice effort. Space saving and better version check. >> >> I guess the same change could apply for MPC8260/47/8. >> >> Thanks, >> >> Sam > > Yes. Most boards have the version in the first bytes of flash, but this > was not possible on the 82xx because of the HRCW, so it was put in > .data. This set up was copied for the 83xx (which also has a HRCW). My > change moves it back to .text just after the HRCW. I put also the > u-boot magic number back in in honor of Wolfgang. ;-) > > If you change the file names in the patch, it probably would apply. :-) > I intend to do this (perhaps literally), but ran out of ambition tonight. > > Best regards, > gvb Arrgh, I forgot about the 8260 master + 7 slaves mode, which fills the first 256 bytes with HRCWs. As a result, we cannot put the magic number and version at offset 0x40 like I did with the 8360 (well, we could do it, but only if the system doesn't have slaves). We could, however, put the magic number and version in a different vector area that has room (e.g. offset 0x240). What we have works and has worked for several years. I don't have enough ambition and interest at this point to change this for the mpc8260. Best regards, gvb