InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   New bootloader for Lion and before made by cparm and me (http://infinitemac.com/showthread.php?t=7178)

andyvand 05-23-2011 12:27 PM

New bootloader for Lion and before made by cparm and me
 
This is a new bootloader for Lion and older that has all the functionality possible with a modular system.
Put the modules in /Extra/Modules in order to enable them to load.
I use only the ones that I really need.
This can also boot Lion DP1 in 32bit only mode.
It's still beta and I noticed on my Atom it sometimes gets stuck at boot, rebooting always did the trick... boots very fast... (fastest I've seen yet)

Download (binaries, Update: Beta2):
https://rapidshare.com/files/3791820...boot_Beta2.zip
It has the new ACPICodec ACPI loader (which can load virtually any ACPI table) and also for exotic i5 and i9 cpus I've added support in the kernelpatcher (they spoof the family and model to Nehalem).

For the sources contact cparm for his branch and apply the following diff:
https://rapidshare.com/files/1333509...ments.diff.zip

andyvand 05-25-2011 07:19 AM

1 Attachment(s)
Some pics of my netbook (32-bit only) running Lion DP1

milanca 05-25-2011 08:39 AM

Extraordinary! Thanks Andy. I haven't tested it yet, but i will soon (on SL). I checked the modules though, amazing.

Keep up the great work!

andyvand 05-25-2011 12:42 PM

Quote:

Originally Posted by milanca (Post 54085)
Extraordinary! Thanks Andy. I haven't tested it yet, but i will soon (on SL). I checked the modules though, amazing.

Keep up the great work!

Yeah... you can customize boot the way you want it with the options you want (this is one of the reasons it is so fast).
It is only the beginning though... we're allready working on a new version that will exceed even this one ;).
For the moment this is the best bootloader with the most features for any OS X version yet. :cool:

regae 05-25-2011 02:20 PM

i try to use this bootloader, but i cant boot to my hack,
why is that?

when i used -v, Hello World from PreBoot hook, and just stuck, when press enter my system suddenly restart,

do u know why?
is it only for lion?
i tried this on my SL,

and sorry for my poor english, hope u will understand

iLeopod 05-25-2011 06:34 PM

Cool stuff. Fast as hell. But memory recognizing error on Lion DP 3(is fixed in the normal chameleon branch).

Thank you!

edgarf28 05-25-2011 08:34 PM

Wow that's a advanced bootloader!! :eek:

Can you give us some more info pls? which modules are necessary to boot (with a core i7 socket 1156 processor)
How can we enable P and C-states?

EDIT: What does the ACPIMini, HelloWorld, KextPatcher, Resolution & Symbols modules exactly?

miliuco 05-25-2011 11:52 PM

Thanks, Andy, I'll try and comment but I miss more info about the modules.

andyvand 05-26-2011 06:24 AM

Quote:

Originally Posted by edgarf28 (Post 54094)
Wow that's a advanced bootloader!! :eek:

Can you give us some more info pls? which modules are necessary to boot (with a core i7 socket 1156 processor)
How can we enable P and C-states?

EDIT: What does the ACPIMini, HelloWorld, KextPatcher, Resolution & Symbols modules exactly?

Symbols module is needed absolutely but other than that you can use the modules you need.
Personally I use the SMBIOSPatcher, ACPIPatcher, Resolution, GUI, USB, etc... modules.
Only the essentials.
Hello world isn't required ofcourse ;)
You can enable P and C states with a boot flag (isn't stored in my brain so I'll have to look it up :p)
ACPIMini is only DSDT patching (not needed if you use ACPIPatcher).
Helloworld is a little example of how a module can be written (not needed).
KextPatcher is used to patch modules like AppleIntelGMA950 etc....
Resolution auto detects the best boot resolution for Intel, NVidia and ATI cards.
Symbols is the collection of all modules (which is required if you use modules).

akimoa 05-26-2011 06:26 AM

Groundbreaking Fast ...but

it seems it doesnt take the AtiConfig= Command in Order to asign my Vervet Framebuffer or did something change

and Kernelpatcher.dylib what exactly does it

Tx Guys Real Good Job so far

andyvand 05-26-2011 06:28 AM

Quote:

Originally Posted by regae (Post 54089)
i try to use this bootloader, but i cant boot to my hack,
why is that?

when i used -v, Hello World from PreBoot hook, and just stuck, when press enter my system suddenly restart,

do u know why?
is it only for lion?
i tried this on my SL,

and sorry for my poor english, hope u will understand

Try using only the modules that you need (hello world isn't ment to be used on a production environment, it is a test...).
It should work on Snow Leopard and older too (I use it on my netbook for both Lion and SL)

andyvand 05-26-2011 07:13 AM

Quote:

Originally Posted by akimoa (Post 54097)
Groundbreaking Fast ...but

it seems it doesnt take the AtiConfig= Command in Order to asign my Vervet Framebuffer or did something change

and Kernelpatcher.dylib what exactly does it

Tx Guys Real Good Job so far

I'm not sure AtiConfig= is implemented on this boot loader (I'll check later).
Kernelpatcher = kernel auto patcher for stuff like cpuid, etc... it's for allowing Atom boot on default kernel, etc...

akimoa 05-26-2011 07:20 AM

TX for quick answer ....

well i hope someone jumps in for AMD fanboys and makes us vanilla :)

but AtiConfig is Needed very mucho

andyvand 05-26-2011 07:36 AM

Quote:

Originally Posted by akimoa (Post 54101)
TX for quick answer ....

well i hope someone jumps in for AMD fanboys and makes us vanilla :)

but AtiConfig is Needed very mucho

I'll check and update the sources later (when I have the time) so you have this feature too... ;)

wastez 05-26-2011 07:51 AM

That would be the best if amd getīs vanilla. :)

Thanks for all your improvement.

edgarf28 05-26-2011 08:01 AM

Quote:

Originally Posted by andyvand (Post 54096)
Symbols module is needed absolutely but other than that you can use the modules you need.
Personally I use the SMBIOSPatcher, ACPIPatcher, Resolution, GUI, USB, etc... modules.
Only the essentials.
Hello world isn't required ofcourse ;)
You can enable P and C states with a boot flag (isn't stored in my brain so I'll have to look it up :p)
ACPIMini is only DSDT patching (not needed if you use ACPIPatcher).
Helloworld is a little example of how a module can be written (not needed).
KextPatcher is used to patch modules like AppleIntelGMA950 etc....
Resolution auto detects the best boot resolution for Intel, NVidia and ATI cards.
Symbols is the collection of all modules (which is required if you use modules).

Thanks for your answer!
So I can use 'GenerateCStates=Yes' & 'GeneratePStates=Yes' with this bootloader?
And is 'UseKernelCache=Yes' also supported?

andyvand 05-26-2011 08:21 AM

Quote:

Originally Posted by edgarf28 (Post 54104)
Thanks for your answer!
So I can use 'GenerateCStates=Yes' & 'GeneratePStates=Yes' with this bootloader?
And is 'UseKernelCache=Yes' also supported?

Yes they should all work.
Kernel cache support is integrated into this booter (for both SL and older as well as Lion).

edgarf28 05-26-2011 09:00 AM

Okay, thanks again!
One last question: What's the difference between the SMBiosGetters and SMBiosPatcher modules?

If I don't use a smbios.plist do I need any of these 2?

andyvand 05-26-2011 09:34 AM

Quote:

Originally Posted by edgarf28 (Post 54107)
Okay, thanks again!
One last question: What's the difference between the SMBiosGetters and SMBiosPatcher modules?

If I don't use a smbios.plist do I need any of these 2?

If you don't use a smbios.plist you use SMBiosGetters for auto-detecting best smbios override values.
If you do use a smbios.plist (have one present and filled) you use SMBiosPatcher instead.

edgarf28 05-26-2011 12:09 PM

I still can't boot with this loader:

With the AcpiPatcher module my PC reboots before the Apple bootscreen.
Also if I use the AcpiMini module.

When I don't use any of these 2 my system boots correctly, but I get KP after the login screen (My DSDT isn't loaded I think)

fbifido 05-26-2011 07:39 PM

bootcd-132 ???
 
How do you use this with BootCdMaker? or how can you use this with nawcom bootcd

fbifido 05-27-2011 03:22 PM

Just for the novice?
 
How do we make a bootable usb or cd out of this?

akimoa 05-28-2011 11:00 AM

@ fbifido

Stop spamming this thread wont get answer quicker that way

Tx

maiconosx 05-29-2011 05:10 PM

Can I boot using PatchKernel=Yes option? :)

andyvand 05-30-2011 06:23 AM

Quote:

Originally Posted by maiconosx (Post 54133)
Can I boot using PatchKernel=Yes option? :)

