sw-update: add support for nrhw20
This commit is contained in:
parent
d8ca2cb8b5
commit
919fcc9549
|
|
@ -4,6 +4,8 @@ LICENSE = "Proprietary"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Proprietary;md5=0557f9d92cf58f2ccdd50f62f8ac0b28"
|
||||||
RDEPENDS_${PN} = "e2fsprogs"
|
RDEPENDS_${PN} = "e2fsprogs"
|
||||||
|
|
||||||
|
FILESEXTRAPAHT_prepend := "${THISDIR}/${PN}/${MACHINE}:"
|
||||||
|
|
||||||
PV = "1.0.0"
|
PV = "1.0.0"
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,35 @@
|
||||||
|
PLATFORM_FIRST_PARTITION="/dev/mmcblk1p1"
|
||||||
|
PLATFORM_SECOND_PARTITION="/dev/mmcblk1p2"
|
||||||
|
PLATFORM_PROD_COMPATIBILITY=
|
||||||
|
PLATFORM_HW_VERSION=
|
||||||
|
get_active_partition()
|
||||||
|
{
|
||||||
|
boot_part=$(bd read boot_part)
|
||||||
|
if [ "$boot_part" == "None" ]; then
|
||||||
|
flag=$(bd read partition64.flags)
|
||||||
|
if [ $flag -ne 0 ]; then
|
||||||
|
boot_part=0
|
||||||
|
else
|
||||||
|
boot_part=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo $boot_part
|
||||||
|
}
|
||||||
|
PLATFORM_ACTIVE_PARTITION=$(get_active_partition)
|
||||||
|
|
||||||
|
set_active_partition()
|
||||||
|
{
|
||||||
|
boot_part=$(bd read boot_part)
|
||||||
|
if [ "$boot_part" == "None" ]; then
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
bd write partition64.flags=128
|
||||||
|
bd write partition64_1.flags=0
|
||||||
|
else
|
||||||
|
bd write partition64_1.flags=128
|
||||||
|
bd write partition64.flags=0
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
bd write boot_part=$1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue