cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peter.kuchnio
Observer
Observer
2,725 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
peter.kuchnio
Observer
Observer
4,490 Views
Registered: ‎11-16-2015

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

View solution in original post

4 Replies
debrajr
Moderator
Moderator
2,658 Views
Registered: ‎04-17-2011
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
peter.kuchnio
Observer
Observer
4,491 Views
Registered: ‎11-16-2015

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

View solution in original post

eric.boutet
Adventurer
Adventurer
1,935 Views
Registered: ‎10-14-2015

Hello,

 

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

 

Thanks

0 Kudos
bfung_2
Adventurer
Adventurer
37 Views
Registered: ‎07-02-2020

I believe this is also affecting Petalinux 2020.1 and 2020.2

0 Kudos