Search code examples
linuxcroncross-compilingyocto

crontab is not working via cross-compiling


I'm using iMX6S with Yocto. And my OS does have crontab/cronie. And I didn't build that OS image, so I can't modify it. So I did a cross-compile version of cronie. I get a file executable which name crontab. I check and get:

ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=3d8a5ebf81249e88a8b93badbabf83c8fc1f2b9d, not stripped

I edit it via: $ crontab -e

@reboot /home/root/loop
*/2 * * * * /home/root/cvtVid2Img

But it's not working. Did I missing something ?

What should I do now?


Solution

  • Thank you for all help. This is how I solved my problem: 1. I built an OS image with crontab package. 2. Search all relevant packages with crontab. 3. Copy it to my old OS image. Hope this help.