script for start applications automatically not working in sdk v2.6.0
I am following the steps in https://developer.sony.com/develop/spresense/docs/sdk_tutorials_en.html#_start_up_script
I am using sdk v2.6.0
but I don't get the autorun of the application.
nsh> ls /etc/init.d/rcS /etc/init.d/rcS nsh> cat /etc/init.d/rcS nsh>
(but in sdk v2.3.0 it is worked)
Hm... I will try to reproduce this issue using sdk v2.6.0 and get back to you.
Sorry it took me so long to answer.
In case you're still interested in this subject, I think the documentation of the start up script on the English page is not up to date.
I'll notify internally so the page can be updated.
On the meantime, I followed the steps on the japanese page and it worked.
I'll summarize here the instructions to automatically run the hello example.
- Go to spresense/sdk and run
$ ./tools/config.py exemplos/hello feature/startup_script $ make
- Create a new file in the sdk directory and name it init.rc
In this file write:
echo Start up hello script hello
- Flash the script to spresense using
$ ./tools/flash.sh -w init.rc
- Flash nuttx.spk using
$ tools/flash.sh -c /dev/ttyUSB0 nuttx.spk
- Connect to the board and you should see this:
Run /mnt/spif/init.rc. sh [13:100] NuttShell (NSH) NuttX-10.2.0 nsh> hello script Hello, World!!