Author Topic: OpeniBoot Settings  (Read 2293 times)

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
OpeniBoot Settings
« on: May 10, 2010, 08:56:41 AM »
Edit:  Updated 05/28/2010 2!
Made compatible with Bootlace
2g
http://www.mediafire.com/file/hijhzjxzz ... 2010-2.bin
http://www.mediafire.com/file/hmhdtooi3 ... 010-2.img3

3g
http://www.mediafire.com/file/0zmztmmme ... 2010-2.bin
http://www.mediafire.com/file/mymomfmmj ... 010-2.img3

Edit:  Updated 05/28/2010
Allows  you to turn recovery mode on/off (star=in recovery mode, no star = not in recovery mode) in openiboot settings.
Also added option to return to openiboot (OiB) w/o saving any changes.
2G
http://www.mediafire.com/file/mzgynboyu ... 282010.bin
http://www.mediafire.com/file/e2wytyejz ... 82010.img3

3G
http://www.mediafire.com/file/xwrnxnzuz ... 282010.bin
http://www.mediafire.com/file/ymtf24zim ... 82010.img3

Edit:  Updated 05/19/2010
2g
http://www.mediafire.com/file/ny33kizzm ... 192010.bin
http://www.mediafire.com/file/wmytm5knk ... 92010.img3

3g
http://www.mediafire.com/file/3j5uh3tty ... 192010.bin
http://www.mediafire.com/file/1wwdkjhhy ... 92010.img3


Edit:  Updated 05/16/2010

Latest files are below, links to older versions have been removed.

2g
http://www.mediafire.com/file/nzytmntzj ... 162010.bin
http://www.mediafire.com/file/tqgm0zzjv ... 62010.img3

3g
http://www.mediafire.com/file/dn0zndn32 ... 162010.bin
http://www.mediafire.com/file/hnmhyzyw5 ... 62010.img3


Hey everyone,

My first development here.

A settings page for openiboot.  Configures auto boot time and default OS.

I got the defaultOS idea from apocalypse and someone else.  
aligreens made the gear icon, as If i had done it, it would have looked like my save button  :oops:

Usage:

click to the gears icon with the up/down button, select it with home

once in the settings screen move around with the power button, select your default os with the home button and change the timeout time with the up/down buttons.  when done go to save (with the power button) and press the home button to save.  this will save and shut off your phone on next boot it will use your settings.

Enjoy :D

Video
« Last Edit: May 29, 2010, 03:20:20 AM by ZinnX »

Offline alex

  • Dev
  • Member
  • Posts: 259
  • Karma: +5/-0
  • iDroid too slow? Deal with it.
    • View Profile
Re: OpeniBoot Settings
« Reply #1 on: May 10, 2010, 10:43:07 AM »
Neonkoala is working on an application for iPhone OS that allows you to configure oib from there. This also looks useful though.
#iphonelinux - General iDroid/openiBoot help and support | #idroid-dev - Contact a developer here | #iX - help and support for iX, an Ubuntu distribution for the iDevices | #iOS - all iOS and iPhone support goes here

All located on irc.osx86.hu

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #2 on: May 11, 2010, 01:25:11 AM »
i like being able to set the settings w/o booting into an os.

If anyone wants to give it a try here are the bin/img3 files in a zip

3g http://www.mediafire.com/file/jomzzdbbm ... ttings.zip doesn't include the latest push from planetbeing w/ call support for 3g, sorry i will update tomorrow

2g http://www.mediafire.com/file/y1ylimxfy ... ttings.zip i dont think any changes have been made to the 2g functionality in the past few days? but i could be wrong. will update tomorrow.

the graphics are a little buggy in the settings page, sorry

Offline Neonkoala

  • Global Moderator
  • Member
  • *****
  • Posts: 294
  • Karma: +3/-0
    • View Profile
    • Neonkoala.co.uk
Re: OpeniBoot Settings
« Reply #3 on: May 11, 2010, 04:39:44 PM »
Quote from: "ZinnX"
i like being able to set the settings w/o booting into an os.

If anyone wants to give it a try here are the bin/img3 files in a zip

3g http://www.mediafire.com/file/jomzzdbbm ... ttings.zip doesn't include the latest push from planetbeing w/ call support for 3g, sorry i will update tomorrow

2g http://www.mediafire.com/file/y1ylimxfy ... ttings.zip i dont think any changes have been made to the 2g functionality in the past few days? but i could be wrong. will update tomorrow.

the graphics are a little buggy in the settings page, sorry

Hi, could you post the source please? I'd like to take a look :).

I haven't tried this openiboot but for compatibility can you make sure it saves settings to the NVRAM using the following formats:

opib-version - set version of openiboot here. Currently set simply to 0.1 for simplicity.
opib-menu-timeout - Menu timeout timer in milliseconds. E.g. 5000 is 5 seconds.
opib-auto-boot - Global setting to set if openiboot should automatically boot an OS or not. My implementation works by setting timeout to 0 if this is 0. 1 Enables it.
opib-default-os - Sets default os to boot. 0 is iPhoneOS. 1 is Android and 2 is Console.

Thanks.

Edit: My git repo is http://github.com/Neonkoala/iphonelinux
iPhone 3G | iPhone 4

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #4 on: May 11, 2010, 05:17:54 PM »
I will setup a git repo in a few hours for the source

I currently use the following nvram settings:

opib-menu-timeout
opib-default-os

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #5 on: May 12, 2010, 06:35:35 AM »
source code is up
http://github.com/ZinnX/iphonelinux

graphics are all fixed up, everything should be bug free, allows you to save your changes and return to openiboot menu, allows you to set your defaultOS, time-out

3 nvram settings are set (and read) by the settings page

opib-menu-timeout
    sets time out for your default os
opib-default-os
   sets your default os
opib-temp-os
   sets a temporary default os that is booted immediately on returning to openiboot.  next load boots into your standard (default) os

latest commit from planetbeing has been incorporated
for those that are too lazy to compile :) here are the bin/img3s

3g
http://www.mediafire.com/file/mtqyz55zo ... config.bin
http://www.mediafire.com/file/gzw4wwej4 ... onfig.img3

2g
http://www.mediafire.com/file/3ummmjmmq ... config.bin
http://www.mediafire.com/file/zxkuzzi3y ... onfig.img3

usage:

navigate to the gear icon (lower right hand corner) by your standard method (vol up/down or power) 'click' with the home button.  this will load up the settings
to navigate around the settings selections use the power button (tap)
NOTE:  you can hold the power button to shutdown (10s)
pressing the home button over an OS will set it as default OS (marked by a WHITE star)
pressing both home and power at the same time over an OS will mark it as the next OS to boot or tempOS (note, not your default OS.  marked by a RED star)
pressing Save & Return will save your settings and return you to openiboot.  if you selected a tempOS it will immediatly boot this os after saving settings.
pressing Save & Exit will save your settings and shut down the phone.

Offline theunleet

  • Member
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #6 on: May 15, 2010, 08:42:46 AM »
ZinnX my NOR was not backed up because I am a retard. I uninstalled my own compiled OiB to use yours. I tried installing yours.

install
Installing Images...
Reading images...
Reading: ibot (171456 bytes)

FROZEN for over 10 minutes. I will confirm later if I am screwed or not.

Edit1: Confirmed on 3 devices that it does not install(3G devices)

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #7 on: May 15, 2010, 04:11:41 PM »
you should be able to uninstall / reinstall another install w/o issues, so don't worry the pooch isn't screwed
 *******BUT you should backup your NOR!

I have been having problems getting it to install past that as well on my 3g, but it installs no issues on the 2g.  I'm pulling in planetbeings newest updates and recompiling shortly, I will let you know.

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #8 on: May 15, 2010, 09:10:19 PM »
Fixed and tested  ;)


Offline aznc4j

  • Member
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #10 on: May 16, 2010, 08:01:53 AM »
I've tested this on a 2G, installed and worked great.
I ended up installing it, as setting up a timeout was very useful.
However, after uninstalling your compilation and reinstalling planetbeing's original one, I've noticed that the openiboot screen would show up for about half a second. During this time, any power button or home button presses would not cause the iPhone to respond. It would then jump directly into iPhone OS.
This ended up in a loophole for me, since running loadibec on different img3s would jump me right into iPhone OS after loading the openiboot screen for a half of a second. I finally found a workaround by reloading your img3. However, even after changing the timeout back to the default 10s, the same effect of half-second openiboot -> iPhone OS remains.
I went to the IRC chat for help on this, and there was a mention of nvram values, just in case that gives you a lead.

Offline Neonkoala

  • Global Moderator
  • Member
  • *****
  • Posts: 294
  • Karma: +3/-0
    • View Profile
    • Neonkoala.co.uk
Re: OpeniBoot Settings
« Reply #11 on: May 16, 2010, 10:06:53 AM »
@ZinnX - This is why you should stick with milliseconds for the timer to avoid situations like this.
iPhone 3G | iPhone 4

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #12 on: May 16, 2010, 07:14:19 PM »
@aznc4j - If you hold the vol down button it should allow you to switch to the console.  check your nvram values for opib-menu-timeout and set it to 2000 (or how ever many seconds you want * 1000).  you can do this a few ways, one way is

hold the vol down button on boot up and select console mode
run oibc
type
setenv opib-menu-timeout 2000
saveenv
reboot

that will give you a 2 second timeout for planetbeings or if you make it 0 it will disable time-outs


@Neonkoala - Good point, I had thought I had a good reason for using seconds, but I think that was more of a brainfart

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #13 on: May 16, 2010, 10:19:12 PM »
Fixed to be compatible with planetbeings oib (if you go back to it) menu-timeout
Added timeout display (some code credit for this should go to apocalypse)

source is on git
2g
http://www.mediafire.com/file/nzytmntzj ... 162010.bin
http://www.mediafire.com/file/tqgm0zzjv ... 62010.img3

3g
http://www.mediafire.com/file/dn0zndn32 ... 162010.bin
http://www.mediafire.com/file/hnmhyzyw5 ... 62010.img3

Offline ZinnX

  • Member
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: OpeniBoot Settings
« Reply #14 on: May 29, 2010, 01:57:48 AM »
updated the first post with my latest version (set recovery mode on/off, return to OiB)