armhwinfo: compatibility fix for /proc/cpuinfo (A64 builds)

This commit is contained in:
Thomas Kaiser 2017-04-29 13:06:32 +02:00
parent b4d3c1ba44
commit 4c5504e48f

View File

@ -204,7 +204,7 @@ prepare_board() {
;;
esac
;;
sun50i*) # A64/H64/H5 based boards like Pine64, OPi PC 2, NanoPi NEO 2
sun50i*|*Pine*) # A64/H64/H5 based boards like Pine64, OPi PC 2, NanoPi NEO 2
# Send IRQs for the lower real USB port (usb2) to cpu2 and for the upper (OTG/usb1) to cpu1
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