Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I need kernel 5.16 (or superior) in Yocto to imx8mm-pico Or imx7d-pico to use new rpmsg_tty with Zephyr/Rsc_table project #9

Open
paoloturim opened this issue Apr 11, 2024 · 8 comments

Comments

@paoloturim
Copy link

Hi,

https://www.youtube.com/watch?v=8LRSHeZlVZk&t=245s

I have experience in this tutorial above and I'm trying to upgrade my Linux kernel version from 5.15 (in imx8mm-pico and in imx7d-pico) to something higher than 5.16(Because I need rpmsg_tty driver and not imx_rpmsg_tty driver)

What is the best way to achieve this?

Things I've already tried:

  1. git clone https://github.com/RobertCNelson/armv7-lpae-multiplatform ./kernelbuildscripts
    cd kernelbuildscripts/
    git checkout origin/v5.16.x -b tmp
    ./build_kernel.sh
    With error in nxp89xx kernel module

git clone https://github.com/TechNexion/linux-tn-imx.git
git checkout tn-imx_6.1.55_2.2.0-next
git status
git checkout -b scorpion-kernel-test
git push local scorpion-kernel-test

Issue:


bitbake imx-image-full
WARNING: Layer nxp-nfc should set LAYERSERIES_COMPAT_nxp-nfc in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
Loading cache: 100% |#############################################################################################################################################| Time: 0:00:00
Loaded 4808 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:01
Parsing of 3250 .bb files complete (3247 cached, 3 parsed). 4811 targets, 624 skipped, 5 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "scorpion"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "5.15-kirkstone"
TUNE_FEATURES        = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                
meta-poky            = "HEAD:65dafea22018052fe7b2e17e6e4d7eb754224d38"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"
meta-freescale       = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-3rdparty = "HEAD:5977197340c7a7db17fe3e02a4e014ad997565ae"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-bsp            
meta-sdk            
meta-ml              
meta-v2x             = "HEAD:ca68ab5d25322b51f54564275c84ab8de3c74ea6"
meta-nxp-demo-experience = "HEAD:52eaf8bf42f8eda2917a1c8c046003c8c2c8f629"
meta-chromium        = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang           = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-gnome          
meta-networking      
meta-filesystems     = "HEAD:7da6cb848bc42b3e6bd5d2b37b52ba75510a6ca0"
meta-qt6             = "HEAD:ed785a25d12e365d1054700d4fc94a053176eb14"
meta-virtualization  = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-tn-imx-bsp      = "HEAD:1ae9d78e6dabeabf9cb914274a79347a608c141b"
meta-tn-vizionsdk    = "HEAD:e57d6deda5c27d9fafce394d7caacaf7a2ae6ec0"
meta-nxp-nfc         = "HEAD:5e0e59f5b86f9cb63f5d369dbb514d644d3e76de"
meta-scorpion        = "<unknown>:<unknown>"

WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration
Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:05
Sstate summary: Wanted 65 Local 11 Mirrors 0 Missed 54 Current 3085 (16% match, 98% complete)
NOTE: Executing Tasks
ERROR: kernel-module-nxp-pn5xx-git-r0 do_compile: oe_runmake failed
ERROR: kernel-module-nxp-pn5xx-git-r0 do_compile: ExecutionError('/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/temp/run.do_compile.382786', 1, None, None)
ERROR: Logfile of failure stored in: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/temp/log.do_compile.382786
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 KERNEL_SRC=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source KERNEL_PATH=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source KERNEL_VERSION=6.1.55+g4ce21f30076b CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0=/usr/src/debug/kernel-module-nxp-pn5xx/git-r0                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0=/usr/src/debug/kernel-module-nxp-pn5xx/git-r0                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd   AR=arm-poky-linux-gnueabi-ar  O=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make -C /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source M=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git modules
| make[1]: Entering directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source'
| make[2]: Entering directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts'
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git/pn5xx_i2c.o
| /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git/pn5xx_i2c.c:750:27: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
|   750 |         .remove         = pn54x_remove,
|       |                           ^~~~~~~~~~~~
| /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git/pn5xx_i2c.c:750:27: note: (near initialization for 'pn54x_driver.remove')
| cc1: some warnings being treated as errors
| make[3]: *** [/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source/scripts/Makefile.build:250: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git/pn5xx_i2c.o] Error 1
| make[2]: *** [/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source/Makefile:2014: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp-pn5xx/git-r0/git] Error 2
| make[2]: Leaving directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts'
| make[1]: *** [Makefile:238: __sub-make] Error 2
| make[1]: Leaving directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source'
| make: *** [Makefile:6: modules] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/paolo/edm_yocto2/sources/meta-nxp-nfc/recipes-kernel/kernel-modules/kernel-module-nxp-pn5xx_git.bb:do_compile) failed with exit code '1'
ERROR: kernel-module-nxp89xx-1.0-r0 do_compile: oe_runmake failed
ERROR: kernel-module-nxp89xx-1.0-r0 do_compile: ExecutionError('/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/temp/run.do_compile.382980', 1, None, None)
ERROR: Logfile of failure stored in: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/temp/log.do_compile.382980
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 KERNELDIR=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts KERNEL_SRC=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source -C /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts M=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src KERNEL_PATH=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source KERNEL_VERSION=6.1.55+g4ce21f30076b CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0=/usr/src/debug/kernel-module-nxp89xx/1.0-r0                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0=/usr/src/debug/kernel-module-nxp89xx/1.0-r0                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source=/usr/src/kernel -fdebug-prefix-map=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts=/usr/src/kernel LD=arm-poky-linux-gnueabi-ld.bfd   AR=arm-poky-linux-gnueabi-ar  O=/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make: Entering directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts'
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_shim.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_init.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_txrx.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_cmdevt.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_misc.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_cfp.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_module.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_wmm.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sdio.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_pcie.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11n_aggr.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11n_rxreorder.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11n.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11ac.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11ax.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11d.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_11h.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_meas.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_scan.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_ioctl.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_rx.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_tx.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_event.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_cmd.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_sta_cmdresp.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_join.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_uap_ioctl.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_uap_cmdevent.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlan/mlan_uap_txrx.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_main.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_ioctl.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_shim.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_eth_ioctl.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_init.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_priv.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_wext.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_uap.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_uap_priv.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_uap_wext.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_cfg80211.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.o
|   CC [M]  /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_uap_cfg80211.o
| /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c: In function 'woal_register_cfg80211':
| /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c:10143:36: error: 'REGULATORY_IGNORE_STALE_KICKOFF' undeclared (first use in this function)
| 10143 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
|       |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.c:10143:36: note: each undeclared identifier is reported only once for each function it appears in
| make[1]: *** [/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source/scripts/Makefile.build:250: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src/mlinux/moal_sta_cfg80211.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make: Leaving directory '/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-build-artifacts'
| make: *** [/home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work-shared/scorpion/kernel-source/Makefile:2014: /home/paolo/edm_yocto2/build-wayland-pico-imx7/tmp/work/scorpion-poky-linux-gnueabi/kernel-module-nxp89xx/1.0-r0/git/mxm_wifiex/wlan_src] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/paolo/edm_yocto2/sources/meta-imx/meta-bsp/recipes-kernel/kernel-modules/kernel-module-nxp89xx.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5178 tasks of which 5171 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/paolo/edm_yocto2/sources/meta-nxp-nfc/recipes-kernel/kernel-modules/kernel-module-nxp-pn5xx_git.bb:do_compile
  /home/paolo/edm_yocto2/sources/meta-imx/meta-bsp/recipes-kernel/kernel-modules/kernel-module-nxp89xx.bb:do_compile
Summary: There were 2 WARNING messages.
Summary: There were 4 ERROR messages, returning a non-zero exit code.
@ray-chang
Copy link
Contributor

@paoloturim

Thanks for the feedback.
We fixed the kernel-module-nxp-pn5xx compilation error a long time ago.
TechNexion/meta-tn-imx-bsp@59eed23

Use this command to update the yocto source code:
$: repo sync

If you're not using an NFC peripheral, you can remove it from local.conf.

build-[MACHINE]/conf/local.conf:

RF_FIRMWARES ?= "qca ath-pci"
SOUNDCARD ?= "voicehat"
NFC ?= "nfc"
PA_TOKEN ?= "SbtQ_mC4fvJRA88_9jB7"

The kernel-module-nxp89xx is the driver for the NXP wireless module, you have to try to fix it yourself with your kernel or remove it.

@paoloturim
Copy link
Author

@ray-chang Hi. Tks. But I compiled it with U-boot 2022.04 and U-boot 2023.04 for imx7d-pico and unfortunately I have a kernel panic (right at the beginning, when there is the starting kernel message) and it hangs. I'm trying the Technexion 6.1 kernel (https://github.com/TechNexion/linux-tn-imx/tree/tn-imx_6.1.55_2.2.0-next)

Why is this happening? How to solve? I need a kernel (5.16 or higher from Technexion that works on imx7d

I urgently need to get rpmsg_tty and not imx_rpmsg_tty and rpmsgctrl in 5.16 or higher

@paoloturim
Copy link
Author

@ray-chang Do u can get kernel 5.16 or higher in imx7d-pico(with rpmsg_client_sample & rpmsg_tty driver) Or Not

@ray-chang
Copy link
Contributor

ray-chang commented Apr 23, 2024

@paoloturim

Could you try the imx8mm-pico first? We have not yet integrated the SOC of ARM32 into yocto 4.2(kernel 6.1.55). It is not expected to be supported until the next quarter. Or you can force u-boot 2022.04 instead.

Currently supported platforms:
EDM-G-IMX8MP with WB/WIZARD
EDM-G-IMX8MM with WB/WIZARD
PICO-IMX8MM with PI-8M/WIZARD
AXON-IMX8MP with WIZARD
TEK-IMX8MP
AXON-IMX93
TEP-IMX8MP

BR,
Ray

@paoloturim
Copy link
Author

@ray-chang Could you try the imx8mm-pico first? No. I need in imx7d-pico. I only need 5.16 in imx7d-pico

@paoloturim
Copy link
Author

paoloturim commented Apr 25, 2024

@ray-chang

I don't have imx8mm-pico

But

Issues using:

repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b mickledore_6.1.y-stable -m imx-6.1.55-2.2.0.xml

repo sync -j$(nproc)

DISTRO=fsl-imx-wayland MACHINE=pico-imx7 BASEBOARD=pi source tn-setup-release.sh -b build-wayland-pico-imx7
DISTRO=fsl-imx-xwayland MACHINE=edm-g-imx8mm source tn-setup-release.sh -b build-xwayland-edm-g-imx8mm
DISTRO=fsl-imx-xwayland MACHINE=pico-imx8mm source tn-setup-release.sh -b build-xwayland-pico-imx8mm
 bitbake imx-image-full

bitbake imx-image-full
WARNING: Layer nxp-nfc should set LAYERSERIES_COMPAT_nxp-nfc in its conf/layer.conf file to list the core layer names it is compatible with.
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Layer nxp-nfc should set LAYERSERIES_COMPAT_nxp-nfc in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 5478 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:01
Parsing of 3592 .bb files complete (3591 cached, 1 parsed). 5479 targets, 712 skipped, 21 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.4.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "pico-imx7"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "6.1-mickledore"
TUNE_FEATURES        = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:a57506c46d92bf0767060102d2139be06d46f575"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:922f41b39f364e5b6be596b4b51e0fb37ffe1971"
meta-freescale       = "HEAD:7327e03c61823268a5a957fe090c4cc5e1735b34"
meta-freescale-3rdparty = "HEAD:bccd93f1ceece608e69799b6fc8f79e8a519f89e"
meta-freescale-distro = "HEAD:7956a0ab407a33c40fdc6eb4fabdcb7dc54fd359"meta-bsp             
meta-sdk             
meta-ml              
meta-v2x             = "HEAD:c842613830da0a5473513cdbc2dce015b0ca9a5d"
meta-nxp-demo-experience = "HEAD:b8c0a9af3e3ca5400b9aff6436fbb654d3108cb4"
meta-arm             
meta-arm-toolchain   = "HEAD:c6380674f59489b327c5047d803cc35b68642cd4"
meta-security        
meta-tpm             
meta-parsec          = "HEAD:d7db0a3bd1a8639df7570483f003ce00cbe274a2"
meta-chromium        = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang           = "HEAD:af4dcba009ba98250315520f3003fde4ee164cce"
meta-gnome           
meta-networking      
meta-filesystems     = "HEAD:922f41b39f364e5b6be596b4b51e0fb37ffe1971"
meta-qt6             = "HEAD:1406d0a85525a71fe5d7892d7f915404290a78ad"
meta-virtualization  = "HEAD:38e6b3e2fe0219c773f4637a09221ca5d15bf6fc"
meta-tn-imx-bsp      = "HEAD:d48959a54199c313db99663d322ec0f51e481c0d"
meta-tn-wifi         = "HEAD:c35964fb20464f1567a0f5ed499c521811f4e5a3"
meta-tn-vizionsdk    = "HEAD:4db302574dbba04be1b17aa3c7bab7be0ad35306"
meta-nxp-nfc         = "HEAD:5e0e59f5b86f9cb63f5d369dbb514d644d3e76de"

WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration
Initialising tasks: 100% |#######################################| Time: 0:00:05
Sstate summary: Wanted 3255 Local 0 Mirrors 0 Missed 3255 Current 508 (0% match, 13% complete)
NOTE: Executing Tasks
WARNING: linux-imx-headers-6.1-r0 do_fetch: Failed to fetch URL git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=lf-6.1.y, attempting MIRRORS if available
ERROR: linux-imx-headers-6.1-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/paolo/edm_yocto3/sources/poky/scripts:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot/usr/bin/crossscripts:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot-native/usr/sbin:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot-native/usr/bin:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot-native/sbin:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/recipe-sysroot-native/bin:/home/paolo/edm_yocto3/sources/poky/bitbake/bin:/home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/hosttools"; export HOME="/home/paolo"; LANG=C git -c gc.autoDetach=false -c core.pager=cat fetch -f --progress https://github.com/nxp-imx/linux-imx.git refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* failed with exit code 128, no output
ERROR: linux-imx-headers-6.1-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=lf-6.1.y')
ERROR: Logfile of failure stored in: /home/paolo/edm_yocto3/build-wayland-pico-imx7/tmp/work/cortexa7t2hf-neon-mx7d-poky-linux-gnueabi/linux-imx-headers/6.1-r0/temp/log.do_fetch.1221980
ERROR: Task (/home/paolo/edm_yocto3/sources/meta-imx/meta-bsp/recipes-kernel/linux/linux-imx-headers_6.1.bb:do_fetch) failed with exit code '1'

@ray-chang
Copy link
Contributor

@paoloturim

I'm not sure what changes you've made, but the linux-imx-headers is kernel that belong to NXP, not ours.

The do_fetch may fail for the following reasons:

  1. Unstable network connection
  2. Lost source
  3. Mismatched branches
  4. Checksum mismatch
  5. SRCREV mismatch

BR,
Ray

@paoloturim
Copy link
Author

paoloturim commented Apr 26, 2024

@ray-chang

Screenshot from 2024-04-26 10-08-40

I had theoretically success with Ubuntu 20.04 and pico-imx8mm but no image in HOME/paolo/edm_yocto3/build-xwayland-pico-imx8mm/tmp/deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants