Hi all,
I have been trying to get the JFFS2 working on Linux kernel 2.4.20 that is implemented on ppc. I have used Ramdisk based filesystem with no problem. However, I need a filesystem that can preserve all changes after reboot. I have problem with configuring the kernel to enable the support for JFFS2. I have enabled the following options on the kernel configuration:
- Memory Technology Device (MTD) support
- Debugging (debugging verbosity = 3)
- MTD partitioning support
- Command line partition table parsing
- Direct char device access to MTD devices
- Caching block device access to MTD devices
- NFTL support (write support to NFTL)
- RAM/ROM/Flash chip device: Detect Flash chip by CFI probe Support for AMD/Fujitsu flash chips I also modified the Initial Kernel command string to:
- console=ttl0,9600 noinitrd rw ip=off root=/dev/mtdblock3 rootfstype=jffs2
I re-compiled the kernel, programmed it to flash. I still use the same ramdisk image that I use for ramdisk-based filesystem. After Linux is started on the board, I can see the following nodes being created: /dev/mtd /dev/mtdblock , and the following entry in /proc: /proc/mtd When I did # cat /proc/mtd, the partition list was empty. I know it's supposed to show where the bootloader, kernel, and filesystem is mounted on /dev/mtd*. I programmed the files for bootloader, kernel, and filesystem to specific Flash locations separately by using Xilinx XPS. By now, I have only enabled the support of JFFS2 filesystem on the kernel. Is there any extra steps I should do to configure the partition? I expected that the /dev/mtdblock0, /dev/mtdblock1, etc, are created automatically once I enabled the support, but apparently they didn't. What did I do wrong? Any suggestion will be greatly appreciated. Thanks.
Shirley