[uClinux-dev] Memory problem with arm-nommu /?Clinux

Baptiste Decroix baptiste.decroix at gmail.com
Thu Oct 13 08:20:46 EDT 2005


Thanks for the tip
As I think about it, is there a limit to the size of the program you
can run on uClinux?

On 10/12/05, David McCullough <davidm at snapgear.com> wrote:
>
> Jivin Baptiste Decroix lays it down ...
> > Hi
> >
> > I've been working for a few months to make Wonka (an open-source JVM)
> > run on an arm-based board, with no mmu and running ?Clinux.
> > I've been able to cross-compile Wonka successfully for my platform but
> > when I try to run a simple application, all I got is a memory error.
> >
> > I wonder if the problem come from wonka or from ?Clinux, as the error
> > happen just after the system call start_thread(...).
> > I switch on the DEBUG in binfmt_flat.c and change the flags in the
> > executable to have more informations on what happened:
> >
> > # arm-elf-flthdr wonka
> > wonka
> >     Magic:        bFLT
> >     Rev:          4
> >     Entry:        0x50
> >     Data Start:   0x87640
> >     Data End:     0xa3800
> >     BSS End:      0xa9730
> >     Stack Size:   0x2000
> >     Reloc Start:  0xa3800
> >     Reloc Count:  0xa7b
> >     Flags:        0x13 ( Load-to-Ram Has-PIC-GOT )
> >
> > When I run the application, I have this output:
> >
> > # ./wonka Hello
> > BINFMT_FLAT: Loading file: ./wonka
> > Mapping is 435000, Entry point is 50, data_start is 87640
> > Load ./wonka: TEXT=435040-4bc640 DATA=4bc644-4d8804 BSS=4d8804-4de734
> > p=4e0ffc
> > start_thread(regs=0x3f45fb8, entry=0x435050, start_stack=0x4e0f70)
> > fault-common.c 243
> > Bus error
> >
> > printf in the wonka main() don't even show.
> > I've seen that fault-common.c is a memory error but I can't tell from
> > where it comes.
> >
> > Does anyone see something that I made obviously wrong?
> > How can I get an idea of the appropriate size to use for the stack?
>
> Start big :-)
>
> 64-128K or more if you think the app is using a lot,
>
> Cheers,
> Davidm
>
> --
> David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
> Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>


--
Baptiste



More information about the uClinux-dev mailing list