linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: [U-Boot-Users] Where do you find *.dtb files?
       [not found] ` <4639E6A9.2040708@smiths-aerospace.com>
@ 2007-05-03 13:55   ` Alex Zeffertt
  2007-05-03 14:05     ` Jerry Van Baren
  2007-05-03 16:24     ` Jon Loeliger
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Zeffertt @ 2007-05-03 13:55 UTC (permalink / raw)
  To: Jerry Van Baren, linuxppc-embedded

Jerry Van Baren wrote:
> Alex Zeffertt wrote:
>> Hi all,
>>
>> I'm trying to boot linux-2.6.21-rc5 on my mpc832xemds board which is 
>> running
>> u-boot 1.2.0.
>>
>> According to u-boot I need a device tree blob:
>>
>>     => help bootm
>>     bootm [addr [arg ...]]
>>         - boot application image stored in memory
>>              passing arguments 'arg ...'; when booting a Linux kernel,
>>             'arg' can be the address of an initrd image
>>              When booting a Linux kernel which requires a flat 
>> device-tree
>>              a third argument is required which is the address of the 
>> of the
>>              device-tree blob. To boot that kernel without an initrd 
>> image,
>>              use a '-' for the second argument. If you do not pass a 
>> third
>>              a bd_info struct will be passed instead
>>
>>
>> Can anybody tell me where I can find one for this board?
>>
>> TIA,
>>
>> Alex
> 
> Kernel tree under arch/powerpc/boot/dts?
> <http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=arch/powerpc/boot/dts;h=2591d25045401b8beea474a1b4e117527e478521;hb=HEAD> 
> 
> 
> Best regards,
> gvb

Thanks Jerry.  I've found
	
	powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts
	
... but when I try to compile it I get an error:

	$ /opt/freescale/ltib/usr/bin/dtc -I dts -O dtb powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts
	DTC: dts->dtb  on file "powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts"
	syntax error at line 14
	FATAL ERROR: Couldn't read input tree

Perhaps my dtc is out of date - it came with the BSP from freescale which uses
the 2.6.11 kernel.

Do you know where I can find an up to date dtc?  Is there any documentation regarding its use?

Regards,

Alex

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [U-Boot-Users] Where do you find *.dtb files?
  2007-05-03 13:55   ` [U-Boot-Users] Where do you find *.dtb files? Alex Zeffertt
@ 2007-05-03 14:05     ` Jerry Van Baren
  2007-05-03 16:24     ` Jon Loeliger
  1 sibling, 0 replies; 3+ messages in thread
From: Jerry Van Baren @ 2007-05-03 14:05 UTC (permalink / raw)
  To: Alex Zeffertt; +Cc: linuxppc-embedded

Alex Zeffertt wrote:
> Jerry Van Baren wrote:
>> Alex Zeffertt wrote:
>>> Hi all,
>>>
>>> I'm trying to boot linux-2.6.21-rc5 on my mpc832xemds board which is 
>>> running
>>> u-boot 1.2.0.
>>>
>>> According to u-boot I need a device tree blob:
>>>
>>>     => help bootm
>>>     bootm [addr [arg ...]]
>>>         - boot application image stored in memory
>>>              passing arguments 'arg ...'; when booting a Linux kernel,
>>>             'arg' can be the address of an initrd image
>>>              When booting a Linux kernel which requires a flat 
>>> device-tree
>>>              a third argument is required which is the address of the 
>>> of the
>>>              device-tree blob. To boot that kernel without an initrd 
>>> image,
>>>              use a '-' for the second argument. If you do not pass a 
>>> third
>>>              a bd_info struct will be passed instead
>>>
>>>
>>> Can anybody tell me where I can find one for this board?
>>>
>>> TIA,
>>>
>>> Alex
>>
>> Kernel tree under arch/powerpc/boot/dts?
>> <http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=tree;f=arch/powerpc/boot/dts;h=2591d25045401b8beea474a1b4e117527e478521;hb=HEAD> 
>>
>>
>> Best regards,
>> gvb
> 
> Thanks Jerry.  I've found
>     
>     powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts
>     
> ... but when I try to compile it I get an error:
> 
>     $ /opt/freescale/ltib/usr/bin/dtc -I dts -O dtb 
> powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts
>     DTC: dts->dtb  on file "powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts"
>     syntax error at line 14
>     FATAL ERROR: Couldn't read input tree
> 
> Perhaps my dtc is out of date - it came with the BSP from freescale 
> which uses
> the 2.6.11 kernel.
> 
> Do you know where I can find an up to date dtc?  Is there any 
> documentation regarding its use?
> 
> Regards,
> Alex

Hi Alex,

Yes, you need to update your dtc.  The latest dtc can be gotten from:
   http://jdl.com/git_repos/

My makefile looks like this (WARNING: it is whitespace damaged, you must 
replace the eight spaces in the rules with tabs):
8<--------------------------------------------------------------------
#
# Make device tree blobs
#

src = $(wildcard *.dts)
out = $(src:.dts=.dtb)
asm = $(src:.dts=.dtb)

QUIET   = #-q
RESERVE = -R 4
SIZE    = -S 0x3000

all: $(out)

%.dtb : %.dts
         dtc $(QUIET) $(RESERVE) $(SIZE) -b 0 -O dtb -f -o $@ $^

%.asm : %.dts
         dtc $(QUIET) $(RESERVE) $(SIZE) -b 0 -O asm -f -o $@ $^
8<--------------------------------------------------------------------

Best regards,
gvb

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [U-Boot-Users] Where do you find *.dtb files?
  2007-05-03 13:55   ` [U-Boot-Users] Where do you find *.dtb files? Alex Zeffertt
  2007-05-03 14:05     ` Jerry Van Baren
@ 2007-05-03 16:24     ` Jon Loeliger
  1 sibling, 0 replies; 3+ messages in thread
From: Jon Loeliger @ 2007-05-03 16:24 UTC (permalink / raw)
  To: Alex Zeffertt; +Cc: Jerry Van Baren, linuxppc-embedded@ozlabs.org

On Thu, 2007-05-03 at 08:55, Alex Zeffertt wrote:
	
> ... but when I try to compile it I get an error:
> 
> 	$ /opt/freescale/ltib/usr/bin/dtc -I dts -O dtb powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts
> 	DTC: dts->dtb  on file "powerpc/arch/powerpc/boot/dts/mpc832x_mds.dts"
> 	syntax error at line 14
> 	FATAL ERROR: Couldn't read input tree
> 
> Perhaps my dtc is out of date - it came with the BSP from freescale which uses
> the 2.6.11 kernel.
> 
> Do you know where I can find an up to date dtc?  Is there any documentation regarding its use?

Read:

    linux-2.6/Documentation/powerpc/booting-without-of.txt

Get current DTC from:

    www.jdl.com/git_repos

HTH,
jdl

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-03 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4639B9ED.7030902@cambridgebroadband.com>
     [not found] ` <4639E6A9.2040708@smiths-aerospace.com>
2007-05-03 13:55   ` [U-Boot-Users] Where do you find *.dtb files? Alex Zeffertt
2007-05-03 14:05     ` Jerry Van Baren
2007-05-03 16:24     ` Jon Loeliger

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).