05-23-2018 12:13 AM
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
05-23-2018 10:08 AM
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.
05-23-2018 10:55 PM - edited 05-23-2018 10:57 PM
05-24-2018 07:29 AM
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.
05-24-2018 09:23 PM - edited 05-24-2018 09:42 PM
lte3@lte3-HP-280-G3-MT:/$ ls -la tftpboot/
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
05-25-2018 12:47 AM - edited 05-25-2018 12:48 AM
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.