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 L-138 EVM nand file system in Linux

Guru 20755 points
Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hello,

I would like to boot from SPI flash, but to configure file system in the Nand, Is it possible ? (When I do >cat /mtd/proc I see the partitions in SPI), as if the Nand is not initiailized.

Best Regards,

Ran

  • Hi Ran,

    On OMAP-L138, MMC and NAND cannot be used together as they share pins. So you have to disable MMC from menuconfig to be able to see NAND partitions.

    Regards, Sudhakar

  • Hi Sudhakar, Thank you for the reply. When I use custom board , Isn't it possible to configure pins so that we can access both SPI and nand ? What did you mean MMC ? Anyway, if it is possible in custom board to configure access to both SPI and nand, so that I can see their partitions, I would like to know more about it. I did not find information about mounting nand partitions in the OMAP yet. Best Regards, Ran
  • Hi Ran,

    MMC means multi media card. On OMAP-L138 MMC/SD (secure digital) interface is muxed with AEMIF. If you see the schematic, the following pins are muxed.

    EMA_A_14 / MMCSD0_D7

    EMA_A_15 / MMCSD0_D6

    EMA_A_16 / MMCSD0_D5

    EMA_A_17 / MMCSD0_D4

    EMA_A_18 / MMCSD0_D3

    EMA_A_19 / MMCSD0_D2

    EMA_A_20 / MMCSD0_D1

    EMA_A_21 / MMCSD0_D0

    EMA_A_22 / MMCSD0_CMD

    Hence both NAND and MMC/SD cannot be used together.

    Regards, Sudhakar

  • Hi Sudhakar, I was talking about the SPI and Nand, not MMC. Are they related to each other ? Also In the code of both linux (da850.c) and u-boot I see that the SPI pins mux are related to pinmux register #5 (also see in pages 186-187 in the OMAP L-138 reference guide), and there is no mux with the NAND pins (pinmux register #9 & #8 ). Regards, Ran
  • Hi Ran,

    In your first mail in this thread, you were mentioning about not being able to see both SPI and NAND partitions together. Let me explain the reason for this.

    If you are using a release from the PSP team (or from SDK), you'll be running "make da850_omapl138_defconfig" as part of building the kernel. In this defconfig, we have enabled SPI and MMC/SD and disabled NAND as NAND and MMC/SD cannot work together as they share pins. I have explained in my previous mail. So in order to get both SPI and NAND to work in Linux, you have to re-compile Linux (using make menuconfig), disable MMC/SD and enable NAND. Please see http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1#NAND for information on how to enable in NAND.

    Regards, Sudhakar