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.

Is it possible UBIFS mount with SPI Flash

Other Parts Discussed in Thread: AM3352

Hi.

NOW I'm using SPL & U-boot with SPI Flash boot

it's config current SPI Flash status

SPI flash is (SPL + U-BOOT ) then Nand  is (Kernel , UBIFS ) 

it's success boot...finish

But

i want change SPI Flash ONLY 

i' want plan SPI flash ( SPL + U-boot + kernel + UBIFS ) .

After boot finish then nand mount

i know that possible spi flash with kernel

But . 

Is it possible only spi flash boot with UBIFS , now env is config  only jffs2

if it possible , how can it change boot env and the other thing (kernel code ,,,etc)

Thank you

Kind Regards,

 

  • Hi diggo,

    The SPI flash on the AM335x GP EVM is 8MB in size. This is not enough to hold SPL + U-Boot + Kernel + UBIFS.

    SPL is 85861 bytes.
    U-Boot is 355376 bytes
    Kernel is 3179344 bytes

    The sum of these three binaries is 3620581 bytes which leaves only 4768027 for the UBIFS. The minimal Arago filesystem provided with the AM335x SDK generates an ubi.img file with size 25.7MB. This is far too big for the SPI flash on the EVM.

    There is something else - SPI flash is really slow compared to the NAND flash on the EVM, so the performance of the UBIFS won't be that good.

    Best regards,
    Miroslav

  • Thank you your advice

    I'Have Two Problem

    1 case :

    then this same case status

    it change that is SPI Flash ( SPL + U-boot + Kernel + ramdisk )

    Is it possible this case..

    2 case :

    it change that is SPI Flash ( SPL + U-boot + Kernel + Jffs2 )

    Then mount nand ( UBIFS ).

    Is it possible Am3352 is support HW

    and Is it change ECC alogrithm ( BCH8 -> Hamming ETC)

    Thank you

    Kind Regards,

     

     

  • Hi diggo,

    Regarding your 1st question: Yes, it is possible to use ramdisk (or any other filesystem), provided that the sum of the MLO + U-Boot + Kernel + File System sizes doesn't exceed 8MB.
    There articles may be useful to you:
    http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK
    http://processors.wiki.ti.com/index.php/Create_a_CRAMFS_Target_Image
    http://processors.wiki.ti.com/index.php/Put_CRAMFS_Image_to_Flash

    Regarding your 2nd question: If you are using the AM335x EVM this will not be possible because of the CPLD switch. If you wish to use SPI flash (CPLD profile #2) then your NAND flash won't be found. For more information check the Pin Use Assignment document here.

    For information about the NAND ECC algorithm selection please go to this page.

    Best regards,
    Miroslav

  • Hello, in the first message i've read that it is possible to boot MLO+Uboot from SPI, and afterwards load linux from nand. How do you accomplish this?

    I want to try to do the same thing, but at this time I have to do it manually. What if I want to boot from SPI and automatically boot from NAND afterwards ( without user interference ), must I embed an uEnv.txt in the SPI?

    Thank you in advance!

    Kind regards

  • Hi! Arend Lapere

    First . Your Spi Flash check

    Second ,Boot Swich Check

    Thrid , Write MLO at Address 0x00

     

  • Hi Miroslav

    I have read all this posts, and I have the probelm about create ramdisk with the case "SPL + U-boot + Kernel + ramdisk".

    I am using ti8148 ipnc, my u-boot+ kernel is about 3M, my spi flash is also 8M,but my filesystem is about 100M, I have created a ramdisk according to your first link,but the gz file is still about 20M.

    Just as you say it is possible to use ramdisk (or any other filesystem).

    Can you give some advices on my problems?

    Thank you

    Kind Regards.