Preinstall proprietary software in full image. #297
Replies: 2 comments 5 replies
-
Right now I am facing issue on pre-dependency errors are ERROR: pelora-1.0.0-r0 do_install: ExecutionError('/home/deepak/fiverr/client2/tegra-demo-distro/build_tegra_demo/tmp/work/jetson_orin_nano_devkit-oe4t-linux/pelora/1.0.0-r0/temp/run.do_install.8098', 1, None, None) Summary: 1 task failed: |
Beta Was this translation helpful? Give feedback.
-
Is my recipe correct to install the software in rootfs ? |
Beta Was this translation helpful? Give feedback.
-
Hlo,
I have a proprietary software, it should be installed in the full image .
Same as like calculator, web browser applications which comes preinstalled in the image .
I want my software(ebus.deb) to be preinstalled in the full image.
I have created an meta layer , inside the meta layer I have created a receipe. Inside the receipe I have written my bb file.
I am facing issue in do_install.
I need help to install this deb file .
here is the bb file
######################BB file start##############################################
#Recipe for eBUS Runtime Jetson
DESCRIPTION = "Installs eBUS Runtime for Jetson"
LICENSE = "CLOSED"
DEPENDS += "dpkg-native"
TASK_PACKAGE = "package"
SRC_URI = "file://eBUS_Runtime_Jetson_5.1_linux-aarch64-arm-6.4.0-6670.deb"
SSTATE_CACHE = "${SSTATE_DIR}/eBUS_runtime"
inherit package
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}"
FILES_${PN} = "${bindir}/*"
INSANE_SKIP_${PN} = "ldflags"
do_install () {
dpkg -i "${WORKDIR}/eBUS_Runtime_Jetson_5.1_linux-aarch64-arm-6.4.0-6670.deb"
#Optional: Uncomment and adjust these lines if the DEB installs files elsewhere
install -d ${D}${DESTDIR}/opt/ebus
mv ${D}${WORKDIR}/usr/local/sbin ${D}${DESTDIR}/opt/ebus
}
#Post-installation tasks (optional)
pkg_postinst_ontarget:${PN} () {
#Example: Create a directory and set permissions (adjust paths/permissions)
install -d /var/log/ebus
chmod 0644 /opt/ebus/config.ini
#Example: Run a post-installation script from your DEB (adjust path)
if [ -x /opt/ebus/postinst ]; then
/opt/ebus/postinst
fi
}
############################BB file end####################################
ERROR is
ERROR: pelora-1.0.0-r0 do_install: ExecutionError('/home/deepak/fiverr/client2/tegra-demo-distro/build_tegra_demo/tmp/work/jetson_orin_nano_devkit-oe4t-linux/pelora/1.0.0-r0/temp/run.do_install.16713', 2, None, None)
ERROR: Logfile of failure stored in: /home/deepak/fiverr/client2/tegra-demo-distro/build_tegra_demo/tmp/work/jetson_orin_nano_devkit-oe4t-linux/pelora/1.0.0-r0/temp/log.do_install.16713
DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| dpkg: warning: 'ldconfig' not found in PATH or not executable
| dpkg: error: 1 expected program not found in PATH or not executable
| Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
| WARNING: exit code 2 from a shell command.
ERROR: Task (/home/deepak/fiverr/client2/tegra-demo-distro/layers/meta-pelora/recipes-pelora/pelora/pelora_1.0.0.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 668 tasks of which 667 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/deepak/fiverr/client2/tegra-demo-distro/layers/meta-pelora/recipes-pelora/pelora/pelora_1.0.0.bb:do_install
Summary: There was 1 ERROR message, returning a non-zero exit code.
Beta Was this translation helpful? Give feedback.
All reactions