I've got an SD card and want to create a partition on it for the ext4 fs. The partition must start after 1MB. This 1MB will be used for a bootloader (u-boot). I'm doing this on OS X Yosemite.
Here's what I do and get:
macbook@terminalx:cubie $ diskutil partitionDisk disk3 2 "Free Space" "%noformat%" 1M "Free Space" "%noformat%" R
Started partitioning on disk3
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Finished partitioning on disk3
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *4.0 GB disk3
1: EFI EFI 209.7 MB disk3s1
The result is not what I expect at all. In my mind it must be something like two partitions with no format. First is 1MB and the second is all left free space on the SD card.
How can I achieve this?
Thank you.