cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
3,085 Views
Registered: ‎10-09-2017

where is the petalinux 2018.2 walk through

Jump to solution

I try to find the petalinux 2018..2 walk through.

In 2015.4, I know how to do the petalinux.

so I follow the steps for 2015.4.

Install vivado 2018.2 ok

apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 ok

apt-get install libssl-dev ok

apt-get install device-tree-compiler  ok

source /opt/Xilinx/SDK/2018.2/settings64.sh  ok

make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_ax7010_defconfig

at first, no make, I apt install make

then show no  zynq_ax7010_defconfig, true. In my  u-boot-xlnx-master , I can't find it.

In 2015, it is in . I copy it from 2015 version, I guess zynq_ax7010_defconfig is given by the board company. 

It show errors. I use the 2015's u-boot-xlnx-master. It works fine.

make CROSS_COMPILE=arm-xilinx-linux-gnueabi-

 can't work.it shows:

 

make: arm-xilinx-linux-gnueabi-gcc: Command not found
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
dirname: missing operand
Try 'dirname --help' for more information.
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
CFG u-boot.cfg
/bin/sh: 1: arm-xilinx-linux-gnueabi-gcc: not found
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.

 

I asked a lot of people, and can't know how to do.

 


 

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
3,078 Views
Registered: ‎05-26-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution
0 Kudos
14 Replies
Highlighted
Adventurer
Adventurer
3,079 Views
Registered: ‎05-26-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution
0 Kudos
Highlighted
Moderator
Moderator
3,042 Views
Registered: ‎02-07-2018

Re: where is the petalinux 2018.2 walk through

Jump to solution

Hi @liwenz

 

 

If you want to use petalinux you can follow the @ottob suggestion.

and for SOL flow you can use below steps to build the code for zynq platform.

 

linux build:

export PATH=$PATH:/proj/petalinux/petalinux-v2017.4_daily_latest/petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- xilinx_zynq_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4

u-boot build:


export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zynq_zc702_config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4

 

Thanks & regards

Aravind

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

 

0 Kudos
Highlighted
Explorer
Explorer
3,035 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

yes: ug1144 

In ubuntu 18, netstate,xvfb-run,ncurses can't be installed, but petalinux requires them.

When I apt-get install , it shows

Unable to locate package netstat

 

netstate ok.

after apt install xvfb, xvfb-run ok

 

only ncurses fail

 

root@ubuntu:/home/liwen/Downloads# apt-get install libncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5 is already the newest version (6.1-1ubuntu1.18.04).
0 upgraded, 0 newly installed, 0 to remove and 67 not upgraded.

 

apt install libncurses-dev then ok.

 

now ERROR: Access Denied: No access permissions to the directory : /opt/petalinux

 

0 Kudos
Highlighted
Explorer
Explorer
3,032 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

thanks, but I  don't have proj/petalinux/petalinux-v2017.4_daily_latest/petalinux-v2017.4-final/tools/linux-i386/gcc-arm-linux-gnueabi/bin/, or even any petalinux which I need to install, could you tell me the link?

0 Kudos
Highlighted
Explorer
Explorer
3,021 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

INFO: Checking installed tools
environment: line 281: ((: 10#15~1 > 10#3: syntax error in expression (error token is "~1 > 10#3")
environment: line 285: ((: 10#15~1 < 10#3: syntax error in expression (error token is "~1 < 10#3")
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
INFO: Installing PetaLinux...
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/opt/petalinux/."
................................................................................................................................................................................................................................................................................tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Exiting with failure status due to previous errors
*********************************************
ERROR: Failed to install PetaLinux SDK into "/opt/petalinux/."
*********************************************

Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:

0 Kudos
Highlighted
Explorer
Explorer
3,016 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

Why ug1144 let me use a no root account and install at /opt/pkg/petalinux.

The user does not have the owner's right about that folder.

So it happens a lot of permission issue.

0 Kudos
Highlighted
Explorer
Explorer
3,006 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

Finally, I finish the install,but it has some error information I don't understand.

My installed result. I will continue the test and don't care of the error information.

 

liwen@ubuntu:~/Downloads$ ./p* ../petalinux
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...

LICENSE AGREEMENTS

PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.

You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.

Use PgUp/PgDn to navigate the license viewer, and press 'q' to close

Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
environment: line 281: ((: 10#15~1 > 10#3: syntax error in expression (error token is "~1 > 10#3")
environment: line 285: ((: 10#15~1 < 10#3: syntax error in expression (error token is "~1 < 10#3")
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
INFO: Installing PetaLinux...
*********************************************
WARNING: PetaLinux installation directory: ../petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "../petalinux/."
................................................................................................................................................................................................................................................................................INFO: Installing aarch64 Yocto SDK to "../petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source/aarch64" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK..............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: PetaLinux SDK has been installed to ../petalinux/.
liwen@ubuntu:~/Downloads$

0 Kudos
Highlighted
Moderator
Moderator
2,961 Views
Registered: ‎09-12-2007

Re: where is the petalinux 2018.2 walk through

Jump to solution
Only ubuntu 16.04 is supported
0 Kudos
Highlighted
Explorer
Explorer
2,939 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

I change it to ubuntu 16 and install  seem fine.

 

liwenz@ubuntu:~/petalinux$ ./settings.sh
PetaLinux environment set to '/home/liwenz/petalinux'
WARNING: /bin/sh is not bash!
bash is PetaLinux recommended shell. Please set your default shell to bash.
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution
liwenz@ubuntu:~/petalinux$

 

but  

liwenz@ubuntu:~/xilinx_pro$ petalinux-create --type project --template zynq --name helloworld
petalinux-create: command not found
liwenz@ubuntu:~/xilinx_pro$

0 Kudos
Highlighted
Explorer
Explorer
2,593 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

now I finish the install on ubuntu16.

but petalinux-create: command not found

 

 

root@ubuntu:/etc# netstat -an | more | grep udp
udp 11520 0 0.0.0.0:57134 0.0.0.0:*
udp 10752 0 127.0.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:69 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp 0 0 0.0.0.0:48338 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp6 0 0 :::41822 :::*
udp6 20800 0 :::5353 :::*
udp6 31360 0 :::38255 :::*
root@ubuntu:/etc# exit
liwenz@ubuntu:~/xilinx_pro$ ../petalinux/settings.shPetaLinux environment set to '/home/liwenz/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
liwenz@ubuntu:~/xilinx_pro$ echo $PETALINUX

liwenz@ubuntu:~/xilinx_pro$ petalinux-create --type project --template zynq --name helloworld
petalinux-create: command not found
liwenz@ubuntu:~/xilinx_pro$

0 Kudos
Highlighted
Moderator
Moderator
2,580 Views
Registered: ‎09-12-2007

Re: where is the petalinux 2018.2 walk through

Jump to solution
You need to source the petalinux. This was mentioned in another thread. Can you mark this thread as solved as this will help other users
0 Kudos
Highlighted
Explorer
Explorer
2,576 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

That's true. 

soource settings.sh is ok.

0 Kudos
Highlighted
Moderator
Moderator
2,570 Views
Registered: ‎09-12-2007

Re: where is the petalinux 2018.2 walk through

Jump to solution
Ok, then mark your post as solved. This will help other users.
0 Kudos
Highlighted
Explorer
Explorer
2,550 Views
Registered: ‎10-09-2017

Re: where is the petalinux 2018.2 walk through

Jump to solution

I have not walked through.

Thanks for  your reply. 

Which one should I mark for this post?

I have a problem that can't compile the fsbl. If you answer that one, I could mark it.

https://forums.xilinx.com/t5/Embedded-Linux/Where-is-the-fsbl-and-how-to-make-in-petalinux/m-p/890425#M28639

0 Kudos