Here are the steps for using the script recently created to work with the DM37x Linux BSP release.
1. Place the script into the LTIB root directory (i.e. REL-ltib-DM3730-x.x-x)
2. Give yourself permission to run the script ($ chmod 777 create_sdcard.sh)
3. Insert a SD Card into your Linux Host PC
4. Run the script ($ ./create_sdcard.sh)
5. After the script has completed, remove the SD Card and insert it into your DM37x SOM system
6. Boot the system and press a key to pause at the u-boot prompt
7. Update the following u-boot variables:
OMAP Logic # nand erase.chip
OMAP Logic # env default -f
OMAP Logic # setenv rootfs_location /dev
OMAP Logic # setenv rootfs_type ext3
OMAP Logic # setenv rootfs_device /dev/mmcblk0p2
OMAP Logic # saveenv
OMAP Logic # reset
8. Verify your system rootfs is running from /dev/mmcblk0p2
DM-37x# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 3565952 243348 3141460 7% /
tmpfs 120400 52 120348 0% /dev
/dev/mmcblk0p2 3565952 243348 3141460 7% /mnt/mmcblk0p2
/dev/mmcblk0p1 307016 4384 302632 1% /mnt/mmcblk0p1
shm 120400 0 120400 0% /dev/shm
rwfs 512 0 512 0% /mnt/rwfs
DM-37x# cat /proc/cmdline
nand-ecc=chip console=ttyO0,115200n8 display=28 ignore_loglevel early_printk no_console_suspend mtdparts=omap2-nand.0:512k(x-loader),1664k(u-boot),384k(u-boot-env),5m(kernel),20m(ramdisk),-(fs) root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
DM-37x#
Expected output when creating the SD Card.
logic@logic-VirtualBox:~/logic/Logic_BSPs/Linux_3.0/REL-ltib-DM3730-2.4-2$ ./create_sdcard.shDevices available:
sdb is 3.7GB - Card Reader
Enter device: sdb
Setting up sdb
Do you wish to continue? (y/N) y
Partitioning sdb.
[sudo] password for logic:
mke2fs 1.42 (29-Nov-2011)
Mounting bootloader partition
Mounting root partition
Flushing data to SD card
Unmounting bootloader partition
Unmounting root partition
logic@logic-VirtualBox:~/logic/Logic_BSPs/Linux_3.0/REL-ltib-DM3730-2.4-2$
You can download the create_sdcard.sh script from the link below.
create_sdcard.zip