linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Brent <bimhoff@ns1.planetspork.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: MBX boot problems
Date: Mon, 22 May 2000 06:47:14 +0200	[thread overview]
Message-ID: <200005220447.GAA13376@denx.local.net> (raw)
In-Reply-To: Your message of "Sun, 21 May 2000 18:28:35 MDT." <Pine.GSO.4.05.10005211739380.9894-100000@ns1.planetspork.com>


In message <Pine.GSO.4.05.10005211739380.9894-100000@ns1.planetspork.com> you wrote:
>
> So I've searched the archives and read the readme's, and it still won't
> boot. :)

Well, let's see...

> At this point, things go bad.  I've tried two things. 1) hitting enter and
> letting things fall as they may.  This didn't work since there seemed to
> be a problem with it dropping the middle digit of the first octet of the
> src/dst IP addresses in the boot args.  2)  explicitly defining the boot
> arguments with appropriate settings.

Graham Stoney commented on # 2, so I'll give a try on # 1 :-)

There  once  was  a   bug   with   the   IP   address   handling   in
arch/ppc/mbxboot/misc.c   ;   if   you   can   find   a  place  where
"nfsaddrs_string" you should be able to figure out how to replace the
existing code with the following snippet:

		...
		dp = nfsaddrs_string;		/* nfsaddrs=x.x.x.x:y.y.y.y	*/
		while (*dp) {
			putc(*cp++ = *dp++);
		}
		/* add IP addresses as <my_ip>:<serv_ip> */
		for (i=0; i<4; ++i, ++byte) {
			unsigned char outbuf[4];	/* 3 digits + '\0' */
			unsigned char *optr = &outbuf[sizeof(outbuf)-1];

			*optr = '\0';

			do {
				*--optr = (*byte % 10) + '0';
				*byte /= 10;
			} while (*byte);

			while (*optr) {
				putc (*cp++ = *optr++);
			}

			if (i<3) {
				putc(*cp++ = '.');
			}
		}
		putc(*cp++ = ':');
		...

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"Today's robots are very primitive, capable of understanding  only  a
few  simple  instructions  such  as 'go left', 'go right', and 'build
car'."                                                  - John Sladek

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2000-05-22  4:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-22  0:28 MBX boot problems Brent
2000-05-22  2:23 ` Graham Stoney
2000-05-22  4:47 ` Wolfgang Denk [this message]
2000-05-24 17:10 ` Dan Malek

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=200005220447.GAA13376@denx.local.net \
    --to=wd@denx.de \
    --cc=bimhoff@ns1.planetspork.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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;
as well as URLs for NNTP newsgroup(s).