I have downloaded the linux-SWI9X07Y_02.16.02.00.cwe file and I am not clear how to use this file for the yocto build.
Could you please guide me on this topic.
No, you need to refer to âRebuild Linux Distribution or/and Legato from sourceâ section.
i.e. SWI9X07Y_02.16.02.00 Source is the complete Yocto Linux package used to customize and build your own Linux.
Basically, you just need to extract the package (tar), then âmakeâ to build.
I had commented out the spisvc.ko to not to build.
How ever at the end of the build, the build system fails to copy the kernel module as it was not build. Below is the error message
| find: â/home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/legato-af/build/wp76xx/system/modules//.koâ: No such file or directory
| cp: missing file operand
| Try âcp --helpâ for more information.
| ninja: build stopped: subcommand failed.
| Makefile:518: recipe for target âsystem_wp76xxâ failed
| make: *** [system_wp76xx] Error 1
| WARNING: /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/run.do_compile.21174:1 exit 2 from âmake $LEGATO_TARGETâ
| ERROR: Function failed: do_compile (log file is located at /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.21174)
ERROR: Task (/home/stirulaka/work/mttm/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb:do_compile) failed with exit code â1â
NOTE: Tasks Summary: Attempted 1400 tasks of which 1399 didnât need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stirulaka/work/mttm/yocto/meta-swi/common/recipes-legato/legato-af/legato-af_git.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:217: recipe for target âimage_binâ failed
Looks like I am close to overcome this build issue . Is some one faced this issue earlier ?
Any inputs are greatly appreciated.
Can you share the content of the compilation log file (/home/stirulaka/work/mttm/yocto/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/legato-af/git-r0/temp/log.do_compile.31422)?
| NOTE: Executing: ldconfig -r/home/stirulaka/work/mttm/yocto/build_bin/tmp/work/swi_mdm9x28-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/rootfs-c new -v
| WARNING: [log_check] mdm9x28-image-minimal: found 1 warning message in the logfile:
| [log_check] WARNING: The license listed TI-TSPA was not in the licenses collected for recipe wl18xx-firmware
|
| DEBUG: Python function do_rootfs finished
| DEBUG: Executing shell function rootfs_symlink
| ln: failed to create symbolic link â/home/stirulaka/work/mttm/yocto/build_bin/tmp/deploy/images/swi-mdm9x28/rootfsâ: No such file or directory
| WARNING: /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/swi_mdm9x28-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.rootfs_symlink.114372:1 exit 1 from âln -sf mdm9x28-image-minimal-swi-mdm9x28.4k.default /home/stirulaka/work/mttm/yocto/build_bin/tmp/deploy/images/swi-mdm9x28/rootfsâ
| ERROR: Function failed: rootfs_symlink (log file is located at /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/swi_mdm9x28-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_rootfs.114372)
ERROR: Task (/home/stirulaka/work/mttm/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_rootfs) failed with exit code â1â
NOTE: Tasks Summary: Attempted 2540 tasks of which 1345 didnât need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stirulaka/work/mttm/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_rootfs
Summary: There were 11 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:217: recipe for target âimage_binâ failed
make: *** [image_bin] Error 1
Clean build didnât help. below is the same error
| DEBUG: Python function do_rootfs finished
| DEBUG: Executing shell function rootfs_symlink
| ln: failed to create symbolic link â/home/stirulaka/work/mttm/yocto/build_bin/tmp/deploy/images/swi-mdm9x28/rootfsâ: No such file or directory
| WARNING: /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/swi_mdm9x28-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/run.rootfs_symlink.24805:1 exit 1 from âln -sf mdm9x28-image-minimal-swi-mdm9x28.4k.default /home/stirulaka/work/mttm/yocto/build_bin/tmp/deploy/images/swi-mdm9x28/rootfsâ
| ERROR: Function failed: rootfs_symlink (log file is located at /home/stirulaka/work/mttm/yocto/build_bin/tmp/work/swi_mdm9x28-poky-linux-gnueabi/mdm9x28-image-minimal/1.0-r0.0/temp/log.do_rootfs.24805)
ERROR: Task (/home/stirulaka/work/mttm/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_rootfs) failed with exit code â1â
NOTE: Tasks Summary: Attempted 2540 tasks of which 3 didnât need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stirulaka/work/mttm/yocto/meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:do_rootfs
Summary: There were 11 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Makefile:217: recipe for target âimage_binâ failed
make: *** [image_bin] Error 1
Sorry but it looks like in this version of the source package the deploy directory is not created if you do not compile Legato. Which causes this link error.
So weâre back to your original error. I can not reproduce this error on my compilation machine but I am working with our development team to get it resolved.
Thanks fro your reply.
Its good to know that you have no problem with the compilation on your machine.
May I know what is the build environment that you are using ?
and also the exact sequence of steps to build ?
Can you try to add âmkdir -p ${DEPLOY_DIR_IMAGE}â to the top of the rootfs_symlink task in meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image-minimal.bb:
rootfs_symlink() {
mkdir -p {DEPLOY_DIR_IMAGE}
# Provide minimal image as rootfs symlink
ln -sf {IMAGE_LINK_NAME}.4k.default ${DEPLOY_DIR_IMAGE}/rootfs
}