Putting Jaywaler's OpeniBoot on the iPod Touch 2g

Discussion in 'Android Chat' started by Saphiresurf, May 27, 2010.

  1. Saphiresurf

    Saphiresurf Member

    Joined:
    Sep 9, 2009
    Messages:
    661
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    ANNOUNCEMENTS:

    IMPORTANT: If you would like porting to all devices that haven't had OiB ported to yet please go donate here: http://www.idroidproject.org/wiki/Donations and donate for Hex-Rays Decompiler for ARM, and once that is purchased then debugging bootloader issues will be much easier and faster and porting OiB will be quite a bit faster with this tool.
    THIS GUIDE IS OUT OF DATE. Sorry guys I don't know if I'm going to update it. I have a few other projects and some things in life to sort out so sorry guys. Also I would appreciate it if an op would change the title to "How to Install (alpha) OiB onto the iPod Touch 2g"; I know it's been bugging some of my readers

    Please Register or Log in to view images

    . Thanks guys!


    Even though it seems kleemajo and Jaywalker have left the project I'm pretty sure that kleemajo has an extremely important test to take and Jaywalker is of course working with chronic-dev so he may not be helping porting (though he does help with the greenpois0n jailbreak tool in which we all appreciate him doing as well as the rest of the team). Though if we get enough people to donate for the ARM decompiler then most likely other people will begin to help out with porting since the decompiling tool makes reversing substantially faster and easier. Thank you all for your time, enjoy the guide.

    ---------------------------------------------------------------------------------------

    Heres a guide to installing Jaywalker's OpeniBoot for iPod Touch 2g. This program is still Alpha so dont expect to much. I also prefer that you have backed up your iPod Touch and have nothing you wouldnt mind losing on it (A.K.A you might have to restore if you mess up or something) Ok so lets start.

    Requirements:
    -A Jailbroken iPod Touch 2g (has to be with redsn0w or pwnagetool)
    -Linux Ubuntu (prefereblly 10.04 LTS 32-bit)
    -Willingness to restore your iPod
    -A PC
    -An iPod USB Cable

    Preparation:
    Install all the tools needed:
    Code:
    sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev libreadline6-dev readline-common libreadline6 libreadline-dev texinfo cmake git-core build-essential texinfo libreadline-dev libssl-dev libusb-1.0-0-dev libpng12-dev libusb-dev autoconf automake libnewlib-dev
    Log in as root:
    Code:
    sudo -s
    Then enter in your computer password


    Mounting, Compiling, and Installing

    1. First we want to mount the git repository.

    Code:
    git clone git://github.com/kleemajo/iphonelinux.git
    1a. Then mount the directory
    Code:
    cd iphonelinux/
    2. Build the toolchain
    2a.
    Code:
    sudo toolchain/build-toolchain.sh make
    2b. Enter in your password to log into root and wait a while for the toolchain to compile
    2c. If your having problems with building newlib then try this:
    Code:
    sudo rm /usr/local/bin/arm-elf-cc
    3.Build
    3a. Change Directory
    Code:
    cd openiboot
    3b.Build OpeniBoot
    Code:
    PLATFORM=IPOD2G make openiboot.img3
    4. Compile all in client
    Code:
    cd ../tools/client/linux/
    4a.
    Code:
    make all
    4b.
    Code:
    cd
    4c.
    Code:
    cd iphonelinux
    5.Load the client to your device
    Code:
    sudo tools/client/linux/loadibec openiboot/openiboot.img3
    5a.Run the client
    Code:
    sudo tools/client/linux/oibc
    6. Your done!
    ----------------------------------------------------------------------------------
    Working Commands(don't use these unless you know what your doing (of course for more info on each command just enter in help)):
    reboot
    help
    poweroff
    echo
    md
    mw
    mwb
    mws
    hexdump
    cat
    gpio_pinstate
    gpio_out
    accel
    pmu_voltage
    pmu_powersupply
    pmu_nvram
    malloc_stats
    frequency
    backlight
    go
    version
    wdt

    ----------------------------------------------------------------------------------------------------------------
    Updates:
    Looks like kleemajo got OiB flashed to his NOR. I'm testing out right now. And if your brick your device NOBODY IS TO BE HELD RESPONSIBLE EXCEPT YOU though we would be glad to try and help you fix your device. I'll change the guide if I get the install working I just have to get wubi on my laptop again since I'm taking a small 5 hour or so trip.
    -Saphiresurf

    SPI and NOR fixes, I'm not sure if there done yet, but I'll figure that out sooner or later. I'm pretty sure Jaywalker isn't working on it anymore and the main developer for this project is kleemajo right now.
    -Saphiresurf

    USB and Accelerometer works now

    Please Register or Log in to view images


    -Saphiresurf

    And with that, I'm going to call it a night. Sorry It's not 100% done, but i'll finish that up first thing tomorr...zzzzz.....
    By Jaywalker(9988) via Twitter

    Anyone interested on USB working for openiboot on ipt2g tonight? I'm about to pass out, but if i hear voices screaming out, i'll finish it
    By Jaywalker(9988) via twitter

    "Added a few files that I forgot to in the last commit"
    http://github.com/kleemajo/iphonelinux/commits/
    http://github.com/kleemajo/iphonelinux/
    By kleemajo via Github


    "Updated power_setup for IPOD2G".
    http://github.com/kleemajo/iphonelinux/commits/
    By kleemajo via Github
    ----------------------------------------------------------------------------------
    (Almost) Daily builds:
    9/4/10 http://www.[PIRACY.mf].com/?vfy4b5gw97bab9y

    8/29/10: http://www.[PIRACY.mf].com/?6i1u4bjld83e7e6

    ----------------------------------------------------------------------------------
    Readme (for people mostly interested in helping the project):
    iPod Touch 2G Users:

    Please note, this software is extremely alpha and currently only makes the device reboot from C code. This is not a bug, it's a feature.

    Please Register or Log in to view images



    Also, for those interested in helping out, here's a TODO for what's remaining:

    * Port LCD Driver (I'll probably have to do this one.. I have some good info already)
    * Verify the DMA driver works (again.. it's the same as the iphone2g)
    * Port the rest - at least we'll have the basic openiboot working by this point

    Please Register or Log in to view images



    ----------------------------------------------------------------------------------

    Credit's:
    kleemajo
    Jaywalker (or Jaywalker 9988)
    Planetbeing
    iDroidproject.org
    *if I forget anyone please tell me*
  2. xitz your fearx

    xitz your fearx Member

    Joined:
    Mar 8, 2008
    Messages:
    690
    Likes Received:
    6
    Device:
    iPhone 4 (Black)
    If this works, I love you. I have been wanting to do this for a while
  3. Saphiresurf

    Saphiresurf Member

    Joined:
    Sep 9, 2009
    Messages:
    661
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Well Jaywalker made it. Its still a work in progress and it isnt fully functional. There isnt a GUI or anything either yet. Luckily theres a few more things to do on this project to finish.
  4. ssng23

    ssng23 New Member

    Joined:
    Jun 3, 2009
    Messages:
    66
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    thanks you for sharing. Ive been wanting to do this for a long time.
  5. tankpier222

    tankpier222 Member

    Joined:
    May 27, 2010
    Messages:
    112
    Likes Received:
    2
    Device:
    iPad 3
    I am having a hard time compiling the toolchain and making the openiboot.img3 file. on the toolchain newlib fails to install and compiling the openiboot.img3 files fails when trying to use ld -png? Can someone help me with these problems?
  6. ssng23

    ssng23 New Member

    Joined:
    Jun 3, 2009
    Messages:
    66
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    i got the same problem
  7. MBFtrace

    MBFtrace Member

    Joined:
    May 24, 2010
    Messages:
    117
    Likes Received:
    0
    Device:
    iPod touch
    Saphiresurf, if you have it compiled, why not distribute it?
  8. tankpier222

    tankpier222 Member

    Joined:
    May 27, 2010
    Messages:
    112
    Likes Received:
    2
    Device:
    iPad 3
    Ive just updated to 10.04 so that may or may not solve my problems. It just may be Jaywalkers script for the toolchain builder or it could have been because i was using ubuntu 9.04. IDN exactually?
    ------------------double post merged------------------
    and it could also be that i am running ubuntu in VMWARE
  9. djmitza222

    djmitza222 Member

    Joined:
    May 8, 2008
    Messages:
    242
    Likes Received:
    0
    Device:
    iPad
    I love you man! But can you post your prebuilt openiboot img3 file? Thank you soo much!

    Now I can start porting iDroid Sense UI to iPod touch 2G xD
  10. godslam

    godslam New Member

    Joined:
    Oct 8, 2009
    Messages:
    18
    Likes Received:
    0
    Device:
    2G iPod touch
    OMG, this is great. I'll finally be able to get everything working on my iPod Touch 2G. =P

Share This Page