Check if valid kernel and/or FS

Eric Bénard eric at eukrea.com
Fri May 25 06:51:54 EDT 2012


Hi Benoit,

Le Fri, 25 May 2012 12:08:09 +0200,
Benoit RAT <benoit at sevensols.com> a écrit :

> I was wondering if there was a good way to check if I have a correct kernel
> and/or filesystem in my partition before loading them.
> If it is not the case then I will check out for valid images in tftpboot or
> prompt the barebox shell.
> 
first try the boot command, if the kernel is not correct (ie : bad
checksum), the boot command returns and you can then launch a tftpboot
or give a prompt.

Check for example :
http://git.pengutronix.de/?p=barebox.git;a=blob;f=arch/arm/boards/at91sam9m10g45ek/env/bin/menu_boot;h=d0b1396de984e3b00902cfb32598dcf123afc6bf;hb=refs/heads/next

> And another question is how can i know that I am using the barebox
> environment from nand flash instead of the one from a scripts?
> 
what do you mean here ?

Eric



More information about the barebox mailing list