mirror of
https://github.com/Fishwaldo/build.git
synced 2025-03-22 06:41:23 +00:00
Small Pine64 fixes
This commit is contained in:
parent
a4dde61a20
commit
fc8889a60c
2 changed files with 5 additions and 1 deletions
|
@ -163,6 +163,8 @@ prepare_board() {
|
|||
echo 2 >/proc/irq/$(awk -F":" "/usb1/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
|
||||
echo 4 >/proc/irq/$(awk -F":" "/usb2/ {print \$1}" </proc/interrupts | sed 's/\ //g')/smp_affinity
|
||||
echo 8 >/proc/irq/$(awk -F":" "/sunxi-mmc/ {print \$1}" </proc/interrupts | sed 's/\ //g' | head -n1)/smp_affinity
|
||||
echo 8 >/proc/irq/$(awk -F":" "/eth/ {print \$1}" </proc/interrupts | sed 's/\ //g' | head -n1)/smp_affinity
|
||||
echo 7 >/sys/class/net/eth0/queues/rx-0/rps_cpus
|
||||
;;
|
||||
esac
|
||||
} # prepare_board
|
||||
|
|
|
@ -101,7 +101,9 @@ if [ -e "$storage" ]; then
|
|||
fi
|
||||
|
||||
# read temperature from different locations
|
||||
mkdir -p -m775 /etc/armbianmonitor/datasources/
|
||||
[ -d /etc/armbianmonitor/datasources ] || mkdir -p -m775 /etc/armbianmonitor/datasources
|
||||
read board_temp </sys/devices/virtual/thermal/thermal_zone1/temp
|
||||
ln -fs /sys/devices/virtual/thermal/thermal_zone1/temp /etc/armbianmonitor/datasources/soctemp
|
||||
|
||||
# from axp via i2c for some old sunxi
|
||||
if [ -d "/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue