Check if valid kernel and/or FS

Jean-Christophe PLAGNIOL-VILLARD plagnioj at
Fri May 25 07:10:20 EDT 2012

On 12:08 Fri 25 May     , Benoit RAT wrote:
>    Hy barebox guy,
>    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.
>    Regards, 
kernel yes rootfs no

but this not really the right way to do

the best wyay is to use bootcounter with a watchdog

so if after x times your boot is failling you can boot the failsafe or anthink
you want

>    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?
in the log if see

envfs: wrong magic on 

which mean you load from the builtin

Best Regards,

More information about the barebox mailing list