sudo apt-get install parted
sudo apt-get install e2fsprogs reiserfsprogs xfsprogs hfsprogs
parted
>> select
>> print or p
>> mklabel
>> rm
parted /dev/sdb mklabel msdos y
parted /dev/sdb mklabel gpt y
parted /dev/sdb p
parted /dev/sdb primary '1 -1'
parted /dev/sdb mkpart primary 1 30GB
parted /dev/sdb mkpart primary '30GB -1'
parted /dev/sdb rm 1
parted /dev/sdb mkpart extended 50GB 100GB
parted /dev/sdb mkpart logical 50GB 80GB
mkfs.ext3 /dev/sdb1 -L ROOTFS
mkfs.vfat -F 16 -n "KERNEL" /dev/sdb2
mount /dev/sdb1 /AAA
mount /dev/sdb2 /BBB
I would recommend to make use of it. Prepare a SD-card with two partition, the first being a FAT partition and containing the kernel (uImage) and the device tree (imx6dl-colibri-eval-v3.dtb). The second is the root file system, use a ext3 file system and copy the content of your rootfs (using something like this:
sudo cp -Ppr /.../rootfs/* /AAA
sudo cp /.../arch/arm/uboot/uImage /BBB/uImage
sudo cp /.../arch/arm/uboot/dts/imx6q-apalis-ixora.dtb /BBB/imx6q-apalis-ixora.dtb