Search

Technical Discussion Group Forum

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

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

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

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 16 Jul 2014 08:18 AM by  Rajesh Tirumala
boot rootfs from nand device
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Rajesh Tirumala
New Member
New Member
Posts:10


--
15 Jul 2014 10:23 AM

    Hi,

    I am using ltib ( a bit new to the env) to build u-boot,root-fs for a custom AM37x board. Currently I've the rootfs running from ramdisk.

    I am trying to convert it to boot from nand such that any changes made to the file system persists across the reboots, preferably using ubifs.

    LogicPD omap board based on ARM AM3703 with 256 MB ram and NAND 1GB.

     My current bootargs is

    nand-ecc=hw console=ttyO2,115200n8 mem=224M@0x80000000 mpurate=600 i2c_bus=3,100 display=15 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/ram rw ramdisk_size=64000

     

    and the mtd partitions are 

    mtd0: 00080000 00020000 "x-loader"

    mtd1: 001a0000 00020000 "u-boot"

    mtd2: 00060000 00020000 "u-boot-env"

    mtd3: 00500000 00020000 "kernel"

    mtd4: 01400000 00020000 "ramdisk"

    mtd5: 1e480000 00020000 "fs"

    Could any one pl provide me with steps on how to configure ltib and u-boot settings to make the root-fs boot from nand.

    Appreciate any help in the right direction.

    Adam Ford
    Advanced Member
    Advanced Member
    Posts:794


    --
    15 Jul 2014 12:18 PM
    We don't have support for ubifs, but we do support YAFFS which is a flash based file system.

    Check out section 2.5.5.1 of the Linux BSP User guide (http://support.logicpd.co...lid=0&EntryId=1392).

    Steps 1-5 will walk you through the steps of building for YAFFS.


    You can install it on the SD card using the tool provided.

    logic@logic-VirtualBox:~/logic/Logic_BSPs/Linux_3.0/REL-ltib-DM3730-2.4-2$ ./bin/mkLogicFATcard.sh -cy


    The easiest way to get the system booting normally again is to run the makeyaffsboot script prompt.

    Safety eject the card and insert it into the board. Reboot and stop the boot process to get a OMAP Logic prompt.

    From there, you can install your yaffs image onto the flash

    OMAP Logic # run makeyaffsboot

    See section 3.2.10.2 of the Linux BSP User Guide.

    It will tell you which files you'll need on the card. Once the script is run, you should be able to remove the SD card and power cycle the SOM.

    Hopefully that will help get you going again.
    -adam
    Rajesh Tirumala
    New Member
    New Member
    Posts:10


    --
    16 Jul 2014 08:18 AM

    Thanks you so much, document is very useful.

    You are not authorized to post a reply.