I used the Linux OS image fsl-image-validation-imx-x11-imx6ull14evk.sdcard downloaded from NXP imx6ull website. I flashed this Linux OS image on the sdcard. I downloaded kernel source code linux-fslc-4.14-rc8 from git repository for imx6. I merged legatocfg file with configuration of the kernel source code. I used below command for merging legatocfg file.
ARCH=arm make defconfig && ARCH=arm scripts/kconfig/merge_config.sh -O . .config legatocfg
I added supporting packages in to configuration file of the kernel source code using ARCH=arm make menuconfig.
I built the zImage, dtbs files and modules.
I used below command for building the zImage.
make -j 4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
For compiling and building legato for IMX6, I used a gcc tool, gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf. I used instruction of raspberry pi legato build for building legato for IMX6.
Commands executed for building legato.squashfs
export RASPI_TOOLCHAIN_DIR=~/tools/gcc-linaro-arm-6.4.1-2018.05-x86_64/bin/
export RASPI_TOOLCHAIN_PREFIX=arm-linux-gnueabihf-
make raspi
I built legato.squashfs successfully for IMX6.
I installed those files in to sdcard Linux os image. Successfully Linux OS booted. I mounted the legato.squashfs on imx6ull board OS. After that I attempted to start the legato. Legato frame work started running for less than 40 Seconds. After that imx6ull board restarted.
Imx6ull board showed an error like ‘logread: can’t find syslogd buffer no such file or directory’.
Supervisor also killed.
After rebooting only, the below commands are working
legato status
legato version
legato restart.
I could not execute below raspberry pi instruction on the target
1: editing below mentioned file.
/etc/systemd/system/systemd-journald.service
add “SmackProcessLabel=syslog” in [Service]
- The systemd-journald.service file was not present in imx6ull board OS.
2: edit below mentioned file.
/etc/ssh/sshd_config
set PermitRootLogin to Yes.
- I have already permission for login as root.
In the first attempt legato status showed an error message as the command not found.
After rebooting and running legato using the command /. /mnt/legato/start only those commands detected as system commands executed successfully.
Legato status command showed as legato installed, good and legato framework is running.
For verification of the target, I executed successfully legato version command. But fwupdate query failed and showed an error ‘fwupdate: error while loading shared libraries: liblegato.so: cannot open shared object file: No such file or directory’
I am using legato version as 18.04.0 and Linux kernel version as 4.14.rc8.
This issue is completely blocking our development. Please help me to resolve this rebooting issue.