I can't get the Adafruit Video Looper to run read-Only!!

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dokcal
 
Posts: 2
Joined: Tue Aug 28, 2018 11:33 pm

I can't get the Adafruit Video Looper to run read-Only!!

Post by dokcal »

This is driving me crazy! Especially since the Video Looper is LINKED from the Read-Only instruction page!

Here are the two pertinent pages on the Adafruit Learn site:

https://learn.adafruit.com/raspberry-pi ... r?view=all

https://learn.adafruit.com/read-only-raspberry-pi/

I have a fresh install of Raspbian Lite running the Video Looper, and it works perfectly on my Pi 3 B+. The problem comes when I try to make the system read-only. I've tried every possible combination of settings in the read-only setup, but when I reboot the RPi, it just boots and stops. It doesn't run the video looper.

I'm a serious n00b in Linux-land, so I have no idea where to go from here.

Has anyone successfully set up the VIdeo Looper to run read-only? If so, did you have to do anything unusual to get it working?

Thanks in advance for any and all assistance!

--Dave

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by adafruit_support_mike »

We've never tested those two projects together, so it's hard to guess where things are failing. It's possible that the Video Looper code needs write access to the filesystem somehow.

trorke
 
Posts: 2
Joined: Sun May 11, 2014 12:02 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by trorke »

I was able to run the video looper application on a read-only system without any issues. The only modification i had to make was to add the startup command from video_looper.conf into rc.local, as for some reason it stopped launching on boot after running the read-only installation script.

my /etc/rc.local looks like this now:

Code: Select all

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

gpio -g mode 21 up
if [ `gpio -g read 21` -eq 0 ] ; then
        mount -o remount,rw /
        mount -o remount,rw /boot
fi

python -u -m Adafruit_Video_Looper.video_looper &

exit 0

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by adafruit_support_mike »

Glad to hear you got it working, and thanks for posting the solution!

User avatar
dokcal
 
Posts: 2
Joined: Tue Aug 28, 2018 11:33 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by dokcal »

Fantastic! Thank you so much!

As it happens, the video looper seems pretty bulletproof anyway--I tried yanking the power cord at all different phases of operation, and never managed to corrupt the microSD card--but I'd much rather make it bulletproof the right way!

Thanks again!

User avatar
urbanvisuals
 
Posts: 3
Joined: Tue Sep 08, 2015 8:53 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by urbanvisuals »

I haven't looked too much into this, but I had a similar project that was controlled/launched with the supervisor app (in the same way as the Adafruit Video Looper), and it wouldn't run after I made the system read-only. Using the supervisorctl app, I noticed that my program that was due to be launched was no longer registered/listed as a process to launch.

I'm going to look more into this, and will update as necessary.

User avatar
minizzZ
 
Posts: 3
Joined: Thu Oct 05, 2017 12:23 pm

Re: I can't get the Adafruit Video Looper to run read-Only!!

Post by minizzZ »

Try this one. Worked for me.

https://github.com/JasperE84/root-ro

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”