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: 
Explorer
Explorer
320 Views
Registered: ‎10-09-2017

Application Auto Run at Startup can't petalinux-build

Jump to solution
I follow the ug1144 Application Auto Run at Startup at pages 68,69. But when petalinux-build,it shows: INFO: bitbake petalinux-user-image ERROR: ParseError at /home/liwenz/alinx/cnc978/project-spec/meta-user/recipes-apps/udpc-init/udpc-init.bb:23: unparsed line: ' FILES_${PN} += "${sysconfdir}/*"' I don't understand the line and only follow the ug1144. My files is as: # # This file is the udpc-init recipe. # SUMMARY = "Simple udpc-init application" SECTION = "PETALINUX/apps" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" SRC_URI = "file://udpc-init \ " S = "${WORKDIR}" FILESEXTRAPATHS_prepend := "${THISDIR}/files:" inherit update-rc.d INITSCRIPT_NAME = "udpc-init" INITSCRIPT_PARAMS = "start 99 S ." do_install() { install -d ${D}${sysconfdir}/init.d install -m 0755 ${S}/udpc-init ${D}${sysconfdir}/init.d/udpc-init } FILES_${PN} += "${sysconfdir}/*" Could you give me any advice?
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
295 Views
Registered: ‎02-07-2018

Re: Application Auto Run at Startup can't petalinux-build

Jump to solution

HI @liwenz 

I hope may be the buils issues due to spaces. Please follow below steps & build It should work.

 

1. petalinux-create -t apps --template install -n myapp-init --enable

2. vim project-spec/meta-user/recipes-apps/myapp-init/myapp-init.bb

 

#thiss file is the myapp-init recipe.

#

SUMMARY = "Simple myapp-init application"

SECTION = "PETALINUX/apps"

LICENSE = "MIT"

 

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://myapp-init \

"

S = "${WORKDIR}"

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

inherit update-rc.d

INITSCRIPT_NAME = "myapp-init"

INITSCRIPT_PARAMS = "start 99 S ."

do_install() {

install -d ${D}${sysconfdir}/init.d

install -m 0755 ${S}/myapp-init ${D}${sysconfdir}/init.d/myapp-init

}

FILES_${PN} += "${sysconfdir}/*"

 

3. Modify your script (project-spec/meta-user/recipes-apps/myapp-init/files/myapp-init)according to your requirements and build it.

 

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

 

 

Thanks & Regards

Aravind

0 Kudos
2 Replies
Moderator
Moderator
296 Views
Registered: ‎02-07-2018

Re: Application Auto Run at Startup can't petalinux-build

Jump to solution

HI @liwenz 

I hope may be the buils issues due to spaces. Please follow below steps & build It should work.

 

1. petalinux-create -t apps --template install -n myapp-init --enable

2. vim project-spec/meta-user/recipes-apps/myapp-init/myapp-init.bb

 

#thiss file is the myapp-init recipe.

#

SUMMARY = "Simple myapp-init application"

SECTION = "PETALINUX/apps"

LICENSE = "MIT"

 

LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://myapp-init \

"

S = "${WORKDIR}"

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

inherit update-rc.d

INITSCRIPT_NAME = "myapp-init"

INITSCRIPT_PARAMS = "start 99 S ."

do_install() {

install -d ${D}${sysconfdir}/init.d

install -m 0755 ${S}/myapp-init ${D}${sysconfdir}/init.d/myapp-init

}

FILES_${PN} += "${sysconfdir}/*"

 

3. Modify your script (project-spec/meta-user/recipes-apps/myapp-init/files/myapp-init)according to your requirements and build it.

 

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

 

 

Thanks & Regards

Aravind

0 Kudos
Highlighted
Explorer
Explorer
280 Views
Registered: ‎10-09-2017

Re: Application Auto Run at Startup can't petalinux-build

Jump to solution

yes, maybe space or other thing. After I copied sth from website, it works well now.

Thanks!

0 Kudos