some success.

classic Classic list List threaded Threaded
2 messages Options
james osburn james osburn
Reply | Threaded
Open this post in threaded view
|

some success.

I was able to build the elua sources using the CodeSourcer lite tool chain.
I am doing this inside a vmware fedora virtual machine with the following command:
scons board=EK-LM3S9B92 toolchain=codesourcery
The compile time was actually quite quick.
The I tried to flash the elf image using the LM flash programmer that comes
with EK-EKC-LM3S9B92 software.

The flash progammer states that the image is file length is larger than memory.
I wonder a couple of things. Did I compile the elua image debug?
I put some programs in the romfs directory and when doing so make the image
to large? Also how do I do the equivalent of "make clean" using scons?

James

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev
jbsnyder jbsnyder
Reply | Threaded
Open this post in threaded view
|

Re: some success.

On Sun, Nov 13, 2011 at 4:48 PM, james osburn <[hidden email]> wrote:
> I was able to build the elua sources using the CodeSourcer lite tool chain.
> I am doing this inside a vmware fedora virtual machine with the following
> command:
> scons board=EK-LM3S9B92 toolchain=codesourcery
> The compile time was actually quite quick.
> The I tried to flash the elf image using the LM flash programmer that comes
> with EK-EKC-LM3S9B92 software.

You'll want to build it down to a bin image, using the prog option:
scons board=EK-LM3S9B92 toolchain=codesourcery prog

Then take the resulting .bin image and flash that.

>
> The flash progammer states that the image is file length is larger than
> memory.
> I wonder a couple of things. Did I compile the elua image debug?
> I put some programs in the romfs directory and when doing so make the image
> to large? Also how do I do the equivalent of "make clean" using scons?

Adding programs to romfs will make the image grow, but I think it's
more likely that it may have just been that you tried to burn the full
elf file rather than the bin.  There are ways to crunch those down as
well using the romfs=compress or romfs=compile
(http://www.eluaproject.net/doc/v0.8/en_arch_romfs.html#mode).  The
former will require Lua be installed, as I recall, and the latter
requires that you build a lua cross-compiler out of the eLua tree
using a compiler for your native platform
(http://www.eluaproject.net/doc/v0.8/en_using.html#cross).

to "make clean" you can append a -c, like this:
scons board=EK-LM3S9B92 toolchain=codesourcery -c

It won't clean anything unless you specify the build dependencies
though, so you can just do "scons -c".  You can use scons -h to get a
dump of the common command line options for building elua targets, and
scons -H for scons-specific options.

Best.

-jsnyder


>
> James
>
> _______________________________________________
> eLua-dev mailing list
> [hidden email]
> https://lists.berlios.de/mailman/listinfo/elua-dev
>
>
_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev