Author Topic: OpeniBoot FTL and filesystem read tests on newer iDevices  (Read 8242 times)

Offline Bluerise

  • Dev
  • Member
  • Posts: 28
  • Karma: +3/-0
    • View Profile
    • https://www.patrick-wildt.de
OpeniBoot FTL and filesystem read tests on newer iDevices
« on: May 11, 2011, 11:10:57 PM »
Another set of binaries, have fun! - Should be working on all devices now! (June 06, 2022 - 10:24PM UTC+1 or +2)

WARNING: This could break your device. It shouldn't, but be warned. Please do not do anything else but what I said.

Good evening,

we've been progressing a lot on porting OpeniBoot to newer devices.
So, this is a... alpha alpha unstable testing bug tracking release.
In some cases it might print an openiBoot panic.
There's a part missing for specific device support,but that'll be added soon.

I guess you're interested. But I've got one problem. I can't explain you everything.
I know there'll be questions about how to use it and stuff. And... I do only have 64-bit binaries for linux.
That'll hopefully get updated soon.

This will not boot Android or a kernel. Please do not put iDroid Pepparkaka on your iPhone 4 and think that this version will load it.

But in the meantime:
If you don't know how to compile your own loadibec/oibc (if your platform isn't matching) or
you've got some other problems: I might NOT help you.


I'm sorry about that, but, you know, I do enough have other stuff to worry about. :\

This is what I need from you to help us find and fix bugs:
  • Go into DFU without hard resetting your device, but turning it off normally first
  • Use loadibec to upload openiboot
  • Try to connect via oibc
  • If it fails
    • do a photo of your device or
    • try to write down what it your device printed on the display (at least the last 4 lines)
  • If it works
    • fs_ls 0 0 /
    • s_cat 0 0 /etc/fstab
    • fs_ls 0 1 /
    • fs_cat 0 1 /log/notifyd.log
  • whatever happens, copy the complete log, save it on www.pastie.org
  • Reply to this thread, tell me what device you got, and attach a LINK to the pastie AND/OR attach the photo
  • This topic is for bug tracking. If you've got questions, you're wrong here.

Those are the binaries you need
  • Tools for linux, x86_64
    • http://dl.dropbox.com/u/1408949/testing/loadibec_linux_x64
    • http://dl.dropbox.com/u/1408949/testing/oibc_linux_x64
  • Tools for OSX (x86_64 SL) - make sure you have readline and libusb installed otherwise they wont work
  • iPhone 3GS
    • http://dl.dropbox.com/u/1408949/testing/iphone_3gs_openiboot.bin
  • iPhone 4
    • http://dl.dropbox.com/u/1408949/testing/iphone_4_openiboot.bin
  • iPod Touch 4G
    • http://dl.dropbox.com/u/1408949/testing/ipt_4g_openiboot.bin
  • iPad 1G
    • http://dl.dropbox.com/u/1408949/testing/ipad_1g_openiboot.bin
  • Apple TV 2G
    • http://dl.dropbox.com/u/1408949/testing/atv_2g_openiboot.bin


\Bluerise

PS: I'm sorry if I'm too rough here. Maybe it's my bad English + me being German. :p

A general note:
If you see "YAFTL_Restore: Sorry... not yet!" somewhere in the console log, then you did not shut down the device correctly.

Boot iOS again, and shut it down correctly: Hold the power button for a few seconds, and slide "Slide to power off" as it appears.
Wait some time (to make sure your device is entirely shut down), and try again.
« Last Edit: June 06, 2011, 09:29:08 PM by Bluerise »

Offline iPwnUK

  • Member
  • Posts: 207
  • Karma: +2/-0
  • *Insert Witty Comment Here*
    • View Profile
  • iDevice: iPhone 4 (GSM) 16G
  • Jailbreak: redsn0w 0.9.6(cant remember actual version)
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #1 on: May 11, 2011, 11:44:55 PM »
Works perfect for me here, both the commands worked ;D
Here's a link to the pastie containing everything: http://pastie.org/1891006

EDIT: forgot to add, am running iPhone 4 (GSM) with iOS 4.2.1 via RedSn0w
EDIT 2: running ubuntu 11.04 64 bit
EDIT 3: updated pastie link with the corrected command
Read error on the updated command because the file doesn't exist.
« Last Edit: May 12, 2011, 12:23:41 AM by iPwnUK »

Offline inve1

  • Member
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • iDevice: iPhone4 GSM 32G - iPad2 3G (GSM) 32G - iPhone 2G 8G
  • iDroid Version: MoJo 1.0.5
  • Jailbreak: Pwnagetool 4
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #2 on: May 12, 2011, 12:44:36 AM »
all right.. i guess we have the first failure of the thread.. yay XD

the device is an iphone4 32G, running 4.3.2 and jailbroken with pwnagetool
openiboot loads fine, but apparently it's not able to detect the partitions (I did turn it off properly, no hard reset)
here's the log: http://pastie.org/1891104
i'm running ubuntu 11.04

fs_ls just sits there and does nothing.. i've left it there for about 5 mins

Offline Oranav

  • Dev
  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #3 on: May 12, 2011, 01:17:58 AM »
inve1:
Please make sure that you've downloaded the latest binaries.

If it still fails with the latest binaries, run the following commands:
nand_read 0 2048 0x46000000 0 0 0 0
hexdump 0x46000000 0x20
nand_read 1 2048 0x46000000 0 0 0 0
hexdump 0x46000000 0x20
nand_read 2 2048 0x46000000 0 0 0 0
hexdump 0x46000000 0x20
nand_read 3 2048 0x46000000 0 0 0 0
hexdump 0x46000000 0x20

