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.

OMAP-l137 Can't load filesystem from SD card

Other Parts Discussed in Thread: OMAP-L137

Hello,

Supplied with the OMAP-l137 EVM is a 2GB SD Card with a filesystem. I can boot Linux fine with this SD card and the pre-installed filesystem. I've also been able to place a simple hello world program and run it from this SD card. However, I've tried to copy the filesystem provided by the SDK. (/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/target/ as described from the Setting up OMAP-L137 Target File System wiki guide: http://processors.wiki.ti.com/index.php/Setting_up_OMAP-L137_Target_File_System). The filysystem there is just over 2GB, so I tried to copy the filesystem to a 4GB SDHC card, but the Linux kernal can't seem to read the card. Here's the console output when the kernel is trying to load the filesystem:

VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

I tried formating the card to ex2 and ex3 but doesn't make a difference. Is this happeing because the Linux kernel doesn't support SDHC cards, or is there another possible reason for this? Why is the filesystem provided by the SDK larger than 2GB? I'm not sure what to do to reduce the filesystem size (I'm quite new at this).

Thanks

  • The TI Wiki says that the MontaVista 5 (linux-2.6.18_pro) kermel does not support SDHC but can be patched to support SDHC:

    http://processors.wiki.ti.com/index.php/How_to_use_SDHC_on_DM365_with_MontaVista_5.0
    http://processors.wiki.ti.com/index.php/PSP_Introduction_and_Product_FAQ

    It might be better if you copy the original 2GB SD Card to another 2GB Card. I think the SDK filesystem is meant for NFS usage and they added more optional stuff.

     

  • Thanks.

    I might also try either patching the kernel or getting a 4gb non-SDHC card.

  • Hmm...I think by definition SDHC starts at 4GB and goes up to 32GB. Standard SD ends at 2GB.

    If you are going to patch and recompile the kernel anyways, you should consider moving to a newer kernel. MonteVista Linux 2.6.18 is several years old. If you need to add functionality, it may not be possible to patch this kernel. I've successfully installed my OMAP-L137 EVM the following combination: DVSDK 3.20.00.14, Arago root FS, CodeSourcery toolchain.