cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,426 Views
Registered: ‎09-11-2017

install package onto target

Jump to solution

Hello!

What is a proper way to install single package on target machine?  For instance, I add mkfs.ext4 through running "petalinux-config -c rootfs && petalinux-build" and petalinux recreates rootfs cpio & tar archives.  But I don`t want to copy and update the whole rootfs on target.  How can I deploy single package, say mkfs, to target? 

 

Currently I use Petalinux 2017.2

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
1,292 Views
Registered: ‎02-07-2018

Re: install package onto target

Jump to solution

 

Hi Mishuk,


Do you mean , you would like to include rpm as a part of filesystem?
If so you can try this below steps:

petalinux-config -c rootfs
Filesystem Packages ---> misc ---> rpm ---> [*] rpm
petalinux-build

 

Thanks & regards

Aravind

 

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

 

View solution in original post

0 Kudos
5 Replies
Highlighted
Observer
Observer
1,331 Views
Registered: ‎09-11-2017

Re: install package onto target

Jump to solution
Still no answer?!
Does petalinux have some package manager on the target so I can deploy newly added packages (say, ntp) easily without rewriting whole rootfs?
0 Kudos
Highlighted
Moderator
Moderator
1,326 Views
Registered: ‎02-07-2018

Re: install package onto target

Jump to solution

HI please follow below steps to add mkfs utility into your rootfs

 

petalinux-config -c rootfs
Filesystem Packages ---> base ---> util-linux --->[*] util-linux-mkfs
petalinux-build

 

====================

For adding ntp please follow below steps:

 

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend

add below line
IMAGE_INSTALL_append = " ntp"

petalinux-config -c rootfs
user packages --> [*] ntp

petalinux-build

 

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
Observer
Observer
1,320 Views
Registered: ‎09-11-2017

Re: install package onto target

Jump to solution
I followed your steps and ntpd service apperared on rootfs. But where is ntpq? I found ntpq-utils rpm package in <petalinux-dir>/build/tmp/deploy/rpm/cortexa9hf_neon folder, copied it onto target and installed using "rpm --install --deps". What recipe should I modify to deploy ntp-utils onto rootfs like ntpd itself?
0 Kudos
Highlighted
Moderator
Moderator
1,313 Views
Registered: ‎02-07-2018

Re: install package onto target

Jump to solution

Hi Mishuk,

 

Follow below steps ,  you will get ntpq as a part of rootfs. I already verified  and i should work for you.

 

vim project-spec/meta-user/recipes-core/images/petalinux-image.bbappend
add below line
IMAGE_INSTALL_append = " ntp-utils"

petalinux-config -c rootfs
user packages --> [*] ntp-utils

petalinux-build

 

----------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------------

Highlighted
Moderator
Moderator
1,293 Views
Registered: ‎02-07-2018

Re: install package onto target

Jump to solution

 

Hi Mishuk,


Do you mean , you would like to include rpm as a part of filesystem?
If so you can try this below steps:

petalinux-config -c rootfs
Filesystem Packages ---> misc ---> rpm ---> [*] rpm
petalinux-build

 

Thanks & regards

Aravind

 

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

 

View solution in original post

0 Kudos