Skip to contentSkip to conversation

why does supposedly generic flash code have references to jffs2?

U-Boot Robert P. J. Day 1 participant 1 message Feb 2, 2013

lore
Share & tools
lore
#0 lore raw

perusing the code in cmd_flash.c and i'm puzzled by this:

#if defined(CONFIG_CMD_MTDPARTS)
#include <jffs2/jffs2.h>

why would supposedly low-level MTD partitioning code have any need for filesystem-specific header files -- in this case, jffs2?

a similar example can be found in cmd_mtdparts.c:

#include <jffs2/load_kernel.h>

admittedly, i haven't followed the code all the way to the end, but it's not clear to me why fundamental flash, MTD and partitioning code should have any dependency on a particular filesystem type, but i'm certainly willing to be corrected.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================