linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: Bruce_Leonard@selinc.com
Cc: linuxppc-embedded-bounces+brucle=selinc.com@ozlabs.org,
	linuxppc-embedded@ozlabs.org
Subject: Re: Who's the maintainer for the freescale MPC8349ITX board?
Date: Wed, 17 Jan 2007 22:23:50 -0600	[thread overview]
Message-ID: <3D87E705-AB2F-490A-BD26-E9C6CE9E6749@kernel.crashing.org> (raw)
In-Reply-To: <OF27AFB204.D453295B-ON88257267.0011100B-88257267.00158710@selinc.com>


On Jan 17, 2007, at 9:55 PM, Bruce_Leonard@selinc.com wrote:

> linuxppc-embedded-bounces+brucle=selinc.com@ozlabs.org wrote on  
> 01/17/2007
> 07:42:09 AM:
>
>>
>> On Jan 17, 2007, at 12:27 AM, Bruce_Leonard@selinc.com wrote:
>>
>>> anything in the source.  I don't want to clutter up the mailing
>>> list with
>>> newbie questions so I'd like to get in touch with the person who
>>
>> Ask the questions on the list, thus they are around for others to
>> learn from if need by.
>>
>> - kumar
>>
> Well, okay.  I hate taking up bandwidth for something that's no doubt
> trivial to most of you, but here goes.  I'm trying to bring up the
> 2.6.19.1 kernel using u-boot 1.1.6 on the MPC8349ITX board and I'm  
> having
> problems with the open firmware part of it (which I am TOTALLY new  
> to).
> Short version, I don't think the *.dts file for this board is  
> correct and
> I'm wondering if anyone might have a newer version or good  
> documentation
> as to the formatting of the *.dts files?

There should be an update dts in the kernel source under arch/powerpc/ 
boot/dts

> Long version: While booting the kernel it seems to hang in the  
> do_div()
> call on line 933 of .../arch/powerpc/kernel/time.c (yes I know it's  
> not
> really a call but inline assembly) because ppc_tb_freq is zero.  The
> get_freq() calls in generic_calibrate_decr() find the 'timebase- 
> frequency'
> and 'clock-frequency' entries in the device tree, but the value is  
> zero
> and thus ppc_tb_freq is zero.

Sounds like your u-boot isn't properly filling out parts of the  
devtree while booting.

> Digging through the u-boot code, I found ft_setup() which is  
> supposed to
> add some stuff to the device tree passed in on the bootm command  
> line. One
> of the things it's supposed to do is fill in the 'timebase-frequency'
> portion of the device tree.  When it calls ft_get_prop() to find the
> 'timebase-frequency' node it passes in the path
> '/cpus/PowerPC,8349@0/timebase-frequency' as what it's searching  
> for, but
> what ft_get_prop() finds is
> '///cpus//cpus/PowerPC,8349@0/timebase-frequency', which of course  
> doesn't
> match, so it returns NULL to ft_setup() and the 'timebase- 
> frequency' never
> gets updated before being passed to the kernel.

Hmm, that's odd.  I'm pretty sure the '/' are added while we parse  
the tree seems like some prefix is getting added on you '///cpus/' if  
I was to guess.  I'd double check your .dts against the one in the  
kernel tree.

> So I'm guessing the my problem is either the *.dts file or dtc, but  
> I'm
> not sure which since I'm so new to this and I'm not sure if the  
> *.dts file
> I've got is properly formatted.  I suppose it's possible that
> ft_get_prop() in u-boot is wrong, but for now I'm betting it's  
> right and
> my *.dts file is formatted wrong.  (FYI, I'm using
> .../arch/powerpc/boot/dts/mpc8349emitx.dts from the 2.6.19.1 kernel  
> tree.)

Well that's really odd than.  I'd try grabbing u-boot 1.2.0 and see  
if you still have the same issue.

Also, how are you invoking dtc to get the dtb?

> Thanks for listening and for your feedback.

- k

  reply	other threads:[~2007-01-18  4:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17  6:27 Who's the maintainer for the freescale MPC8349ITX board? Bruce_Leonard
2007-01-17 15:42 ` Kumar Gala
2007-01-18  3:55   ` Bruce_Leonard
2007-01-18  4:23     ` Kumar Gala [this message]
2007-01-18 18:33       ` Bruce_Leonard
2007-01-18 18:40         ` Kim Phillips
2007-01-18 22:17           ` Bruce_Leonard
2007-01-19 15:06             ` Grant Likely
2007-01-18  6:20     ` Grant Likely
2007-01-18 20:02     ` Timur Tabi
2007-01-22 21:05       ` Benjamin Herrenschmidt
     [not found] <mailman.1.1169168402.24872.linuxppc-embedded@ozlabs.org>
2007-01-20  3:06 ` Russell McGuire
2007-01-22  3:12   ` Bruce_Leonard
2007-01-24  8:15   ` Bruce_Leonard

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=3D87E705-AB2F-490A-BD26-E9C6CE9E6749@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=Bruce_Leonard@selinc.com \
    --cc=linuxppc-embedded-bounces+brucle=selinc.com@ozlabs.org \
    --cc=linuxppc-embedded@ozlabs.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).