[TUT] Iphone 3G with wifi, touch and sd-card sapport

Device drivers and Android system development

[TUT] Iphone 3G with wifi, touch and sd-card sapport

by niai » Fri May 07, 2022 2:34 am

this is a tutorial for ubuntu linux to get wifi and touch working on the iphone 3g with sdcard support there is no sound or sim support yet my aim is to try and help people understand what they are doing with this tutorial and because a lot of people seem lost and been asking for a tutorial
this is my first tutorial and my spelling isnt that grate if any thing it spelled wrong let me know and i will fix it

this is for people that have openiboot on there phone already

drivers
open a terminal (applications > accessory >terminal) and ssh in to you phone with
Code: Select all
shh root@[iphone ip address]

put in the root password default is alpine
you will need to make sure vim and ioktool are installed with
Code: Select all
apt-get install iokittools coreutils vim


now to get zephyr2_cal.bin and zephyr2_proxcal.bin
still using ssh in tirminal run
Code: Select all
ioreg -l -w 0 | grep '"Calibration Data" =' | cut -d '<' -f2 | cut -d '>' -f1 | xxd -r -ps - zephyr2_cal.bin

to make zephyr2_cal.bin
Code: Select all
ioreg -l -w 0 | grep '"Prox Calibration Data" =' | cut -d '<' -f2 | cut -d '>' -f1 | xxd -r -ps - zephyr2_proxcal.bin

to make zephyr2_proxcal.bin
get out off ssh with
Code: Select all
exit


this should give you 2 file in /private/var/root on your phone to get them use filezilla
you can install filezilla in ubuntu with
Code: Select all
sudo apt-get install filezilla

run it with
Code: Select all
filezilla


now put in the
iphones ip address
root as user
password alpine by default
port 22
then press quickconnect

after a few seconds you should have the 2 zephyr2 files in the box on the right copy them to a folder called idroid in on you pc
now navigate to /private/var/stash/share/firmware/multitouch/ in filezilla and copy the iPhone.mtprops file to the idroid folder

go back to terminal and chance to the idroid directory
Code: Select all
cd /[path]/idroid


now to extract zephyr2.bin run
Code: Select all
cat iPhone.mtprops | grep -B2 0x0049 | grep data | sed 's/^\t\t<data>//' | sed 's/<\/data>$//' | base64 -d > zephyr2.bin

and you should get a file called zephyr2.bin

wifi driver
The Wi-Fi firmware files can be found on Marvell's site.

1. Go to http://www.marvell.com/support.html
2. Under "Choose a platform", select "Linux 2.6 - Fedora".
3. Click the Search button under the drop down box.
4. Download and extract the SD-8686-* zip archive.
5. Rename helper_sd.bin to sd8686_helper.bin
6. Keep sd8686.bin and sd8686_helper.bin in a safe place for later.

we are done with the drivers




adding the drivers to android

download the Unofficial 0.1b, Pre-Rooted, SD Emulation & DNS Fix thanks to nitestarzz for this it has virtual sc-card support
extract the contents of the var to the idroid folder
then replace the zimage with this one http://www.multiupload.com/EEE80DYBCY

in terminal change directory the idroid directory (if not there already)
Code: Select all
cd /[path]/idroid

extract android.img.gz with
Code: Select all
gunzip android.img.gz

now make an mounting directory with
Code: Select all
sudo mkdir -p /mnt/android

mount android.img with
Code: Select all
sudo mount -o loop android.img /mnt/android

copy the drivers with
Code: Select all
sudo cp sd8686_helper.bin zephyr2_cal.bin sd8686.bin zephyr2.bin zephyr2_proxcal.bin /mnt/android/lib/firmware/

unmount android.img with
Code: Select all
sudo umount /mnt/android

and rezip with
Code: Select all
gzip android.img


same for system.img
Code: Select all
sudo mkdir -p /mnt/android

Code: Select all
sudo mount -o loop system.img /mnt/android

