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
| 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
}