469,125 Members | 1,676 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,125 developers. It's quick & easy.

Linux(debian) on ARM, MTD partition

Plater
7,872 Expert 4TB
I've run into a bit of trouble on this, not sure anyone here has ever done anything similar.
We have a cirus ARM chip with an MTD FLASH chip
Redboot is running on it (with ethernet support)
Partitions on flash have been made for Ramdisk and zImage.
We can successfully boot into the linux kernal and a shell.
Linux reports 8 MTD block devices (mtd0 - mtd7)
A number of them are "unallocated".
We wish to create a write-able file system in those unallocated spaces (ext2, jfss2, fat32, whatever)
However, since it's an MTD, we cannot use FDISK to partition the unallocated space.
We have found no MTD-related way to mark that unallocated space for something usefull.
Expand|Select|Wrap|Line Numbers
  1. flash_erase -j /dev/mtd3  
  2.  
Erased the mtd3 partition (which was, and still IS, marked as unallocated) with an extra erase for jfss2 support.

Has anyone ever dealt with this? Currently, there is no write-able filesystems on the device since the allocated and mounted partitions are all created from the image/ramdisk files.
Do we need to setup a filesystem in redboot for one of the unallocated sections before we boot the kernel or something?
May 16 '08 #1
1 3630
Plater
7,872 Expert 4TB
As an update, we changed over to that jfss2 filesystem.
Using Redboot we were able to "load in" a jfss2 filesystem in place of Ramdisk/zImage combination.
The result produced a single writeable filesystem that persists through powerfailures and reboots.
It still takes a full 15secs to reboot unfortunatly so more work is needed.
May 19 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Alfta | last post: by
1 post views Thread by Guillaume Gervais | last post: by
2 posts views Thread by adamg | last post: by
5 posts views Thread by Thomas | last post: by
reply views Thread by heddy Boubaker | last post: by
2 posts views Thread by jalqadir | last post: by
2 posts views Thread by thomasolsen | last post: by
reply views Thread by Christian Heimes | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.