Skip to contentSkip to conversation

How to access Freesale UPM NAND device

DISCUSSION Laxmikant Rashinkar 2 participants 2 messages Aug 27, 2008 – Aug 28, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

quick question:

I have a custom board running MPC8347 on Linux 2.6.27 with Uboot 1.1.4. I also have a NAND device (Micron MT29F2G08AACWP) connected to the LBC and controlled via UPM.

fsl_elbc_nand.ko, fsl_upm.ko are loaded.

I'm wondering how to access the NAND device. Do I need mDOC? TrueFFS?

I have grep'd for the functions declared in fsl_upm.c and fsl_lbc.c and find that no other code path calls these functions. So it looks like the drivers are loaded but no one calls into them.

any help appreciated.

thanks
LK

#1 lore raw
Quoted 5 lines · Laxmikant Rashinkar

I have a custom board running MPC8347 on Linux 2.6.27 with Uboot 1.1.4. I also have a NAND device (Micron MT29F2G08AACWP) connected to the LBC and controlled via UPM.

fsl_elbc_nand.ko, fsl_upm.ko are loaded.

fsl_elbc_nand is for FCM; you only need the latter.

Quoted 1 line

I'm wondering how to access the NAND device. Do I need mDOC? TrueFFS?

JFFS2 is typically used.

Quoted 3 lines

I have grep'd for the functions declared in fsl_upm.c and fsl_lbc.c and find that no other code path calls these functions. So it looks like the drivers are loaded but no one calls into them.

The init function of the module registers a driver, providing function pointers that are called. You access the device through /dev/mtd*.

-Scott