LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Slackware ARM on RPI 4 (https://www.linuxquestions.org/questions/slackware-arm-108/slackware-arm-on-rpi-4-a-4175656290/)

Desiderius 06-24-2019 10:19 AM

Slackware ARM on RPI 4
 
Hi all

Any experience about Slackware ARM running on RPI 4 ?

ponce 06-24-2019 11:20 AM

does anybody has an RPI 4 yet?

fatmac 06-24-2019 12:57 PM

RPi4 has just been released, it's quite a decent spec this time.

Exaga 06-27-2019 12:29 AM

Quote:

Originally Posted by Desiderius (Post 6008521)
Hi all

Any experience about Slackware ARM running on RPI 4 ?

Yes.

Quote:

Originally Posted by ponce (Post 6008552)
does anybody has an RPI 4 yet?

Hahahah :thumbsup: <3 :D :hattip:

Quote:

Originally Posted by fatmac (Post 6008586)
RPi4 has just been released, it's quite a decent spec this time.

Apparently the RPi4 4GB version has sold out rather quickly.

ponce 06-27-2019 01:53 AM

Quote:

Originally Posted by Exaga (Post 6009538)
Quote:

Originally Posted by ponce (Post 6008552)
does anybody has an RPI 4 yet?

Hahahah :thumbsup: <3 :D :hattip:

I asked this two days ago :tisk: :p

Exaga 06-27-2019 01:57 AM

Quote:

Originally Posted by ponce (Post 6009563)
I asked this two days ago :tisk: :p

So, I'm a little slow! :D

I haven't been on LQ for a week or so. :tisk: :p

OldHolborn 06-28-2019 11:58 PM

#Has anyone got X working yet?
#
#The cursor appears correctly but any windows are just garbage.

In general - it's nice, this is a very usable day-to-day desktop machine, the extra RAM, 4GB on this one :) ,makes all the difference, but it runs HOT - 59C at idle

edit: comment out
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2

and it works, glxgears is only 35 fps at 1920x1080 so some tinkering required

Exaga 06-29-2019 02:52 AM

Quote:

Originally Posted by OldHolborn (Post 6010187)
edit: comment out
#dtoverlay=vc4-fkms-v3d
#max_framebuffers=2

and it works, glxgears is only 35 fps at 1920x1080 so some tinkering required

Fixed! New SARPi image has been uploaded: http://sarpi.fatdog.eu/index.php?p=downloads

Thanks for the feedback. :hattip:

My experiences are similar. RPi 4 runs at 57-60 degrees Celsius just sitting at the command prompt, idling. Take note of the temperature of the USB controller and Ethernet controller chips, and DDR4 RAM, under operation because they get quite hot. Also take note of the temperature on the USB-C power socket and (surprisingly) the micro-HDMI port(s) - whichever one I have connected to my display gets very hot, very quickly.

However, it seems to run fine at those temperatures, thus far.

OldHolborn 06-29-2019 03:38 AM

I've got the temperature warning showing :)

83 degrees, all 4 cores compiling qt5* on an SDcard mounted noatime,nodiratime,commit=600

*Alien's 5.12.4 buildscript

glorsplitz 07-01-2019 07:44 PM

assuming you guys installed to rpi4 using sarpi, where are you getting temperatures from?

sensors doesn't show anything on my sarpi rpi3b

OldHolborn 83 degrees, celsius?

OldHolborn 07-02-2019 05:34 PM

Hi,

No, didn't go the sarpi route so can't ( and wasn't ) commenting on the state of their rpi4 installer - took an existing slackwarearm install from an rpi2 and hammered on enough from the rpi github repo to get it to boot.

If you take the (hardfloat) /opt/vc stuff from the rpi firmware github repo you can do

# /opt/vc/bin/vcgencmd measure_temp
temp=59.0'C

( you'll need to add /opt/vc/lib to ld.so.conf and do ldconfig first )

yep it was 83 celcius! now got a small heatsink placed on it and a fan pointing at it!

# /opt/vc/bin/vcgencmd commands
for a full list of commands

I ended up building qt5-5.9.8 (add -no-webrtc to configure )
vlc - don't apply the libvpx patch

watching an mkv full screen uses only about 50% of 1 core ( fix the perms on /dev/vchiq )

( was also able to *un*comment )
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

enjoy :)

Exaga 07-02-2019 07:51 PM

Quote:

Originally Posted by glorsplitz (Post 6011002)
assuming you guys installed to rpi4 using sarpi, where are you getting temperatures from?

sensors doesn't show anything on my sarpi rpi3b

OldHolborn 83 degrees, celsius?

Soon, on the SARPi website, I'll be publishing the findings of some recent testing on the Raspberry Pi 4 using a heatsink, and heatsink+fan, attached to the SoC. I wrote a short bash script for the purpose of monitoring the CPU thermal sensors on the RPi2/3 and have been using it successfully for quite a while. With the advent of the RPi4 it's become even more useful! I've recently updated it to include the CPU clock speed as well.

No disrespect to OldHolborn, but you don't need that Raspbian shizzle. Try this code instead: http://sarpi.fatdog.eu/files/extra/cpu_status.txt

Code:

#!/bin/bash

# SARPi Project : http://sarpi.fatdog.nl - cpu_status.sh
#
# Raspberry Pi 2, 3, 4 - CPU clock frequency and thermal status.
# This script outputs the current status of the CPU clock speed (MHz)
# and core temperature (Celsius) for monitoring or testing purposes
# while under load or idle.
#
# Usage -
# Default command:  watch ./cpu_status.sh    # 2 seconds refresh
# Timed refresh:    watch -n<number of seconds or 0> ./cpu_status.sh
# With highlights:  watch -d -n0 ./cpu_status.sh
# Perm highlights:  watch -d=cumulative -n0 ./cpu_status.sh
#
# Exaga : 15 Jan 2018 - progenitor
#        29 Jun 2019 - updated with rpi model & hw revision
#        03 Jul 2019 - updated with system uptime
#

# Get RPi model and hardware revision
RPiModel=$(dmesg | grep "Machine model:" | cut -d' ' -f10-16)
RPiHWRev=$(cat /proc/cpuinfo | grep Revision | cut -d' ' -f2)

# Get cpu_status function
cpu_status () {
# Get current CPU frequency (All 4 cores)
CPU0freq=$(cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq)
cpuFreq0=$(($CPU0freq/1000))
if [ -f /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq ]; then
CPU1freq=$(cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq)
cpuFreq1=$(($CPU1freq/1000))
CPU2freq=$(cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq)
cpuFreq2=$(($CPU2freq/1000))
CPU3freq=$(cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq)
cpuFreq3=$(($CPU3freq/1000))
fi

# Ouput RPi model/version and system uptime to terminal
echo Device": "$RPiModel
echo HW Rev": "$RPiHWRev
echo
echo Uptime":"$(uptime)
echo

# Output CPU clock status to terminal
echo CPU Clock Speed
echo CPU 0 freq": "$cpuFreq0"MHz"
if [ -f /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq ]; then
echo CPU 1 freq": "$cpuFreq1"MHz"
echo CPU 2 freq": "$cpuFreq2"MHz"
echo CPU 3 freq": "$cpuFreq3"MHz"
fi
echo

# Get CPU thermal status and output to terminal
echo CPU Thermal Status
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))
echo CPU temp": "$cpuTemp1"."$cpuTempM"C"

# Output exit method to terminal
echo && echo && echo && echo
echo "[Press CTRL+C to exit.]"
}

# Roll cpu_status function
cpu_status

exit 0

#eof

Copy and paste it into a file and name it 'cpu_status.sh'. Then 'chmod +x cpu_status.sh'. Then run it once or on-the-fly with the 'watch' command...

Code:

./cpu_status.sh                  # run the script one time only - no refresh
watch ./cpu_status.sh            # default 2 second refresh
watch -n0 ./cpu_status.sh        # 0.1 second refresh
watch -n1 ./cpu_status.sh        # 1 second refresh

Or your own preference of command options may be more suitable.

Hope it helps. Much easier than ripping stuff from Raspbian.

glorsplitz 07-05-2019 11:07 PM

oops, I knew that about vcgencmd, sort of forgot

Anyway I have cron.daily script that captures stuff, like vcgencmd temperature.

These are Raspberry Pi 3 Model B Rev 1.2 sarpi built slackwarearm.

North side of house in a metal box no fan
vcgencmd reports temp = 54.8C (130.64F) and cpu_status.sh reports CPU temp: 55.3C

The other one upstairs kind of more south, plexi glass top and bottom open sides, noctua fan mounted above cpu
vcgencmd reports temp = 42.9C (109.22F) and cpu_status.sh reports CPU temp: 40.7C

there's no air conditioning and little clock thingy upstairs with second rpi3 says 26.8C

these were all captured around midnight

Exaga 07-06-2019 05:36 PM

Quote:

Originally Posted by Exaga (Post 6011341)
Soon, on the SARPi website, I'll be publishing the findings of some recent testing on the Raspberry Pi 4 using a heatsink, and heatsink+fan, attached to the SoC.

As promised: http://sarpi.fatdog.eu/index.php?p=r...i4b_thermotest

Quote:

Originally Posted by glorsplitz (Post 6012397)
vcgencmd reports temp = 42.9C (109.22F) and cpu_status.sh reports CPU temp: 40.7C

there's no air conditioning and little clock thingy upstairs with second rpi3 says 26.8C

these were all captured around midnight

That's quite surprising and raises questions. It would be interesting to know which one is correct. I don't know how vcgencmd gets it's data but the bash script queries the CPU clock and thermal sensors data directly so you'd think that was accurate. Perhaps not.

theWhip 07-06-2019 06:03 PM

Hi, fyi there is already a Firmware outside which fix the "thermal issue"

Best


All times are GMT -5. The time now is 07:55 PM.