Failed during do_rootfs for custom image recepie

Hi Everone,

We are using AM335X board with krikstone yocto framework.
we created our own 2 custom recipie 1st recepie is for compiling our custom application which.
below is the code core-app.bb,

DEPENDS = “log4c openssl sqlite3 curl json-c dhcp lldpd mindconnect bluez5 fwupgrader”
RDEPENDS_${PN} += “bash”
emphasized text
#inherit externalsrc
S = “${OEBASE}/application/”
CRYPTO_PATH=“${OEBASE}/extras/package/”
BUILD_DIR = “${WORKDIR}/core-app”
SEM3_DIR = “${D}${prefix}/sem3”
SEM3_CNFG_DIR = “${SEM3_DIR}/config”
SEM3_BIN_DIR = “${SEM3_DIR}/bin”
SEM3_LIB_DIR = “${SEM3_DIR}/lib”
SEM3_BKUP_DIR = “${SEM3_DIR}/backup/”

INSANE_SKIP_${PN} = “ldflags”
INHIBIT_PACKAGE_DEBUG_SPLIT = “1”
INHIBIT_PACKAGE_STRIP = “1”

do_clean_core_app() {

  • cd ${S}*
  • echo pwd*
  • make clean VERBOSE=1 *
    }
    addtask clean_core_app before do_clean

do_fetch[noexec] = “1”
do_unpack[noexec] = “1”

*do_compile() { *

  •    echo `pwd`*
    
  • make APP=${APL} ARCH=arm SYSROOT=${TMPDIR}/sysroots/${MACHINE} VERBOSE=1 OUTDIR=${BUILD_DIR} ${PARALLEL_MAKE}*
    }

do_install() {

  • install -d ${SEM3_BIN_DIR}*

  • make ARCH=arm install VERBOSE=1 OUTDIR=${BUILD_DIR} INSTALL_PREFIX=${SEM3_DIR}*

  • mkdir -p ${D}${sysconfdir}/lighttpd*

  • cp ${SEM3_CNFG_DIR}/lighttpd.conf ${D}${sysconfdir}/lighttpd*
    }

1 more recipe custom-image.bb as below.
this contains below code,

*DEPENDS = "core-image-minimal *

  •                   core-app \*
    
  •                   lighttpd" *
    

*IMAGE_INSTALL:append = "core-app *

  •                                              lighttpd"*
    

with the above changes if build “bitbake custom-image” i getting below error,

**ERROR: Unable to install packages “core-app lighttpd” **
Downloading file:/home/sem3user/111324/Trial/build/arago-tmp-default-glibc/work/am335x_evm-oe-linux-gnueabi/Custom-image/1.0-r0/oe-rootfs-repo/armv7at2hf-neon/lighttpd-module-accesslog_1.4.67-r0.0_armv7at2hf-neon.ipk.
Installing lighttpd-module-dirlisting (1.4.67) on root… etc.,
NOTE: dbus: Performing useradd with [–root /home/sem3user/111324/Trial/build/arago-tmp-default-glibc/work/am335x_evm-oe-linux-gnueabi/Custom-image/1.0-r0/rootfs --system --home /var/lib/dbus --no-create-home --shell /bin/false --user-group messagebus]
configuration error - unknown item ‘SYSLOG_SU_ENAB’ (notify administrator)
configuration error - unknown item ‘SYSLOG_SG_ENAB’ (notify administrator)
useradd: Warning: missing or non-executable shell ‘/bin/false’
Running useradd commands…
NOTE: ntp: Performing useradd with [–root /home/sem3user/111324/Trial/build/arago-tmp-default-glibc/work/am335x_evm-oe-linux-gnueabi/Custom-image/1.0-r0/rootfs --system --home-dir /var/lib/ntp --no-create-home --shell /bin/false --user-group ntp]
configuration error - unknown item ‘SYSLOG_SU_ENAB’ (notify administrator)
configuration error - unknown item ‘SYSLOG_SG_ENAB’ (notify administrator)
useradd: Warning: missing or non-executable shell ‘/bin/false’

Note: if i remove lighttpd build is fine…
what causes adding lighttpd to get above error?
How to overcome the above errors?

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

It seems you’re encountering some issues when adding the ‘lighttpd’ package to your custom Yocto image for the AM335X board. Let’s address the errors you’re seeing:

  1. SYSLOG Configuration Errors: The errors related to ‘SYSLOG_SU_ENAB’ and ‘SYSLOG_SG_ENAB’ suggest there might be outdated or incompatible entries in your syslog configuration files, typically found in /etc/login.defs. Review these files and consider commenting out or removing these lines if they are not supported by your syslog version.

  2. Shell Warning: The warning about the missing or non-executable shell ‘/bin/false’ indicates that this shell is not available on your target root filesystem. You can resolve this by ensuring ‘/bin/false’ exists and is executable. Add the following to your Yocto recipe to create it if necessary:

    do_install_append() {
        install -d ${D}/bin
        echo '#!/bin/sh
    

exit 1’ > ${D}/bin/false
chmod +x ${D}/bin/false
}


3. **Check Dependencies**: Verify that all dependencies for 'lighttpd' and its modules are correctly specified and available in your build environment. Missing dependencies can sometimes lead to configuration issues.

4. **Review Logs**: Examine the build logs for more detailed information about the errors. These logs can provide additional insights into what might be causing the issues during the installation of 'lighttpd'.

5. **Test in Isolation**: Consider building and installing 'lighttpd' separately from your custom image. This can help determine if the issue is specific to the integration with your custom image or a more general problem with the package itself.

By following these steps, you should be able to identify and resolve the configuration issues you're facing. If you continue to experience problems, reviewing the specific versions and configurations of the packages involved may also help ensure compatibility.

Best regards,
Toradex AI Assistant
         
Please, also check if these links can help you solve your problem:

https://community.toradex.com/t/how-to-configure-php-and-lighttpd-for-use-on-colibri-imx6dl-w-stock-linux-image/5560

https://docs.yoctoproject.org/pipermail/yocto/2018-November/043465.html

https://community.toradex.com/t/yocto-project-build-failure-at-do-rootfs-task/25643.

Hello @Manu,

We do not have a module which uses the AM335X.
This Community is only for Toradex hardware/software/cloud solutions.

If you would like to have access to the support we provide here on Toradex Community, please consider using Toradex hardware/software/Torizon Cloud and we will be able to support you on your project.
Examples with TI processors are currently the Verdin AM62 and the Aquila AM69.

Otherwise, asking the vendor of your board for support or looking into the TI E2E forums may be your best alternatives.

Best Regards,
Bruno