Headless IMX93 build and post #yocto
[email protected] Fri, 20 Jun 2025 03:13:39 -0700
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <[email protected]> |
--Yk0eR98FGMRad0QhiNlC
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
I'm building a device with an IMX93. It is mainly a webserver device so onl=
y needs networking, serial port, CAN and I2C. It does not have any video di=
splay, sound card or bluetooth.
I therefore updated by defconfig by removing everything that seemed redunda=
nt (video drivers, sound cards etc).
But now, my build fails during the do_rootfs stage:
NOTE: Running /home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-linux=
/fsl-image-network-full-cmdline/1.0/recipe-sysroot-native/usr/bin/rpm -e -v=
--nodeps --root=3D/home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-=
linux/fsl-image-network-full-cmdline/1.0/rootfs glibc-binary-localedata-c g=
libc-binary-localedata-en-gb glibc-binary-localedata-en-us
NOTE: Preparing packages...
glibc-binary-localedata-en-us-2.39+git-r0.armv8a
glibc-binary-localedata-en-gb-2.39+git-r0.armv8a
glibc-binary-localedata-c-2.39+git-r0.armv8a
NOTE: Running intercept scripts:
NOTE: > Executing update_desktop_database intercept ...
NOTE: Exit code 127. Output:
/home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-linux/fsl-image-net=
work-full-cmdline/1.0/intercept_scripts-4dab61769040ee43f376a256632b52bcba6=
183b8b671caedd9a9abacb1a05c53/update_desktop_database: 7: update-desktop-da=
tabase: not found
ERROR: The postinstall intercept hook 'update_desktop_database' failed, det=
ails in /home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-linux/fsl-i=
mage-network-full-cmdline/1.0/temp/log.do_rootfs
DEBUG: Python function do_rootfs finished
It's not obvious (what is in Yocto) why this now fails. Copilot suggested w=
riting a recipe that writes a dummy *update-desktop-database* (not to be co=
nfused with *update_desktop_database* ). But it seems not to work.
Any ideas? This seems like more of a hack than dealing with the root of the=
issue. Before I removed the items from defconfig I never saw this error be=
fore. But I do want to remove unneeded items to reduce the size of the kern=
el and the bootup time.
FILESEXTRAPATHS : prepend :=3D " ${ THISDIR } /files:"
SRC_URI : remove =3D "file://update-desktop-database"
SRC_URI +=3D "file://update-desktop-database"
do_install : append () {
install -m 0755 ${ WORKDIR } /update-desktop-database ${ D }${ bindir } /up=
date-desktop-database
}
--Yk0eR98FGMRad0QhiNlC
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<div>I'm building a device with an IMX93. It is mainly a webserver device s=
o only needs networking, serial port, CAN and I2C. It does not have any vid=
eo display, sound card or bluetooth.</div>
<div>I therefore updated by defconfig by removing everything that seemed re=
dundant (video drivers, sound cards etc).</div>
<div> </div>
<div>But now, my build fails during the do_rootfs stage:</div>
<div> </div>
<div>
<div>NOTE: Running /home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-=
linux/fsl-image-network-full-cmdline/1.0/recipe-sysroot-native/usr/bin/rpm =
-e -v --nodeps --root=3D/home/user/imx-yocto-bsp/my-device/tmp/work/device-=
poky-linux/fsl-image-network-full-cmdline/1.0/rootfs glibc-binary-localedat=
a-c glibc-binary-localedata-en-gb glibc-binary-localedata-en-us<br />NOTE: =
Preparing packages...<br />glibc-binary-localedata-en-us-2.39+git-r0.armv8a=
<br />glibc-binary-localedata-en-gb-2.39+git-r0.armv8a<br />glibc-binary-lo=
caledata-c-2.39+git-r0.armv8a</div>
<div>NOTE: Running intercept scripts:<br />NOTE: > Executing update_desk=
top_database intercept ...<br />NOTE: Exit code 127. Output:<br />/home/use=
r/imx-yocto-bsp/my-device/tmp/work/device-poky-linux/fsl-image-network-full=
-cmdline/1.0/intercept_scripts-4dab61769040ee43f376a256632b52bcba6183b8b671=
caedd9a9abacb1a05c53/update_desktop_database: 7: update-desktop-database: n=
ot found</div>
<div>ERROR: The postinstall intercept hook 'update_desktop_database' failed=
, details in /home/user/imx-yocto-bsp/my-device/tmp/work/device-poky-linux/=
fsl-image-network-full-cmdline/1.0/temp/log.do_rootfs<br />DEBUG: Python fu=
nction do_rootfs finished</div>
<div> </div>
<div>It's not obvious (what is in Yocto) why this now fails. Copilot sugges=
ted writing a recipe that writes a dummy <strong>update-desktop-database </=
strong>(not to be confused with <strong>update_desktop_database</strong>). =
But it seems not to work.</div>
<div> </div>
<div>Any ideas? This seems like more of a hack than dealing with the root o=
f the issue. Before I removed the items from defconfig I never saw this err=
or before. But I do want to remove unneeded items to reduce the size of the=
kernel and the bootup time.</div>
<div> </div>
<div>
<div style=3D"color: #f8f8f2; background-color: #272822; font-family: Conso=
las, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-h=
eight: 19px; white-space: pre;">
<div><span style=3D"color: #f8f8f2;">FILESEXTRAPATHS</span><span style=3D"c=
olor: #f8f8f2;">:</span><span style=3D"color: #f92672;">prepend</span><span=
style=3D"color: #f8f8f2;"> </span><span style=3D"color: #f92672;">:=3D</sp=
an><span style=3D"color: #f8f8f2;"> </span><span style=3D"color: #e6db74;">=
"</span><span style=3D"color: #f92672;">${</span><span style=3D"color: #f8f=
8f2;">THISDIR</span><span style=3D"color: #f92672;">}</span><span style=3D"=
color: #e6db74;">/files:"</span></div>
<div><span style=3D"color: #f8f8f2;">SRC_URI</span><span style=3D"color: #f=
8f8f2;">:</span><span style=3D"color: #f92672;">remove</span><span style=3D=
"color: #f8f8f2;"> </span><span style=3D"color: #f92672;">=3D</span><span s=
tyle=3D"color: #f8f8f2;"> </span><span style=3D"color: #e6db74;">"file://up=
date-desktop-database"</span></div>
<div><span style=3D"color: #f8f8f2;">SRC_URI</span><span style=3D"color: #f=
8f8f2;"> </span><span style=3D"color: #f92672;">+=3D</span><span style=3D"c=
olor: #f8f8f2;"> </span><span style=3D"color: #e6db74;">"file://update-desk=
top-database"</span></div>
<div> </div>
<div><span style=3D"color: #a6e22e;">do_install</span><span style=3D"color:=
#f92672;">:</span><span style=3D"color: #f92672;">append</span><span style=
=3D"color: #f8f8f2;">() {</span></div>
<div><span style=3D"color: #f8f8f2;"> </span><span style=3D"co=
lor: #a6e22e;">install</span><span style=3D"color: #f8f8f2;"> -m </span><sp=
an style=3D"color: #ae81ff;">0755</span><span style=3D"color: #f8f8f2;"> </=
span><span style=3D"color: #f92672;">${</span><span style=3D"color: #f8f8f2=
;">WORKDIR</span><span style=3D"color: #f92672;">}</span><span style=3D"col=
or: #f8f8f2;">/update-desktop-database </span><span style=3D"color: #f92672=
;">${</span><span style=3D"color: #f8f8f2;">D</span><span style=3D"color: #=
f92672;">}${</span><span style=3D"color: #f8f8f2;">bindir</span><span style=
=3D"color: #f92672;">}</span><span style=3D"color: #f8f8f2;">/update-deskto=
p-database</span></div>
<div><span style=3D"color: #f8f8f2;">}</span></div>
<div> </div>
<div> </div>
<div><hr /></div>
</div>
</div>
</div>
--Yk0eR98FGMRad0QhiNlC--