Multiple banks of flash?
I have two banks of flash that are physically located at different locations. I have successfully mapped one bank. I can also map the other bank, but the problem is that I can't map both the banks simultaneously.
I went into physmap.c and modified init_physmap() so that it basically does the same thing twice, two probes, two partition searches, but it doesn't seem to work mapping two banks which are located at different address mapped in at the same time.
I am using the Monta Vista 2.6 version of the kernel.
Thanks,
Andy
Quoted 10 lines · Andrew Carlisle
I have two banks of flash that are physically located at different locations. I have successfully mapped one bank. I can also map the other bank, but the problem is that I can't map both the banks simultaneously.
I went into
physmap.cand modifiedinit_physmap()so that it basically does the same thing twice, two probes, two partition searches, but it doesn't seem to work mapping two banks which are located at different address mapped in at the same time.I am using the Monta Vista 2.6 version of the kernel.
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Otherwise, you could always write your own mapping driver. There are multiple examples that deal with two or more flash banks in CVS.
josh
Quoted 10 lines · Josh Boyer
Quoted 9 lines · Andrew Carlisle
I have two banks of flash that are physically located at different locations. I have successfully mapped one bank. I can also map the other bank, but the problem is that I can't map both the banks simultaneously.
I went into
physmap.cand modifiedinit_physmap()so that it basically does the same thing twice, two probes, two partition searches, but it doesn't seem to work mapping two banks which are located at different address mapped in at the same time.
Quoted 5 lines
Quoted 1 line
I am using the Monta Vista 2.6 version of the kernel.
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Iirc it was included, but in some branch that noone ever noticed or cared about. Should have gotten some testing, never did, nothing happened. Nothing unusual.
Jörn
Signature · 2 lines
Don't patch bad code, rewrite it. -- Kernigham and Pike, according to Rusty
Quoted 10 lines · Josh Boyer
Quoted 9 lines · Andrew Carlisle
I have two banks of flash that are physically located at different locations. I have successfully mapped one bank. I can also map the other bank, but the problem is that I can't map both the banks simultaneously.
I went into
physmap.cand modifiedinit_physmap()so that it basically does the same thing twice, two probes, two partition searches, but it doesn't seem to work mapping two banks which are located at different address mapped in at the same time.
Quoted 5 lines
Quoted 1 line
I am using the Monta Vista 2.6 version of the kernel.
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Various people have written something like this at different times :->.
Quoted 11 lines · Rainer Weikusat
Quoted 10 lines · Josh Boyer
Quoted 9 lines · Andrew Carlisle
I have two banks of flash that are physically located at different locations. I have successfully mapped one bank. I can also map the other bank, but the problem is that I can't map both the banks simultaneously.
I went into
physmap.cand modifiedinit_physmap()so that it basically does the same thing twice, two probes, two partition searches, but it doesn't seem to work mapping two banks which are located at different address mapped in at the same time.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
I am using the Monta Vista 2.6 version of the kernel.
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Various people have written something like this at different times :->.
Indeed. Joern's just happened to be the one I am most familiar with. But since lots of different implementations have been written, it makes one wonder why none are in CVS...
josh
Quoted 10 lines · Josh Boyer
Quoted 6 lines
Quoted 3 lines
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Various people have written something like this at different times :->.
Indeed. Joern's just happened to be the one I am most familiar with. But since lots of different implementations have been written, it makes one wonder why none are in CVS...
Open Source Mantra: 'Not my problem'.
Quoted 5 lines · Rainer Weikusat
Quoted 4 lines · Josh Boyer
Quoted 4 lines
Quoted 3 lines
Joern Engel wrote a mphysmap driver some time ago. It works fairly well. You might be able to find it if you google for it. Not sure why it wasn't included in MTD CVS.
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Various people have written something like this at different times :->.
Indeed. Joern's just happened to be the one I am most familiar with. But since lots of different implementations have been written, it makes one wonder why none are in CVS...
Open Source Mantra: 'Not my problem'.
And embedded seems to be extremely devoted to that mantra. It was quite a learning experience (buzzword of the year) to figure that one out. Writing code is just 1% of the work. Debugging it is 9%. Getting it into some standard (Linux kernel, libc, whatever) is 90%.
And with the 'Not my problem.' mentality, the whole 90% are left to the original author, who finally gives up and moves on to something less frustrating. Or at least gets a job and has someone pay for it.
Jörn
Signature · 2 lines
He that composes himself is wiser than he that composes a book. -- B. Franklin