All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert P. J. Day <rpjday@crashcourse.ca>
To: u-boot@lists.denx.de
Subject: [U-Boot] having trouble booting a simple kernel on a TQM860 board
Date: Sun, 4 Dec 2011 21:14:20 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.2.02.1112042100270.15118@oneiric> (raw)
In-Reply-To: <4ED95F4A.70003@freescale.com>

On Fri, 2 Dec 2011, Scott Wood wrote:

> On 12/02/2011 05:19 PM, Robert P. J. Day wrote:
> >   and, at this point, i would think that all i need to do is:
> >
> > => bootm 400000
> > ## Booting image at 00400000 ...
> >    Image Name:   Linux-2.6.37
> >    Created:      2011-12-02  23:08:06 UTC
> >    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> >    Data Size:    1301506 Bytes =  1.2 MB
> >     Load Address: 00000000
> >    Entry Point:  00000000
> >    Verifying Checksum ... OK
> >    Uncompressing Kernel Image ... OK
>
> You need to use a cuImage, just as you did with lite5200.

  i believe i've solved this issue, at least.  i downloaded ELDK 4.2
and installed the ppc_8xx- toolchain.  with that, i managed to compile
u-boot 2010.12 and flashed it to my TQM860, reset and, lo and behold,
i have a 2010.12 u-boot.  so my u-boot issue seems to be resolved.

> Or update U-Boot and pass a device tree.
>
> > and that's where it hangs.
> >
> >   i have no idea if it's still booting properly but i've simply
> > screwed up the serial port setting.
> >
> >   does this set of steps look reasonable?  the configuration, the
> > building, the TFTP, the verification steps, the "bootm" command?  this
> > is what's printed when the board resets:
> >
> > U-Boot 0.4.0 (Apr 13 2004 - 15:01:22)
> >
> > CPU:   XPC860xxZPnnD4 at 80 MHz: 16 kB I-Cache 8 kB D-Cache FEC
> > present
> > Board: TQM860LDB0A3-P80.208
> > DRAM:  16 MB
> > FLASH:  8 MB
> > In:    serial
> > Out:   serial
> > Err:   serial
> > Net:   SCC ETHERNET [PRIME], FEC ETHERNET
> > PCMCIA:   No Card found
> >
> >   am i just missing something obvious?  what should i use for the
> > kernel console setting?  i'm open to suggestions.
>
> console=ttyCPM0

  ok, i'm still having trouble getting a bootable kernel so here's
what i did.  using 2.6.37 version of kernel source, i followed your
advice and first just configured for the 860 with:

  $ make ARCH=powerpc tqm8xx_defconfig

then

  $ make ARCH=powerpc uImage

which generated a uImage file.  but as i understand it, i want a
cuImage-format file as i used with my lite5200, so i edited the file
arch/powerpc/boot/wrapper (as you suggested) and made the following
change:

case "$platform" in
*-mpc866ads|*-mpc885ads|*-adder875*|*-ep88xc|*-tqm8xx)
                                            ^^^^^^^^^ added

which now allows me to do the following:

  $ make ARCH=powerpc cuImage.tqm8xx

and it's my understanding that this is the file i'll TFTP down to the
TQM860 board and boot, correct?

  here's a look at that file:

$ mkimage -l /var/lib/tftpboot/cuImage.tqm8xx
Image Name:   Linux-2.6.37
Created:      Sun Dec  4 20:51:56 2011
Image Type:   PowerPC Linux Kernel Image (gzip compressed)
Data Size:    1258640 Bytes = 1229.14 kB = 1.20 MB
Load Address: 0x00400000
Entry Point:  0x0040055C
$

  look reasonable?  so i download to the board to address 200000,
check it:

=> imi 200000

## Checking Image at 00200000 ...
   Legacy image found
   Image Name:   Linux-2.6.37
   Created:      2011-12-05   1:51:56 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1258640 Bytes = 1.2 MiB
   Load Address: 00400000
   Entry Point:  0040055c
   Verifying Checksum ... OK
=>

but at this point, any attempt to "bootm 200000" gives me (as before):

## Booting kernel from Legacy Image at 00200000 ...
   Image Name:   Linux-2.6.37
   Created:      2011-12-05   1:51:56 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1258640 Bytes = 1.2 MiB
   Load Address: 00400000
   Entry Point:  0040055c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

immediately followed by a long line of diamonds with question marks
inside them.  i would assume i've just screwed up the console setting,
but i've tried various combinations of tty0, ttyS0 and ttyCPM0, with
different baud rates.  any hint as to what i should be looking at?

  i suspect i'm close, i just have this last issue to deal with.
thanks.

rday

  parent reply	other threads:[~2011-12-05  2:14 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-02 23:19 [U-Boot] having trouble booting a simple kernel on a TQM860 board Robert P. J. Day
2011-12-02 23:29 ` Scott Wood
2011-12-02 23:41   ` Robert P. J. Day
2011-12-02 23:49     ` Scott Wood
2011-12-03  0:03       ` Robert P. J. Day
2011-12-03  0:17     ` Wolfgang Denk
2011-12-05  2:14   ` Robert P. J. Day [this message]
2011-12-05 10:09     ` Wolfgang Denk
2011-12-05 10:37       ` Robert P. J. Day
2011-12-05 12:05       ` Robert P. J. Day
2011-12-05 12:58         ` Wolfgang Denk
2011-12-05 17:48           ` Robert P. J. Day
2011-12-05 20:02             ` Wolfgang Denk
2011-12-03  0:16 ` Wolfgang Denk
2011-12-03  0:23   ` Robert P. J. Day
2011-12-03  0:26     ` Wolfgang Denk

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=alpine.DEB.2.02.1112042100270.15118@oneiric \
    --to=rpjday@crashcourse.ca \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.