From mboxrd@z Thu Jan 1 00:00:00 1970 From: sbabic at denx.de Date: Mon, 11 May 2020 12:17:42 +0200 (CEST) Subject: [PATCH 05/10] imx: imx8qm/qxp: Recover SPL data section for partition reboot In-Reply-To: <20200505122846.15992-6-peng.fan@nxp.com> Message-ID: <20200511101742.5E2C981002@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > When doing partition reboot, the boot image won't be reloaded by ROM, > it is just CPU reset to boot entry. The SW has to keep the boot image > inside the RAM unchanged. It includes both the TEXT section and DATA > section. > For SPL, the problem is DATA section will be updated at runtime, so in > next partition reboot the data is not same as the initial value from > cold boot. If any code depends on the initial value, then it will have > problem. > This patch introduces a mechanism to recover the data section > for partition reboot. It adds a new section in image for saving > data section. When from cold boot, the data section will be saved > to that new section at SPL early phase. When from partition reboot, > the data section will be restored from the new section. > Signed-off-by: Ye Li > Signed-off-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================