cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,571 Views
Registered: ‎09-10-2017

Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

Hi,

 

I am using petalinux 2017.2 on ubuntu 14.04 LTS. I have enabled tftpboot and nfs in petalinux. But final image does not get copied to /tftpboot . Neither does rootfs into the /NFSShare directory.

 

I was able to do the same with petalinux 2015.4. The image would get copied to respective directories on running petalinux-build command.  I am wondering if this is a known petalinux 2017.2 issue or am I missing something?

 

I have come across similar tftp issue on forum which was not resolved:- https://forums.xilinx.com/t5/Embedded-Linux/Petalinux-2017-2-doesn-t-copy-to-TFTPBOOT/td-p/797105

 

Please suggest a solution or acknowledge the issue.

 

Thanks in advance

Tags (3)
0 Kudos
7 Replies
Highlighted
Explorer
Explorer
1,539 Views
Registered: ‎01-09-2012

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

@saklnt

 

I saw the same behavior... and used the work around by manually copying the files.

 

Cheers

Goran

0 Kudos
Highlighted
1,533 Views
Registered: ‎02-12-2018

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

do you see the following in your terminal?

INFO: Copying Images from deploy to images
INFO: Creating images/linux directory
NOTE: Successfully copied built images to tftp dir:  /tftpboot

(assuming tftpboot directory is set to /tftpboot):

the folder has to exist:

sudo mkdir /tftpboot

and must be accessible to user:

sudo chown $USER:$USER /tftpboot

don't forget so mark the question as solved.

0 Kudos
Highlighted
Visitor
Visitor
1,501 Views
Registered: ‎09-10-2017

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

Hi @ethen

 

The folder /tftpboot and /NFSshare exists. And accessible as it would copy automatically with petalinux 2015.4.

 

@gmarinkovic, I am aware but, its a tedious task.

0 Kudos
Highlighted
1,482 Views
Registered: ‎02-12-2018

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

I don't have 2017.2 version installed. Can you share the folder permissions of /tftpboot?

 

ls -la /tftpboot

I changed these to solve this problem on 2017.4. I know you are having different behaviour for different versions but sharing your permissions would be helpful. 

0 Kudos
Highlighted
Visitor
Visitor
1,464 Views
Registered: ‎09-10-2017

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

@theultimatesource

 

lte3@lte3-HP-280-G3-MT:/$ ls -la tftpboot/
total 8
drwxrwxrwx 2 nobody root 4096 May 24 11:53 .
drwxr-xr-x 28 root root 4096 May 23 10:59 ..

 

 

 Also, here is what I get when I run petalinux-build

 

INFO: Copying Images from deploy to images
[INFO] successfully built project

0 Kudos
Highlighted
1,453 Views
Registered: ‎02-12-2018

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

@saklnt,

 

yes, this is how I had my permissions set initially (and how it is supposed to be). However, this did not work for me.

 

I then simply assigned everything to the group and user I am working with:

 

(replace "lte3" with your own username)

 

sudo chown -R lte3:lte3 /tftpboot
sudo chown -R lte3:lte3 /opt/pkg/petalinux/

 

I still have doupts about your case since

A - I am on 2017.4

B - instead of info copy to /tftpboot I had a failed to copy warning in my terminal

 

Anyway this is working for me and if it doesn't for you then it could be version specific after all.

0 Kudos
Highlighted
Visitor
Visitor
1,442 Views
Registered: ‎09-10-2017

Re: Petalinux 2017.2: NFS And TFTP boot issue: does not get copied

@theultimatesource

 

Well I assigned folders as you said. But no use.

Thanks for replying anyways.

0 Kudos