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?
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.
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? Apalis_imx6 - Pastebin.com **
@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:
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
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>/
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:
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?