#yocto #kernel #zeus
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=yCONFIG_NICE=yCONFIG_SHA512SUM=yCONFIG_MKFS_VFAT=yCONFIG_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=yCONFIG_WATCHDOG=yCONFIG_DEVMEM=yCONFIG_LSPCI=y
# CONFIG_GZIP is not set
# CONFIG_GUNZIP is not set
# CONFIG_UNZIP is not set
Quoted 7 lines · Steven C (US) via lists.yoctoproject.org
I seem to have an issue initializing busybox.
I have attached my error log… but basically busybox fails to compile when I setCONFIG_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.
Quoted 80 lines
If I modify my_cfg.cfg and remove the above parameter it compiles clean ,
(I.E. “#CONFIG_FEATURE_MOUNT_NFSis 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)}"
defplnx_enable_busybox_package(f, d):
distro_features= (d.getVar('DISTRO_FEATURES', True)or "").split()
if "busybox-" + f indistro_features:
return "${PN}-" + f
else:
return ""
This is my platform specific config file:
my_cfg.cfg:CONFIG_EXTRA_COMPAT=y
CONFIG_INCLUDE_SUSv2=yCONFIG_FEATURE_VERBOSE_USAGE=yCONFIG_UNICODE_SUPPORT=yCONFIG_NICE=yCONFIG_SHA512SUM=yCONFIG_MKFS_VFAT=yCONFIG_FEATURE_TOP_SMP_CPU=yCONFIG_FEATURE_TOP_DECIMALS=yCONFIG_FEATURE_TOP_SMP_PROCESS=yCONFIG_FEATURE_TOPMEM=yCONFIG_FEATURE_MOUNT_VERBOSE=yCONFIG_FEATURE_MOUNT_HELPERS=yCONFIG_FEATURE_MOUNT_NFS=y<<<- if disabled, compiles cleanCONFIG_FEATURE_MOUNT_CIFS=yCONFIG_WATCHDOG=yCONFIG_DEVMEM=yCONFIG_LSPCI=y
#CONFIG_GZIPis not set
#CONFIG_GUNZIPis not set
#CONFIG_UNZIPis not set
Thank you, I was able to test build with patch and it does indeed fix my build.
Steve
-----Original Message-----
From: Nicolas Jeker [mailto:[email protected]]
Sent: Friday, December 04, 2020 7:33 AM
To: Monsees, Steven C (US) <[email protected]>; [email protected]
Subject: Re: [yocto] #yocto #kernel #zeus
*** WARNING ***
EXTERNAL EMAIL -- This message originates from outside our organization.
Quoted 7 lines · Steven C (US) via lists.yoctoproject.org
I seem to have an issue initializing busybox.
I have attached my error log… but basically busybox fails to compile when I setCONFIG_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.
Quoted 75 lines
If I modify my_cfg.cfg and remove the above parameter it compiles clean , (I.E. “#
CONFIG_FEATURE_MOUNT_NFSis 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)}"
defplnx_enable_busybox_package(f, d):
distro_features= (d.getVar('DISTRO_FEATURES', True)or "").split()
if "busybox-" + f indistro_features:
return "${PN}-" + f
else:
return ""
This is my platform specific config file:
my_cfg.cfg:CONFIG_EXTRA_COMPAT=y
CONFIG_INCLUDE_SUSv2=yCONFIG_FEATURE_VERBOSE_USAGE=yCONFIG_UNICODE_SUPPORT=yCONFIG_NICE=yCONFIG_SHA512SUM=yCONFIG_MKFS_VFAT=yCONFIG_FEATURE_TOP_SMP_CPU=yCONFIG_FEATURE_TOP_DECIMALS=yCONFIG_FEATURE_TOP_SMP_PROCESS=yCONFIG_FEATURE_TOPMEM=yCONFIG_FEATURE_MOUNT_VERBOSE=yCONFIG_FEATURE_MOUNT_HELPERS=yCONFIG_FEATURE_MOUNT_NFS=y<<<- if disabled, compiles cleanCONFIG_FEATURE_MOUNT_CIFS=yCONFIG_WATCHDOG=yCONFIG_DEVMEM=yCONFIG_LSPCI=y#CONFIG_GZIPis not set #CONFIG_GUNZIPis not set #CONFIG_UNZIPis not set