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

Re: [microblaze-uclinux] Petalinux "make" failure.



Hi,

Thanks for your help (to both Paulo and Nicolas)

I can finally run all steps till the "petalinux-copy-autoconfig" step.
when running the command, I get the following error log:
-----------------------------------
faiza@desktop:~/Desktop/petalinux-v0.40-rc4/hardware/reference-designs/Xilinx-Spartan3E500-RevC-lite-edk101$ petalinux-copy-autoconfig system.xmp
/home/faiza/Desktop/petalinux-v0.40-rc4/tools/common/petalogix/bin/petalinux-copy-autoconfig: 23: function: not found
Usage:
	petalinux-copy-autoconfig OPTIONS [projectfile]

Required:

Optional parameters (and default value):
	-p platform
		The name of the platform.  Auto-detect if not specified.

	-v vendor
		Vendor name for platform. Auto-detect if not specified.

	-k kernel_ver (2.4 / 2.6)
		Force kernel version to target. Auto-detect if not specified
		Default choice 2.6 kernel
		Not recommended

	-noupdateconfig
		Don't update kernel configuration settings (not recommended).

	projectfile
		Filename of the EDK platform studio project (system.xmp).
		If .xmp suffix is missing it will be inferred.
		If a path prefix is specified, the full path and name of the
		XMP file must be specified.

	Options -p and -v must be specified together.  If either is 
	missing, then an autodetect is attempted.
exit: 52: Illegal number: -1


------------------------------------

Does anyone have any idea to solve this?
I tried to look to the script but could not found the problem.

Thanks.


----- Mail Original -----
De: "Paulo Ferreira" <paf@xxxxxxxx>
À: microblaze-uclinux@xxxxxxxxxxxxxx
Envoyé: Lundi 6 Juillet 2009 19h56:33 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [microblaze-uclinux] Petalinux "make" failure.


Here  is what works  for me:

All lines with $  on the beginning are supposed do be  command lines


##  tftp part

create a directory  called /ttfpboot for   the  output files

make it world-writable
and install tftpd


Make sure /bin/sh is really /bin/bash .....


# petalinux install

Install petalinux


cd to petalinux directory and  do

$ . settings.sh

Next:

#  Petalinux config

$  cd $PETALINUX/software/petalinux-dist

$    make mrproper          # is it needed ?

$     make xconfig            #  in graphical mode


#  make the "hardware"

$  cd $PETALINUX/hardware/reference-designs/Xilinx-Spartan3E500-RevD- 
edk91   #  what I am using  with 9.2 tools


$    xps -nw system.xmp

     % save make
     % exit


# Next  the longest command

$        make -f system.make bits

# if you have done  previous runs in the same directory, make will say  
that everything is up to date.
#   In that case do:

$     make -f system.make -B  bits


After:


$ make -f system.make libs

$ make -f system.make program

$ make -f system.make init_bram

$ petalinux-copy-autoconfig system.xmp      # !!!!!    here   provide  
system.xmp as argument !!!!!

#  now in the implementation directory you have the download.bit file


#######   Make the software  ###


$ cd $PETALINUX/software/petalinux-dist

$ yes "" | make oldconfig dep all



And everything works  ( as far as I can see -- downloading all the  
stuff to the FPGA and booting linux ).

My regards

Paulo Ferreira





___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/