Code: Select all
sudo cp sd8686_helper.bin zephyr2_cal.bin sd8686.bin zephyr2.bin zephyr2_proxcal.bin /mnt/android/etc/firmware/

Code: Select all
sudo umount /mnt/android


putting the files on the iphone
Code: Select all
scp -C /[image directory]/* root@[iphone ip address]:/private/var


change the permissions by sshing back in to the phone
Code: Select all
ssh root@[iphone wifi ip address]

changing directory to /private/var
Code: Select all
cd

and then running
Code: Select all
chmod 755 ramdisk.img system.img userdata.img cache.img android.img.gz zImage


there your all done reboot and select android in at boot and every thing should work


to add a sd-card all you need to do is put one of the sdcard file from the Unofficial 0.1b, Pre-Rooted, SD Emulation & DNS Fix package you downloaded and add it to /private/var on your phone you can use filezilla for this

hope this helps
Last edited by niai on Fri May 07, 2022 7:01 pm, edited 5 times in total.
niai
 
Posts: 51
Joined: Sun Apr 25, 2022 1:10 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by exploitz » Fri May 07, 2022 2:53 am

I just want to say.
I love you right now:)
I leave that ***** Microsoft like Windows Vista
exploitz
 
Posts: 76
Joined: Sat Apr 24, 2022 11:27 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by jenkem110 » Fri May 07, 2022 3:03 am

me too
jenkem110
 
Posts: 17
Joined: Sun Apr 25, 2022 5:31 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by heylookamonkey2 » Fri May 07, 2022 3:07 am

If they're running 3g and want touch, they'll need the new zImage built for 3g...
http://www.multiupload.com/EEE80DYBCY
heylookamonkey2
 
Posts: 12
Joined: Sun May 02, 2022 8:32 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by exploitz » Fri May 07, 2022 3:15 am

heylookamonkey2 wrote:If they're running 3g and want touch, they'll need the new zImage built for 3g...
http://www.multiupload.com/EEE80DYBCY


Thanks and do we just use it like normal?
I leave that ***** Microsoft like Windows Vista
exploitz
 
Posts: 76
Joined: Sat Apr 24, 2022 11:27 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by heylookamonkey2 » Fri May 07, 2022 3:15 am

exploitz wrote:
heylookamonkey2 wrote:If they're running 3g and want touch, they'll need the new zImage built for 3g...
http://www.multiupload.com/EEE80DYBCY


Thanks and do we just use it like normal?


Yeah, I'm pretty sure the one compiled for .1b is for 2g, this one is for 3g, just copy it as you normally would.
heylookamonkey2
 
Posts: 12
Joined: Sun May 02, 2022 8:32 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by niai » Fri May 07, 2022 3:22 am

oops forgot that thanks for the reminder
niai
 
Posts: 51
Joined: Sun Apr 25, 2022 1:10 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by joejoe555 » Fri May 07, 2022 4:04 am

great job,
joejoe555
 
Posts: 22
Joined: Mon Apr 26, 2022 6:35 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by exploitz » Fri May 07, 2022 5:09 am

Great guide! I just got it working and wanted to say thanks for taking the time to post this.

Two issues though, I can't get wifi to scan it always says "Unable to scan for networks"

and is the baseband not working properly yet? In openiboot i get "No response from baseband"
I leave that ***** Microsoft like Windows Vista
exploitz
 
Posts: 76
Joined: Sat Apr 24, 2022 11:27 pm

Re: [TUT] Iphone 3G with wifi, touch and sd-card sapport

by saltinbas » Fri May 07, 2022 6:32 am

Hi,

Bluerise has changed his kernel

commit: fe59c82 iPhone Backlight Driver
http://github.com/Bluerise/kernel_commo ... b79082a49d

Anybody can compile this?

Thanks
saltinbas
 
Posts: 7
Joined: Sun Apr 25, 2022 9:29 am

Next

Return to iDroid development

Who is online

Users browsing this forum: Alexa [Bot], byographic, ea87, saidias and 7 guests