linux kernel version

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

linux kernel version

1,889 Views
sergio_dorazio
Contributor IV

Hi,

I have a imx6ull evk board. Few years ago I worked with v4.14 linux kernel version downloaded from NXP site. Now in the NXP site there is v6.1 linux kernel. But today I need to work with v4.19 linux kernel version. What is the repo command to download the 4.19 version ? (for example : "repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-langdale -m imx-6.1.1-1.0.0.xml"  is the command to get v6.1 version ). What is the ubuntu host version to compile this kernel version ?

By, Sergio D'Orazio.

 

0 Kudos
10 Replies

1,867 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio 

Please try to use:

 

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml

 

Best regards.

0 Kudos

1,854 Views
sergio_dorazio
Contributor IV

Hi, thank you for the ansewer,
the link that you send me is correct, but when I run bitbake command I have errors:

Traceback (most recent call last):
File "/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/bin/bitbake", line 21, in <module>
import bb
File "/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/__init__.py", line 71, in <module>
import bb.msg
File "/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/msg.py", line 22, in <module>
import bb.event
File "/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/event.py", line 25, in <module>
import bb.compat
File "/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/compat.py", line 7, in <module>
from collections import MutableMapping, KeysView, ValuesView, ItemsView, OrderedDict
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

My command sequence is:

mkdir imx-yocto-bsp-4.19
cd imx-yocto-bsp-4.19/
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-warrior -m imx-4.19.35-1.1.0.xml
repo sync
DISTRO=fsl-imx-fb MACHINE=imx6ull14x14evk source fsl-setup-release.sh -b Linux-evk
bitbake core-image-minimal

Is it correct ?
if no, can you send me the correct sequence ?

I am using a Pc with UBUNTU 22.04 , is it correct ?

By Sergio.

0 Kudos

1,841 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio 

I tried do the compilation with your steps, there are correct, and I am totally able to compile the image.

The only difference that I have is the Ubuntu version. I am using Ubuntu 20.04.6 LTS.

Also, remember install the necessary host packages:

sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat libsdl1.2-dev 

If you can't install all the packages with that command, try to install individually.

 

Let me know how it was.

Best regards!

0 Kudos

1,818 Views
sergio_dorazio
Contributor IV

I Alejandro,
I have installed the host packets ( only libsdl1.2-dev is been installed, the others packed are already present on host)
but I have the same problem.
In the same host, the last NXP kernel version (v6.1) works well.
What is your suggestion ? I will reinstall an Ubuntu old version for compile kernel v4.19 ?

By Sergio.

0 Kudos

1,788 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio !

Please try to modify the file (yocto-compilation-folder)/sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb 

 

EXTRA_OECMAKE =  "-DPYBIND11_TEST=OFF \
		-DPYTHON_EXECUTABLE=${RECIPE_SYSROOT_NATIVE}/usr/bin/python3-native/python3.7 \
"

 

Let me know if this works for you.

 

Best regards.

0 Kudos

1,770 Views
sergio_dorazio
Contributor IV

hi Alejandro,
sorry for delay but I was busy in other works.
In my PC , the file /sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb not exist.
I found this file /sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pybind11_2.2.3.bb
I have done the modify in this file but the error not change.
Which python3-xxx.bb file is called in my project ?
Have you other suggestion ?

0 Kudos

1,750 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio 

 

Please try to do in a python terminal this command:

>>> from collections import MutableMapping

If you have the error: 

ImportError: cannot import name 'MutableMapping' from 'collections'

Please try to change the name of the package (collections to collections.abc) in the specific file from your log:

ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)

 

example: >>> from collections.abc import MutableMapping 

 

Please try it and let me know.

0 Kudos

1,740 Views
sergio_dorazio
Contributor IV

file (yocto-compilation-folder)/sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF \ -DPYTHON_EXECUTABLE=${RECIPE_SYSROOT_NATIVE}/usr/bin/python3-native/python3.7 \ "


hi aleaandro,
sorry for delay but I was busy in other works.
In my PC , the file /sources/meta-imx/meta-ml/recipes-devtools/python/python3-pybind11_2.5.0.bb not exist.
I found this file /sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pybind11_2.2.3.bb
I have done the modify in this file but the error not change.
Which python3-xxx.bb file is called in my project ?
Have you other suggestion ?

Hello @sergio_dorazio
Please try to do in a python terminal this command: >>>
from collections import MutableMapping
If you have the error:
ImportError: cannot import name 'MutableMapping' from 'collections'
Please try to change the name of the package (collections to collections.abc)
in the specific file from your log:
ImportError: cannot import name 'MutableMapping' from 'collections'
(/usr/lib/python3.10/collections/__init__.py)
example: >>> from collections.abc import MutableMapping
Please try it and let me know.


