Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Logic PD support staff and engineers participate, Logic PD does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Logic PD engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Logic PD product download, please subscribe to the TDG Forum of interest.

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jul 2013 03:20 PM by  steven.eckhoff@logicpd.com
Article: LTIB Target Image Generation
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

steven.eckhoff@logicpd.com



Basic Member


Posts:192
Basic Member


--
17 Jul 2013 03:20 PM
    LTIB allows its users to create various images to support file systems like yaffs2 operating in NAND and ext2 operating in RAM (i.e. ramdisk). This short note will detail how switch between these two types of images.

    Ramdisk:
    A ramdisk image can be stored on an SD card or a NAND chip. When the system boots, the ramdisk will be pulled from persistent storage and placed in ram, from which it operates. To create a ramdisk image complete the following steps:

    1. From the LTIB directory on the host PC from which the image is built execute the command "./ltib -c" to enter the LTIB menu
    2. Once the LTIB configuration menu comes up, under the "Target Image Generation" heading, go to Options-> Target image
    3. A menu should have popped up; in this menu, use the arrow keys to highlight "ext2.gz ramdisk" and then press the space bar to place an X inside the brackets
    4. Now exit out of LTIB and select yes to save the configuration

    Now your image will be built and placed inside the same LTIB directory from where you initially executed the LTIB script. The image will be named "rootfs.ext2.gz.uboot". Now you can place this image on an SD card and use it.

    NOTE: Before you can successfully boot the ramdisk image you will need to make the appropriate changes to the U-Boot environment. For information on how to do this please see the DM37x Linux BSP User Guide[1] and the U-Boot Labs for DM3730 / AM3703 SOMs[2].

    YAFFS2:
    The YAFFS2 image that will be created will need to be programmed into a NAND device. When the kernel boots it will need to have read, from the bootargs, that the rootfs is of yaffs2 type and which device the file system is located on (e.g. /dev/mtd0)

    1. From the LTIB directory on the host PC from which the image is built execute the command "./ltib -c" to enter the LTIB menu
    2. Once the LTIB configuration menu comes up, under the "Target Image Generation" heading, go to Options-> Target image
    3. A menu should have popped up; in this menu, use the arrow keys to highlight "yaffs2" and then press the space bar to place an X inside the brackets
    4. Now exit out of LTIB and select yes to save the configuration

    Now your image will be built and placed inside the same LTIB directory from where you initially executed the LTIB script. The image will be named "rootfs.yaffs2". Now you can place this image on an SD card and execute the U-Boot script, makeyaffsboot, using the U-Boot "run" command.

    NOTE: Before you can successfully boot the yaffs2 image you will need to make the appropriate changes to the U-Boot environment. For information on how to do this please see the DM37x Linux BSP User Guide[1] and the U-Boot Labs for DM3730 / AM3703 SOMs[2].

    [1] http://support.logicpd.com/downloads/1431/1020203D_DM37x_Linux_BSP_UM.pdf
    [2] http://support.logicpd.com/downloads/1568/1023129A_DM3730-AM3703_U-Boot_Labs.pdf
    You are not authorized to post a reply.