mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Eric Bénard" <eric@eukrea.com>
To: Benoit RAT <benoit@sevensols.com>
Cc: barebox@lists.infradead.org
Subject: Re: Check if valid kernel and/or FS
Date: Fri, 25 May 2012 12:51:54 +0200	[thread overview]
Message-ID: <20120525125154.1c039173@eb-e6520> (raw)
In-Reply-To: <CAHvDM_cjKPKt205M3W+Cn8ns0+_GeYbj7xrtX6D+iiu9cJVt4g@mail.gmail.com>

Hi Benoit,

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

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

  reply	other threads:[~2012-05-25 10:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 10:08 Benoit RAT
2012-05-25 10:51 ` Eric Bénard [this message]
2012-05-25 10:58   ` Benoit RAT
2012-05-25 12:35     ` Sascha Hauer
2012-05-25 11:10 ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-25 11:12   ` Eric Bénard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120525125154.1c039173@eb-e6520 \
    --to=eric@eukrea.com \
    --cc=barebox@lists.infradead.org \
    --cc=benoit@sevensols.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox