Raspberry Pi & Other SBC Computers Discussion Thread :)

Message boards : Number crunching : Raspberry Pi & Other SBC Computers Discussion Thread :)
Message board moderation

To post messages, you must log in.

Previous · 1 . . . 9 · 10 · 11 · 12 · 13 · 14 · 15 . . . 26 · Next

AuthorMessage
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987435 - Posted: 27 Mar 2019, 15:00:41 UTC

Greetings,

I have run into something completely weird... again. That script I posted worked just fine on my Pi #1 running on the SSD. I put it on the Pi again running on the MicroSD card this time.

Now I get this error message:
: not found 20: pi_temp.sh: 
pi_temp.sh: 32: pi_temp.sh: Syntax error: "fi" unexpected (expecting "do")

I have googled this and am running into brick walls. Nothing is addressing the problem. One forum had a respondent telling the person with the same problem to enter his script into ShellCheck on another website. So I did...

This is what it said is "wrong":
$ shellcheck myscript
 
Line 25:
    while [ true ] ; do
            ^-- SC2160: Instead of '[ true ]', just use 'true'.
 
Line 28:
      echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r"
                  ^-- SC2004: $/${} is unnecessary on arithmetic variables.
                                         ^-- SC2004: $/${} is unnecessary on arithmetic variables.

$ 

So I made those changes and ran it again which did nothing about the error I am getting, I still get it. I am at a loss as to why the script worked on all 3 Pis yesterday and now won't work on my oldest Pi running differently than yesterday. It's like it's going from the "if" statements to the endif "fi" and not seeing the "while ... do" loop. Any suggestions would be greatly appreciated. By the way, this is all being done as a learning experience.

Have a great day! :)

Siran
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987435 · Report as offensive     Reply Quote
Profile Brent Norman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 1 Dec 99
Posts: 2786
Credit: 685,657,289
RAC: 835
Canada
Message 1987442 - Posted: 27 Mar 2019, 16:03:19 UTC - in response to Message 1987435.  

From this ...
cpu_freq=/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cpu_temp=/sys/class/thermal/thermal_zone0/temp
if [ -e $cpu_freq ] ; then
if [ -e $cpu_temp ] ; then
while [ true ] ; do
clk=$(cat $cpu_freq)
cpu=$(cat $cpu_temp)
echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r"
sleep 5
done
fi
fi
--------
First thing I would check is if the files exist that you are scanning by taking a look ...
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/class/thermal/thermal_zone0/temp
ID: 1987442 · Report as offensive     Reply Quote
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987459 - Posted: 27 Mar 2019, 17:10:27 UTC - in response to Message 1987442.  

From this ...
cpu_freq=/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cpu_temp=/sys/class/thermal/thermal_zone0/temp
if [ -e $cpu_freq ] ; then
if [ -e $cpu_temp ] ; then
while [ true ] ; do
clk=$(cat $cpu_freq)
cpu=$(cat $cpu_temp)
echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r"
sleep 5
done
fi
fi
--------
First thing I would check is if the files exist that you are scanning by taking a look ...
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/class/thermal/thermal_zone0/temp

Hi Brent,

That was the first thing I looked for. The files are there.

Have a great day! :)

Siran
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987459 · Report as offensive     Reply Quote
Profile Chris904395093209d Project Donor
Volunteer tester

Send message
Joined: 1 Jan 01
Posts: 112
Credit: 29,923,129
RAC: 6
United States
Message 1987473 - Posted: 27 Mar 2019, 19:46:07 UTC

My 3B+ had 2 tasks go into error status since Sunday. I have removed all OC changes I made before and am back to 1.4 GHz. When I made that change, and rebooted the Pi, and I looked at BOINC to make sure tasks etc. were running - and the the remaining (estimated) time for the 4 active tasks were going down between 3 - 6 seconds every second. Kinda strange I thought - but perhaps the Pi runs better at the factory 1.4 GHz setting.
~Chris

ID: 1987473 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987477 - Posted: 27 Mar 2019, 20:20:49 UTC
Last modified: 27 Mar 2019, 20:41:48 UTC

I am still running OK at 1.5Ghz running two tasks. I only errored out when I tried three. I also took out the 100Mhz OC on the gpu since I don't think I had any use for it. I haven't been able to see any trend in compute times for whether the OC is beneficial or not. The stats host trend line is still on a upward slope. But this host hasn't crunched all that many tasks yet. The run times between Arecibo VLAR and non-VLAR and BLC are so different just because of the difficulty that it is hard to tell whether the OC is doing anything.

[Edit] I'm doing the Arecibo VLAR's in around 13 1/2 hours. The BLC tasks around 8 hours 10 or 20 minutes. Looking at Chris's and Siran's tasks for similar types I seem to be processing faster. Whether that is due to the OC or whether because I am only running two concurrent and they are running four concurrent, I don't know.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987477 · Report as offensive     Reply Quote
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987496 - Posted: 27 Mar 2019, 21:32:55 UTC - in response to Message 1987477.  

I am still running OK at 1.5Ghz running two tasks. I only errored out when I tried three. I also took out the 100Mhz OC on the gpu since I don't think I had any use for it. I haven't been able to see any trend in compute times for whether the OC is beneficial or not. The stats host trend line is still on a upward slope. But this host hasn't crunched all that many tasks yet. The run times between Arecibo VLAR and non-VLAR and BLC are so different just because of the difficulty that it is hard to tell whether the OC is doing anything.

[Edit] I'm doing the Arecibo VLAR's in around 13 1/2 hours. The BLC tasks around 8 hours 10 or 20 minutes. Looking at Chris's and Siran's tasks for similar types I seem to be processing faster. Whether that is due to the OC or whether because I am only running two concurrent and they are running four concurrent, I don't know.

Hi Keith,

I'm only running 2 concurrent each too. No OC on any of my Pis.

Have a great day! :)

Siran
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987496 · Report as offensive     Reply Quote
Profile Gary Charpentier Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 25 Dec 00
Posts: 30692
Credit: 53,134,872
RAC: 32
United States
Message 1987528 - Posted: 28 Mar 2019, 1:06:31 UTC - in response to Message 1987459.  

From this ...
cpu_freq=/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cpu_temp=/sys/class/thermal/thermal_zone0/temp
if [ -e $cpu_freq ] ; then
if [ -e $cpu_temp ] ; then
while [ true ] ; do
clk=$(cat $cpu_freq)
cpu=$(cat $cpu_temp)
echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r"
sleep 5
done
fi
fi
--------
First thing I would check is if the files exist that you are scanning by taking a look ...
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/class/thermal/thermal_zone0/temp

Hi Brent,

That was the first thing I looked for. The files are there.

Have a great day! :)

Siran

A cut and paste into a terminal window on my Pi3B running Jessie has no issues with it. Might there be a hidden character lurking in your file?
ID: 1987528 · Report as offensive     Reply Quote
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987588 - Posted: 28 Mar 2019, 10:04:14 UTC - in response to Message 1987528.  

From this ...
cpu_freq=/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cpu_temp=/sys/class/thermal/thermal_zone0/temp
if [ -e $cpu_freq ] ; then
if [ -e $cpu_temp ] ; then
while [ true ] ; do
clk=$(cat $cpu_freq)
cpu=$(cat $cpu_temp)
echo -ne $(($clk/1000))" Mhz / "$(($cpu/1000))" C \r"
sleep 5
done
fi
fi
--------
First thing I would check is if the files exist that you are scanning by taking a look ...
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /sys/class/thermal/thermal_zone0/temp

Hi Brent,

That was the first thing I looked for. The files are there.

Have a great day! :)

Siran

A cut and paste into a terminal window on my Pi3B running Jessie has no issues with it. Might there be a hidden character lurking in your file?

Hi Gary,

Hmmm... I don't know. I'll have to look. Thing is, I copied and pasted from the source just as I did with my post here. I think what I will do is copy from my post here and paste over what I have on the Pi right now. Thanks for the idea. :)

Have a great day! :)

Siran
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987588 · Report as offensive     Reply Quote
Profile Tom M
Volunteer tester

Send message
Joined: 28 Nov 02
Posts: 5124
Credit: 276,046,078
RAC: 462
Message 1987732 - Posted: 29 Mar 2019, 10:20:44 UTC

ID: 1987732 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987757 - Posted: 29 Mar 2019, 15:20:34 UTC - in response to Message 1987732.  

Interesting. Don't like it doesn't have Wi-Fi connectivity. Not a drop-in replacement for the rpi3 in my location. I would have to upgrade the switch near it to have more ports so I could plug it in. So add another $40 to the cost and the project would end up costing over $100.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987757 · Report as offensive     Reply Quote
Profile Tom M
Volunteer tester

Send message
Joined: 28 Nov 02
Posts: 5124
Credit: 276,046,078
RAC: 462
Message 1987767 - Posted: 29 Mar 2019, 15:44:39 UTC - in response to Message 1987757.  

Interesting. Don't like it doesn't have Wi-Fi connectivity. Not a drop-in replacement for the rpi3 in my location. I would have to upgrade the switch near it to have more ports so I could plug it in. So add another $40 to the cost and the project would end up costing over $100.


I have a "dongle" that plugs directly into an RJ-47 jack and into a USB port that gives the computer the impression it is "hardwired". It cost, I think $17.

Tom
A proud member of the OFA (Old Farts Association).
ID: 1987767 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987769 - Posted: 29 Mar 2019, 15:51:18 UTC - in response to Message 1987767.  

Your dongle would be useless. I don't have any more open wired ethernet ports to connect to. The only solution would be a USB to WiFi dongle and then you have to hope the distro has the dongle drivers.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987769 · Report as offensive     Reply Quote
Profile Tom M
Volunteer tester

Send message
Joined: 28 Nov 02
Posts: 5124
Credit: 276,046,078
RAC: 462
Message 1987771 - Posted: 29 Mar 2019, 15:57:34 UTC - in response to Message 1987769.  

Your dongle would be useless. I don't have any more open wired ethernet ports to connect to. The only solution would be a USB to WiFi dongle and then you have to hope the distro has the dongle drivers.


I am sorry I misunderstood. I thought the "new" machine had an RJ-47 jack if it didn't have a Wifi connection. My mistake.

Tom
A proud member of the OFA (Old Farts Association).
ID: 1987771 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987810 - Posted: 29 Mar 2019, 18:41:37 UTC - in response to Message 1987771.  

The new Odroid SBC has a RJ-45 ethernet port. But I don't have any more ethernet ports near it to connect to. I would have to either run a new cable across half the house and two bedrooms to get to a router or switch. Or upgrade the fully occupied 5 port switch 3 inches away from the rpi3 SBC to an 8 port switch which obviously would be the easiest. There is the extra $40 buck in project cost I defined in my OP.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987810 · Report as offensive     Reply Quote
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987825 - Posted: 29 Mar 2019, 19:31:56 UTC - in response to Message 1987810.  
Last modified: 29 Mar 2019, 19:35:07 UTC

The new Odroid SBC has a RJ-45 ethernet port. But I don't have any more ethernet ports near it to connect to. I would have to either run a new cable across half the house and two bedrooms to get to a router or switch. Or upgrade the fully occupied 5 port switch 3 inches away from the rpi3 SBC to an 8 port switch which obviously would be the easiest. There is the extra $40 buck in project cost I defined in my OP.

Hi Keith,

That's exactly what I did. I got an 8 port switch and now have my Win, Linux and 3 Pis connected. I could get 2 more Pis and really go to town. ;)

On another note, the app_config.xml file I was using for the 1050 Ti will work on the Linux box with the card, correct? If so, I believe the file should go in the /etc/boinc-client directory where the cc_config.xml file is, also correct? I'd have to modify it to run 4 CPU and 1 GPU. I'll also need to figure out any modifications for the 1660 Ti too. :)

Have a great day! :)

Siran

[edit]
By the way, I set the Linux box BOINC to "No New Tasks". I remember that from when I didn't do that before. ;)
[/edit]
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987825 · Report as offensive     Reply Quote
Profile Brent Norman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 1 Dec 99
Posts: 2786
Credit: 685,657,289
RAC: 835
Canada
Message 1987826 - Posted: 29 Mar 2019, 19:34:55 UTC - in response to Message 1987825.  

The app_config.xml goes in the seti project directory, not BOINC.
ID: 1987826 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987827 - Posted: 29 Mar 2019, 19:36:33 UTC - in response to Message 1987825.  

Yes, the app_config.xml file is the same no matter the OS. But the file goes into the project directory, NOT the BOINC directory.

I have an 8 port switch connected to the router. All full. Which connects to a 5 port switch in another bedroom. All full. Which also connects to another 5 port switch in the living room. All full. For further expansion needs I really should replace both the 5 port switches to 8 ports. Probably should replace the 8 port switch on the router with a 16 port switch.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987827 · Report as offensive     Reply Quote
Profile Siran d'Vel'nahr
Volunteer tester
Avatar

Send message
Joined: 23 May 99
Posts: 7379
Credit: 44,181,323
RAC: 238
United States
Message 1987829 - Posted: 29 Mar 2019, 19:46:52 UTC - in response to Message 1987826.  
Last modified: 29 Mar 2019, 20:06:54 UTC

The app_config.xml goes in the seti project directory, not BOINC.

Hi Brent,

I am not finding a projects directory at all. I only find the /etc/boinc-client directory and that is where cc_config.xml is located. I'm at a loss... :\

Have a great day! :)

Siran

[edit]
I finally found it. It's in /var/lib/boinc... . Now I gotta wait to run outta WUs before putting the app_config.xml file there. Now I know where to go. :)
[/edit]
CAPT Siran d'Vel'nahr - L L & P _\\//
Winders 11 OS? "What a piece of junk!" - L. Skywalker
"Logic is the cement of our civilization with which we ascend from chaos using reason as our guide." - T'Plana-hath
ID: 1987829 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987831 - Posted: 29 Mar 2019, 20:11:53 UTC - in response to Message 1987829.  

The app_config.xml goes in the seti project directory, not BOINC.

Hi Brent,

I am not finding a projects directory at all. I only find the /etc/boinc-client directory and that is where cc_config.xml is located. I'm at a loss... :\

Have a great day! :)

Siran

[edit]
I finally found it. It's in /var/lib/boinc... . Now I gotta wait to run outta WUs before putting the app_config.xml file there. Now I know where to go. :)
[/edit]

Not sure which host you are referencing. A Linux host or a Pi host. Anyway, the projects directories are in the other boinc-client directory located at /var/lib/boinc-client/projects/setiathome.berkeley.edu.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987831 · Report as offensive     Reply Quote
Profile Keith Myers Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 29 Apr 01
Posts: 13164
Credit: 1,160,866,277
RAC: 1,873
United States
Message 1987832 - Posted: 29 Mar 2019, 20:15:11 UTC - in response to Message 1987829.  

I finally found it. It's in /var/lib/boinc... . Now I gotta wait to run outta WUs before putting the app_config.xml file there. Now I know where to go. :)

No you can put the file in there anytime. Don't have to run out tasks. Just drop the file in and then re-read config files from the Manager menu.
Seti@Home classic workunits:20,676 CPU time:74,226 hours

A proud member of the OFA (Old Farts Association)
ID: 1987832 · Report as offensive     Reply Quote
Previous · 1 . . . 9 · 10 · 11 · 12 · 13 · 14 · 15 . . . 26 · Next

Message boards : Number crunching : Raspberry Pi & Other SBC Computers Discussion Thread :)


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.