Re: Check if valid kernel and/or FS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benoit,

Le Fri, 25 May 2012 12:08:09 +0200,
Benoit RAT <benoit@xxxxxxxxxxxxx> 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

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux