CFI with 4 x8/x16 devices on a 32-bit bus
yeah, shame on emacs! :-)
It's working much better now. I have managed to create a JFFS2 FS on one partition and copied
a few files to it. No problems so far. Now I trying to make that partition my root FS, have not gotten
very far yet, but I will :-)
I still working my way through MTD and I have still much to learn ... Hope you have the time to answer a question or two ...
We are doing our own custom board(PPC860) with 3 "banks" of Intel Flashes. Each bank consists of 2 flashes in 16 bit mode, 2-chip interleave, 32-bit data bus.
Now I want to make a partition that spans more than one flash bank(or at least crosses
a bank boundary). Is that possible? Any special tricks or just do an add_mtd_partition() call?
Jocke
-----Original Message-----
From: David Woodhouse [mailto:[email protected]]On Behalf Of David Woodhouse
Sent: Tuesday, April 17, 2001 15:58
To: [email protected]
Cc: 'Kari Davmpsson'; [email protected]
Subject: Re: CFI with 4 x8/x16 devices on a 32-bit bus
Quoted 3 lines · [email protected] said:
I been all the time wrong! I just discovered that hexl-mode i emacs
is broken! Emacs in hexl-mode displays81ff81ff81ff... and od -x says fffffff ...
Heh. Naughty emacs. Is everything working now?
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 5 lines · [email protected] said:
We are doing our own custom board(PPC860) with 3 "banks" of Intel
Flashes. Each bank consists of 2 flashes in 16 bit mode, 2-chip interleave, 32-bit data bus. Now I want to make a partition that spans more than one flash bank(or at least crosses a bank boundary). Is that possible? Any special tricks or just do anadd_mtd_partition()call?
Special tricks, if they're really in separate banks and you can't just use a single mapping driver which will detect all the flash in one go. The code can deal with aliases appearing between devices, but can't deal with empty space between them - although you could play tricks in the mapping driver to make that disappear.
What physical addresses are the flash chips mapped to?
If they have to be in separate mappings, you'll need to write wrapper functions similar to the ones in mtdpart.c, which munge the offset and pass through to the function in the appropriate MTD device.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Hi again
I can place them at any physical(almost) address since they are connected to the
cpu's Chip Select logic. I figure I will place them somewhere high starting at 0xf8000000.
I can also make the address space linear(no holes between the banks).
Now, can I just define WINDOW_ADDR 0xf8000000 and WINDOW_SIZE 0x8000000 and specifiy my partitions without worrying about flash bank boundries? (In my dreams or ...)
Jocke
PS.
I meant 4 flash banks below. Each bank is 32 MB
-----Original Message-----
From: David Woodhouse [mailto:[email protected]]On Behalf Of David Woodhouse
Sent: Tuesday, April 17, 2001 17:23
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: CFI with 4 x8/x16 devices on a 32-bit bus
Quoted 5 lines · [email protected] said:
We are doing our own custom board(PPC860) with 3 "banks" of Intel
Flashes. Each bank consists of 2 flashes in 16 bit mode, 2-chip interleave, 32-bit data bus. Now I want to make a partition that spans more than one flash bank(or at least crosses a bank boundary). Is that possible? Any special tricks or just do anadd_mtd_partition()call?
Special tricks, if they're really in separate banks and you can't just use a single mapping driver which will detect all the flash in one go. The code can deal with aliases appearing between devices, but can't deal with empty space between them - although you could play tricks in the mapping driver to make that disappear.
What physical addresses are the flash chips mapped to?
If they have to be in separate mappings, you'll need to write wrapper functions similar to the ones in mtdpart.c, which munge the offset and pass through to the function in the appropriate MTD device.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Quoted 8 lines · [email protected] said:
I can place them at any physical(almost) address since they are
connected to the cpu's Chip Select logic. I figure I will place them somewhere high starting at0xf8000000. I can also make the address space linear(no holes between the banks).Now, can I just define
WINDOW_ADDR0xf8000000andWINDOW_SIZE0x8000000and specifiy my partitions without worrying about flash bank boundries? (In my dreams or ...)
That should work.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]
Great!!
Wish I had the board here so I could bore you with even more questions :-) But I will have to wait several weeks ...
Jocke
-----Original Message-----
From: David Woodhouse [mailto:[email protected]]On Behalf Of David Woodhouse
Sent: Tuesday, April 17, 2001 17:53
To: [email protected]
Cc: [email protected]; [email protected]
Subject: Re: CFI with 4 x8/x16 devices on a 32-bit bus
Quoted 8 lines · [email protected] said:
I can place them at any physical(almost) address since they are
connected to the cpu's Chip Select logic. I figure I will place them somewhere high starting at0xf8000000. I can also make the address space linear(no holes between the banks).Now, can I just define
WINDOW_ADDR0xf8000000andWINDOW_SIZE0x8000000and specifiy my partitions without worrying about flash bank boundries? (In my dreams or ...)
That should work.
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to [email protected]