Also, I found on one of my projects that the /boot partion does not need to be 'physically' the first partion.
You can have p1 sector after p2 and still boots fine.
In fdisk you just set the partion number to 1 and have the start sector after the ext4.
My customer needed a large FAT32 partion so here is how I did it.
Partion1: /boot (FAT32 shrunk) startsector=6001 endsector=6062 mmcblk0p1
Partion2: /system (ext4) startsector=0 endsector=6000 mmcblk0p2
On first boot, enlarge partion 1 to SD card size.
Code: Select all
cp -avr /boot /tmp/boot
umount /boot
mkfs.vfat -F32 -v -I -n " " /dev/mmcblk0p1
mount /dev/mmcblk0p1 /boot
cp -r /tmp/boot/* /boot/
This way, windows will see the larger partion etc.
Not sure if you could work this with NOOBS however?