Debian tutorial

Discussion in 'Android Chat' started by darkshadow, Feb 28, 2009.

  1. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    All of this requires newest dev versions of everything. Most info is just copy and pasted instructions compiled for your easy use. Sorry I don't have links to the Debian rootfs or current builds of openiboot although you can easily compile openiboot yourself.

    First install or update to a current git build of openiboot.

    INSTALLING OPENIBOOT
    --------------------

    1. Put your iPhone in Recovery Mode
    2. sudo ./loadibec openiboot-2g.img3
    - Or -3g, -ipod, depending on your platform.
    3. sudo ./oibc
    4. nor_read 0x09000000 0x0 1048576
    5. ~norbackup.dump:1048576
    - This will create a file called norbackup.dump in your
    current directory. GUARD IT WITH YOUR LIFE.
    6. install
    7. After 'install' has finished, type in: reboot.
    8. You ought to see the openiboot menu.

    UPDATING OPENIBOOT
    ------------------

    1. Start the openiboot console
    2. sudo ./oibc
    3. !openiboot-{your platform}.bin
    4. go 0x09000000
    5. Start the openiboot console again
    6. install
    7. The updated openiboot binary is now installed on NOR.

    INSTALLING DEBIAN
    -----------------

    Well in the iPhoneOS use scp to copy the rootfs into the filesystem. Then ssh in and gunzip it

    1. scp linux-root.ext3.img.gz root@IPOFIPHONE:/var/mobile/Media/
    2. ssh root@IPOFIPHONE
    3. cd /var/mobile/Media
    4. gunzip linux-root.ext3.img.gz

    BOOTING LINUX
    -------------

    1. Use the Hold button to navigate the menu. Push the Home button when openiboot client is selected.

    Install ckermit on your computer "sudo apt-get install ckermit" for Ubuntu users. Then from a terminal run

    1. sudo modprobe -r usbserial
    2. sudo modprobe usbserial vendor=0x525 product=0xA4A6
    3. sudo ./oibc

    Run the following in the oibc console, ignore the rootfs command to have a read only filesystem which is recommended for the first few tests to avoid possible restores of the iPhoneOS as it can corrupt you filesystem


    rootfs 1 /mobile/Media/linux-root.ext3.img
    !zImage
    kernel
    !new.arm.ext2.gz
    ramdisk
    boot "console=tty root=/dev/ram0 rw"

    CONTROLLING DEBIAN
    ------------------

    ... load the kernel, etc... (wait for the endpoint enabled messages to display on the iPhone before doing the next steps)

    kermit
    set line /dev/ttyUSB0 (or ttyUSB1, whichever is present)
    c

    You should now be at the login prompt if not look on the iPhone for a error about being unable to open /proc/mounts if you have that followed by more missing files I don't know how to fix it.
  2. sbdxaric

    sbdxaric Member

    Joined:
    Aug 24, 2008
    Messages:
    319
    Likes Received:
    0
    Device:
    iPhone 3GS (White)
  3. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    Here is a quick video I made of Debian booting on my iPod. It is not the best because all I had was cycorder on my cousins iPhone to record it. I also use a .kermrc file to run the set line and c commands so that is why you don't see them. Along with having the modules load at boot with the correct arguments.


    http://www.youtube.com/watch?v=HwuSY-On2sU
  4. monks700

    monks700 New Member

    Joined:
    May 18, 2008
    Messages:
    11
    Likes Received:
    0
    Device:
    iPod touch
    Can we get some download links? I would love to try this.
  5. mikec1985

    mikec1985 Active Member

    Joined:
    Dec 22, 2007
    Messages:
    2,558
    Likes Received:
    0
    Device:
    iPad
    I believe its all done through terminal.
  6. atomicmufin

    atomicmufin Banned

    Joined:
    Jun 5, 2008
    Messages:
    1,549
    Likes Received:
    1
    Device:
    iPhone 4 (Black)
    are you good with normal debian?
    because i need help setting up a static ip.
  7. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    I don't have any links that currently work. Sorry.

    For setting up a static ip, I don't know on whatever the current gui would be for Debian since I gave up on it and just use "static dhcp" which is setup on my router. For a quick non permanent way to do it temporarily from a cli use "ifconfig $INTERFACE $IP up" and then "route add default gw $IPOFROUTER $INTERFACE"
  8. sbdxaric

    sbdxaric Member

    Joined:
    Aug 24, 2008
    Messages:
    319
    Likes Received:
    0
    Device:
    iPhone 3GS (White)
  9. Taitac

    Taitac New Member

    Joined:
    Dec 29, 2008
    Messages:
    76
    Likes Received:
    0
    Device:
    2G iPod touch
    can we start kde on it ? like have a graphical interface that works with the touchscreen?
  10. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    No to both questions.

Share This Page