[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: jffs for amd Am29LV160BB

i did a small test. i tried to completely ignore my flash bank 0. this
is what i did,

static struct map_desc brutus_io_desc[] __initdata = {
 /* virtual     physical    length      domain     r  w  c  b */
  { 0xe8000000, 0x08000000, 0x00400000, DOMAIN_IO, 1, 1, 0, 0 }, /*
flash bank 1 */ 
  { 0xf1000000, 0x18000000, 0x01000000, DOMAIN_IO, 1, 1, 0, 0 }, /* BCR

and set up a partition as,

static unsigned long brutus_max_flash_size = 0x00400000;
static struct mtd_partition brutus_partitions[] = {
 { name:"root-fs",  offset: 0x00000000,	size: 0x400000  },

then i boot with the resulting kernel. and now jffs2 seems to be
initializing properly.

SA1100 flash: probing for 1 partitions (buswidth = 4)
SA1100: Found 2 x16 CFI devices at location 0 in 16 bit mode
 Amd/Fujitsu Extended Query Table v1.0 at 0x0040
number of CFI chips: 1
mtd: Giving out device 0 to root-fs
SA1100 flash access initialized

/proc/mtd gives
dev:    size   erasesize  name
mtd0: 00400000 00020000 "root-fs"

but when i try mount -t jffs2 /dev/mtdblock0 /mnt
mount: /dev/mtdblock0 has wrong major or minor number

ls -l /dev/mtdblock0 gives,
brw-r--r--    1 root     root     31,   0 Apr 21  2001 /dev/mtdblock0

i think my major minor numbers are ok. but i can't explain why it's



To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com