We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4861b76 commit 7079439Copy full SHA for 7079439
1 file changed
mkimage.sh.in
@@ -166,8 +166,14 @@ if [ "$BOOT_FSTYPE" = "vfat" ]; then
166
fi
167
168
BOOT_START=2048
169
+ROOT_START=
170
case "$PLATFORM" in
- pinebookpro*) BOOT_START=32768 ;;
171
+ pinebookpro*)
172
+ BOOT_START=32768
173
+ # Without this, sfdisk creates root partition starting at
174
+ # 2048, overlapping u-boot reserved space and boot partition.
175
+ ROOT_START=$BOOT_START
176
+ ;;
177
esac
178
179
@@ -190,7 +196,7 @@ _EOF
190
196
sfdisk "${FILENAME}" <<_EOF
191
197
label: dos
192
198
${BOOT_START},${BOOT_FSSIZE},b,*
193
-+${BOOT_FSSIZE},+,L
199
+${ROOT_START},+,L
194
200
_EOF
195
201
LOOPDEV=$(losetup --show --find --partscan "$FILENAME")
202
# Normally we need to quote to prevent argument splitting, but
0 commit comments