[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Kernel Compilation Error



Hi John,

Thank you for your prompt reply.

Selon John Williams <jwilliams@itee.uq.edu.au>:

> Hi,
> 
> calayrac@univ-orleans.fr wrote:
> 
> > I try to port uClinx on Spartan IIE.
> > I've downloaded the auto_uclinux_6_30b from John Web site.
> > I've modified the design to fit in Spartan IIE LC 600. Mainly it consist
> in
> > changing the constrain file (.ucf file in the /data project directory),
> repalce
> > ddr RAM by SDRAM and reduce cache mamory to 8k.
> > 
> > Then I've compiled the design using EDK 7.1 SP3 environnement (Generate
> Netlist
> > and Bistream).
> > 
> > I've then copied the auto-config.in from my Windows PC to the Linux one ine
> the
> > directory :
> 
> You should run "dos2unix" on the auto-config.in file after transferring 
> it from Windows.  CR/LF pairs are evil!


I've run the following coomand to replace CRLF sequence by LF sequence
    perl -pi -e 's/\r\n/\n/;' auto-config.in


> 
> >    ~/uClinux-dist/linux-2.4.x/arch/microblaze/platform
> 
> The destination should be arch/microblaze/platform/uClinux-auto
> 
> > The from the uClinux-dist I've rune the make menuconfig with the following
> setting:
> > 
> >     --- Kernel is linux-2.4.x                              
> >             (uClibc) Libc Version                                          
>    
> >                           
> >             [*] Customize Kernel Settings (NEW)
> > 
> > 
> > It comes out with the next option menu
> >       Linux Kernel v2.4.29-uc1 Configuration
> > 
> > from wich I just select Exit and Save.
> 
> That all sounds right - but you should repeat it after putting the 
> unixified auto-config.in file in the right place.

I've run the make menuconfig as specified before.

> 
> > So I've trie to run the make bzImage and obtain the followin error
> 
> > 
> > Same error withe bzdisk and install
> > 
> > So I've try to do the make dep and the the make command but it comes out
> withe
> > the next error message:
> 
> After make menuconfig, you should "make dep image" to build everything. 
>     bzimage and bzdisk are not supported targets.
> 

I then run the make dep image and its comes out with the following error message

    [ -d /home/alayrac/uClinux-dist/images ] || mkdir 
    home/alayrac/uClinux-dist/images
    make ARCH=microblaze CROSS_COMPILE=mb- -C    
    /home/alayrac/uClinux-dist/vendors/Insight/mbvanilla_net/. image
    make[1]: Entering directory  
    `/home/alayrac/uClinux-dist/vendors/Insight/mbvanilla_net'
    [ -d /home/alayrac/uClinux-dist/images ] || mkdir -p 
    /home/alayrac/uClinux-dist/images
    mb-flthdr /home/alayrac/uClinux-dist/romfs/bin/*
    Cannot open /home/alayrac/uClinux-dist/romfs/bin/*
    mb-flthdr /home/alayrac/uClinux-dist/romfs/lib/lib[0-9].so
    Cannot open /home/alayrac/uClinux-dist/romfs/lib/lib[0-9].so
    for i in  ; do \
        [ ! -f /home/alayrac/uClinux-dist/romfs/$i ] || mb-flthdr -r   
    /home/alayrac/uClinux-dist/romfs/$i ; \
    done
    for i in /home/alayrac/uClinux-dist/romfs/bin/* ; do \
        mb-flthdr -z $i; \
    done
    Cannot open /home/alayrac/uClinux-dist/romfs/bin/*
    genromfs -v -V "ROMdisk" -f /home/alayrac/uClinux-dist/images/romfs.img -d     
    /home/alayrac/uClinux-dist/romfs
    make[1]: *** [image] Erreur de segmentation
    make[1]: Leaving directory 
    `/home/alayrac/uClinux-dist/vendors/Insight/mbvanilla_net'
    make: *** [image] Erreur 2

I did not know if I should manually create the romfs and romfs/bin directories
in my uClinux-dist directory or if the problem comes from somewhere else.

> Try / confirm the above, and let us know how it goes.
> 
> Regards,
> 
> John

Thanks agin for your help

Christophe


> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> 
> 
> 



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/