UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
743 Views
Registered: ‎10-09-2017

Is there rzsz on petalinux for serial file transfer

I hope to transfer files via serial port. 

My petalinux is 2018.2 installed on ubuntu16.

I download lrzsz-1.12.20.tar.gz and unzip under /home/liwenz/tmp/rzsz, but I don't know ./configure.

I tried the next command.

 

./configure CC=arm-linux-gnueabihf-gcc --host=arm-unknown-linux --prefix=/home/liwenz/tmp/rzsz

and then ./configure CC=arm-linux-gnueabihf-gcc  --prefix=/home/liwenz/tmp/rzsz

It show as follow:

 

configure: warning: CC=arm-linux-gnueabihf-gcc: invalid host type
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes

 

then I make and make install

I have not got the result.

Any idea?

 

0 Kudos
5 Replies
Moderator
Moderator
717 Views
Registered: ‎04-24-2017

Re: Is there rzsz on petalinux for serial file transfer

Hi @liwenz,

 

This package is already available in Yocto http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb?h=rocko just include this in your petalinux project

 

In <plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf

 

# Add this at end

IMAGE_INSTALL += "\
    lrzsz \
    "
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
708 Views
Registered: ‎10-09-2017

Re: Is there rzsz on petalinux for serial file transfer

Thanks. Why not add as a line,like that

IMAGE_INSTALL += "    lrzsz     "
0 Kudos
Explorer
Explorer
701 Views
Registered: ‎10-09-2017

Re: Is there rzsz on petalinux for serial file transfer

Thanks for your reply.But I have not got it.

This package is already available in Yocto http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-bsp/lrzsz/lrzsz_0.12.20.bb?h=rocko just include this in your petalinux project

Do you mean I need down load it?

I only add in petalinuxbsp.conf, but it does not work

 

root@gpio:/bin# lrz
-sh: lrz: command not found
root@gpio:/bin# lsz
-sh: lsz: command not found
root@gpio:/bin# rz
-sh: rz: command not found
root@gpio:/bin# sz
-sh: sz: command not found
root@gpio:/bin#

 

0 Kudos
Observer adefan
Observer
400 Views
Registered: ‎04-13-2016

Re: Is there rzsz on petalinux for serial file transfer

How to do this ? where to put *.bb and files in the petalinux project ?

0 Kudos
Observer adefan
Observer
377 Views
Registered: ‎04-13-2016

Re: Is there rzsz on petalinux for serial file transfer

I found it myself.  it is tue that "This package is already available in Yocto "

don't need to download anything. Just refer to ug1144 page 80.

Open

<plnx-proj-root>/project-spec/meta-user/recipes-core/images/petalinux-image.bbappend and add the following line:IMAGE_INSTALL_append = " lrzsz"

Run

petalinux-config -c rootfs

Select “user packages -->”

Select “network-->”

Select “lrzsz”

Enable it, save and exit

 

0 Kudos