This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

create JFFS2 image

Other Parts Discussed in Thread: AM3703

Hi There,

I am trying to put a linux file system on my customized AM3703 board nand. I got the following link as a guide:

http://processors.wiki.ti.com/index.php/Create_a_JFFS2_Target_Image

But the link assumes there is a ramdisk.gz ready in my SDK package. I don't have it. Could anyone tell me how to generate ramdisk.gz for creating JFFS2 target image. Should I use busybox? Thanks.

Frank

  • I also looked at the contents of the wiki page you mentioned:

    http://processors.wiki.ti.com/index.php/Create_a_JFFS2_Target_Image

    In one of the steps, the contents of ramdisk are being extracted and used for generating the JFFS2 filesystem. So, I don't think it is necessary to start with a RAMDISK image.

    Still, checkout these wiki pages:

    http://processors.wiki.ti.com/index.php/Creating_a_Root_File_System_for_Linux_on_OMAP35x

    http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK

    http://processors.wiki.ti.com/index.php/Initrd

    Some of the pages may describe process in context of different SoCs/ toolchain used, but the basic steps to create ramdisk should be same.

  • Hi Sanj,

    Thanks for the quick response. I am following the first link now. Building target file tree by busybox. Will let you know I have further questions. Thanks.

    Frank

  • Hi Sanj,

    I generated the jffs2 image which is about 4.6M. I am trying to put the file system into the nand. I first followed the instruction in OMAP35x-PSP 04.02.00.07 User Guide. It just let me flash the jffs2 bin file into nand fixed address 0x780000. Then I restart the board with uboot setting:

    setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2

    The board did not come up.

    Then I follow the instruction in

    http://processors.wiki.ti.com/index.php/Put_JFFS2_Image_to_Flash

    But this guide requires me to get the latest u-boot in order to make nand write.trimffs  working.  I got the lastest u-boot but somehow it does not start at all after compile. I tried to directly flash the image from Linux but when I run flash_eraseall to erase /dev/mtd4. It gives me error. I am stuck now and don't know how to proceed. Please help. Thanks.

    Frank

  • Frank,
    Both documents you referred are good, but refer to different platforms. While the generic concept remains same, there are platform specifics that you must consider.
    The requirement for "latest" u-boot would be a 'passing reference' to possible versions that may not support specific features. It doesn't always "have" to be latest.
    If you are using a version of PSP release, stay with the release unless there is a specific need. The documents may not capture current state of the upstreams churn in the OMAP3 for u-boot and Linux kernel. I believe there were some changes in the ECC schemes.
    Specifically to your problem, you are only writing the JFFS2 filesystem, but you mention that board didn't come up? Do you mean filesystem didn't mount OR boot didn't boot-up?
    Ensure that you are following the ECC scheme for all NAND partitions.
    See: http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_04.02.00.07_UserGuide#Selecting_ECC_scheme
    If you still face issues, attach a log and share the commands you are using.

  • Hi Sanj,

    I created a new thread about my problem last Friday. I put the detaile failure there. Please use that. Basically, the x-loader/u-boot can start but the Linux Kernel cannot boot up after I point file system to jffs2. Please check the following thread. Thanks.

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/416/t/162474.aspx

    Frank