Hi, there I have two BELAs. One sees doesn't see my MIDI device and one does. I check the lines at startup and I see a difference in the output:

The first one (without MIDI) stops here:
Nov 03 17:16:52 bela systemd[1]: Started Run Bela at boot.
Nov 03 17:16:52 bela stdbuf[318]: make: Entering directory '/root/Bela'
Nov 03 17:16:55 bela stdbuf[318]: make: Warning: File 'build/core/default_libpd_render.d' has modification time 54199393 s in the future
Nov 03 17:16:55 bela stdbuf[318]: Running /root/Bela/projects/LaserDrawing/LaserDrawing -p16 -C8 -B16 -H-6 -N1 -G0 -M0 -D0 -A0 --pga-gain-left=10 --pga-gain-right=10 -X0

The other has:
Nov 03 17:16:57 bela stdbuf[335]: Running Pd 0.48-0
Nov 03 17:16:57 bela stdbuf[335]: The following MIDI devices are enabled:
Nov 03 17:16:57 bela stdbuf[335]: Num Name In Out Pd channels
Nov 03 17:16:57 bela stdbuf[335]: [ 0] hw:1,0,0 x x (1-16)
Nov 03 17:16:57 bela stdbuf[335]: bonk version 1.5
Nov 03 17:16:57 bela stdbuf[335]: fiddle version 1.1 TEST4
Nov 03 17:16:57 bela stdbuf[335]: pique 0.1 for PD version 23
Nov 03 17:16:57 bela stdbuf[335]: sigmund~ version 0.07

Don't understand cause I can see my patch in the first one, so Pd is supposed to be running.
I think this BELA came without flashcard (on of the new ones).
What am I missing?

    jestern77 has modification time 54199393 s in the future

    this suggests that you could/should open the IDE on that bela (to readjust time) and then recompile the program and try again. not sure if it makes midi work though...

    What happens when you run the program on the first one (without MIDI) in the IDE?
    Also, on both boards can you run amidi -l to list connected MIDI devices?

    jestern77 Nov 03 17:16:55 bela stdbuf[318]: make: Warning: File 'build/core/default_libpd_render.d' has modification time 54199393 s in the future

    this is not a problem. It is normal at startup, as the board does not remember the date between reboots.

    It seems that the for the first board Pd is not starting at all. Are you sure that the log actually stops there? The second one definitely has some missing lines.

    Also try the following: on both boards, log in on the terminal and run journalcltl -u bela_startup | cat and get the whole log from there.

    EDIT: fixed journalctl

    Ok when I run the program I get:

    Building project...
    make: Nothing to be done for 'all'.Build finished
    Running project...
    May 16 09:45:00 bela stdbuf[329]: Makefile:515: recipe for target 'runonly' failed
    May 16 09:45:00 bela stdbuf[329]: make: *** [runonly] Terminated
    May 16 09:45:00 bela systemd[1]: Stopping Run Bela at boot...
    May 16 09:45:00 bela systemd[1]: Stopped Run Bela at boot.

    It sees the MIDI though:

    root@bela ~/Bela# amidi -l
    Dir Device Name
    IO hw:0,0 f_midi
    IO hw:1,0,0 nanoKONTROL MIDI 1

    journacltl -u bela_startup | cat doesn't work (command not found), you mean from the root directory right? I logged with ssh root@192.168.7.2 then used journacltl -u bela_startup | cat

      again, it seems like this project is not starting Pd at all ... maybe a corrupted file?

      Try ls -l /root/Bela/project/ProjectName/ProjectName
      if the size of the file is 0, then it surely is corrupted.

      Either way, can you clean the project and try to build again? Also, what files are in the project? Is there a .cpp file? If there is, is it a custom render for libpd?

      jestern77 journacltl -u bela_startup | cat doesn't work (command not found), you mean from the root directory right? I logged with ssh root@192.168.7.2 then used journacltl -u bela_startup | cat

      uops! forgot an l:
      journalctl -u bela_startup

      Anyhow, it seems that the problem has nothing to do with it being run at boot, so no need to try this again until we get it to run ok in the IDE.

        no problem to build another project it was just a temporary thing. I'll do it again.

        now:

        -- Logs begin at Thu 2016-11-03 17:16:43 UTC.
        --Nov 03 17:16:51 bela systemd[1]: Started Run Bela at boot.
        Nov 03 17:16:52 bela stdbuf[304]: make: Entering directory '/root/Bela'
        Nov 03 17:16:54 bela stdbuf[304]: make: Warning: File 'build/core/default_libpd_render.d' has modification time 54199394 s in the future
        Nov 03 17:16:55 bela stdbuf[304]: Running /root/Bela/projects/LaserDrawing/LaserDrawing -p16 -C8 -B16 -H-6 -N1 -G0 -M0 -D0 -A0 --pga-gain-left=10 --pga-gain-right=10 -X0
        May 16 12:42:17 bela stdbuf[304]: Makefile:515: recipe for target 'runonly' failed
        May 16 12:42:17 bela stdbuf[304]: make: *** [runonly] Terminated
        May 16 12:42:17 bela systemd[1]: Stopping Run Bela at boot...
        May 16 12:42:17 bela systemd[1]: Stopped Run Bela at boot.
        Running project...

        again, it doesn't look like there is any Pd there. Can you try the instructions above:

        giuliomoro Try ls -l /root/Bela/project/ProjectName/ProjectName
        if the size of the file is 0, then it surely is corrupted.

        which in your case would be: ls -l /root/Bela/projects/LaserDrawing/LaserDrawing

        then this:

        giuliomoro Either way, can you clean the project and try to build again?

        and answer this question:

        giuliomoro Also, what files are in the project? Is there a .cpp file? If there is, is it a custom render for libpd?

        Ok I did not understand I had to start a new project, I thought just changing the file was enough.
        Now it seems like working, I get the MIDI messages in the post window. Still some messages seems weird. What do you think?

        -- Logs begin at Thu 2016-11-03 17:16:43 UTC. --
        Nov 03 17:16:55 bela stdbuf[452]: make: Leaving directory '/root/Bela'
        Nov 03 17:16:55 bela systemd[1]: bela_startup.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
        Nov 03 17:16:55 bela systemd[1]: bela_startup.service: Unit entered failed state.
        Nov 03 17:16:55 bela systemd[1]: bela_startup.service: Failed with result 'exit-code'.
        Nov 03 17:16:56 bela systemd[1]: bela_startup.service: Service hold-off time over, scheduling restart.
        Nov 03 17:16:56 bela systemd[1]: Stopped Run Bela at boot.
        Nov 03 17:16:56 bela systemd[1]: bela_startup.service: Start request repeated too quickly.
        Nov 03 17:16:56 bela systemd[1]: Failed to start Run Bela at boot.
        Nov 03 17:16:56 bela systemd[1]: bela_startup.service: Unit entered failed state.
        Nov 03 17:16:56 bela systemd[1]: bela_startup.service: Failed with result 'exit-code'.
        Running project...

        Those messages are from the program that is set to run on startup, which-it seems- currently crashes as soon as it starts, which may be due to a corrupted file, as mentioned above. Either way, go to the ide settings and disable the program running on boot, and that should fix those messages