Increase partitions shift on pinebookpro
Create boot partition starting at 32768 sectors on pinebookpro platforms. That leaves enough unallocated space to install u-boot without overlapping with any partition.
This commit is contained in:
parent
a7a20d50d3
commit
4861b7619d
|
@ -165,6 +165,11 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
|
||||||
_args="-I -F16"
|
_args="-I -F16"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BOOT_START=2048
|
||||||
|
case "$PLATFORM" in
|
||||||
|
pinebookpro*) BOOT_START=32768 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$PLATFORM" in
|
case "$PLATFORM" in
|
||||||
cubieboard2|cubietruck|ci20*|odroid-c2*)
|
cubieboard2|cubietruck|ci20*|odroid-c2*)
|
||||||
# These platforms use a single partition for the entire filesystem.
|
# These platforms use a single partition for the entire filesystem.
|
||||||
|
@ -184,8 +189,8 @@ _EOF
|
||||||
# layout for new platforms.
|
# layout for new platforms.
|
||||||
sfdisk "${FILENAME}" <<_EOF
|
sfdisk "${FILENAME}" <<_EOF
|
||||||
label: dos
|
label: dos
|
||||||
2048,${BOOT_FSSIZE},b,*
|
${BOOT_START},${BOOT_FSSIZE},b,*
|
||||||
,+,L
|
+${BOOT_FSSIZE},+,L
|
||||||
_EOF
|
_EOF
|
||||||
LOOPDEV=$(losetup --show --find --partscan "$FILENAME")
|
LOOPDEV=$(losetup --show --find --partscan "$FILENAME")
|
||||||
# Normally we need to quote to prevent argument splitting, but
|
# Normally we need to quote to prevent argument splitting, but
|
||||||
|
|
Loading…
Reference in New Issue