Creating a Devkit SD Card¶
- Table of contents
- Creating a Devkit SD Card
NOTE: This guide assumes you are using Ubuntu 10.04, or similar distribution, on a Virtual Machine or as your main operating system.
*NOTE: The filesystem provided in the archives below are old, as are the Kernel image and u-boot image. It is recommended to rebuild the Linux Kernel and U-boot images, as well as use the newest available filesystem from the Yocto based MDKs 2018-MDK-Release-Notes
Useful Links¶
Rebuilding the Linux Kernel: https://support.criticallink.com/redmine/projects/armc8-platforms/wiki/Linux_Kernel
Rebuilding U-Boot: https://support.criticallink.com/redmine/projects/armc8-platforms/wiki/Das_U-Boot_Port
Filesystem Wiki Page: https://support.criticallink.com/redmine/projects/armc8-platforms/wiki/Root_Filesystem
MDK November 2015 Release¶
The required files are installed by the MDK by default in /opt/criticallink/mitysom-335x_20151118/deploy
If you are using an older MDK on a current Linux system, you will need to update your mksd
and populate_am335x_dev_sd
scripts to the versions attached to the bottom of this wiki page. Please update those scripts before following these instructions.
To create an SD card, use the following steps:
- Change directory into the deploy directory
$ cd /opt/criticallink/mitysom-335x_20151118/deploy
- Copy the desired kernel and U-Boot files to the boot directory.
$ sudo cp uImage-devkit boot/uImage $ sudo cp 512MB_NAND/* boot/
- Determine which drive is the SD card
$ sudo ./populate_am335x_dev_sd -p Found MMC card at /dev/sdf Disk /dev/sdf: 3965 MB, 3965190144 bytes 49 heads, 48 sectors/track, 3292 cylinders, total 7744512 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: 0x00000000 Device Boot Start End Blocks Id System /dev/sdf1 8192 7744511 3868160 b W95 FAT32 ------------------------------------------------
- Create the SD Card. This will re-partition the disk and copy the necessary files to their respective locations. Note that absolute paths must be specified.
sudo ./populate_am335x_dev_sd --rootfs=$(pwd)/mitysom-335x-devkit-mitysom-335x.tar.bz2 /dev/sdf
TI SDK Release (Current Dev Kit SD Cards)¶
Windows Host OS¶
NAND Size | Download Link (redmine account required) | MD5SUM |
256MB | MitySOM-335x_256MB-NAND_40-000044-4_RevA.zip | d1742d8d2cba755900b4be5cf373f90b |
512MB | MitySOM-335x_512MB-NAND_40-000051-4_RevA.zip | 9387087584dae9c68749143b5476252a |
- Download the desired SD card version from the table above. Either image will work for a SoM with no NAND.
- Unzip the file so that you have a *.img file
- Download and use the Win32 Disk Imager application to write the image to your SD card
- Using an SD card reader in your PC insert the card to be written
- Open the Win32 Disk Imager application and be sure you select the drive letter for the SD card as this will erase the drive contents
- Image the drive and safely remove it
Linux (VM) Host OS¶
https://support.criticallink.com/redmine/projects/am335x-devkit/files
From the link above, pick a file under Dev Kit SD Card - 3.2 Kernel
that is meant for the NAND size your module has. If you are unsure you can figure out your module's NAND size with this link, starting on line 19, and your module's model number.
If your module has no NAND, either archive will work!
Procedure¶
For this procedure we will assume the module has a 256MB NAND.
What's in the archive¶
MityARM-335X_dev_SD_256MB_NAND.zip ├── am335x_root.tar - root file system tarball ├── boot │ ├── MLO - First stage boot loader image │ ├── pointercal - touch screen calibration file │ ├── u-boot.img - second stage boot loader image │ ├── uEnv.txt - u-boot's environment setup │ ├── uImage - Linux Kernel image │ └── versions.txt - Text file of software versions in the archive ├── md5sums.txt - MD5 Checksums of the files in the archive ├── mksd - support script for populate_am335x_dev_sd ├── populate_am335x_dev_sd - script that will be used to make the SD card └── populate_am335x_usb - script that can be used to make a USB drive
Using the populate_am335x_dev_sd
script¶
Usage info:
Usage: populate_am335x_dev_sd [opts] <MMC device> -h|--help Print this help -c|--continuous Continue and make multiple copies -f|--force Don't ask.. just do it -v|--verbose Be more verbose when working -m|--mount=<mount point> mount the disk at mount point -r|--rootfs=<rootfs tarfile> Use the specified tar file for root fs -p|--probe Find mmccards and exit <MMC device> is the path to the /dev device for the SD card
- Open a terminal window and navigate to the directory where the
MityARM-335X_dev_SD_256MB_NAND.zip
file was downloadedcd ~/Downloads
- Unzip the archive
unzip MityARM-335X_dev_SD_256MB_NAND.zip
- Navigate to the new created
MityARM-335X_dev
foldercd MityARM-335X_dev
- Make the
populate_am335x_dev_sd
andmksd
scripts executablesudo chmod +x populate_am335x_dev_sd mksd
- Insert your SD card or SD Card reader into your computer and run the following to see what device the reader belongs to
sudo fdisk -l
You will see output similar to belowmitydsp@mitydsp-dev:~/Desktop$ sudo fdisk -l [sudo] password for mitydsp: Disk /dev/sda: 128.8 GB, 128849018880 bytes 255 heads, 63 sectors/track, 15665 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0005af78 Device Boot Start End Blocks Id System /dev/sda1 * 1 15024 120673280 83 Linux /dev/sda2 15024 15665 5152769 5 Extended /dev/sda5 15024 15665 5152768 82 Linux swap / Solaris Disk /dev/sdd: 3973 MB, 3973054464 bytes 255 heads, 63 sectors/track, 483 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0001a4c8 Device Boot Start End Blocks Id System /dev/sdd1 1 483 3879666 83 Linux
NOTE: The device that has an asterisk in the boot column is your computer's boot drive. Do NOT use this device as it will overwrite and destroy your boot drive.
A good rule of thumb is to pick the device that is of similar size to the SD Card you are using in the card reader.
- Using the device location from the previous command (in this case
/dev/sdd
), run the following commandsudo ./populate_am335x_dev_sd /dev/sdd
Follow the prompts. The SD creation process will take a bit of time. When asked, unmount the device.
The SD card is now ready to use with your MitySoM-335x!
Go to top