* Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
@ 2025-03-27 14:52 Sebastian
2025-03-27 15:22 ` [meta-ti] " Alex Kiernan
0 siblings, 1 reply; 10+ messages in thread
From: Sebastian @ 2025-03-27 14:52 UTC (permalink / raw)
To: meta-ti
Hey there,
actually I'm frustrated, I don't know where I'm going wrong.
My setup:
Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "beaglebone"
DISTRO = "poky"
DISTRO_VERSION = "4.0.25"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "kirkstone:b210ed67de098a78a577baf464fae569d020de62"
meta-arm-toolchain
meta-arm = "kirkstone:936c02ec13661bd86a05f7f90e1b920d5092d670"
meta-ti-bsp
meta-ti-extras = "kirkstone:98c5c3d732334a26d57cb3534230e858d96db0c6"
meta-oe = "kirkstone:7e18b3fc774b7efabf9a20ae3cd6abd0e0715b59"
I want to build the core-image-sato but it fails with:
ERROR: core-image-sato-1.0-r0 do_rootfs: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed. If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.
ERROR: Logfile of failure stored in: /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.23534
ERROR: Task (/home/lacon/yocto/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
Can anyone help to progress further?
Regards,
Sebastian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-03-27 14:52 Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed Sebastian
@ 2025-03-27 15:22 ` Alex Kiernan
2025-03-27 20:43 ` Randolph Sapp
0 siblings, 1 reply; 10+ messages in thread
From: Alex Kiernan @ 2025-03-27 15:22 UTC (permalink / raw)
To: sebastian.krahl; +Cc: meta-ti
The postinstall script in ti-sgx-ddk-um failed - look at the
referenced log file, hopefully you'll get a clue as to what/why.
Assuming its this recipe:
https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb?h=kirkstone
I'd guess its something about the init script setup (update-rc.d adds
a postinstall scriptlet).
On Thu, Mar 27, 2025 at 2:52 PM Sebastian via lists.yoctoproject.org
<sebastian.krahl=lacon.de@lists.yoctoproject.org> wrote:
>
> Hey there,
>
> actually I'm frustrated, I don't know where I'm going wrong.
>
> My setup:
> Build Configuration:
> BB_VERSION = "2.0.0"
> BUILD_SYS = "x86_64-linux"
> NATIVELSBSTRING = "universal"
> TARGET_SYS = "arm-poky-linux-gnueabi"
> MACHINE = "beaglebone"
> DISTRO = "poky"
> DISTRO_VERSION = "4.0.25"
> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
> TARGET_FPU = "hard"
> meta
> meta-poky = "kirkstone:b210ed67de098a78a577baf464fae569d020de62"
> meta-arm-toolchain
> meta-arm = "kirkstone:936c02ec13661bd86a05f7f90e1b920d5092d670"
> meta-ti-bsp
> meta-ti-extras = "kirkstone:98c5c3d732334a26d57cb3534230e858d96db0c6"
> meta-oe = "kirkstone:7e18b3fc774b7efabf9a20ae3cd6abd0e0715b59"
>
> I want to build the core-image-sato but it fails with:
> ERROR: core-image-sato-1.0-r0 do_rootfs: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed. If the intention is to defer them to first boot,
> then please place them into pkg_postinst_ontarget:${PN} ().
> Deferring to first boot via 'exit 1' is no longer supported.
> Details of the failure are in /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.
> ERROR: Logfile of failure stored in: /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.23534
> ERROR: Task (/home/lacon/yocto/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
>
> Can anyone help to progress further?
>
> Regards,
>
> Sebastian
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#18423): https://lists.yoctoproject.org/g/meta-ti/message/18423
> Mute This Topic: https://lists.yoctoproject.org/mt/111937570/3618097
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [alex.kiernan@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alex Kiernan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-03-27 15:22 ` [meta-ti] " Alex Kiernan
@ 2025-03-27 20:43 ` Randolph Sapp
2025-03-27 22:00 ` Randolph Sapp
0 siblings, 1 reply; 10+ messages in thread
From: Randolph Sapp @ 2025-03-27 20:43 UTC (permalink / raw)
To: alex.kiernan, sebastian.krahl; +Cc: meta-ti
That recipe postinst script should consist of only the following under a systemd
machine:
#!/bin/sh
set -e
if [ x"$D" = "x" ]; then
if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
fi
Under sysvinit it should be:
#!/bin/sh
set -e
if true && type update-rc.d >/dev/null 2>/dev/null; then
if [ -n "$D" ]; then
OPT="-r $D"
else
OPT="-s"
fi
update-rc.d $OPT rc.pvr defaults 8
fi
if [ x"$D" = "x" ]; then
if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
fi
"Deferring to first boot via 'exit 1'" should not be what's occuring here. I'm
setting up a little test to verify with MACHINE=am335x-evm, but I don't really
know how you got to this error, aside from missing ldconfig or some issue with
update-rc.d.
On Thu Mar 27, 2025 at 10:22 AM CDT, Alex Kiernan via lists.yoctoproject.org wrote:
> The postinstall script in ti-sgx-ddk-um failed - look at the
> referenced log file, hopefully you'll get a clue as to what/why.
>
> Assuming its this recipe:
>
> https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb?h=kirkstone
>
> I'd guess its something about the init script setup (update-rc.d adds
> a postinstall scriptlet).
>
> On Thu, Mar 27, 2025 at 2:52 PM Sebastian via lists.yoctoproject.org
> <sebastian.krahl=lacon.de@lists.yoctoproject.org> wrote:
>>
>> Hey there,
>>
>> actually I'm frustrated, I don't know where I'm going wrong.
>>
>> My setup:
>> Build Configuration:
>> BB_VERSION = "2.0.0"
>> BUILD_SYS = "x86_64-linux"
>> NATIVELSBSTRING = "universal"
>> TARGET_SYS = "arm-poky-linux-gnueabi"
>> MACHINE = "beaglebone"
>> DISTRO = "poky"
>> DISTRO_VERSION = "4.0.25"
>> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
>> TARGET_FPU = "hard"
>> meta
>> meta-poky = "kirkstone:b210ed67de098a78a577baf464fae569d020de62"
>> meta-arm-toolchain
>> meta-arm = "kirkstone:936c02ec13661bd86a05f7f90e1b920d5092d670"
>> meta-ti-bsp
>> meta-ti-extras = "kirkstone:98c5c3d732334a26d57cb3534230e858d96db0c6"
>> meta-oe = "kirkstone:7e18b3fc774b7efabf9a20ae3cd6abd0e0715b59"
>>
>> I want to build the core-image-sato but it fails with:
>> ERROR: core-image-sato-1.0-r0 do_rootfs: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed. If the intention is to defer them to first boot,
>> then please place them into pkg_postinst_ontarget:${PN} ().
>> Deferring to first boot via 'exit 1' is no longer supported.
>> Details of the failure are in /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.
>> ERROR: Logfile of failure stored in: /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.23534
>> ERROR: Task (/home/lacon/yocto/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
>>
>> Can anyone help to progress further?
>>
>> Regards,
>>
>> Sebastian
>>
>>
>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-03-27 20:43 ` Randolph Sapp
@ 2025-03-27 22:00 ` Randolph Sapp
2025-03-31 8:37 ` Sebastian
0 siblings, 1 reply; 10+ messages in thread
From: Randolph Sapp @ 2025-03-27 22:00 UTC (permalink / raw)
To: Randolph Sapp, alex.kiernan, sebastian.krahl; +Cc: meta-ti
Ah, it's a combination of udev and sysvinit parameters. Those two should
actually clash in the recipe, as they clash in the repo Makefile.
Udev, if available should be preferred, falling back to systemd or sysvinit if
we do not have a udev provider. The following patch should resolve that:
diff --git a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb
index 98bdec08..849308d9 100644
--- a/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb
+++ b/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb
@@ -17,14 +17,22 @@ SRCREV = "84a396a4fb379f10931421e489ac8a199d6a9f2c"
INITSCRIPT_NAME = "rc.pvr"
INITSCRIPT_PARAMS = "defaults 8"
+SYSTEMD_SERVICE:${PN} = "pvrsrvctl.service"
PACKAGECONFIG ??= "udev"
-PACKAGECONFIG[udev] = "UDEV=true,,,udev"
-
-def use_sysvinit(d):
- return d.getVar('VIRTUAL-RUNTIME_init_manager') == 'sysvinit'
-
-inherit ${@oe.utils.ifelse(use_sysvinit(d), 'update-rc.d', '')}
+PACKAGECONFIG[udev] = "UDEV=true,UDEV=false,,udev,,sysvinit systemd"
+PACKAGECONFIG[sysvinit] = ",,,,,udev systemd"
+PACKAGECONFIG[systemd] = "SYSTEMD=true,SYSTEMD=false,,,,udev sysvinit"
+
+def pick_init(d):
+ packageconfig = d.getVar('PACKAGECONFIG').split()
+ if 'udev' not in packageconfig:
+ if d.getVar('VIRTUAL-RUNTIME_init_manager') == 'sysvinit':
+ return "update-rc.d"
+ return "systemd"
+ return ""
+
+inherit ${@pick_init(d)}
TARGET_PRODUCT:ti33x = "ti335x_linux"
TARGET_PRODUCT:ti43x = "ti437x_linux"
On Thu Mar 27, 2025 at 3:43 PM CDT, Randolph Sapp wrote:
> That recipe postinst script should consist of only the following under a systemd
> machine:
>
> #!/bin/sh
> set -e
> if [ x"$D" = "x" ]; then
> if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
> fi
>
> Under sysvinit it should be:
>
> #!/bin/sh
> set -e
> if true && type update-rc.d >/dev/null 2>/dev/null; then
> if [ -n "$D" ]; then
> OPT="-r $D"
> else
> OPT="-s"
> fi
> update-rc.d $OPT rc.pvr defaults 8
> fi
> if [ x"$D" = "x" ]; then
> if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi
> fi
>
> "Deferring to first boot via 'exit 1'" should not be what's occuring here. I'm
> setting up a little test to verify with MACHINE=am335x-evm, but I don't really
> know how you got to this error, aside from missing ldconfig or some issue with
> update-rc.d.
>
> On Thu Mar 27, 2025 at 10:22 AM CDT, Alex Kiernan via lists.yoctoproject.org wrote:
>> The postinstall script in ti-sgx-ddk-um failed - look at the
>> referenced log file, hopefully you'll get a clue as to what/why.
>>
>> Assuming its this recipe:
>>
>> https://git.yoctoproject.org/meta-ti/tree/meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb?h=kirkstone
>>
>> I'd guess its something about the init script setup (update-rc.d adds
>> a postinstall scriptlet).
>>
>> On Thu, Mar 27, 2025 at 2:52 PM Sebastian via lists.yoctoproject.org
>> <sebastian.krahl=lacon.de@lists.yoctoproject.org> wrote:
>>>
>>> Hey there,
>>>
>>> actually I'm frustrated, I don't know where I'm going wrong.
>>>
>>> My setup:
>>> Build Configuration:
>>> BB_VERSION = "2.0.0"
>>> BUILD_SYS = "x86_64-linux"
>>> NATIVELSBSTRING = "universal"
>>> TARGET_SYS = "arm-poky-linux-gnueabi"
>>> MACHINE = "beaglebone"
>>> DISTRO = "poky"
>>> DISTRO_VERSION = "4.0.25"
>>> TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
>>> TARGET_FPU = "hard"
>>> meta
>>> meta-poky = "kirkstone:b210ed67de098a78a577baf464fae569d020de62"
>>> meta-arm-toolchain
>>> meta-arm = "kirkstone:936c02ec13661bd86a05f7f90e1b920d5092d670"
>>> meta-ti-bsp
>>> meta-ti-extras = "kirkstone:98c5c3d732334a26d57cb3534230e858d96db0c6"
>>> meta-oe = "kirkstone:7e18b3fc774b7efabf9a20ae3cd6abd0e0715b59"
>>>
>>> I want to build the core-image-sato but it fails with:
>>> ERROR: core-image-sato-1.0-r0 do_rootfs: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed. If the intention is to defer them to first boot,
>>> then please place them into pkg_postinst_ontarget:${PN} ().
>>> Deferring to first boot via 'exit 1' is no longer supported.
>>> Details of the failure are in /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.
>>> ERROR: Logfile of failure stored in: /home/lacon/yocto/build/tmp/work/beaglebone-poky-linux-gnueabi/core-image-sato/1.0-r0/temp/log.do_rootfs.23534
>>> ERROR: Task (/home/lacon/yocto/poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1'
>>>
>>> Can anyone help to progress further?
>>>
>>> Regards,
>>>
>>> Sebastian
>>>
>>>
>>>
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-03-27 22:00 ` Randolph Sapp
@ 2025-03-31 8:37 ` Sebastian
2025-04-01 9:36 ` Sebastian
0 siblings, 1 reply; 10+ messages in thread
From: Sebastian @ 2025-03-31 8:37 UTC (permalink / raw)
To: meta-ti
Hi there,
may I assist in the process? I've pulled everything this morning and it has stopped at the same place.
Should I insert the missing startup script by a recipe / patch on the target or will there be a official fix soon? Or is it my mistake?
Regards,
Sebastian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-03-31 8:37 ` Sebastian
@ 2025-04-01 9:36 ` Sebastian
2025-04-01 17:57 ` [meta-ti] " Randolph Sapp
0 siblings, 1 reply; 10+ messages in thread
From: Sebastian @ 2025-04-01 9:36 UTC (permalink / raw)
To: meta-ti
I've applied the patch and it builds without any additional error.
Thanks for that.
But how to proceed? I'm not happy with the modification of an included layer...
Regards,
Sebastian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-04-01 9:36 ` Sebastian
@ 2025-04-01 17:57 ` Randolph Sapp
2025-04-01 18:10 ` Jon Cormier
0 siblings, 1 reply; 10+ messages in thread
From: Randolph Sapp @ 2025-04-01 17:57 UTC (permalink / raw)
To: sebastian.krahl, meta-ti
On Tue Apr 1, 2025 at 4:36 AM CDT, Sebastian via lists.yoctoproject.org wrote:
> I've applied the patch and it builds without any additional error.
>
> Thanks for that.
>
> But how to proceed? I'm not happy with the modification of an included layer...
>
> Regards,
>
> Sebastian
It's being picked up in newer branches. Unfortunately you'll have to wait for a
newer release as we typically don't backport patches.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-04-01 17:57 ` [meta-ti] " Randolph Sapp
@ 2025-04-01 18:10 ` Jon Cormier
2025-04-02 5:25 ` Sebastian
0 siblings, 1 reply; 10+ messages in thread
From: Jon Cormier @ 2025-04-01 18:10 UTC (permalink / raw)
To: rs; +Cc: sebastian.krahl, meta-ti
On Tue, Apr 1, 2025 at 1:57 PM Randolph Sapp via
lists.yoctoproject.org <rs=ti.com@lists.yoctoproject.org> wrote:
>
> On Tue Apr 1, 2025 at 4:36 AM CDT, Sebastian via lists.yoctoproject.org wrote:
> > I've applied the patch and it builds without any additional error.
> >
> > Thanks for that.
> >
> > But how to proceed? I'm not happy with the modification of an included layer...
If IT isn't going to update their meta-layer, if you have your own
layer, you can provide a duplicate recipe
ti-sgx-ddk-um_1.17.4948957.bb, and your patched version will be used
as long as your layer is a higher priority.
> >
> > Regards,
> >
> > Sebastian
>
> It's being picked up in newer branches. Unfortunately you'll have to wait for a
> newer release as we typically don't backport patches.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#18443): https://lists.yoctoproject.org/g/meta-ti/message/18443
> Mute This Topic: https://lists.yoctoproject.org/mt/111937570/7902621
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [jcormier@criticallink.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Jonathan Cormier
Senior Software Engineer
Voice: 315.425.4045 x222
http://www.CriticalLink.com
6712 Brooklawn Parkway, Syracuse, NY 13211
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-04-01 18:10 ` Jon Cormier
@ 2025-04-02 5:25 ` Sebastian
2025-04-02 12:47 ` [meta-ti] " Ryan Eatmon
0 siblings, 1 reply; 10+ messages in thread
From: Sebastian @ 2025-04-02 5:25 UTC (permalink / raw)
To: meta-ti
Thanks for the hint. I'll override it.
Regards,
Sebastian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [meta-ti] Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed.
2025-04-02 5:25 ` Sebastian
@ 2025-04-02 12:47 ` Ryan Eatmon
0 siblings, 0 replies; 10+ messages in thread
From: Ryan Eatmon @ 2025-04-02 12:47 UTC (permalink / raw)
To: sebastian.krahl, meta-ti
I have released the patch to kirkstone. The other branches will wait
for the CICD process to promote them.
On 4/2/2025 12:25 AM, Sebastian via lists.yoctoproject.org wrote:
> Thanks for the hint. I'll override it.
>
> Regards,
>
> Sebastian
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#18445): https://lists.yoctoproject.org/g/meta-ti/message/18445
> Mute This Topic: https://lists.yoctoproject.org/mt/111937570/6551054
> Group Owner: meta-ti+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [reatmon@ti.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Ryan Eatmon reatmon@ti.com
-----------------------------------------
Texas Instruments, Inc. - LCPD - MGTS
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-04-02 12:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 14:52 Postinstall scriptlets of ['ti-sgx-ddk-um'] have failed Sebastian
2025-03-27 15:22 ` [meta-ti] " Alex Kiernan
2025-03-27 20:43 ` Randolph Sapp
2025-03-27 22:00 ` Randolph Sapp
2025-03-31 8:37 ` Sebastian
2025-04-01 9:36 ` Sebastian
2025-04-01 17:57 ` [meta-ti] " Randolph Sapp
2025-04-01 18:10 ` Jon Cormier
2025-04-02 5:25 ` Sebastian
2025-04-02 12:47 ` [meta-ti] " Ryan Eatmon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.