Go to advanced search

by XDSFyP
Sat Oct 27, 2018 4:27 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Re: Store a config file in /boot ?

Perhaps you can modify the rc.local systemd service to depend on /boot being mounted? I would suggest to create a service file in /etc/systemd/system for your program and make it depend on local-fs.target Whis will make sure that is is only started after all filesystems defined in /etc/fstab (excep...
by XDSFyP
Sat Oct 27, 2018 4:23 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Re: Store a config file in /boot ?

@XDSFyP - Because your qt program runs quite early it should first check that the first fat partition is actually mounted on /boot before checking for your settings file. If it is not, then just wait until it is. You can find examples of this in the noobs or pinn source code on github, which also u...
by XDSFyP
Sat Oct 27, 2018 4:11 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Re: Store a config file in /boot ?

Are you actually putting the settings file in /boot on the ext4 partition? If so, then that's your problem. The small FAT32 partition gets mounted to /boot when the OS loads, and that will replace anything you have there. If you want something in /boot, you put it on the fist partition of the card ...
by XDSFyP
Wed Oct 24, 2018 3:54 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Re: Store a config file in /boot ?

Ahh I understand now. Thank you again for your extended response n67!
by XDSFyP
Wed Oct 24, 2018 12:37 am
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Re: Store a config file in /boot ?

Thanks for your reply n67. I think that /etc/rc.local gets run very early in the process (in the world of systemd). So, it is reasonable to assume that at least some of the time, /boot will not have been mounted by the time rc.local gets run. So, I think your analysis is probably correct. That does ...
by XDSFyP
Sun Oct 21, 2018 11:07 pm
Forum: Troubleshooting
Topic: Store a config file in /boot ?
Replies: 11
Views: 703

Store a config file in /boot ?

Hi, I am having an intermittent issue where I have my Qt program stored in /home/pi/QtProgram and a small (~20KB) settings file stored in /boot/qtProgramSettings.dat I am using Raspian Lite without the desktop, and I have setup the Pi to boot straight into my Qt program in /etc/rc.local . On some oc...
by XDSFyP
Mon Aug 27, 2018 1:28 am
Forum: Official Foundation Display
Topic: Official 7' touchscreen, rotate touch
Replies: 24
Views: 11081

Re: Official 7' touchscreen, rotate touch

Thanks to everyone in this thread, I got the touches to map correctly to the image rotation. Adding my solution for future reference. I am using raspbian lite Linux raspberrypi 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l without (Pixel?) desktop environment. RPI3B+ I rotated the offici...

Go to advanced search