nanopi*: Start first partition at 2048s. This is how upstream does it, so it should work here as well.

This commit is contained in:
Steev Klimaszewski
2018-07-16 16:37:05 -05:00
parent 7013270b6a
commit 533739ffdd
2 changed files with 2 additions and 4 deletions

View File

@@ -292,11 +292,10 @@ chmod 755 "${basedir}"/kali-${architecture}/etc/init.d/zram
sed -i -e 's/^#PermitRootLogin.*/PermitRootLogin yes/' "${basedir}"/kali-${architecture}/etc/ssh/sshd_config
# Create the disk and partition it
# We start out at around 4MB so there is room to write u-boot without issues.
echo "Creating image file for NanoPi2"
dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size}
parted ${imagename}.img --script -- mklabel msdos
parted ${imagename}.img --script -- mkpart primary ext4 4096s 264191s
parted ${imagename}.img --script -- mkpart primary ext4 2048s 264191s
parted ${imagename}.img --script -- mkpart primary ext4 264192s 100%
# Set the partition variables

View File

@@ -299,11 +299,10 @@ wget https://raw.github.com/steev/rpiwiggle/master/rpi-wiggle -O "${basedir}"/ka
chmod 755 "${basedir}"/kali-${architecture}/root/scripts/rpi-wiggle.sh
# Create the disk and partition it
# We start out at around 4MB so there is room to write u-boot without issues.
echo "Creating image file ${imagename}.img"
dd if=/dev/zero of="${basedir}"/${imagename}.img bs=1M count=${size}
parted ${imagename}.img --script -- mklabel msdos
parted ${imagename}.img --script -- mkpart primary ext4 4096s 264191s
parted ${imagename}.img --script -- mkpart primary ext4 2048s 264191s
parted ${imagename}.img --script -- mkpart primary ext4 264192s 100%
# Set the partition variables