#yocto #kernel #zeus #yocto #kernel #zeus


Monsees, Steven C (US)
 

 

I seem to have an issue initializing busybox.

I have attached my error log… but basically busybox fails to compile when I set

 

CONFIG_FEATURE_MOUNT_NFS=y

 

If I modify my_cfg.cfg and remove the above parameter it compiles clean ,

(I.E. “# CONFIG_FEATURE_MOUNT_NFS is not set”).

 

I am assuming my bbappend file is at fault, but do not see it. This setup works correctly under “rocko”, and if I disable “CONFIG_FEATURE_MOUNT_NFS” all appears correct…

 

Can someone tell me what is going on and how to correct ?

 

Thanks,

Steve

 

This is my append file:

 

busybox_%.bbappend:

 

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

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

 

SRC_URI_append += " \

                file://inetd.conf \

                file:// my_cfg.cfg \

                file://ftp.cfg \

                file://ftpd.cfg \

                file://hexdump.cfg \

                file://httpd.cfg \

                file://inetd.cfg \

                file://nc.cfg \

                file://telnetd.cfg \

                file://tftpd.cfg \

                file://coreutils.cfg \

                "

 

PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"

 

INITSCRIPT_PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"

 

FILES_${PN}-inetd = "${sysconfdir}/init.d/busybox-inetd ${sysconfdir}/inetd.conf"

INITSCRIPT_NAME_${PN}-inetd = "inetd.busybox"

INITSCRIPT_PARAMS_${PN}-inetd = "start 65 S ."

CONFFILES_${PN}-inetd = "${sysconfdir}/inetd.conf"

 

RRECOMMENDS_${PN} =+ "${@bb.utils.contains('DISTRO_FEATURES', 'busybox-inetd', '${PN}-inetd', '', d)}"

 

def plnx_enable_busybox_package(f, d):

    distro_features = (d.getVar('DISTRO_FEATURES', True) or "").split()

    if "busybox-" + f in distro_features:

        return "${PN}-" + f

    else:

        return ""

 

This is my platform specific config file:

 

my_cfg.cfg:

 

CONFIG_EXTRA_COMPAT=y

CONFIG_INCLUDE_SUSv2=y

CONFIG_FEATURE_VERBOSE_USAGE=y

CONFIG_UNICODE_SUPPORT=y

CONFIG_NICE=y

CONFIG_SHA512SUM=y

CONFIG_MKFS_VFAT=y

CONFIG_FEATURE_TOP_SMP_CPU=y

CONFIG_FEATURE_TOP_DECIMALS=y

CONFIG_FEATURE_TOP_SMP_PROCESS=y

CONFIG_FEATURE_TOPMEM=y

CONFIG_FEATURE_MOUNT_VERBOSE=y

CONFIG_FEATURE_MOUNT_HELPERS=y

CONFIG_FEATURE_MOUNT_NFS=y <<<- if disabled, compiles clean

CONFIG_FEATURE_MOUNT_CIFS=y

CONFIG_WATCHDOG=y

CONFIG_DEVMEM=y

CONFIG_LSPCI=y

# CONFIG_GZIP is not set

# CONFIG_GUNZIP is not set

# CONFIG_UNZIP is not set

 

 


Nicolas Jeker
 

On Fri, 2020-12-04 at 12:17 +0000, Monsees, Steven C (US) via
lists.yoctoproject.org wrote:
 
I seem to have an issue initializing busybox.
I have attached my error log… but basically busybox fails to compile
when I set
 
CONFIG_FEATURE_MOUNT_NFS=y
 
The log indicates that it is missing a dependency which ships
"rpc/rpc.h". Some googling turned up this discussion on the
openembedded-core mailing list:

https://lists.openembedded.org/g/openembedded-core/topic/72355602#111216

There is a final patch in the last mail of the topic, but it seems that
this config option is anyway only required for Linux < 2.6.23.

If I modify my_cfg.cfg and remove the above parameter it compiles
clean ,
(I.E. “# CONFIG_FEATURE_MOUNT_NFS is not set”).
 
I am assuming my bbappend file is at fault, but do not see it. This
setup works correctly under “rocko”, and if I disable
“CONFIG_FEATURE_MOUNT_NFS” all appears correct…
 
Can someone tell me what is going on and how to correct ?
 
Thanks,
Steve
 
This is my append file:
 
busybox_%.bbappend:
 
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
FILESEXTRAPATHS_prepend := "${THISDIR}/busybox:"
 
SRC_URI_append += " \
                file://inetd.conf \
                file:// my_cfg.cfg \
                file://ftp.cfg \
                file://ftpd.cfg \
                file://hexdump.cfg \
                file://httpd.cfg \
                file://inetd.cfg \
                file://nc.cfg \
                file://telnetd.cfg \
                file://tftpd.cfg \
                file://coreutils.cfg \
                "
 
PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"
 
INITSCRIPT_PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"
 
FILES_${PN}-inetd = "${sysconfdir}/init.d/busybox-inetd
${sysconfdir}/inetd.conf"
INITSCRIPT_NAME_${PN}-inetd = "inetd.busybox"
INITSCRIPT_PARAMS_${PN}-inetd = "start 65 S ."
CONFFILES_${PN}-inetd = "${sysconfdir}/inetd.conf"
 
RRECOMMENDS_${PN} =+ "${@bb.utils.contains('DISTRO_FEATURES',
'busybox-inetd', '${PN}-inetd', '', d)}"
 
def plnx_enable_busybox_package(f, d):
    distro_features = (d.getVar('DISTRO_FEATURES', True) or
"").split()
    if "busybox-" + f in distro_features:
        return "${PN}-" + f
    else:
        return ""
 
This is my platform specific config file:
 
my_cfg.cfg:
 
CONFIG_EXTRA_COMPAT=y
CONFIG_INCLUDE_SUSv2=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_UNICODE_SUPPORT=y
CONFIG_NICE=y
CONFIG_SHA512SUM=y
CONFIG_MKFS_VFAT=y
CONFIG_FEATURE_TOP_SMP_CPU=y
CONFIG_FEATURE_TOP_DECIMALS=y
CONFIG_FEATURE_TOP_SMP_PROCESS=y
CONFIG_FEATURE_TOPMEM=y
CONFIG_FEATURE_MOUNT_VERBOSE=y
CONFIG_FEATURE_MOUNT_HELPERS=y
CONFIG_FEATURE_MOUNT_NFS=y <<<- if disabled, compiles clean
CONFIG_FEATURE_MOUNT_CIFS=y
CONFIG_WATCHDOG=y
CONFIG_DEVMEM=y
CONFIG_LSPCI=y
# CONFIG_GZIP is not set
# CONFIG_GUNZIP is not set
# CONFIG_UNZIP is not set


Monsees, Steven C (US)
 

Thank you, I was able to test build with patch and it does indeed fix my build.

Steve

-----Original Message-----
From: Nicolas Jeker [mailto:n.jeker@delisys.ch]
Sent: Friday, December 04, 2020 7:33 AM
To: Monsees, Steven C (US) <steven.monsees@baesystems.com>; yocto@lists.yoctoproject.org
Subject: Re: [yocto] #yocto #kernel #zeus

*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.


On Fri, 2020-12-04 at 12:17 +0000, Monsees, Steven C (US) via lists.yoctoproject.org wrote:
 
I seem to have an issue initializing busybox.
I have attached my error log… but basically busybox fails to compile
when I set
 
CONFIG_FEATURE_MOUNT_NFS=y
 
The log indicates that it is missing a dependency which ships "rpc/rpc.h". Some googling turned up this discussion on the openembedded-core mailing list:

https://lists.openembedded.org/g/openembedded-core/topic/72355602#111216

There is a final patch in the last mail of the topic, but it seems that this config option is anyway only required for Linux < 2.6.23.

If I modify my_cfg.cfg and remove the above parameter it compiles
clean , (I.E. “# CONFIG_FEATURE_MOUNT_NFS is not set”).
 
I am assuming my bbappend file is at fault, but do not see it. This
setup works correctly under “rocko”, and if I disable
“CONFIG_FEATURE_MOUNT_NFS” all appears correct…
 
Can someone tell me what is going on and how to correct ?
 
Thanks,
Steve
 
This is my append file:
 
busybox_%.bbappend:
 
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
FILESEXTRAPATHS_prepend := "${THISDIR}/busybox:"
 
SRC_URI_append += " \
                file://inetd.conf \
                file:// my_cfg.cfg \
                file://ftp.cfg \
                file://ftpd.cfg \
                file://hexdump.cfg \
                file://httpd.cfg \
                file://inetd.cfg \
                file://nc.cfg \
                file://telnetd.cfg \
                file://tftpd.cfg \
                file://coreutils.cfg \
                "
 
PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"
 
INITSCRIPT_PACKAGES =+ "${@plnx_enable_busybox_package('inetd', d)}"
 
FILES_${PN}-inetd = "${sysconfdir}/init.d/busybox-inetd
${sysconfdir}/inetd.conf"
INITSCRIPT_NAME_${PN}-inetd = "inetd.busybox"
INITSCRIPT_PARAMS_${PN}-inetd = "start 65 S ."
CONFFILES_${PN}-inetd = "${sysconfdir}/inetd.conf"
 
RRECOMMENDS_${PN} =+ "${@bb.utils.contains('DISTRO_FEATURES',
'busybox-inetd', '${PN}-inetd', '', d)}"
 
def plnx_enable_busybox_package(f, d):
    distro_features = (d.getVar('DISTRO_FEATURES', True) or
"").split()
    if "busybox-" + f in distro_features:
        return "${PN}-" + f
    else:
        return ""
 
This is my platform specific config file:
 
my_cfg.cfg:
 
CONFIG_EXTRA_COMPAT=y
CONFIG_INCLUDE_SUSv2=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_UNICODE_SUPPORT=y
CONFIG_NICE=y
CONFIG_SHA512SUM=y
CONFIG_MKFS_VFAT=y
CONFIG_FEATURE_TOP_SMP_CPU=y
CONFIG_FEATURE_TOP_DECIMALS=y
CONFIG_FEATURE_TOP_SMP_PROCESS=y
CONFIG_FEATURE_TOPMEM=y
CONFIG_FEATURE_MOUNT_VERBOSE=y
CONFIG_FEATURE_MOUNT_HELPERS=y
CONFIG_FEATURE_MOUNT_NFS=y <<<- if disabled, compiles clean
CONFIG_FEATURE_MOUNT_CIFS=y CONFIG_WATCHDOG=y CONFIG_DEVMEM=y
CONFIG_LSPCI=y # CONFIG_GZIP is not set # CONFIG_GUNZIP is not set #
CONFIG_UNZIP is not set