filesystem: fixed IGEPv2 handling.
This commit is contained in:
parent
bbba4bf9ac
commit
e5e82d2ba6
@ -150,14 +150,19 @@ uboot_part_upgrade()
|
|||||||
uboot_part_upgrade_check()
|
uboot_part_upgrade_check()
|
||||||
{
|
{
|
||||||
# Check if board is a BeagleBone black.
|
# Check if board is a BeagleBone black.
|
||||||
dmesg | grep -i 'machine model' | grep -i beaglebone
|
dmesg | grep -i 'machine model' | grep -i beaglebone > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
uboot_part_upgrade 'BeagleBone Black' '/dev/mmcblk1p1'
|
uboot_part_upgrade 'BeagleBone Black' '/dev/mmcblk1p1'
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if board is a IGEPv2.
|
# Check if board is a IGEPv2.
|
||||||
dmesg | grep -i 'machine model' | grep -i igepv2
|
dmesg | grep -i 'machine model' | grep -i igepv2 > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
grep "IGEP v2" /proc/cpuinfo > /dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
uboot_part_upgrade 'IGEPv2' '/dev/mmcblk0p1'
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user