Hi Sebastien,
                                Thanks - I got this to compile with the
optioons you have mentioned. Found a couple of issues - one of which I was
able to resolve easily:

1. In the path: linux/scripts/mod/libelfbuild/libelf there is a file called
INSTALL which is a readme. This needs to be renamed for the compilation to
work in a cygwin env.


The makefile tries to create a directory called install in the same
subdirectory as above and crashes out.


2. The GDB expcts the symbol _fstack to be defined - which is defined in the
linker.ld files of the milkymist database - but for linux I could not do
this - this prevents from loading the simulator ( error as below )

bash-3.2$ ./gdb.sh

GNU gdb 6.5

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain
conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-cygwin --target=lm32-elf"...

(gdb) file ./vmlinux

Load new symbol table from
"/cygdrive/e/ml2/lekernel-milkymist-linux-d6708be/linux/vmlinux"? (y or n) y

Reading symbols from
/cygdrive/e/ml2/lekernel-milkymist-linux-d6708be/linux/vmlinux...done.

(gdb) target sim --memory-region 0x00000000,0x0fffffff

Failed to find symbol _fstack in program. You must specify memory regions
with --memory-region.

unable to create simulator instance

(gdb) Quit

Any ides to fix this?
Thanks.

Regards,
Gautam




On 11/8/09, Sébastien Bourdeauducq <[email protected]>
wrote:
>
> Hi,
>
> On Sunday 08 November 2009 15:00:39 Gautam Kalyanasundaram wrote:
> >                              Sorry about the repeated emails. I figured
> out
> > that the last message was because of an existing edited config file lying
> > around. I did a make clean
>
> Do "make mrproper" instead; "make clean" leaves a lot of options
> configured.
> From your messages, it seems you still have some i386 stuff lying around
> and
> causing problems.
>
> > I still get a lot of options to be set during the make. Is there any way
> of
> > avoiding this?
>
> When your setup is correct (LM32 architecture correctly selected), you
> should
> not have any of these options to set.
>
> So I suggest you try this:
> 1/ make mrproper
> 2/ cp xxxxx .config
> 3/ ARCH=lm32 make menuconfig # optional but enables you to double-check
> that
> you are building for a Milkymist SoC with LM32 CPU
> 4/ ARCH=lm32 CROSS_COMPILE=lm32-elf- make vmlinux
>
> Sébastien
>
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkym...@freenode
Webchat: www.milkymist.org/irc.html
Wiki: www.milkymist.org/wiki

Reply via email to