Skip to contentSkip to conversation

handling a flash split in two parts

DISCUSSION [email protected] 1 participant 1 message Apr 11, 2006 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi all!

I've a very particular problem:

I've a board that,for reasons that are too long to be explained, has a 4MB flash chip that is not mapped in a contiguos way. Physically the microcontroller can see:

2Mbytes of flash -- 2MB of "jump" -- other 2MBytes of flash

I modified the mmu map in the file

arch/arm/mach-mx1ads/mm.c

(I've a custom board with Freescale iMX1)

and this should make things work but it's not so.
With the emulator I can see the memory as if it was contiguous, but when mounting my Root File System
flash partition, the system look at the wronk address.
It seems that it looks at the physical addresses instead of the virtual one fixed with the MMU map.
Is it possible?
If so, how can I solve this?
I tried some workarounds but with no luck!
Any suggestion is very appreciated.
If more details are needed, please tell em and forgive me if I missed them!
Thanks a lot in advance,

Igor.

Signature · 8 lines
--- BlueWind 
--- Embedded Systems Design 
--- Borgo Pieve 55c interno c
--- 31033 Castelfranco V.to (TV)
--- Tel.: +39 0423 723431 Fax.: +39 0423 744738
--- mailto: [email protected]
--- http://www.bluewind.it
------------------------------------------------------------------