[U-Boot] [PATCH 4/4] microblaze: generic: enable FDT support

Stephan Linz linz at li-pro.net
Thu Jun 24 08:15:02 CEST 2010


Hi Michal,

I will work on your proposals today or tomorrow (European time). Please give 
me some time.

br,
Stephan

Am Mittwoch, 23. Juni 2010 08:27:22 schrieb Michal Simek:
> Stephan Linz wrote:
> > Am Dienstag, 22. Juni 2010 09:25:56 schrieb Michal Simek:
> >> Stephan Linz wrote:
> >>> Signed-off-by: Stephan Linz <linz at li-pro.net>
> >>> ---
> >>>  include/configs/microblaze-generic.h |    8 ++++++++
> >>>  1 files changed, 8 insertions(+), 0 deletions(-)
> >>>
> >>> diff --git a/include/configs/microblaze-generic.h
> >>> b/include/configs/microblaze-generic.h index 28cee47..89e6dbb 100644
> >>> --- a/include/configs/microblaze-generic.h
> >>> +++ b/include/configs/microblaze-generic.h
> >>> @@ -305,4 +305,12 @@
> >>>  #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
> >>>  #endif
> >>>
> >>> +/* pass open firmware flat tree */
> >>> +#define CONFIG_FIT		1
> >>> +#define CONFIG_OF_LIBFDT	1
> >>> +
> >>
> >> that's ok.
> >>
> >>> +/* Initial Memory map for Linux */
> >>> +#define CONFIG_SYS_BOOTMAPSZ	(8 << 20)
> >>
> >> Why is this value setup to 0x800000?
> >
> > First of all the flat device tree handling depends on
> > CONFIG_SYS_BOOTMAPSZ. So I have to define a valid value. As far as I
> > understand the initial memory map for Linux there have to be space for
> > the kernel (text+data), fdt_blob and kernel parameters (at least). I'm
> > unsure with an embedded init ramdisk as produced by simpleImage. The
> > simpleImage can quickly grow up over 6MB with embedded initrd.
> >
> > So I borrowed this configuration (8MB) from most other configurations
> > (mainly PowerPC).
>
> ok. Microblaze handles FDT blob in different way. Kernel just need to
> know where it is and then is copied to another place.
> We don't have any limits like 8MB or so that's why I prefer to setup
> ~0UL value or something like that.
>
> Can you please test it?
>
> Thanks,
> Michal

-- 
Viele Grüße,
Stephan Linz
______________________________________________________________________________
OpenDCC: http://www.li-pro.net/opendcc.phtml
PC/M: http://www.li-pro.net/pcm.phtml
CDK4AVR: http://cdk4avr.sourceforge.net/
CDK4NIOS: http://cdk4nios.sourceforge.net/
CDK4MSP: http://cdk4msp.sourceforge.net/
CPM4L: http://download.opensuse.org/repositories/home:/rexut:/CPM4L


More information about the U-Boot mailing list