Skip to content

Commit 4861b76

Browse files
renatoaguiarthe-maldridge
authored andcommitted
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.
1 parent a7a20d5 commit 4861b76

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

mkimage.sh.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
165165
_args="-I -F16"
166166
fi
167167

168+
BOOT_START=2048
169+
case "$PLATFORM" in
170+
pinebookpro*) BOOT_START=32768 ;;
171+
esac
172+
168173
case "$PLATFORM" in
169174
cubieboard2|cubietruck|ci20*|odroid-c2*)
170175
# These platforms use a single partition for the entire filesystem.
@@ -184,8 +189,8 @@ _EOF
184189
# layout for new platforms.
185190
sfdisk "${FILENAME}" <<_EOF
186191
label: dos
187-
2048,${BOOT_FSSIZE},b,*
188-
,+,L
192+
${BOOT_START},${BOOT_FSSIZE},b,*
193+
+${BOOT_FSSIZE},+,L
189194
_EOF
190195
LOOPDEV=$(losetup --show --find --partscan "$FILENAME")
191196
# Normally we need to quote to prevent argument splitting, but

0 commit comments

Comments
 (0)