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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
1,135 Views
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 Kudos
1 Solution
1,126 Views
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

View solution in original post

0 Kudos
3 Replies
1,127 Views
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 Kudos
1,113 Views
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 Kudos
1,122 Views
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 Kudos