hi Alejandro,
modified 3 python files how you speak, the bitbake start compilation. For your information the python files are:
- sources/poky/bitbake/lib/bb/compat.py
- sources/poky/bitbake/lib/bb/data_smart.py
- sources/poky/bitbake/lib/bb/persist_data.py

But in the bitbake compilation I have errors :

dorazio@dorazio-HP-Z4-G4-Workstation:~/imx-yocto-bsp-4.19/Linux-evk$ bitbake core-image-minimal
/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is" with a literal. Did you mean "=="?
if command is 'mkview':
/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif command is 'rmview':
/home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif command is 'setcs':
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: /home/dorazio/imx-yocto-bsp-4.19/sources/poky/bitbake/lib/bb/server/process.py:571: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self.t.setDaemon(True)

WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
WARNING: Host distribution "ubuntu-22.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |######################################################################################| Time: 0:00:51
Parsing of 2784 .bb files complete (0 cached, 2784 parsed). 3921 targets, 518 skipped, 4 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-fb"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe
meta-multimedia = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-freescale = "HEAD:2142f7ded1b3115ccc21f7575fd83e2376247193"
meta-freescale-3rdparty = "HEAD:da422478d38e744283bcf61123c4a526396c7030"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-bsp
meta-sdk
meta-ml = "HEAD:ca2f2cd01a2ceb15263ed9aa7fd8311deb41831a"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust = "HEAD:11aed43748d7dd194dc6c06a35a16104400d1090"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-qt5 = "HEAD:dc2dedef9961950b88f4245ba7499538ec4244ab"

Initialising tasks: 100% |###################################################################################| Time: 0:00:01
Sstate summary: Wanted 779 Found 0 Missed 779 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: m4-native-1.4.18-r0 do_compile: oe_runmake failed
ERROR: m4-native-1.4.18-r0 do_compile: Function failed: do_compile (log file is located at /home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.35368)
ERROR: Logfile of failure stored in: /home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.35368
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 infodir=/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/share/info
| make all-recursive
| make[1]: Entering directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| Making all in .
| make[2]: Entering directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make[2]: Nothing to be done for 'all-am'.
| make[2]: Leaving directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| Making all in examples
| make[2]: Entering directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/examples'
| make[2]: Nothing to be done for 'all'.
| make[2]: Leaving directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/examples'
| Making all in lib
................................
................................
| make all-am
| make[3]: Entering directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o gl_avltree_oset.o ../../m4-1.4.18/lib/gl_avltree_oset.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o binary-io.o ../../m4-1.4.18/lib/binary-io.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o c-ctype.o ../../m4-1.4.18/lib/c-ctype.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o c-stack.o ../../m4-1.4.18/lib/c-stack.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o c-strcasecmp.o ../../m4-1.4.18/lib/c-strcasecmp.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o c-strncasecmp.o ../../m4-1.4.18/lib/c-strncasecmp.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o clean-temp.o ../../m4-1.4.18/lib/clean-temp.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o cloexec.o ../../m4-1.4.18/lib/cloexec.c
| In file included from /usr/include/signal.h:328,
| from ./signal.h:52,
| from ../../m4-1.4.18/lib/c-stack.c:49:
| ../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token "("
| 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
| | ^~~~~~~~
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o close-stream.o ../../m4-1.4.18/lib/close-stream.c
| make[3]: *** [Makefile:1915: c-stack.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: Leaving directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[2]: *** [Makefile:1674: all] Error 2
| make[2]: Leaving directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[1]: *** [Makefile:1572: all-recursive] Error 1
| make[1]: Leaving directory '/home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make: *** [Makefile:1528: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/dorazio/imx-yocto-bsp-4.19/Linux-evk/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.35368)
ERROR: Task (/home/dorazio/imx-yocto-bsp-4.19/sources/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 113 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/dorazio/imx-yocto-bsp-4.19/sources/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
dorazio@dorazio-HP-Z4-G4-Workstation:~/imx-yocto-bsp-4.19/Linux-evk$

 


Have you suggestion for errors correction ?

By Sergio.

 

0 Kudos

1,721 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio 

 

I am facing the same issue, I believe is a problem with Ubuntu version, let me try to do the compilation in a machine with Ubuntu 18.04, that is the recommended to compile this Linux version.

 

Best regards.

0 Kudos

1,812 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @sergio_dorazio !

 

I am checking the issue, when I have an update I will let you know, I believe there is not necessary change your Linux host version.

 

Best regards!

0 Kudos