LINUX sama5d3 start SD card making steps

Source: Internet
Author: User

will be SD card is inserted via card reader Virtual in-Machine , perform the following command detection Hanging on location.

Mount | Grep/media

Uninstalling the SD card

sudo umount/dev/sdxx

Use the "dd" command to clear the MRB and partition information:

sudo dd if=/dev/zero of=/dev/sdx bs=10m count=1

To modify a partitioned table with the "fdisk" command

sudo fdisk/dev/sdx

Press "P" key to display the current partition information:

Command (M for help): P disk/dev/mmcblk0:2002 MB, 2002780160 bytes heads, sectors/track, 35560 cylinders Units = C Ylinders of * = 56320 bytes Sector size (logical/physical): bytes/512 bytes I/o size (minimum/optimal): 512 bytes/512 bytes Disk identifier:0x00000000 Device Boot Start End Blocks Id System

Press "n" key to add a primary partition and determine the partition size

Command (M for help): N Command action E extended P primary partition (1-4) p partition number (1-4): 1 First cylinder (1- 35560, default 1): Using default value 1 last cylinder, +cylinders or +size{k,m,g} (1-35560, default 35560): +64m

Press the "T" key and enter the number 6 to make the new partition the FAT16 file system:

Command (M for help): T Selected partition 1 Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (F AT16)

Press "n" key to create a second partition:

Command (M for help): N Command action E extended P primary partition (1-4) p partition number (1-4): 2 First Cylinder (11 94-35560, default 1194): Using default value 1194 last cylinder, +cylinders or +size{k,m,g} (1194-35560, default 35560): + 1500M

Press "P" key to display the current partition information:

Command (M for help): P Device Boot Start End Blocks Id system/dev/mmcblk0p1 1 1193 65610 6 FAT16/DEV/MMCBLK0P2 1194 291 1536040 for Linux

Press the "W" key to write the partition information.

Command (M for help): W The partition table has been altered! Calling IOCTL () to re-read partition table.

Format and mount the partition:

sudo mkfs.msdos/dev/mmcblk0p1 # format as FAT32 you need add parameters "-F 32". If using SD card reader need change the device name to "/DEV/SDX1"

sudo mkfs.ext2/dev/mmcblk0p2 # If using SD card reader need change the device name to "/DEV/SDX2"

sudo mount-t vfat/dev/sdx1/mnt/fat

sudo mount-t ext2/dev/sdx2/mnt/ext

LINUX sama5d3 start SD card making steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.