iMX Yocto fsl-* distro image: how to get 'debug-tweaks' (and other..) EXTRA_IMAGE_FEATURES ..

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

iMX Yocto fsl-* distro image: how to get 'debug-tweaks' (and other..) EXTRA_IMAGE_FEATURES ..

跳至解决方案
3,305 次查看
dry
Senior Contributor I

I'm building DISTRO=fslc-framebuffer.  It builds, however, I would like to add the extra image features, which are available ( get added as I tested with one) if I build DISTRO=poky.

However, it seems when I build with DISTRO=fscl-framebuffer (one of NXP/FSCL provided Yocto distros), the EXTRA_IMAGE_FEATURES does nothing, the debug tweaks that got included when I built DISTRO=poky  do not get in : for e.g. SSH server is installed into target image with poky, but, I did now 2 builds fscl-framebuffer and tried to add "debug-tweaks" to EXTRA_IMAGE_FEATURES and add it to IMAGE_FEATURES, but with no success.

Here are my local.conf :

MACHINE ??= 'cubox-i'
DISTRO ?= 'fslc-framebuffer'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
IMAGE_FEATURES += "debug-tweaks"
CORE_IMAGE_EXTRA_INSTALL = "python3 python3-pip"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/../downloads/"
ACCEPT_FSL_EULA = "1"
SDKMACHINE ?= "x86_64"
PARALLEL_MAKE ?= "-j 4"
BB_NUMBER_THREADS ?= "2"

CONNECTIVITY_CHECK_URIS = "https://www.google.com"

(The extra python I added does get built & installed, btw..)

and here is bblayers.conf :

LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
  ${BSPDIR}/sources/poky/meta \
  ${BSPDIR}/sources/poky/meta-poky \
  \
  ${BSPDIR}/sources/meta-openembedded/meta-oe \
  ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
  ${BSPDIR}/sources/meta-openembedded/meta-python \
  ${BSPDIR}/sources/meta-openembedded/meta-networking \
  \
  ${BSPDIR}/sources/meta-freescale \
  ${BSPDIR}/sources/meta-freescale-3rdparty \
  ${BSPDIR}/sources/meta-freescale-distro \
"

 

So the image gets built fine, generated with no errors printed as I see, yet there are no 'debug-tweaks' i see installed - e..g no SSH server or client even anywhere...

Any help with it?

 

0 项奖励
回复
1 解答
3,296 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

    It should be like below, try..., please!

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-manager"
IMAGE_INSTALL_append = " nano smartpm openssh-sftp-server "

 Have a nice day!

B.R,

Weidong

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,297 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

    It should be like below, try..., please!

EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh package-manager"
IMAGE_INSTALL_append = " nano smartpm openssh-sftp-server "

 Have a nice day!

B.R,

Weidong

0 项奖励
回复
3,283 次查看
dry
Senior Contributor I

Adding ssh-server-openssh does help, it adds ssh server,  but I'm not sure if debug-tweaks still get installed or have any effect. I do get remote access now so that is good.

Also adding tools-debug to EXTRA_IMAGE_FEATURES seems to work so perhaps it's all good.

Thank you !

 

0 项奖励
回复
3,292 次查看
dry
Senior Contributor I

hello @weidong_sun 

'debug-tweaks' should install ssh server and client and even pre-configure it with no password for root login.

I will try your suggestion adding the extra ssh-server-openssh flag

0 项奖励
回复