Re: [U-Boot] [U-Boot,12/12] lib: Enable private libgcc by default

2016-06-06 Thread Michael Zimmermann
> The toolchain can usually
> generate code for many variants of target architecture and often even
> different endianness. The libgcc on the other hand is usually compiled
> for one particular configuration and the functions provided by it may
> or may not be suited for use in U-Boot.

I agree with this change but is this even true? my toolchain(linaro) has 28
different versions of libgcc.a

Thanks
Michael

On Mon, Jun 6, 2016 at 7:35 PM, Simon Glass  wrote:

> On 4 June 2016 at 02:00, Tom Rini  wrote:
> > On Thu, May 26, 2016 at 06:01:47PM +0200, Marek Vasut wrote:
> >
> >> This patch decouples U-Boot binary from the toolchain on systems where
> >> private libgcc is available. Instead of pulling in functions provided
> >> by the libgcc from the toolchain, U-Boot will use it's own set of libgcc
> >> functions. These functions are usually imported from Linux kernel, which
> >> also uses it's own libgcc functions instead of the ones provided by the
> >> toolchain.
> >>
> >> This patch solves a rather common problem. The toolchain can usually
> >> generate code for many variants of target architecture and often even
> >> different endianness. The libgcc on the other hand is usually compiled
> >> for one particular configuration and the functions provided by it may
> >> or may not be suited for use in U-Boot. This can manifest in two ways,
> >> either the U-Boot fails to compile altogether and linker will complain
> >> or, in the much worse case, the resulting U-Boot will build, but will
> >> misbehave in very subtle and hard to debug ways.
> >>
> >> Signed-off-by: Marek Vasut 
> >> Cc: Albert Aribaud 
> >> Cc: Masahiro Yamada 
> >> Cc: Simon Glass 
> >> Cc: Tom Rini 
> >> Reviewed-by: Tom Rini 
> >
> > Applied to u-boot/master, thanks!
> >
> > And since this change was contentious when previously proposed, I'm
> > going to explain why I'm taking this now.  There are a number of
> > correctly configured toolchains out there today that fail to build
> > U-Boot on some platforms.  This is because we're giving the compiler
> > conflicting requests (build soft-float! use whatever libgcc you have!).
> > The era of multilib toolchains being prevalent (at least for 32bit ARM)
> > is long over.  The right thing to have done, always, would be to provide
> > the required functions ourselves so that we are in control.  So, thanks
> > again Marek for following up on the series as I had asked you to, this
> > fixes build failures for me on about a dozen platforms.
>
> Thank you Marek!
>
> - Simon
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] where is malloc()?

2016-02-18 Thread Michael Zimmermann
depending on your config it's either in common/malloc_simple.c (#define
malloc malloc_simple) or in common/dlmalloc.c (Void_t* mALLOc(size_t bytes)
and # define mALLOc malloc).

Michael

On Fri, Feb 19, 2016 at 2:52 AM, quantumlight 
wrote:

> I can find malloc.h describing that it uses a specific malloc. But I can't
> seem to find where the u-boot source keeps the malloc implementation.
>
> I see that in include/_exports.h it is defined:
>
>EXPORT_FUNC(malloc)
>
> Also there seems to be a dlmalloc.c that should define a void* malloc(size)
> function but I can't seem to find it in here. Is there some macro magic
> here?
>
>
>
>
> --
> View this message in context:
> http://u-boot.10912.n7.nabble.com/where-is-malloc-tp246389.html
> Sent from the U-Boot mailing list archive at Nabble.com.
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How to boot bare board binary from U-Boot>

2016-02-14 Thread Michael Zimmermann
so you just want to boot a raw binary which is not a kernel and doesn't use
the U-Boot API?
Actually, this shouldn't change anything. Linux isn't anything more than a
"self-contained" raw binary either.

I don't see why bootm wouldn't work in you situation.

Michael

On Sun, Feb 14, 2016 at 8:24 PM, veerendranathj  wrote:

> thanks for the reply... I am aware of these options. Here problem is when I
> use go command my program has to use U-Boot service functions(I mean
> standalone binaries will run in U-Boot environment)... But I want to take
> complete control from U-Boot as my binary is self-contained binary like
> kernel...But I can't boot using bootm or any other boot commands provided
> by
> U-Boot as my binary is not in kernel format.. Please let me know if you
> have any idea how accomplish it with out customizing the U-Boot...
>
>
>
> --
> View this message in context:
> http://u-boot.10912.n7.nabble.com/How-to-boot-bare-board-binary-from-U-Boot-tp245739p245851.html
> Sent from the U-Boot mailing list archive at Nabble.com.
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] How to boot bare board binary from U-Boot>

2016-02-13 Thread Michael Zimmermann
Hi

you can either run the binary directly from memory or you can build a uboot
image from your raw binary using the mkimage command.

Michael

On Fri, Feb 12, 2016 at 10:32 AM, veerendranathj 
wrote:

> Hello,
>
> How can we boot independent bare board binary(not standalone binary which
> runs using U-Boot environment and not linux kernel) from U-Boot. My
> requirement is to reinitialize the board and drivers using my binary...
>
> I can replace the U-Boot in the boot medium(here NOR Flash) with my binary
> but my requirement is to not removing the U-boot from NOR flash and I
> should
> load my binary from LAN network using "tftp" command.
>
> Thanks and Regards,
> Veerendranath
>
>
>
> --
> View this message in context:
> http://u-boot.10912.n7.nabble.com/How-to-boot-bare-board-binary-from-U-Boot-tp245739.html
> Sent from the U-Boot mailing list archive at Nabble.com.
> ___
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot