Try to enable the Board Late Init, it should fix the issue. In the menuconfig:
On 7/1/20, Daniel Mesham <
daniel...@gmail.com> wrote:
> I have adjusted the basic GPIO example such that the normal command-line
> arguments are hard-coded, with the devpath set to "/dev/gpout1". When I set
>
> nsh as the application entrypoint, and run my new app, it executes
> correctly and the GPIO pin is toggled as expected.
>
> However, I want this app to run as soon as my device starts, so I set it as
>
> the application entry point. When I do this, it fails to open the devpath
> and gives an error code 2, which is "No such file or directory" according
> to errno.h.
>
> It seems that I'm not able to interact with the file system unless I am
> using nsh. Is there a way to correct this so that I can use GPIO pins from
> the entrypoint app?
>
> Alternatively, is there a better way to have my app run on startup, which
> still runs/loads nsh?
>
> ---
>