Hello,
On my BeagleBoard, I would like to be able to create a new
JFFS nand partition on the mmc. I would like to be able to use this
partition once within the Kernel. Could someone give me pointers/hints
(where to look) on what are the partition related changes required
within my Xloader/Uboot/Kernel. I would appreciate any help in this
regard.
Thanks,
VIjay
JFFS is the kernel support for Flash devices. If the module is loaded or support is built-in, then the device is recognised and you can create partitions using the appropriate mkfs.
# grep JFFS /usr/src/linux-2.6.37-rc1-git3/.config
CONFIG_JFFS2_FS=m
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_FS_XATTR=y
CONFIG_JFFS2_FS_POSIX_ACL=y
CONFIG_JFFS2_FS_SECURITY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
# CONFIG_JFFS2_LZO is not set
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not set
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set
# ls /sbin/mkfs*
/sbin/mkfs /sbin/mkfs.btrfs /sbin/mkfs.ext2 /sbin/mkfs.ext4 /sbin/mkfs.minix /sbin/mkfs.ntfs /sbin/mkfs.vfat
/sbin/mkfs.bfs /sbin/mkfs.cramfs /sbin/mkfs.ext3 /sbin/mkfs.jfs /sbin/mkfs.msdos /sbin/mkfs.reiserfs /sbin/mkfs.xfs
# mkfs.vfat -?
mkfs.vfat 3.0.10 (12 Sep 2010)
mkfs.vfat: invalid option -- '?'
Unknown option: ?
Usage: mkdosfs [-a][-A][-c][-C][-v][-I][-l bad-block-file][-b backup-boot-sector]
[-m boot-msg-file][-n volume-name][-i volume-id]
[-s sectors-per-cluster][-S logical-sector-size][-f number-of-FATs]
[-h hidden-sectors][-F fat-size][-r root-dir-entries][-R reserved-sectors]
/dev/name [blocks]
# mkfs.ext4 -?
mkfs.ext4: invalid option -- '?'
Usage: mkfs.ext4 [-c|-l filename] [-b block-size] [-f fragment-size]
[-i bytes-per-inode] [-I inode-size] [-J journal-options]
[-G meta group size] [-N number-of-inodes]
[-m reserved-blocks-percentage] [-o creator-os]
[-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
[-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
[-T fs-type] [-U UUID] [-jnqvFKSV] device [blocks-count]
If the device is registered as /dev/sdd, it can be as simple as
# mkfs.vfat -F 32 /dev/sdd1
# mkfs.ext4 /dev/sdd2
Regards
Sid.
But what would be the changes required within the Kernel/Uboot to
support MTD partitions ?
In your mmc two partitions are required: 1. FAT file system which is
recognised by the Uboot, 2. It can be ext4, ext3 or jffs anything
depending upon the support provided in your kernel.
So, if you want to use your filesystem type as JFFS, dont manipulate
anythin on FAT filesystem because it would be read by Uboot and uBoot
understands FAT filesystem only as far as i know.
modify your second partition to jffs. Modification method is well given
by SID. You can follow his instructions.
However, I didnt try JFFS. So if im wrong at any point please rectify
me.
On 05/11/10 22:23, TheLoneJoker wrote:> Hello,
On my BeagleBoard, I would like to be able to create a new JFFS nand partition on the mmc.
Why would you want to do such thing? You propably mean JFFS2 and which is meant to be used on raw flash devices. MMC is not a raw flash.
Oh I am sorry for using the wrong terminology, I meant raw flash and
not managed flash. So I want to know the more intricate details of
changes relevant to the uboot, kernel, inorder to create MTD
partitions.