How to use menuconfig on console-trdx-image?

Hi together,
I want to speed up the boot time from our Apalis imx6. I had creating with “bitbake console-trdx-image” the files. But if I try “bitbake console-trdx-image -c menuconfig” then I get the Error below:

ERROR: Task do_menuconfig does not exist for target console-trdx-image. Close matches:
do_configure

How I have to use menuconfig and where I have find files with the configurations from menuconfig?

Thanks

Alex

do_menuconfig is a task specific to kernel recipes.
So you have to “bitbake virtual/kernel -c menuconfig” followed by “bitbake console-trdx-image”.

IMHO doing kernel development is better done outside of OE. You are less likely to lose your changes, get faster test cycles and have a clearer view on what you actually do and test. Only after you are happy with your results you would integrate your changes with the kernel recipes and build your images with your own kernel.
Have a look here on how to get, configure, compile and deploy a kernel from source.

This blog talks among other things on how to integrate kernel changes in an OE build.

This blog gives some hints on boot time optimization.

Thanks for your response @max.krummenacher

I have follow your guide to boot time optimization but now display a error

root@apalis-imx6:~# systemctl status systemd-modules-load.service
 systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:02 UTC; 45 years 10 months ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 117 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
 Main PID: 117 (code=exited, status=1/FAILURE)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

I want to deactivate the init below, but have no idea. Do you have hints for me ?

[6.011526 0.019287] [  OK  ] Reached target Login Prompts.
[6.036299 0.024773] [  OK  ] Started LXDE Display Manager.
[6.042357 0.006058]          Starting LXDE Display Manager...
[6.094269 0.022777] [  OK  ] Reached target Multi-User System.
[6.111731 0.017462] [  OK  ] Reached target Graphical Interface.

** Here is my current complete boot up, have you more hints to reduce boot time?
http://pastebin.com/M9eGid8L **

@saschhaa, you should create a new question if it is not directly related to the original question.

The first error is related to module loading: The kernel modules location on the root file system do not match the version specifier of the kernel. You have several option to resolve that issue:

  1. The modules the service tries to load are related to USB device. If you don’t need USB device mode, you can remove the configuration file which loads the modules: rm /etc/modules-load.d/libcomposite.conf
  2. As a work around you can move the provided modules to the expected location: mv /lib/modules/3.14.28-V2.5b3+g0632def/ /lib/modules/<output of command uname -r>/
  3. To build a final image you should reintegrate the kernel changes (defconfig) to the OE build. If you rebuild the image using OE, it will make sure that the modules match your kernel.

What service do you wan’t to deactivate exactly? I guess the LXDE? On a systemd based system you can change the default.target to not boot into a graphical user interface but in a shell only target using this command:

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

I wants integrate the defconfig into the oe.

I tried to replace the ~/oe-core/stuff/meta-toradex/recipes-kernel/linux/linux-toradex-4.1/defconfig but this has no effects for my build.
It build with bitbake -f console-trdx-image correct?

Thanks for your help

I think finding the correct file, its this /oe-core/stuff/meta-toradex/recipes-kernel/linux/linux-toradex-fsl_git.bb ?

config_script () {
#    #example change to the .config
#    #sets CONFIG_TEGRA_CAMERA unconditionally to 'y'
#    sed -i -e /CONFIG_TEGRA_CAMERA/d ${B}/.config
#    echo "CONFIG_TEGRA_CAMERA=y" >> ${B}/.config
    echo "dummy" > /dev/null
}

My next issue, have you already recipes for nginx and mysql webserver?

Thanks a lot for the whole help!

Would you please open up a new question for each actual new questions?

Concerning nginx there is a recipe available in the meta-webserver layer.

As for mysql I believe OE since switched to using mariadb as can be seen from their git log.

BTW: mysql is not a webserver but rather a database server.