--- Begin Message ---
- To: John McGrath <john.mcgrath@xxxxxxxxxx>
- Subject: Re: ml401 reference design problems
- From: John McGrath <john.mcgrath@xxxxxxxxxx>
- Date: Tue, 22 Mar 2005 16:03:45 +0000
- Cc: John Williams <jwilliams@xxxxxxxxxxxxxx>
- In-reply-to: <42403910.2050408@xilinx.com>
- References: <42403910.2050408@xilinx.com>
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
Hi John,
I changed the target dir in mss os section to point to uclinux-auto
I am also getting the following error after running make:
mb-gcc -Os -g -fomit-frame-pointer -fno-common -Wall -mno-xl-soft-mul
-mxl-barrel-shift -mno-xl-soft-div -Dlinux -D__linux__ -Dunix
-D__uClinux__ -DEMBED -nostdinc
-I/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/include
-I/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/include/include
-fno-builtin -Wl,-elf2flt -nostartfiles
/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/lib/crt0.o
-L/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/lib -o sh
sh1.o sh2.o sh3.o sh4.o sh5.o sh6.o -lc
/proj/burren90_cork/jmcgrath/EDK/EDK_Gmm.12.3.1/gnu/microblaze/lin/bin/../lib/gcc-lib/microblaze/2.95.3-4/./libgcc.a
/proj/burren90_cork/jmcgrath/EDK/EDK_Gmm.12.3.1/gnu/microblaze/lin/bin/../lib/gcc-lib/microblaze/2.95.3-4/./../../../../microblaze/lib/libc.a
mb-ld: warning: cannot find entry symbol lf2flt; defaulting to 00000000
sh1.o: In function `initarea':
/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/user/sh/sh1.c:826:
undefined reference to `__data_start'
sh1.o: In function `dupstate':
/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/user/sh/sh1.c:841:
undefined reference to `__data_start'
make[2]: *** [sh] Error 1
make[2]: Leaving directory
`/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/user/sh'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/jmcgrath/projects/uClinux/CVS_dl/Try2/uClinux-dist/user'
make: *** [subdirs] Error 1
I did a search of all microblaze files which have some reference to
__data_start, and I found:
linux-2.4.x/arch/microblaze/mbvanilla.ld: __data_start = . ;
linux-2.4.x/arch/microblaze/suzaku.ld: __data_start = . ;
linux-2.4.x/arch/microblaze/platform/suzaku/ram.ld.in:
__data_start = . ;
linux-2.4.x/arch/microblaze/platform/uclinux-auto/ram.ld.in:
__data_start = . ;
Is there something that I need to configure here which is not being set
by uclinux-auto?
Cheers
John
John McGrath wrote:
> Hi John,
> Even though I dont work in the EDK department of Xilinx, I have a
> great personal interest in all things embedded, so this is more of a
> "hobby" than anything serious..plus we have a lot of neat hardware
> sitting around :)
>
> I've been playing around with the reference design (uclinux-auto) for
> ml401 from your website. I dont have this board, but Im trying to
> build the bitstream / image from scratch, and then use this experience
> to port to my board (v2p7 AFX FF456).
> Ive done the usual - cvs update / patch / setup project in EDK.
>
> I noticed something quite strange:
> In your downaoad, in the mss os section, you have the path you wanted
> libgen to dump the auto-config.in file. I modified the root of this,
> but left the rest of the dir structure the same. (i.e. the ml401
> directory is the last thing on that line).
> When I run make menuconfig I get only two options under Xilinx commons
> and uclinux-auto.
>
> My question is this: how does it know to use the directory:
> .....linux-2.4.x/arch/microblaze/platform/ml401/ ? as there is also a
> directory called uclinux-auto here. I would assume it would naturally
> pickup this directory over the ml401 directory?
> So does this mean I have to customise the
> vendors/Xilinx/uclinux-auto/ directory also to add my own ml401 here?
> or can I simply copy the entire contents of
> vendors/Xilinx/uclinux-auto/ to vendors/Xilinx/ml401 ?
> There appears to be a lot of configuration files in here
> vendors/Xilinx/* also....do these have to be configured too?
>
> When make menuconfig finishes, it also askes a number of questions -
> do I simply answer no to all of these? or is there a particular subset
> of these questions i need to say yes to to build the ml401 platform :P
>
> I guess a REAL dummies guide would be great - as it's quite a daunting
> task to get right, when I only spend the odd hour here and there on
> it. Though I have to commend you on the uclinux-auto flow - it's
> really taken a lot of the pain out of the configuration!
>
> Any help would be appreciated!
>
> Cheers
> John
>
--- End Message ---