PDA

View Full Version : Dimension of a flash file



Mr Wolf
21-10-2006, 07:06 PM
So, I realized, for example as reguards Nokia 3310, that the size of a complete flash file is 2097152 bytes, while MCU is 1249633, PPM is 590472 and EEPROM is 196608 which makes 2036713 bytes.
So, is there anything else in the full flash file? A memory area for example?
Anyone knows?

NokDoc
22-10-2006, 06:02 AM
Hi,

Reserved Ranges, based on a clean 3310-639:

(Start, End, Size in Hex, Size in Decimal)

Mcu: 20.0000 -> 33.FFFF = 14.0000 => 1310720
Ppm: 34.0000 -> 3C.FFFF = 09.0000 => 0589824
Epr: 3D.0000 -> 3F.FFFF = 03.0000 => 0196608

All: 20.0000 -> 3F.FFFF = 20.0000 => 2097152

The 6 bytes in the end of ppm are reserved to store the 2byte McuCheck2 and the 4bytes Flash Checksum, so formally the ppmsize is 6 bytes smaller.

All other remaining bytes are unused and normally filled with FF's.

Those we call User Available FreeMemory, we use it to put our own added stuff.

Do note that on Nokix patched files Ur Ppm start address will change, it's a trick to add all the userfree ppm bytes directly behind the mcu.

NokDoc

Mr Wolf
23-10-2006, 09:20 AM
I don't know, if I well remember I checked the size of MCU, PPM and EEPROM of Nokia 3310 files I got from D:Virus site!

I have just tried to extract MCU and PPM 6.39 (from a flash file in which they were merged) with NasDCT3 Flash Converter and I got: MCU 1312160 bytes and PPM 590472 bytes.
Actually, I thought MCU and PPM had all the same size and that some bytes in different versions were just "empty" (or better full of "useless" data to full the flash)!

By the way, do you know if EEPROM have a version too (for example 6.39, etc.)?

Can you explain me better what you said about NokiX?
What I always do is patch my flash (MCU and PPM) with NokiX scripts and then flash it normally, so if I had to patch MCU and PPM separately, write addresses would change?

NokDoc
23-10-2006, 05:59 PM
Hi,

My definitions are for factory files, when a file is modded, it surely can change.

That could explain the differences in Ur files, the ppm start position is moved some further so Nokix had enough free mcu memory available to add it's new functions.

Yes, eeprom has a version too, even worse, it IS Ur version.
(*#war0anty/ *#0000)

The eeprom area can be (mcu/ppm) version dependent, but that's why we have the 'safe factory reset', it upgrades the eeprom layout according to the new definitions.

I cannot explain Nokix while I myself dono howto use it.

But as long as U always use mcu&ppm combined files for modding it will be ok.

With a hexviewer U can check the ppm start address from inside the file, search for the hexstring '50504D0056'

NokDoc

Mr Wolf
24-10-2006, 09:30 AM
OK! Yeah, actually about the EEPROM is really right, it's unique (or should be so, if you don't flash it in another phone!)!
But... so if for example MCUs are of different sizes, when you flash them, if one is a bit smaller, not all memory addresses of the phone are written, they stay empty right? Ok, in fact the program first erases the memory!

Just two other questions, I'm making some experiments that guys here made years ago.

Following this discussion:
http://nokiafree.org/forums/t69049/h/s.html
I tried to flash 3310 flash (6.39) on 3330: I flashed from 200000 to 400000 and then from 400000 to 600000... and I got contact service! Made full factory settings, but no result!
Should I do anything else? I just want to change a 3310 in 3330, nothing else, as increase phone memory!

And: it's not possible to read/write 3210 EEPROM, right? I mean, you need a device to read memory chips, right?

Last: what the hell is Mados? I heard about it, but I can't find information!

NokDoc
25-10-2006, 11:41 PM
Hi,

>> so if for example MCUs are of different sizes

Every 3310 mcu file size is 14.0000 though?

If it is smaller, the gap is being filled with FF's in the file, not by the flasher.
(spare me to mention the v3.24 is 13.0000. ;) )

And if it was bigger, U violated a basic advice on modding which is always use mcu&ppm combined files.

>> I just want to change a 3310 in 3330

Some guys did managed to have it working, especially Mr. Mestrini who tried both methods.

I myself can only assume the theory while I never had a 3330 phone to test myself.

>> it's not possible to read/write 3210 EEPROM, right?

I could, but there's no practicle solution available to U atm.

Nearest to get to eeprom data in an easy way is by reading and/ or writing it in the ram copied portion in realtime when using the memory editor patch.

>> what the hell is Mados?

It's an independent Operating System which runs on Nokia hardware.

It makes Nokia hardware run without using any mcu/ppm/eeprom files.

Search for the site from Mr. G3gg0, and visit the MadOs areas here.

NokDoc