>
> *I'm a little unclear exactly how to do this. . .*
>

A loop that checks for a files existence, and if it does not, it keeps
looping / checking. You're also going to want some sort of sleep method in
the loop as well. To keep from hammering the CPU. Anyway, this can be done
in any number of languages including a  bash script.

On Sat, Feb 27, 2016 at 1:09 PM, Wally Bkg <[email protected]> wrote:

> I tried using a root crontab @reboot to run a script, but it runs before
> the cape-universal is set up, so nothing is accomplished.  Robert suggested
> watching in a loop for  /sys/devices/platform/bone_capemgr to appear, I'm a
> little unclear exactly how to do this, so for me it was easier to just
> launch my script with system() after I finish setting up my gpio via
> /sys/class/gpio/ file writes and before I start my uart thread.
>
> Something like /bin/sleep 30 at the start of your script might allow the
> capemgr to come first, it you don't mind slowing down your startup.
>
> --wally.
>
>
>
> On Saturday, February 27, 2016 at 7:59:38 AM UTC-6,
> [email protected] wrote:
>>
>> Wally,
>>
>> Thank you for your post.  Using the steps you describe above I have
>> *finally* been able to get all four UARTs working!  I will just need to get
>> the config-pin commands into a script that runs at boot and I will have a
>> BBB running Jessie with 4 working serial ports.
>>
>> Thanks!
>>
>>
>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to