+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 35

[Project] Uboot

This is a discussion on [Project] Uboot within the Modding & Development forums, part of the Meizu M8 category; Alright, Let's talk about the most dangerous part in customizing on beloved M8. Uboot (like the title says ofcourse) I ...

  1. #1
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts

    [Project] Uboot

    Alright,
    Let's talk about the most dangerous part in customizing on beloved M8.
    Uboot (like the title says ofcourse)

    I can not say that we will have it running one day cause I am not trusted with building Uboot nor do I know if there are still some active developers out there for the M8.

    Steps to do:
    *compile Uboot.
    *test Uboot to see if it works.
    *flash Uboot over Eboot.
    *document all progress.

    So that was easier written then done, so let me start with the easiest step:
    *document all progress.
    check te rewritten wiki page: M8 Development , topic Uboot bootloader.

    Ok, next?
    Try to avoid hardware mods cause I am not willing to invest money in this project. So what will we need to do?
    Avoid using Jtag so I don't need to spend 25 Euros.
    *flash Uboot over Eboot.
    Boy that was easy !
    I found a neat tutorial I documented in our wiki. The source came from here
    Reading this tutorial fast I noticed I should need access to Eboot , thus the serial port. So check our wiki on serial access
    Ok, next we seem to need some specific commands in eboot .. but that was easy again Check our serial access thread
    • set IP or use DHCP? check!
    • DOWNLOAD image now ? check!
    *test Uboot to see if it works.
    Ohoh hard one.
    I can't seem to find any documentation on this, it looks like everyone has a perfect match from the beginning, or uses JTAG.
    What now?
    Well I am still researching this but it seems you might be able to change the Uboot base address (the moutingpoint is default 0).
    If this is true one might try to build Uboot, change the base and try to load it from Tinyloader(the loader we use to run Android on M8).
    If this doesn't work out, then I don't know ..

    *compile Uboot.
    Well there are tutorials out there, pre compiled packages for S36410 SOC, a download on pudn from bill, ..
    This is the last of our problems I gues..?
    The only thing I can see here is on what device we will test this dangerous stuff ?

    What if all this works?
    Well then we'd need to find a way to burn uboot.bin using Meizu's update system so every M8 user could use this.

    Did I forget something?

    Well yes, the Meizu OS might render useless, but I am aware that the Uboot can load WinCE, ..


    So that's it for now, if & I say if I find time I might try it.
    All your help/feedback/.. is welcome ofcourse

  2. #2
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    sorry, but what is Uboot?
    I cannot find something on Google :/
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Location
    Serbia
    Posts
    71
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Really what's that for?

  4. #4
    Passing By
    Join Date
    Dec 2010
    Posts
    9
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I havent 15posts so here is the url, copy it and replace the [.] part

    wiki[.]meizume[.]com/Meizu_M8_Uboot
    and
    en.[]wikipedia[.]org/wiki/Das_U-Boot
    and/or
    en[.]wikipedia[.]org/wiki/Booting#Boot_loader

  5. Member who thanked c3warez for the post:


  6. #5
    Junior Member
    Join Date
    Nov 2010
    Location
    Serbia
    Posts
    71
    Thanks
    10
    Thanked 0 Times in 0 Posts
    so the u-boot is some kind of program that is used as a base to start android?

  7. #6
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    Quote Originally Posted by nikola92 View Post
    so the u-boot is some kind of program that is used as a base to start android?
    Indeed, Uboot is a bootloader that loads (any) operating system.
    We do not really need to have this since we got Tinyloader.

    But having it would open some perspectives for the development,
    and it might make custom roms smoother etc ..

  8. #7
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    How far is the developement?
    Is that the only Forum, where you ask for help?
    maybe the chinese could help aswell in bbs.meizu.com?!
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI

  9. #8
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    Quote Originally Posted by misi66 View Post
    How far is the developement?
    lol,
    not really that far cause for now it's a one man show
    & i've got plenty of other stuff 2 do. So it wont go fast .

    I know team sepa experimented with it in the past, but they did not really document it.

  10. #9
    Junior Member
    Join Date
    Nov 2010
    Location
    Serbia
    Posts
    71
    Thanks
    10
    Thanked 0 Times in 0 Posts
    So if this works we could maybe port WinM 6.5 or even 7 to M8 and some other OS's?

  11. #10
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    Quote Originally Posted by evow04 View Post
    *test Uboot to see if it works.

    Well I am still researching this but it seems you might be able to change the Uboot base address (the moutingpoint is default 0).
    If this is true one might try to build Uboot, change the base and try to load it from Tinyloader(the loader we use to run Android on M8).
    code CreateTBin app:
    Code:
    Usage: CreateTBin <inputfilename> [-a <imgAddress>][-options]
     <inputfilename>   This is an executable rom file (File starts with the first inctruction. File extension required!)
     -a <imgVAddress> Set base address. Default imgAddress is 0x80100000
    Options:
     -w               Make WinCE bin
     -l               Make Linux bin
     -q               Make QNX bin
     -j               Make bin without jump-page (e.g. for U-BOOT)
     no option        Make general bin
    So we could just use this tool to remap the base address from a uboot.bin file for our m8 then run it from tinyloader:D

    Any one recalls the base address for zimage used at tinyloader?

    So if this works we could maybe port WinM 6.5 or even 7 to M8 and some other OS's?

    indeed

  12. #11
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    So,
    I made little progress;
    Found a decent manual for uboot on SMDK6410 devices similar to this one (mine is v2.9, ripped it from a dvd from mini6410)

    Went throught the whole uboot code from Bill on pudn, found specific changes made by him, so I am pretty sure it should work (on M8 Fe though).
    Will try to run the make script this weekend to see what happens.

    Currently I am looking for a copy of the Meizu Eboot bootloader update to run it through IDA Pro Disassembler or EXEcuter to see if i can find specific code.

    Also looking for a second hand M8, with or without damage, for a bargain cause it might be an idea to test this on a device that may get broken

  13. Member who thanked evow04 for the post:


  14. #12
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    So little update again.

    I did not yet have the time to check the original eboot bootloader.
    BUT, I've managed to make a clean ubuntu install, toolchain installed &
    I made a raw uboot binary (uboot.bin) without any errors.

    For thos who are interested, I added in the wiki a small tutorial on installing the toolchain
    compiling uboot for m8 was rather easy cause bill added a shell script make.sh that you can run by this command:
    Code:
    sh make.sh
    This script runs just few commands to compile uboot
    Code:
    make mrproper
    make smdk6410_config
    make
    So I think that says enough?

    For thos who are still following, I added the smdk6410_config as txt on this post.

    ATM I am seeing what base address I need to use so I can build a dualboot: WinCE & Uboot.
    I think I will need to use the one we use for android as shown here:

    Ohh and I think I came to realize one more benefit.
    Even if we can not apply uboot on nand to replace eboot we can build 1 custom rom (dualboot) with uboot.
    Then apply some changes so we'd be able to load a zimage from the memory(this can be done).
    Meaning that you would not always need to flash xip.bin over to test android builds..!
    Attached Files

  15. #13
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    alright,
    I made my first build but since I am not having a USB cable atm (@work) I can not test it.

    I wanted to ask if there is a daredevil that wants to try this out for me.
    For good use one should have a debug cable, but I have enabled debug on screen so one should see if it loads or not, so debug cable is not required..

    this is the download link.
    itīs the most recent official xip.bin release from Meizu and my uboot build euhm v0.1

    If one wants to try it;
    install it like a normal FW, after flashing you will get the tinyloader boot menu, choose android and if all works you should see some startup on screen...
    but keep in mind, itīs new, it might be dangerous.

  16. #14
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    Quote Originally Posted by evow04 View Post
    alright,
    I made my first build but since I am not having a USB cable atm (@work) I can not test it.

    I wanted to ask if there is a daredevil that wants to try this out for me.
    For good use one should have a debug cable, but I have enabled debug on screen so one should see if it loads or not, so debug cable is not required..

    this is the download link.
    itīs the most recent official xip.bin release from Meizu and my uboot build euhm v0.1

    If one wants to try it;
    install it like a normal FW, after flashing you will get the tinyloader boot menu, choose android and if all works you should see some startup on screen...
    but keep in mind, itīs new, it might be dangerous.

    Oh dear, I want to do it. But I am so afraid :D
    is it possible that the phone doesn't work anymore? :-@
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI

  17. #15
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    Quote Originally Posted by misi66 View Post
    Oh dear, I want to do it. But I am so afraid :D
    is it possible that the phone doesn't work anymore? :-@
    well indeed, it might kill the device.
    But I highly doubt that it will be the case since i did not touch the base address for now...

    but since I am really not trusted with building uboot I canīt say for sure.
    I even canīt say it will work :-)

  18. #16
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    Quote Originally Posted by evow04 View Post
    well indeed, it might kill the device.
    But I highly doubt that it will be the case since i did not touch the base address for now...

    but since I am really not trusted with building uboot I canīt say for sure.
    I even canīt say it will work :-)
    because i really need my phone every day, i think somebody else, who uses it as a second phone or so, shoud try out this stuff

    let's assume that it'll work.
    What is the next step?
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI

  19. #17
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    Quote Originally Posted by misi66 View Post
    because i really need my phone every day, i think somebody else, who uses it as a second phone or so, shoud try out this stuff
    np, I notice few people already downloaded it :-)
    Quote Originally Posted by misi66 View Post
    let's assume that it'll work.
    What is the next step?
    well there are plenty of things we can do. One of the first I would like to do is modify it so we can load zimage from /disk. Then you wont need to reflash every 5 minutes

    but let us first see if it does anything :-)

  20. #18
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    Quote Originally Posted by evow04 View Post
    np, I notice few people already downloaded it :-)

    well there are plenty of things we can do. One of the first I would like to do is modify it so we can load zimage from /disk. Then you wont need to reflash every 5 minutes

    but let us first see if it does anything :-)
    Yeah fine,
    where did you learned these skills to do these things?
    I am very interested in that and make even my a-level exam in informatic (IT)
    but that's not what we're learning there :D
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI

  21. #19
    Valued Member
    Join Date
    Aug 2008
    Location
    Belgium
    Posts
    2,434
    Thanks
    127
    Thanked 189 Times in 130 Posts
    well most of the skills iīve learned over the years (about 15 years of them :P).

    So I can only advice you to do as much stuff as you can do, donīt hesitate if you donīt know or understand something; just do or try it . Even if you donīt succeed you will have learned something new. :-)

  22. Member who thanked evow04 for the post:


  23. #20
    Member
    Join Date
    Oct 2010
    Posts
    130
    Thanks
    5
    Thanked 14 Times in 12 Posts
    Quote Originally Posted by evow04 View Post
    well most of the skills iīve learned over the years (about 15 years of them :P).

    So I can only advice you to do as much stuff as you can do, donīt hesitate if you donīt know or understand something; just do or try it . Even if you donīt succeed you will have learned something new. :-)
    :**, thats for you :D
    Meizu M8 SE 8GB - Firmware: dao89 n450 (based on 0.9.9.18) - Own UI


 

Similar Threads

  1. [Project] Localizing the M9
    By Coninsan in forum Meizu M9 Rooting & Modding
    Replies: 8
    Last Post: 02-27-2011, 02:11 PM
  2. [project] Windows CE 6
    By evow04 in forum Modding & Development
    Replies: 29
    Last Post: 01-11-2011, 06:49 PM
  3. [project] TwitterClient
    By crimson05 in forum Modding & Development
    Replies: 69
    Last Post: 01-28-2010, 09:05 PM
  4. project shazam
    By mj_71 in forum Modding & Development
    Replies: 1
    Last Post: 12-29-2009, 12:09 PM
  5. [project] M8Jabber
    By trash in forum Modding & Development
    Replies: 18
    Last Post: 12-01-2009, 10:32 PM