[U-Boot] having trouble booting a simple kernel on a TQM860 board

Robert P. J. Day rpjday at crashcourse.ca
Sat Dec 3 01:03:24 CET 2011


On Fri, 2 Dec 2011, Scott Wood wrote:

> On 12/02/2011 05:41 PM, Robert P. J. Day wrote:
> >   ok, so what's the "make" invocation to get one of those?  i'm not a
> > ppc expert so i don't know much about device trees.  i tried the
> > following:
> >
> > $ make ARCH=powerpc cuImage.tqm8xx
> >   CHK     include/linux/version.h
> >   CHK     include/generated/utsrelease.h
> >   CALL    scripts/checksyscalls.sh
> >   CHK     include/generated/compile.h
> >   CALL    arch/powerpc/kernel/systbl_chk.sh
> > /home/rpjday/karim/el/ws/tqm860/kernel/linux-2.6.37/scripts/dtc/dtc -O
> > dtb -o arch/powerpc/boot/tqm8xx.dtb -b 0 -p 1024
> > /home/rpjday/karim/el/ws/tqm860/kernel/linux-2.6.37/arch/powerpc/boot/dts/tqm8xx.dts
> > DTC: dts->dtb  on file
> > "/home/rpjday/karim/el/ws/tqm860/kernel/linux-2.6.37/arch/powerpc/boot/dts/tqm8xx.dts"
> >   WRAP    arch/powerpc/boot/cuImage.tqm8xx
> > powerpc-unknown-linux-gnu-ld: arch/powerpc/boot/cuboot-tqm8xx.o: No
> > such file: No such file or directory
> > make[1]: *** [arch/powerpc/boot/cuImage.tqm8xx] Error 1
> > rm arch/powerpc/boot/tqm8xx.dtb
> > make: *** [cuImage.tqm8xx] Error 2
> >
> >   so i'm open to suggestions.
>
> In the cuboot section of arch/powerpc/boot/wrapper, add "*-tqm8xx" to
> the "*-mpc866ads|*-mpc885ads..." list.

  ok, that's looking better as i now have the following:

$ mkimage -l /var/lib/tftpboot/cuImage.tqm8xx
Image Name:   Linux-2.6.37
Created:      Fri Dec  2 18:53:22 2011
Image Type:   PowerPC Linux Kernel Image (gzip compressed)
Data Size:    1325774 Bytes = 1294.70 kB = 1.26 MB
Load Address: 00400000
Entry Point:  00400518
$

  which suggests it's safe to TFTP it to 200000 given its size and the
load address, so ...

=> tftp 200000 cuImage.tqm8xx
TFTP from server 192.168.202.100; our IP address is 192.168.202.79
Filename 'cuImage.tqm8xx'.
Load address: 0x200000
Loading:
... snip ...
done
Bytes transferred = 1325838 (143b0e hex)
=> imi 200000

## Checking Image at 00200000 ...
   Image Name:   Linux-2.6.37
   Created:      2011-12-02  23:53:22 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1325774 Bytes =  1.3 MB
   Load Address: 00400000
   Entry Point:  00400518
   Verifying Checksum ... OK
=> setenv bootargs console=ttyCPM0,115000
=> bootm 200000

  at which point i get the kernel uncompressing, followed by several
lines of garbage, suggesting that perhaps my minicom setup is not
right.  any final suggestions about console port setup?  i get the
feeling i'm really close ...

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


More information about the U-Boot mailing list