Commit da849d2f authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

add dtb settings

parent f024cc9f
#!/bin/bash
set -e
kernel=$(uname -r)
dtb_path="/boot/dtbs/$kernel/imx8mq-librem5-r3.dtb"
sudo cp /usr/lib/linux-image-$kernel/freescale/imx8mq-librem5-r3-cam.dtb $dtb_path
#!/bin/bash
set -e
kernel=$(uname -r)
dtb_path="/boot/dtbs/$kernel/imx8mq-librem5-r3.dtb"
sudo cp /usr/lib/linux-image-$kernel/freescale/imx8mq-librem5-r3-dp.dtb $dtb_path
#!/bin/bash
set -e
kernel=$(uname -r)
dtb_path="/boot/dtbs/$kernel/imx8mq-librem5-r3.dtb"
sudo cp /usr/lib/linux-image-$kernel/freescale/imx8mq-librem5-r3.dtb $dtb_path
......@@ -51,6 +51,26 @@ fi
dpkg -l | grep linux-image | cut -d " " -f 3
uname -r
dtb_path="/boot/dtbs/$(uname -r)/imx8mq-librem5-r3.dtb"
diff /usr/lib/linux-image-$(uname -r)/freescale/imx8mq-librem5-r3-cam.dtb $dtb_path > /dev/null 2>&1
error=$?
if [ $error -eq 0 ]
then
echo "current dtb: CAM"
fi
diff /usr/lib/linux-image-$(uname -r)/freescale/imx8mq-librem5-r3-dp.dtb $dtb_path > /dev/null 2>&1
error=$?
if [ $error -eq 0 ]
then
echo "current dtb: DP"
fi
diff /usr/lib/linux-image-$(uname -r)/freescale/imx8mq-librem5-r3.dtb $dtb_path > /dev/null 2>&1
error=$?
if [ $error -eq 0 ]
then
echo "current dtb: DEFAULT"
fi
echo "------------------------------------------------------------------"
uptime
cpu0=$(cat /sys/devices/system/cpu/cpu0/online)
cpu1=$(cat /sys/devices/system/cpu/cpu1/online)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment