I am trying to run a startup script from a SD Card. I have followed the instructions for enabling the startup and everything works in principle however sometimes it crashes.
I created the nsh_romfsimg.sh from an empty rc.sysinit.template and rcS.template contains
mount -t vfat /dev/mmcsd0 /mnt/sdcard
sh /mnt/sdcard/startup/startup.txt
Hello,
I am trying to run a startup script from a SD Card. I have followed the instructions for enabling the startup and everything works in principle however sometimes it crashes.
I created the nsh_romfsimg.sh from an empty rc.sysinit.template and rcS.template contains
The startup script contains
echo hello
Sometimes this crashes with the following output
It seems that there is a stack overflow for the 'sh' command, but I cannot find where the stack is allocated for this.
When I execute the command from the shell after startup (for the case it went through), I haven't yet observed a crash.
Thanks! Max