The production SD image consists of two parts: Kernel and rootfs.
Depending on what kernel you used to develop your apps, you can either use the kernel images we provided, or you must have built your own kernel according to http://learn.linksprite.com/?p=1043. The file name of the finished kernel image in named in the following convention: pcduino_a10_kernel_livesuit_YYYYMMDD.img , where YYYY MMDD is the code for year, month and date.
The following are the steps to extract the rootfs from a finished pcDuino NAND:
1. Plug your TF card or USB flash disk into pcDuino, and do pcDuino, run:
$ sudo fdisk –l
We will get similar messages:
<strong></strong>Disk /dev/sda: 214.7 GB, 214748364800 bytes 255 heads, 63 sectors/track, 26108 cylinders, total 419430400 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0004c2a2 Device Boot Start End Blocks Id System /dev/sda1 * 2048 415236095 207617024 83 Linux /dev/sda2 415238142 419428351 2095105 5 Extended /dev/sda5 415238144 419428351 2095104 82 Linux swap / Solaris
Check weather your TF card or USB driver device is listed here. Normally, it would be listed as ‘sdx’ if you use usb flash disk, or ‘mmcblk0’ if you use a TF card. If your removable storage device can’t be mounted automatically, you will need to do it manually.
$sudo mount /dev/’your_node’ /mnt
The nandd in the following command is the NAND flash of pcDuino.
$sudo dd if=/dev/nandd of=image_name.img bs=1M
There is a file named ‘update.sh’ in our image release package. You will only need to change the name of the image accordingly. Or you can stick to the original filename, which is ubuntu.img.
Congratulation! Till now, you are done with creating production SD images.