Page 1 of 4 1 2 3 ... LastLast
Results 1 to 40 of 144

Thread: [MadOS] Installation and compiling instructions

  1. #1
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908

    Exclamation [MadOS] Installation and compiling instructions

    Installation and compiling instructions for Windows


    Before reading this, you will have to download the license,read AND agree with it!


    MADos is a free, open source flash for Nokia 3310/3315/3330/5510/8210/8250/8850/8890/6210.

    3350 should work, except LCD
    3410 should work, except LCD


    You can compare it with Windows and Linux...

    The source of Windows is a big secret, just as the original Nokia firmware, you can adjust it, but it is very hard

    Linux is opensource, you can modify, change add functions with ease, just like MADos... MADos is written in C, so it's easy to add games, applications,...

    Here are some functions of MADos:

    Games:
    Snake3, Tetris, Othello, Hangman, tic tac toe(unactivated).

    Applications:
    DCT-4 unlock code generator, Panasonic GD55 unlock code generator, Siemens ST55/CL50 unlock code generator, LG unlock code generator, Alcatel unlock codes, Samsung unlock codes, Fire screen saver, Stars screensaver, Matrix screen saver, Osiliscope and Time since start

    Tests:
    Charger, Contrast, Vibra, DSP/CCONT, Flash rom, XBus, MBus, M-serial, Xbus bebug, Malloc, Sprintf(), Animation, AD-values, Interupts, MDI, User interface, Text reader, Buzzer test, And Demo_1

    /First we will have to install the MADos package
    / We will need this to COMPILE MADos
    /
    /Then we will install WinCVS
    / WinCVS downloads the current MADos package from g3gg0's server
    /Then, I'll show you how to use WinCVS and how to compile



    Installing the compiling software and WinCVS

    Code:
    Download the MadOS package the compile the MadOS source here:
    http://www.doom-of-flash.de/gsm/mados.exe
    
    Run MadOS.exe and unzip the package to your C or D drive
    [Choose the drive you want to install to package in, C is recommended]
    
    If asked for a password, fill in: "pic16f87"
    
    Download WinCVS here:
    http://heanet.dl.sourceforge.net/sou.../WinCvs120.zip
    
    Install and run WinCVS.
    
    If this is your first start you'll see the preferences window.
    Close that window.
    
    Go to Admin -> Preferences. Fill in the following:
    
    * In the General tab:
    
    Enter the CVSROOT: public@g3gg0.de:/root
    Authentication: "passwd" file on the cvs server
    
    * Globals: UNCHECK "Checkout read-only"
    CHECK "USE TCP/IP compression 9"
    
    * WinCVS: Home folder: C:\
    [Just type your drive letter here.]
    
    => Click on OK
    
    Go to Admin -> Login
    Wait untill you see Password, then fill in "behave!", without the ""
    
    => You should see: *****CVS exited normally with code 0*****
    
    Go to Create -> Checkout module. Fill in the following:
    
    Go to the the tab Checkout settings
    
    *Enter the module name and path on the server: nokia/MADos
    *CHECK "override" Checkout as: "MADos"
    *Local folder to checkout to: "c:\cygwin"
    
    Go to the tab Globals
    
    CHECKOUT "Checkout read-only"
    CHECK " Use TCP/IP compression 9"
    
    => Click on OK
    
    The MADos source is now being copied to c:\cygwin\MADos
    
    You should end up with this: *****CVS exited normally with code 0*****
    
    Go to File -> Save
    
    Go the directory where you unzipped MadOS.exe and run cygwin_c.reg OR cygwin_d.reg
    [Choose between these files, depends on what drive you've unzipped to]
    COMPILING

    Code:
    First we will need to select what phone and what type of MADos we will need.
    
    Open the c:\cygwin\MADos directory and open compile.conf with Notepad.
    
    You will see something similar like this:
    
    
    Code:
    #export TYPE="PC"
    export TYPE="STANDALONE"
    #export TYPE="EMBED"
    #export TYPE="FULLEMBED"
    #export TYPE="BEAUTY"
    #
    # STANDALONE, EMBED, LOADER, PC, FULLEMBED, BEAUTY
    # can be redefined by argument 1 of compile script
    
    export PHONE="3310_old"
    #export PHONE="3310_new"
    #export PHONE="3330_old"
    #export PHONE="3330_new"
    #export PHONE="6210"
    #export PHONE="8210"
    #export PHONE="AUTO"
    
    
    #export OS="WIN98"
    # uncomment it, if your operating system is M$ Windows 98
    First of all, we will chose what phone we will using. In the example above, you'll see the the standard phone is 3310_old. If you want to use Nokia 8210, place a # before "export PHONE="3310_old" " And delete the # before 8210. If you are using Microft Windows 98, delete the # before "export OS="WIN98" " Now we will need to decide what type of MADos we need. Some info's about the versions... *The STANDALONE version Outputs a 192kb version of MADos. This is the most stable version. But you can't call, SMS,... with your phone anymore. *The FULLEMBED version This integrated MADos into the original nokia firmware. This version is not very stable and it needs 192kb of your flash chip... And; you can't use MADos and the original nokia functions at the same time. MADos OR Nokia... You can start MADos with a shortkey (eg * and 5 ) or you can create menu... If you've dedided what version you want, delete the # before the wanted version, and add a # before the unwanted versions. Save compile.conf
    Compile the STANDALONE version:

    Code:
    Now go to Start -> Run and type "cmd" or "command" to enter MS-DOS.
    
    In MS-DOS enter [CYGWIN DIRECTORY]\cygwin.bat
    
    
    
    If you get an error, replace cygwin.bat in the cygwin directory with mine (attached below)
    Now you'll see something like this: Administrator@Server3 $ _ Type mc [ENTER] Now navigate with your arrowkeys to above and highlight /.. [ENTER] Again, highlight the /.. and [ENTER] Now you'll see the contents of c:\cygwin Select the directory MADos and [ENTER] Select *compile_all.sh and [ENTER] Now the program will compile to source and output a file named standalone.fls. In my case the file is in c:\cygwin\MADos Flash the standalone.fls to your phone and you should have the latest!
    Compile the FULLEMBED version

    Code:
    Now go to Start -> Run and type "cmd" or "command" to enter MS-DOS.
    
    In MS-DOS enter [CYGWIN DIRECTORY]\cygwin.bat
    
    
    
    If you get an error, replace cygwin.bat in the cygwin directory with mine (attached below)
    Now you'll see something like this: Administrator@Server3 $ _ Type mc [ENTER] Now navigate with your arrowkeys to above and highlight /.. [ENTER] Again, highlight the /.. and [ENTER] Now you'll see the contents of c:\cygwin Select the directory MADos and [ENTER] Select *compile_all.sh and [ENTER] Now the program will compile to source and output a file named FULLEMBED.fls. In my case the file is in c:\cygwin\MADos Open g3n0lite v2 and open your CLEAN, Nokia flash file. Find the file size of your FULLEMBED/EMBED.fls and multiply it by 1024 you should have a large number eg: 125kb * 1024 = 128000bytes This number is the total number of bytes we need to inject into our flash file, so in g3n0lite enter the number we got from our equation in the bytes text box and click "RESERVE PPM SPACE". if you get an error open your flash in a flash editor eg flsedit and delete a few unused languages. Save your flash Open Embedem (attached below: version 1.8) In the Flash info section, click the "Open .fls" button ans select your flash file. You should see something similar like this:
    Code:
    CODE Chunk found at: 0x0014002C
    greetz to g3gg0 :)
    Free space in code chunk at: 0x00140040
    
    CODE Chunk found at: 0x00142760
    greetz to g3gg0 :)
    Free space in code chunk at: 0x00143FF8
    Click on "Open mados .fls" select the FULLEMBED.fls in the c:\cygwin directory. Click on [MADos] startup if you want to call MADos with a menu, click EMBED and click on "File", "Save generated script .gsc" and save it under the name "mados_menu.gsc" AND/OR Click on fast [MADos] if you want to call MADos with a shortkey and click on "File", "Save generated script .gsc" and save it "mados_short.gsc" Save your flash file and open it with g3n0lite v2. If you want to call MADos via menu: Click on "Create 5e0 functions" Then click on "Load" select mados_menu.gsc and click on Run. Now you will have to make a new menu entry for MADos... If you want to call MADos via shortkey Click on "Load", select shortkey_main.gsc (attached below) and click on "Run" Click on "Load" select mados_shortkey.gsc and click on "Run". The program then asks after a shortkey to use with *... Example: If you enter 5, later, when the phone is working, if you type * and 5, MADos will start. The, correct checksums and flash!
    What you'll need to do every day

    Code:
    *Start WinCVS
    *Select the cygwin directory
    *Select the MADos directory
    *First do a query update, this will check if there a changes with your files and those on the server, hit F4
    *This process will only take a second and normally you should see red text, if you see green text also, there are changes...
    *To download the changed files to your computer, press Ctrl+U
    *CHECK "Create missing ..."
    *CHECK "Get the clean copy"
    *Click on OK, this process will take some more time...
    *Now you'll need to compile the files as described above
    __________________________________________________ ___________

    I would like to thank g3gg0, for his work and effort for this soft

    And also www.mados.tk wich helped me a lot creating this tutorial.

    If you have problems with WinCVS or cygwin, post your message here
    Attached Files Attached Files
    Last edited by BOEBOE; 20-04-2004 at 09:52 PM.
    For sale: Nokia 7250i

  2. #2
    made all above instructions
    but i get errors while compiling the flash
    plz c the attached gif

  3. #3
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    Yes,

    I had the same problem, update with WinCVS...
    For sale: Nokia 7250i

  4. #4
    whiche one the mados src or the wincvs

  5. #5
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    Update the MadOS package with WinCVS
    For sale: Nokia 7250i

  6. #6
    already done that but prob still the same

  7. #7
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    Can't be!

    5 minutes ago I had the same problem

    I've updated the package and everything works!

    Try this: press CTRL+U and check the "Get the clean file" option.
    For sale: Nokia 7250i

  8. #8
    prop solved but too many other errors and and no flash.fls

  9. #9
    Join Date
    Jul 2003
    Location
    The Netherlands
    Posts
    254
    This is due to a really stupid error on my side (wrong compiler path in compilation script), it should be fixed though.

  10. #10
    Quote Originally Posted by wumpus
    (wrong compiler path in compilation script), it should be fixed though.
    plz c the attached gif

  11. #11
    Join Date
    Jul 2003
    Location
    The Netherlands
    Posts
    254
    AIIIEEIIII, segfaults in gcc. This is really, really bad stuff.

    Could be an error in the MADos development environment, but I doubt it, as it is working great for most people.

    Memory full? Disk (almost) full? Too many background processes?

  12. #12
    [QUOTE=wumpus]AIIIEEIIII QUOTE]

    the disk is not full neither memory
    so should i 4get abt it

  13. #13
    Join Date
    Jul 2003
    Location
    The Netherlands
    Posts
    254
    [QUOTE=ema2000]
    Quote Originally Posted by wumpus
    AIIIEEIIII QUOTE]

    the disk is not full neither memory
    so should i 4get abt it
    I dunno, maybe g3gg0 has an idea.
    You could try re-downloading and reinstalling the whole MADos environment.
    This error is so weird (it gives no source line, and chokes on *every* file, which is what makes this so strange)

  14. #14
    @wumpus
    thx man 4 ur help i'll try installing it again and nice work all of u guyz we hope to c more abt mados

  15. #15
    Quote Originally Posted by ema2000
    plz c the attached gif
    this error occur with gcc-arm on win98 os.
    i wasn't able to fix this bug on my system.
    think recompiling could result in the same error.

    my solution:
    upgraded old pc to win xp,
    and using this pc for compiling
    over network.
    i splittet compile.sh into 3 parts,
    so only the gcc - part have to run
    on this old slow pc. now my pc
    manage the process and starts
    all three parts after each other.
    ( without telnet *g* )

    p.s. needn't waste your time with redownloading or reinstalling, i already did it for you
    Last edited by krisha; 13-12-2003 at 02:53 AM.

  16. #16
    i cant compile compile_crux.sh

  17. #17
    @krisha
    thx man it worked

  18. #18
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    Added instructions to compile an embedded flash.
    For sale: Nokia 7250i

  19. #19

    Red face compile_*.sh scripts

    Can please someone explain what compile_loader.sh, compile_pc.sh and compile_crux.sh are for?

  20. #20
    Join Date
    Aug 2003
    Location
    Okres Šala
    Posts
    177
    Its really 35MB?
    I have dial-up connection with max 5kb/sec.
    ((((((((((((((
    ((
    is there anybody from Slovakia who can send me it on a CD?

  21. #21
    Join Date
    Apr 2003
    Location
    Lithuania
    Posts
    36

    Unhappy

    WinCVS download link is not working for me

  22. #22
    Join Date
    May 2002
    Location
    Finland
    Posts
    860
    Quote Originally Posted by tipaz
    WinCVS download link is not working for me
    true. it's shorted link. go to sourceforge.net and search wincvs and you'll find latest win32 executables.
    -liteFun
    [url]http://litefun.kaustinen.eu.org[/url]

  23. #23
    hy i have a mados for 3310 it has 128 KB how can i make this fls wotking on my mob
    what is the adress for flashing or what should i do?
    THX

  24. #24
    Join Date
    Aug 2002
    Location
    Perth Western Australia
    Posts
    283
    @asgaardro,
    just flash it as it was a MCU+PPM from 0x00200000

    spaceimpact

  25. #25
    @spaceimpact33
    but the file has only 128 kb
    so i open rolis and i flash this file from 200000 and should work???

  26. #26
    Join Date
    Aug 2002
    Location
    Perth Western Australia
    Posts
    283
    Quote Originally Posted by asgaardro
    @spaceimpact33
    but the file has only 128 kb
    so i open rolis and i flash this file from 200000 and should work???
    yes it is 128kb and yes it will work


    spaceimpact

  27. #27

    device is not ready?

    Hi,
    When i go to start cygwin.bat in the command prompt i get an error saying:

    The device is not ready.
    The device is not ready.
    'bash' is not recognized as an internal or external command,
    operable program or batch file.

    I have run cygwin_c.reg and I have updated the mados using wincvs.

    If anyone can help me that would be great

    Thanks,
    Mitch

  28. #28
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    Did you install Cygwin on your C drive?
    For sale: Nokia 7250i

  29. #29
    BoeBoe

    Yes i have installed cygwin onto my c: drive, i have removed it completly from the registry and my hard drive and started from sctracth several time but no luck,

    Mitch

  30. #30
    Join Date
    Sep 2002
    Location
    Portugal
    Posts
    1,295
    Quote Originally Posted by mitchy_g
    Hi,
    When i go to start cygwin.bat in the command prompt i get an error saying:

    The device is not ready.
    The device is not ready.
    'bash' is not recognized as an internal or external command,
    operable program or batch file.

    I have run cygwin_c.reg and I have updated the mados using wincvs.

    If anyone can help me that would be great

    Thanks,
    Mitch

    hi. if u run cygwin_c.reg then it must be in c:\cygwin dir.

    cant be a sub-directory

    and try to edit cygwin.bat and add in first line.

    path = %path% ; c:\cygwin

    or something lke this
    Attention Portuguese users:

    Novo fórum de GSM e outros 100% em Português:


    GsmIn.com

  31. #31
    Join Date
    Apr 2003
    Location
    Lithuania
    Posts
    36
    Quote Originally Posted by liteFun
    true. it's shorted link. go to sourceforge.net and search wincvs and you'll find latest win32 executables.
    sorry, i can't find, can you help me

  32. #32
    Join Date
    May 2002
    Location
    Finland
    Posts
    860
    Quote Originally Posted by tipaz
    sorry, i can't find, can you help me
    problem between keyboard and chair?
    i grabbed wincvs here http://prdownloads.sourceforge.net/cvsgui/ (there's mac versions too) named WinCvs13b9.zip.
    -liteFun
    [url]http://litefun.kaustinen.eu.org[/url]

  33. #33
    @boeboe
    the link for WinCVS doesn't work can u post a new one
    i have tried with /out download manager
    THX

  34. #34
    Join Date
    Sep 2002
    Location
    Portugal
    Posts
    1,295
    Attention Portuguese users:

    Novo fórum de GSM e outros 100% em Português:


    GsmIn.com

  35. #35
    i found on internet a scipt for g3nolite 2.o made by g3ggo for integrate mados in the 5e0 function
    but i flashed the mados file from 200000 and read a fubu and the with g3nolite a had wrote the menu for mados
    but i can enter to the original nokia menu i only get mados menu
    in the script the star adress for mados is 000000 it is the safe ram, no
    it is safe to write the mados from 0x000000 and the the nokia flash from 0x200000 and then make a fubu from 0x000000 to 0x400000
    i'll attach the file
    ?????

  36. #36

    Thanks

    Thanks for your help BOEBOE and Crux2002, i had to edit the .bat file to direct it to my c:

  37. #37
    Quote Originally Posted by asgaardro
    i found on internet a scipt for g3nolite 2.o made by g3ggo for integrate mados in the 5e0 function
    but i flashed the mados file from 200000 and read a fubu and the with g3nolite a had wrote the menu for mados
    but i can enter to the original nokia menu i only get mados menu
    in the script the star adress for mados is 000000 it is the safe ram, no
    it is safe to write the mados from 0x000000 and the the nokia flash from 0x200000 and then make a fubu from 0x000000 to 0x400000
    i'll attach the file
    ?????
    g3gg0 included this script to the compile process. you just need to run "compile_all.sh EMBED" and create a menupoint with the ID, the compile process puts out.

    my version of wincvs don't need python
    Last edited by krisha; 23-12-2003 at 02:40 AM.

  38. #38
    Join Date
    Sep 2002
    Location
    Portugal
    Posts
    1,295
    @ALL

    please update cvs

    i just added Alcatel and Samsung universal codes.

    If you find any wrong code or any missing code, please PM me so i can correct it.

    Thanks
    Attention Portuguese users:

    Novo fórum de GSM e outros 100% em Português:


    GsmIn.com

  39. #39
    I downloaded wincvs and folllowed the instructions to login.

    So far I didn't succeed to login. WinCVS showed the following error

    cvs -z9 -d :pserver:public@g3gg0.dyndns.org:/root login
    Logging in to :pserver:public@g3gg0.dyndns.org:2401:/root
    cvs [login aborted]: connect to g3gg0.dyndns.org:2401 failed: Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord.

    ***** CVS exited normally with code 1 *****


    Any suggestions for a successful login?

  40. #40
    Join Date
    Dec 2002
    Location
    Belgium +32478756860
    Posts
    908
    English:

    Hi, I also have the same error, just wait an hour.

    Dutch:

    Ik heb ook dikwijls deze error, je moet gewoon even wachten...
    For sale: Nokia 7250i

Page 1 of 4 1 2 3 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •