filesystem: added support for Raspberry Pi 3.
This commit is contained in:
parent
0e030cb595
commit
79e474bd3d
@ -247,12 +247,11 @@ rpi2_boot_part_upgrade()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
dtb="bcm2709-rpi-2-b.dtb"
|
for dtb in "$base/.glued-new/boot/"*.dtb; do
|
||||||
if [ -f "/mnt/$dtb" ]; then
|
|
||||||
echo -en "* $label: Replacing $dtb... "
|
echo -en "* $label: Replacing $dtb... "
|
||||||
cp "$base/.glued-new/boot/board.dtb" "/mnt/$dtb"
|
cp "$dtb" "/mnt"
|
||||||
echo 'done'
|
echo 'done'
|
||||||
fi
|
done
|
||||||
|
|
||||||
kernel='kernel7.img'
|
kernel='kernel7.img'
|
||||||
if [ -f "/mnt/$kernel" ]; then
|
if [ -f "/mnt/$kernel" ]; then
|
||||||
@ -273,22 +272,17 @@ rpi2_boot_part_upgrade()
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if board is a Raspberry Pi 2.
|
# Check if board is a Raspberry Pi 2/3.
|
||||||
rpi2_boot_part_upgrade_check()
|
rpi2_boot_part_upgrade_check()
|
||||||
{
|
{
|
||||||
dmesg | grep Machine | grep -i BCM2709 > /dev/null 2>&1
|
for machine in 'bcm2709' 'raspberry pi'; do
|
||||||
if [ $? -eq 0 ]; then
|
dmesg | grep Machine | grep -i "$machine" > /dev/null 2>&1
|
||||||
echo "* rpi2: machine detected"
|
if [ $? -eq 0 ]; then
|
||||||
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
echo "* rpi2: machine detected"
|
||||||
return 0
|
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
||||||
fi
|
return 0
|
||||||
|
fi
|
||||||
dmesg | grep Machine | grep -i "raspberry pi 2" > /dev/null 2>&1
|
done
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "* rpi2: machine detected"
|
|
||||||
rpi2_boot_part_upgrade "rpi2" "/dev/mmcblk0p1"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
old_move()
|
old_move()
|
||||||
|
Reference in New Issue
Block a user