[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] DeviceTree build questions
On Tue, 2009-07-28 at 16:01 +0200, Michal Simek wrote:
>
> steve@xxxxxxxxxxxxxxx wrote:
> > Hello list,
> >
> > I've been looking into making the leap to a DeviceTree / Open Firmware
> > 2.6.30 kernel and have ended up in a maze of twisty passages, all alike.
> >
> > Some questions to aid my escape:
> >
> > * Are there plans to support compilation of a DT blob into the kernel, as
> > powerpc does?
>
> simpleImage is supported in master branch. Just create arch/microblaze/boot/dts folder and copy
> there dts file (for example ours.dts) then run make simpleImage.ours
> It should work well.
Great, thanks. I'll check it out.
>
> >
> > * I can't get my DTS file to build without the following changes.
> > Can you confirm that these are cut-and-paste errors?
> >
> > ---
> > diff -uprN a/bsp/device-tree_v1_01_a/data/device-tree_v2_1_0.tcl b/bsp/device-tree_v1_01_a/data/device-tree_v2_1_0.tcl
> > --- a/bsp/device-tree_v1_01_a/data/device-tree_v2_1_0.tcl 2008-12-18 13:59:25.000000000 -0600
> > +++ b/bsp/device-tree_v1_01_a/data/device-tree_v2_1_0.tcl 2009-07-28 07:19:27.000000000 -0500
> > @@ -1165,13 +1165,13 @@ proc gen_memories {tree hwproc_handle} {
> >
> > lappend tree [memory $slave "MPMC_" ""]
> > } else {
> > - set old_baseaddr [scan_int_parameter_value $slave [format "C_PIM0_BASEADDR" $x]]
> > - set old_offset [scan_int_parameter_value $slave [format "C_PIM0_OFFSET" $x]]
> > + set old_baseaddr [scan_int_parameter_value $slave "C_PIM0_BASEADDR"]
> > + set old_offset [scan_int_parameter_value $slave "C_PIM0_OFFSET"]
> > set safe_addresses 1
> > set num_ports [scan_int_parameter_value $slave "C_NUM_PORTS"]
> > for {set x 1} {$x < $num_ports} {incr x} {
> > set baseaddr [scan_int_parameter_value $slave [format "C_PIM%d_BASEADDR" $x]]
> > - set baseaddr [scan_int_parameter_value $slave [format "C_PIM%d_OFFSET" $x]]
> > + set offset [scan_int_parameter_value $slave [format "C_PIM%d_OFFSET" $x]]
> > if {$baseaddr != $old_baseaddr} {
> > ---
> >
> > * I also can't build if the u-boot BSP is present:
> >
> > Calling uboot_v4_00_c ::generate
> > #--------------------------------------
> > # uboot BSP generate...
> > #--------------------------------------
> > System bus for instruction and data
> > ERROR main_memory not specified. Please specific main_memory
> > FLASH doesn't exists
> > ERROR:MDT - top () - can't read "eram_base": no such variable
> > while executing
> > "llength $eram_base"
> > (procedure "uboot_intc" line 343)
> > ...
> >
> > I don't need to do this if I can get the DT blob into the kernel,
> > so I'm less worried about it.
>
> the whole problem is that you haven't setup TOP bsp
> >ERROR main_memory not specified. Please specific main_memory
>
> In EDK software setting. Setup your interfaces. and rebuild libraries.
I did actually follow the directions here:
http://www.monstr.eu/wiki/doku.php?id=fdt:fdt
...before posting. Can you check the patch above? I think there are
errors in the device-tree TCL but since it's not my code I can't be
sure. I am able to build a DTS file but I have to tweak the device-tree
TCL and delete the u-boot BSP to do it.
>
> Regards,
> Michal
>
>
Thanks,
Steve
> >
> > Thanks in advance for any help.
> > ------------------------------------------------------------------------
> > Steven J. Magnani "I claim this network for MARS!
> > www.digidescorp.com Earthling, return my space modulator!"
> >
> > #include <standard.disclaimer>
> >
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@xxxxxxxxxxxxxx
> > Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
> >
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/