DM3xx filesystem restore procedure in DVSDK 3.10
From Texas Instruments Embedded Processors Wiki
Translate this page to
Creating and Flashing DVSDK Demo Filesystem for DM3XX Platforms
This section describes creating JFFS2 demo filesystem from DVSDK release.
Note: If you are upgrading from DVSDK 2.X and before. Please follow the instructions provided in the link Flashing_DM365_EVM_using_NAND_Writer_utilities.
In following commands please replace 3_10_X_X to actual DVSDK release number, like 3_10_00_15 and replace 3xx with 355 or 365.
- Download DVSDK demo image, filesystem and data in a Ubuntu machine where you have sudo privilege.
host $ wget http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_10/latest/exports/arago-demo-image-dm3xx-evm.tar.gz host $ wget http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_10/latest//exports/dvsdk_3_10_X_X_overlay_dm3xx.tar.gz host $ wget http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_3_10/latest/exports/data_dm3xx.tar.gz
- Create the filesystem image
host $ mkdir dm3xx_flash_image_3_10_X_X host $ sudo tar -xzf arago-demo-image-dm3xx-evm.tar.gz -C dm3xx_flash_image_3_10_X_X host $ sudo tar -xzf dvsdk_3_10_X_X_overlay_dm3xx.tar.gz -C dm3xx_flash_image_3_10_X_X host $ sudo tar -xzf data_dm3xx.tar.gz -C dm3xx_flash_image_3_10_X_X/opt/dvsdk
- Install web-server
host $ sudo mv dm3xx_flash_image_3_10_X_X/opt/dvsdk/dm3xx/web/thttpd dm3xx_flash_image_3_10_X_X/etc/init.d/thttpd host $ sudo cp -r dm3xx_flash_image_3_10_X_X/opt/dvsdk/dm3xx/web/* dm3xx_flash_image_3_10_X_X/srv/www/ host $ sudo chmod 644 dm3xx_flash_image_3_10_X_X/srv/www/*.* host $ sudo chmod a+x dm3xx_flash_image_3_10_X_X/srv/www/cgi-bin/*
- Change /etc file to start demo at bootup
host $ sudo chmod a+x dm3xx_flash_image_3_10_X_X/opt/dvsdk/dm3xx/dvevmdemo host $ sudo mv dm3xx_flash_image_3_10_X_X/opt/dvsdk/dm3xx/dvevmdemo dm3xx_flash_image_3_10_X_X/etc/init.d host $ cd dm3xx_flash_image_3_10_X_X/etc/rc5.d host $ sudo ln -s ../init.d/dvevmdemo S99dvevmdemo host $ cd ../..
- Create DVSDK demo filesystem image
host $ sudo tar -cf ../dm3xx_flash_image_3_10_X_X.tar . host $ cd ..
- Copy the image to the NFS filesystem
host $ cp dm3xx_flash_image_3_10_X_X.tar <to nfs filesystem>
- Now boot target using NFS, then do the following to write the image to NAND
target$ flash_eraseall /dev/mtd4 target$ mkdir -p /mnt/nand target$ mount /dev/mtdblock4 /mnt/nand -t jffs2 target$ cd /mnt/nand target$ tar -xf dm3xx_flash_image_3_10_X_X.tar
- Change bootargs with root=/dev/mtdblock4 rw rootfstype=jffs2, the board should boot from flash. The board should come up with a DVSDK demo automatically started.
Leave a Comment