yes you should be able to do so

andyvand 05-30-2011 06:24 AM

Quote:

Originally Posted by fbifido (Post 54118)
How do we make a bootable usb or cd out of this?

Check the chameleon guide on how to make a bootable CD/DVD out of the cdboot file.
Bootable USB = same installation as regular installation.

THeKiNG 05-30-2011 08:31 PM

Quote:

Originally Posted by andyvand (Post 54065)
For the sources contact cparm for his branch and apply the following diff:
https://rapidshare.com/files/1333509...ments.diff.zip

Why just not post the full sources, or update your branch/cparm one... :|

andyvand 05-31-2011 06:06 AM

Quote:

Originally Posted by THeKiNG (Post 54142)
Why just not post the full sources, or update your branch/cparm one... :|

If it depended on me I would but cparm explicitly asked me not to do so...
But cparm also has a branch @ chameleon forge site... (not sure if it is allready updated though...)
You can get it through SVN...
I may update my branch though (when I have the time) with this code ;)

wastez 06-01-2011 06:50 AM

1 Attachment(s)
Yesterday i recompiled the GraphicsEnabler with the right Framebuffer for the 5770.

THeKiNG 06-01-2011 02:27 PM

Quote:

Originally Posted by andyvand (Post 54147)
If it depended on me I would but cparm explicitly asked me not to do so...
But cparm also has a branch @ chameleon forge site... (not sure if it is allready updated though...)
You can get it through SVN...
I may update my branch though (when I have the time) with this code ;)

That is the point to have a branch so main trunk to get the "fruits" from all.
I do hope both of you will update own branch, especial since I smell a new release, it is time IMHO...
It will be a pitty to not have the new stuff you guys are working on since I don't think someone digg the forums for patches and diff's...

cparm 06-02-2011 07:46 PM

Quote:

Originally Posted by THeKiNG (Post 54167)
That is the point to have a branch so main trunk to get the "fruits" from all.
I do hope both of you will update own branch, especial since I smell a new release, it is time IMHO...
It will be a pitty to not have the new stuff you guys are working on since I don't think someone digg the forums for patches and diff's...

hi king,

don't worry i will update my branch soon, it will integrate the patch that andy sent to me, some patchs found in the trunk, plus some others bug fix and speed improvement (and maybe it will solve a problem for those who have an instant reboot with acpipatcher)

peace,

cparm

maiconosx 06-02-2011 09:58 PM

When I try to boot with with PatchKernel=Yes option my computer reboots, it happens booth on Snow and Lion :(

bgrau2000 06-20-2011 02:03 PM

boot in /
 
Hi all, and thanks for keeping osx86 alive...

My query... to the devs..

Replacing the i386 files with yours... I also overwrite the boot in root / with yours...
this is what I always do anyways...

It works great... but the GUI is gone, it is just the asci interface...

and when it boots, it says cannot read from beginning of partition (disk 0, ... sector 0, etc)

loads a few files from /Extra, then says pause for 5 sec because had a problem in the boot...

Then everything is normal...

Any idea what this means... never had that before with the other bootloaders...

do I keep the previous boot file Anval 5. or the one in Cameleon RC5 in / instead...

and if I do, will it not remove the benefits of the new bootloader, or do these benefits actually come from the files in i386?

Thanks in advance...

Take care ;)

Flym4n 06-27-2011 08:26 PM

Nice work guys! I hope you will soon post the source and commit the trunk :)

bgrau2000, I think you need the GUI module in /Extra/modules (and Symbols.dylib, required because you use at least one module ;) )

cparm 07-06-2011 08:45 PM

Quote:

Originally Posted by cparm (Post 54193)
hi king,

don't worry i will update my branch soon, it will integrate the patch that andy sent to me, some patchs found in the trunk, plus some others bug fix and speed improvement (and maybe it will solve a problem for those who have an instant reboot with acpipatcher)

peace,

cparm

ok , done !!!

please guys tell me if you found any bugs with this release .

the next release will replace module extension from .dylib to .bundle (a feature that i will merge from an old chameleon build that i had called Masherbrum),
the contents of thoses bundles will be the same as a kext :
*.bundle/Contents/
*.bundle/Contents/Info.plist (specific preferences of the module will be moved here, com.apple.Boot.plist will only contain general preferences of the bootloader exactly as OSX, info.plist will also provide some usefull info like copyright, version/revision, author(s), etc ..., and as any bundle/kext/app/etc... some of those info. will be accessible from the finder)
*.bundle/Contents/MacOS
*.bundle/Contents/Plugins
*.bundle/Contents/Resources

