From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Jackson Date: Mon, 24 Nov 2008 12:42:28 +0000 Subject: [U-Boot] Can I have a backup boot option ? Message-ID: <492AA134.7010008@mimc.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Our current system works fine (booting from flash or nfs), but I'd also like to add a "recovery" feature. If an end-user inserts an MMC card containing some "magic marker" files, the target will detect these and boot from the MMC card instead of using the standard boot option. For portability, I guess I could use the Hush option and construct some big if..else..fi statement to check for the MMC card files and boot accordingly. Is this a simple-ish task ? An easier, but less portable, way would be to hard-code the checks in the startup code before the standard boot process. I've done a quick check of the README and the source code, but nothing else seems to stand out as a possible solution. Anyone got any ideas ? Thanks Mark