rootfsinstall: leave 1MB+ of free space before first partition to support BananaPi u-boot installation
This commit is contained in:
parent
01617aa73b
commit
7b55fdddd5
@ -126,12 +126,12 @@ fi
|
|||||||
|
|
||||||
case $TARGETDEVICE in
|
case $TARGETDEVICE in
|
||||||
rpi) BOOTFSTYPE=fat32
|
rpi) BOOTFSTYPE=fat32
|
||||||
BOOTFSSIZE=40M
|
BOOTFSSIZE=22M
|
||||||
[ "$USEKERNEL" ] || USEKERNEL=zImage-3.6.11-rpi
|
[ "$USEKERNEL" ] || USEKERNEL=zImage-3.6.11-rpi
|
||||||
KERNELDEST="@BOOT@/kernel.img"
|
KERNELDEST="@BOOT@/kernel.img"
|
||||||
;;
|
;;
|
||||||
cubox) BOOTFSTYPE=ext3
|
cubox) BOOTFSTYPE=ext3
|
||||||
BOOTFSSIZE=20M
|
BOOTFSSIZE=22M
|
||||||
[ "$USEKERNEL" ] || USEKERNEL=uImage-3.6.9-cubox
|
[ "$USEKERNEL" ] || USEKERNEL=uImage-3.6.9-cubox
|
||||||
KERNELDEST="@BOOT@/boot/uImage"
|
KERNELDEST="@BOOT@/boot/uImage"
|
||||||
;;
|
;;
|
||||||
@ -170,7 +170,7 @@ fi
|
|||||||
|
|
||||||
if [ "$BOOTFSTYPE" ]; then
|
if [ "$BOOTFSTYPE" ]; then
|
||||||
# FAT partition
|
# FAT partition
|
||||||
sudo parted -s -a cyl -- ${DRIVE} mkpart primary $BOOTFSTYPE 0 $BOOTFSSIZE
|
sudo parted -s -a cyl -- ${DRIVE} mkpart primary $BOOTFSTYPE 1049k $BOOTFSSIZE
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "ERROR: parted exited with error $? while creating boot partition on ${DRIVE}; aborting."
|
echo "ERROR: parted exited with error $? while creating boot partition on ${DRIVE}; aborting."
|
||||||
fi
|
fi
|
||||||
@ -181,7 +181,7 @@ if [ "$BOOTFSTYPE" ]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# rootfs partition
|
# rootfs partition
|
||||||
sudo parted -s -a cyl -- ${DRIVE} mkpart primary $SYSTEMFSTYPE 0 -1
|
sudo parted -s -a cyl -- ${DRIVE} mkpart primary $SYSTEMFSTYPE 1049k -1
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "ERROR: parted exited with error $? while creating system partition on ${DRIVE}; aborting."
|
echo "ERROR: parted exited with error $? while creating system partition on ${DRIVE}; aborting."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user