User Tools

Site Tools


hw:zynq:linux:petalinux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hw:zynq:linux:petalinux:start [2019/03/20 11:12]
jakub.moron
hw:zynq:linux:petalinux:start [2021/04/21 14:46] (current)
jakub.moron
Line 1: Line 1:
-====== Install PetaLinux ======+====== Install PetaLinux ​2018.3 ​======
  
-  - Install required packages: <​code>​ diffstat chrpath socat libtool libtool-bin libncurses5-dev libssl-dev </​code>​  +  - Install required packages: <​code>​ 
-  - Set bash as default shell: <​code>​ dpkg-reconfigure dash </​code>​+diffstat chrpath socat libtool libtool-bin libncurses5-dev libssl-dev ​zlib1g-dev 
 +</​code>​ <​code>​ 
 +gcc net-tools make autoconf git 
 +</​code>​ And ncurses: <​code>​ 
 +libncurses5 libncursesw5 
 +</​code>​ 
 +  - Set bash as default shell: <​code>​ 
 +dpkg-reconfigure dash  
 +</​code>​
   - PetaLinux needs a patch for sed (in Debian Strech bash and sed are too new for PetaLinux). \\ From Xilinx forum: "The problem is the "ls | sed" command sequence in the last line generates a multi-line response while the bash read builtin only reads a single line. I added a wrapper around sed that translates the newlines generated into spaces and the installer completed as expected on an otherwise stock Debian stretch install."​ -- the default Xilinx workaround is to... replace the system sed with the wrapper, which is really nasty solution. Let's make it properly:\\ Create sed path script (assume example name ''​sed.sh''​) and make it executable: <​code>​   - PetaLinux needs a patch for sed (in Debian Strech bash and sed are too new for PetaLinux). \\ From Xilinx forum: "The problem is the "ls | sed" command sequence in the last line generates a multi-line response while the bash read builtin only reads a single line. I added a wrapper around sed that translates the newlines generated into spaces and the installer completed as expected on an otherwise stock Debian stretch install."​ -- the default Xilinx workaround is to... replace the system sed with the wrapper, which is really nasty solution. Let's make it properly:\\ Create sed path script (assume example name ''​sed.sh''​) and make it executable: <​code>​
 #​!/​bin/​sh ​ #​!/​bin/​sh ​
Line 11: Line 19:
    /​bin/​sed "​$@"​    /​bin/​sed "​$@"​
 fi </​code>​ fi </​code>​
-  - Create source script which will set the PetaLinux ​enviroment. Assume example name ''​settings_petalinux_2018.3.sh'':​ <​code>​+  - Create source script which will later set the PetaLinux ​environment. Assume example name ''​settings_petalinux_2018.3.sh'':​ <​code>​
 alias sed="<​path_to_sed_wrapper_script>/​sed.sh"​ alias sed="<​path_to_sed_wrapper_script>/​sed.sh"​
 </​code>​ </​code>​
Line 22: Line 30:
 source <​path_to_PetaLinux_target_directory>/​settings.sh source <​path_to_PetaLinux_target_directory>/​settings.sh
 </​code>​ </​code>​
-  - To run the PetaLinux, source the ''​settings_petalinux_2018.3.sh''​ script.+  - In order to use the PetaLinux, source the ''​settings_petalinux_2018.3.sh''​ script.
  
/services/www/http/wiki/data/attic/hw/zynq/linux/petalinux/start.1553076725.txt.gz · Last modified: 2019/03/20 11:12 by jakub.moron