the goal is to simplify the usage of those modules, with a mechanism that everyone already know ... aka the OSX's kext

i will upload a first beta here, after having sent it to the persons with whom I usually work :)

cparm

andyvand 07-07-2011 06:19 AM

I've updated the latest sources slightly.
It now has support for exotic i5 and i9 cpus.
It spoofs the model (and the family) as Nehalem.
For download of the built boot loader you can look at the first post (I updated the link)

maiconosx 07-09-2011 10:12 PM

Thanks

Finally I can run Lion on my Celeron 450 :D

farhanito 07-10-2011 06:21 AM

hi Andy, cparm..

i got instant reboot with Symbols.dylib installed.
removed it and i can get into partition selection screen..

what could have been the problem.. ?

thanx in advance

andyvand 07-12-2011 08:29 AM

Quote:

Originally Posted by farhanito (Post 54477)
hi Andy, cparm..

i got instant reboot with Symbols.dylib installed.
removed it and i can get into partition selection screen..

what could have been the problem.. ?

thanx in advance

I'm still looking what can be the issue...
Keep you posted ;)

Wayang-NT 07-13-2011 12:49 AM

work fast ... but I've lost audio (ALC888) .... :p

cparm 07-13-2011 05:06 AM

Quote:

Originally Posted by Wayang-NT (Post 54507)
work fast ... but I've lost audio (ALC888) .... :p

i think that you have to rebuild the system cache:
Code:

sudo chown 0:0 / (sometime this can be useful)
sudo kextcache -system-caches
sudo kextcache -system-mkext (useless with Lion)
sudo kextcache -system-prelinked-kernel

then reboot, then it should work :)

Quote:

Originally Posted by andyvand (Post 54500)
I'm still looking what can be the issue...
Keep you posted ;)

hi, Andy

his issue wasn't a problem with the code, please see the Issue 110 at the forge (i guess that farhanito and farhan annahar are the same person :D)

peace out :rolleyes:

Wayang-NT 07-13-2011 12:05 PM

Quote:

Originally Posted by cparm (Post 54509)
i think that you have to rebuild the system cache:
then reboot, then it should work :)

thx...it works .... :D but i have to put HDAEnabler then sound came back ..... :)

cparm 07-13-2011 04:10 PM

Quote:

Originally Posted by Wayang-NT (Post 54510)
but i have to put HDAEnabler then sound came back ..... :)

surely because you have not patched the kext correctly, can you tell me exactly what you have done to patch applehda

Wayang-NT 07-14-2011 12:54 AM

didn't patch HDA ... just put v1.9.9f12 to make audio work .... (both 11A511 and 10K540)... :)

chitchit 07-16-2011 10:41 PM

would this help at all to get a gma915 video card working on 10.6.8? I can't get it to load at all.

wastez 07-22-2011 08:39 AM

Every version i tried have problems with the resolution of the gui!!!

Would be really great if someone can solve this issue.

cparm 07-23-2011 12:38 AM

Quote:

Originally Posted by wastez (Post 54585)
Every version i tried have problems with the resolution of the gui!!!

Would be really great if someone can solve this issue.

hi Wastez,

which kind of problem have you got , can you be more precise ?? can you make a screenshot ??

also can you give me the default resolution that you use ??

cparm

wastez 07-25-2011 07:19 AM

Quote:

hi Wastez,

which kind of problem have you got , can you be more precise ?? can you make a screenshot ??

also can you give me the default resolution that you use ??

cparm
Hello cparm,

The error occurs in the gui, that means it happen there where you can enter the kernel flags but also in verbose boot during the startup. The theme is the right one but it is only a cleavage of the left top of it.

I also have to say that i use a customized theme, which works on every other bootloader.

I normally use the resolution 1920x1080 but i also tried lower resolutions without any changes.

I will make a screenshot when i get home from work.

Greetz

wastez 07-25-2011 07:51 PM

Here are the screenshots i promissed:
http://mydisk.se/web/photo_viewer/in...Rlei9QdWJsaWM=

The first picture is your bootloader and the 2nd one is a other.

wastez 08-07-2011 11:32 AM

Did you find out something?

I would like to use your bootloader but it would be great if this issue would be solved.