And Pastie the whole output of those commands.
« Last Edit: May 12, 2011, 10:22:17 AM by nickp666 »

Offline nickp666

  • Administrator
  • Member
  • *****
  • Posts: 674
  • Karma: +45/-0
    • View Profile
    • http://www.nickpack.com
  • iDevice: Various
  • iDroid Version: Latest
  • Jailbreak: Various
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #4 on: May 12, 2011, 10:25:42 AM »
Theoretically, this will not affect the iOS part of the phone?
If so, I will try this on my iPhone 4 after some backup work.

It will not touch iOS provided you dont run any other commands than what are stated above

Offline Peacock

  • Member
  • Posts: 26
  • Karma: +0/-0
    • View Profile
  • iDevice: iPhone 2G [8GB], iPhone 4 [32GB]
  • iDroid Version: Pepparkaka 11.04 [iPhone 2G]
  • Jailbreak: redsn0w 0.9.4 [iPhone 2G, 3.1.3], redsn0w0.96rc14 [iPhone 4, 4.3.2]
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #5 on: May 12, 2011, 10:51:10 AM »
All commands worked like a charm,
then back to a fully functional iOS by reboot command.

Here is the complete log: http://www.pastie.org/1892397

Details:
iPhone 4 32GB [MC605ZP], running on 4.3.2 jailbroken by Redsn0w 0.9.6rc14, unlocked natively.
Mac OS X 10.6.7, running on MacBookPro5,5

Let me know if anything required is missing.
Thanks for the hard work.

Offline LIV2

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • iDevice: iPad 3G, iPhone 4
  • iDroid Version: none
  • Jailbreak: redsnow
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #6 on: May 12, 2011, 11:43:09 AM »
didn't work on my iPhone 4 or iPad

iPad: http://pastie.org/1892521

on my iPhone 4 I get "YAFTL_Restore: Sorry... not yet!"

I'm certain I'm entering DFU mode correctly, I'm shutting it down first and not seeing an apple logo between the shut down and entering DFU mode.

interesting that my iPad says unsupported low level format version, it's a 1st Generation iPad 3G bought at launch in Australia.

Offline Bluerise

  • Dev
  • Member
  • Posts: 28
  • Karma: +3/-0
    • View Profile
    • https://www.patrick-wildt.de
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #7 on: May 12, 2011, 11:49:00 AM »
Have you powered it off normally? No hard reset.

And... I do need that pastie, too.

Offline LIV2

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • iDevice: iPad 3G, iPhone 4
  • iDroid Version: none
  • Jailbreak: redsnow
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #8 on: May 12, 2011, 11:52:25 AM »
I'm certain I did. i slid to power off then when it turned off i started holding power + home for 10 seconds, then released home, maybe I'm entering DFU mode incorrectly, every time I try the phone powers on to the apple logo first before turning off and going into DFU mode, but it still doesn't work.

iPhone 4: http://pastie.org/1892568

My iPhone is Model MC603X running 4.3.1
My iPad is Model MC496X with iOS 4.3.2
« Last Edit: May 12, 2011, 12:06:08 PM by LIV2 »

Offline Bluerise

  • Dev
  • Member
  • Posts: 28
  • Karma: +3/-0
    • View Profile
    • https://www.patrick-wildt.de
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #9 on: May 12, 2011, 12:55:40 PM »
I know that error, and it's not cause of an incorrect way of entering DFU. Thanks, that helps a lot!

Offline Oranav

  • Dev
  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #10 on: May 12, 2011, 01:09:39 PM »
LIV2:
On the iPad, please do what I wrote to inve1.

Offline jorfermo

  • Member
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • iDevice: iPhone
  • iDroid Version: None
  • Jailbreak: redsn0w
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #11 on: May 12, 2011, 01:30:48 PM »
iPhone 4 (ok): http://pastie.org/1892829
iPad 1G (wrong): http://pastie.org/1892842

The result of the commands on the iPad: http://pastie.org/1892871

Offline inve1

  • Member
  • Posts: 4
  • Karma: +0/-0
    • View Profile
  • iDevice: iPhone4 GSM 32G - iPad2 3G (GSM) 32G - iPhone 2G 8G
  • iDroid Version: MoJo 1.0.5
  • Jailbreak: Pwnagetool 4
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #12 on: May 12, 2011, 01:44:53 PM »
inve1:
Please make sure that you've downloaded the latest binaries.

If it still fails with the latest binaries, run the following commands:
[...]
And Pastie the whole output of those commands.

I did what you asked, i'm sure I have the latest binaries (tried on macos this time)
fs_ls still fails, so i ran the other commands. here's the log http://pastie.org/1892902
hope it helps :)

Offline Floatshow

  • Member
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • iDevice: iPod touch 4G
  • iDroid Version: None
  • Jailbreak: redsn0w 0.9.6rc15
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #13 on: May 12, 2011, 03:32:33 PM »
I tested OpeniBoot on my iPod touch 4G.

Here's what I got : http://www.pastie.org/1893197

"fs_ls 0 0 /" works great, as "fs_cat 0 0 /etc/fstab".
« Last Edit: May 12, 2011, 05:58:44 PM by Floatshow »

Offline gazzax

  • Member
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot FTL and filesystem read tests on newer iDevices
« Reply #14 on: May 12, 2011, 03:45:01 PM »
Worked like a charm for me

http://www.pastie.org/1893258

iPhone 4 GSM - UK - 16GB - iOS 4.3.1 - Redsn0w used to Jailbreak

Ubuntu 11.04 x64

Keep up the good work chaps :)