From: Christopher Harvey <charvey@matrox.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V4 3/4] ARM: Warn when the machine ID isn't set.
Date: Wed, 24 Aug 2011 13:37:04 -0400 [thread overview]
Message-ID: <20110824173704.GA3070@harvey-pc.matrox.com> (raw)
In-Reply-To: <4E550B38.2060007@aribaud.net>
On Wed, Aug 24, 2011 at 04:31:20PM +0200, Albert ARIBAUD wrote:
> Le 04/08/2011 08:30, Albert ARIBAUD a ?crit :
> > Hi Christopher,
> >
> > Le 18/07/2011 19:33, Christopher Harvey a ?crit :
> >> Linux cannot boot without it.
> >>
> >> Signed-off-by: Christopher Harvey<charvey@matrox.com>
> >> ---
> >>
> >> V2:
> >> Used a #define instead of a constant.
> >> Used a printf instead of a debug.
> >>
> >> ---
> >>
> >> V3:
> >> Moved gd->bd->bi_arch_number = BI_ARCH_NUMBER_INVALID; before the
> >> init_sequence loop, so it doesn't overwrite existing values.
> >> Removed unneeded braces.
> >>
> >> Reminder, in V2 of this series there are 3 uncommited patches that
> >> have no comments.
> >>
> >> ---
> >>
> >> V3:
> >> Fixed mixed tabs and spaces.
> >> Message prints in both debug and release mode.
> >>
> >> arch/arm/include/asm/u-boot.h | 2 ++
> >> arch/arm/lib/board.c | 2 ++
> >> arch/arm/lib/bootm.c | 3 +++
> >> 3 files changed, 7 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/arch/arm/include/asm/u-boot.h b/arch/arm/include/asm/u-boot.h
> >> index ed33327..81735de 100644
> >> --- a/arch/arm/include/asm/u-boot.h
> >> +++ b/arch/arm/include/asm/u-boot.h
> >> @@ -48,4 +48,6 @@ typedef struct bd_info {
> >> } bi_dram[CONFIG_NR_DRAM_BANKS];
> >> } bd_t;
> >>
> >> +#define BI_ARCH_NUMBER_INVALID 0xffffffff
> >> +
> >> #endif /* _U_BOOT_H_ */
> >> diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
> >> index fc52a26..1635aa1 100644
> >> --- a/arch/arm/lib/board.c
> >> +++ b/arch/arm/lib/board.c
> >> @@ -281,6 +281,8 @@ void board_init_f (ulong bootflag)
> >>
> >> gd->mon_len = _bss_end_ofs;
> >>
> >> + gd->bd->bi_arch_number = BI_ARCH_NUMBER_INVALID;
> >> +
> >> for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) {
> >> if ((*init_fnc_ptr)() != 0) {
> >> hang ();
> >> diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
> >> index 802e833..d5fd26b 100644
> >> --- a/arch/arm/lib/bootm.c
> >> +++ b/arch/arm/lib/bootm.c
> >> @@ -113,6 +113,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
> >> printf ("Using machid 0x%x from environment\n", machid);
> >> }
> >>
> >> + if (machid == BI_ARCH_NUMBER_INVALID)
> >> + printf("Warning: machid not set.\n");
> >> +
> >> show_boot_progress (15);
> >>
> >> #ifdef CONFIG_OF_LIBFDT
> >
> > This patch does not apply cleanly any more. Can you post a rebased V5
> > please?
>
> Ping?
>
>
> Amicalement,
> --
> Albert.
I lost confidence in blindly rebasing because I haven't had time to go
through u-boot to make sure no boards are able to set their machine id
before I can. When I get a moment I will get back into this code and
rebase it when I feel comfortable with the changes. Probably this
week.
-Chris
next prev parent reply other threads:[~2011-08-24 17:37 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-07 14:21 [U-Boot] [PATCH V2 0/4] make u-boot a bit easier for newcomers to port Christopher Harvey
2011-07-07 14:26 ` [U-Boot] [PATCH V2 1/4] Added documentation for CONFIG_SYS_TEXT_BASE Christopher Harvey
2011-08-04 6:20 ` Albert ARIBAUD
2011-08-24 18:34 ` Christopher Harvey
2011-08-24 19:12 ` Wolfgang Denk
2011-07-07 14:31 ` [U-Boot] [PATCH V2 2/4] Don't compile in large memory test function by default Christopher Harvey
2011-08-04 6:31 ` Albert ARIBAUD
2011-08-04 10:14 ` Wolfgang Denk
2011-08-04 10:54 ` Albert ARIBAUD
2011-08-04 10:20 ` Wolfgang Denk
2011-07-07 14:34 ` [U-Boot] [PATCH V2 3/4] ARM: Warn when the machine ID isn't set Christopher Harvey
2011-07-07 16:55 ` Igor Grinberg
2011-07-07 21:02 ` Igor Grinberg
2011-07-14 18:02 ` [U-Boot] [PATCH V3 " Christopher Harvey
2011-07-14 19:02 ` Igor Grinberg
2011-07-15 12:44 ` Stefano Babic
2011-07-17 6:53 ` Igor Grinberg
2011-07-17 8:26 ` stefano babic
2011-07-17 9:00 ` Albert ARIBAUD
2011-07-18 17:33 ` [U-Boot] [PATCH V4 " Christopher Harvey
2011-08-04 6:30 ` Albert ARIBAUD
2011-08-24 14:31 ` Albert ARIBAUD
2011-08-24 17:37 ` Christopher Harvey [this message]
2011-08-30 20:49 ` [U-Boot] [PATCH V5 " Christopher Harvey
2011-07-07 14:37 ` [U-Boot] [PATCH V2 4/4] Removed unused define, CONFIG_ARMV7 Christopher Harvey
2011-08-04 6:33 ` Albert ARIBAUD
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=20110824173704.GA3070@harvey-pc.matrox.com \
--to=charvey@matrox.com \
--cc=u-boot@lists.denx.de \
/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