From: Wolfgang Denk Date: Fri, 18 Aug 2006 00:53:09 +0200 Subject: [U-Boot-Users] Suggestion on CRCing data on NAND? In-Reply-To: Your message of "Thu, 17 Aug 2006 16:44:17 EDT." Message-ID: <20060817225309.5D52F353A29@atlas.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 In message you wrote: > > Here's what I need to do from u-boot. I'd like to check the validity > of rootfs before launching Linux kernel. NFS is not available for what > I'm doing so if the rootfs is corrupted, the kernel will just panic > and hang there. We can't use boot disk, etc. either. So, I'd like to > check rootfs and if it seems corrupted, u-boot will download the valid > rootfs image (via tftp) and burn it on flash before it launches > kernel. > > I'm planning on making the rootfs read-only so that CRC checking make > sense for this purpose. If there's anything we need to save, we will > just save them in a flash in a separate partition. OK, understood. Sounds OK. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Worlds are conquered, galaxies destroyed -- but a woman is always a woman. -- Kirk, "Conscience of the King", stardate unknown