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: 
Highlighted
Observer peter.kuchnio
Observer
2,344 Views
Registered: ‎11-16-2015

Petalinux 2016.4 etc/version is wrong, /etc/product is missing

Jump to solution

Hello,

In Petalinux 2016.1, the rootfs image had the files /etc/version and /etc/product pulled in from the top level config generated with petalinux-config

In 2016.4 this is no longer the case. The /etc/version file does not match the version string I put in using petalinux-config. Instead it just seems to be a timestamp

The product name is not included as an /etc/product file. There is no /etc/product file

Also, the hostname doesn't match the product name like it used to. Instead it is the generic plnx-arm

How can I modify the recipe or configuration to

1) Put the correct information into /etc/version
2) Create a product text file in /etc/product
3) Change the hostname

​Thanks!

0 Kudos
1 Solution

Accepted Solutions
Observer peter.kuchnio
Observer
4,109 Views
Registered: ‎11-16-2015

Re: Petalinux 2016.4 etc/version is wrong, /etc/product is missing

Jump to solution

Ok. In the short term I just used a .bbappend file to copy over my own files into /etc

 

this works fine for product. The version file always seems to get overwritten by the yocto build. For now I just create a file with a different name (firmware_version) and use that. The transition to Yocto has not been smooth. I think Xilinx really rushed this. 

 

In case it helps anyone:

 

FILESEXTRAPATHS_prepend := "${THISDIR}/initscripts:"

SRC_URI += " \
    file://product \
    file://firmware_version \
 "

do_install_append() {
    install -m 0755 ${WORKDIR}/product ${D}${sysconfdir}
    install -m 0755 ${WORKDIR}/firmware_version ${D}${sysconfdir}
}
0 Kudos
3 Replies
Moderator
Moderator
2,277 Views
Registered: ‎04-17-2011

Re: Petalinux 2016.4 etc/version is wrong, /etc/product is missing

Jump to solution
This is an issue with 2016.4 Petalinux due to integration of Yocto. Factory is working on a fix for this.
Regards,
Debraj
----------------------------------------------------------------------------------------------
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
Observer peter.kuchnio
Observer
4,110 Views
Registered: ‎11-16-2015

Re: Petalinux 2016.4 etc/version is wrong, /etc/product is missing

Jump to solution

Ok. In the short term I just used a .bbappend file to copy over my own files into /etc

 

this works fine for product. The version file always seems to get overwritten by the yocto build. For now I just create a file with a different name (firmware_version) and use that. The transition to Yocto has not been smooth. I think Xilinx really rushed this. 

 

In case it helps anyone:

 

FILESEXTRAPATHS_prepend := "${THISDIR}/initscripts:"

SRC_URI += " \
    file://product \
    file://firmware_version \
 "

do_install_append() {
    install -m 0755 ${WORKDIR}/product ${D}${sysconfdir}
    install -m 0755 ${WORKDIR}/firmware_version ${D}${sysconfdir}
}
0 Kudos
Adventurer
Adventurer
1,554 Views
Registered: ‎10-14-2015

Re: Petalinux 2016.4 etc/version is wrong, /etc/product is missing

Jump to solution

Hello,

 

I get the same behavior in 2017.2. Will it be fixed in 2017.3 ?

 

Thanks

0 Kudos