[vc_row][vc_column width=”1/1″][vc_column_text]For commercial developers, after months of hard work, all the work/applications have been developed and tested on pcDuino on the NAND flash. Now we want to move on to manufacturing stagge. How can we generate the production SD image from the samples?
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Steps to make a production SD” tab_id=”1389074292-2-85″][vc_column_text]The production SD image consists of two parts: Kernel and rootfs.
Kernel:
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 kernel in this format can be supplied to factory/us or end users to be burned to pcDuino using livesuit tool, or burned to a production SD with Phonenix Card.
Rootfs:
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
$cd /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.
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.