Jump to content

Chameleon RC5 Meklort's Branch


  • Please log in to reply
81 replies to this topic

#41
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,097 posts
  • Gender:Male
  • Location:UK
Hi Meklort

Yes you're right, rev 718 does indeed work. :(
I've done some testing and here's my report for you:

Of the modules, I only need ACPIPatcher, klibc and the Memory modules to boot properly.
Memory.dylib fails to auto detect my RAM, shown in system profiler, but strangely I need it for my system to show the correct hardware UUID.
Attached File  PIC_Memory_module_detection_not_working.jpg   67.98KB   93 downloads

GraphicsEnabler.dylib works as expected.
ACPIPatcher.dylib is needed and works.
klibc.dylib is needed as without it I see these following errors at boot:
Attached File  Pic_without_klibc.dylib_1.jpg   56.45KB   132 downloads
Attached File  Pic_without_klibc.dylib_2.JPG   77.4KB   102 downloads

Booting with and without the Resolution module shows me this on my 1680x1050 display?
Note: this is without using the GUI module.
Attached File  Pic_offset_boot_screen.jpg   141.86KB   84 downloads

The GUI module works fine.

Well done with your continued development and if there's any further testing you need from me then just ask.

#42
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts

My bad, I mist have broken something in r719 or r720, you can use r718 and it'll work fine. I'll fix it later today.

As far as the makefile goes, it's much easier to spot warning / errors this way so I changed it to print how it does a while ago.



Hi meklort, i have also the same problem with r720, same problem of blackosx. Waiting in your fix :(

Thanks

#43
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,993 posts
  • Gender:Male
  • Location:Moscow
Hi Meklort!
Thanks for your changes. Now my bootloader really works... after reverting those changes:
MakeInc.dir in modules/
-alias $(MODULE_START) start \
else modules didn't start.
@### Ugly hack, remove the c++ module if this module shouldn't link with it. Needed due to LD behavoir
	@echo "\t[LD] $(MODULE_NAME).dylib"
	@if [ -f "$(SYMROOT)/uClibc++.dylib" ]; then if [ x"$(shell nm $(OBJROOT)/*.o 2>/dev/null  | grep " __Z")" == x"" ]; then mv $(SYMROOT)/uClibc++.dylib $(SYMROOT)/../uClibc++.dylib; fi; fi;
else uClibc++.dylib is needed while it is not really needed.

That's all. Now works.
But I want to ask you. Why klibc.dylib in needed and in what cases? It seems not needed for ACPIpatcher.dylib. Do not check other cases.
I think the ACPIPatcher should be divided into obligatory part acpi_patcher embedded into main boot and optional part like p-state generator as separate module.

I have strange behavior with Resolution. The function is called twice. It gives me 1440x900 that is good but initial picture is larger then real screen size (it seems to be default size), and after choosing a system to boot the screen really switch to 1440x900. Have you any advice what to do?
Attached File  bdmesgSlice.log.txt.zip   2.83KB   11 downloads

#44
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
meklort, hi, problem in compilation with last revision:


kext_patcher.c: In function ‘mkext_loaded’:
kext_patcher.c:164: warning: implicit declaration of function ‘Adler32’
	[CC] inflate.c
	[CC] deflate.c
	[CC] zutil.c
	[CC] inftrees.c
	[CC] inffast.c
	[CC] adler32.c
	[CC] hex_editor.c
	[CC] trees.c
	[LD] KextPatcher.dylib
Undefined symbols:
  "_Adler32", referenced from:
	  _mkext_loaded in kext_patcher.o
	  _mkext_loaded in kext_patcher.o
ld: symbol(s) not found
make[3]: *** [dylib_final] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2


#45
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,993 posts
  • Gender:Male
  • Location:Moscow
Add definition
extern unsigned long Adler32( unsigned char * buffer, long length );
into boot.h
The function is defined in drivers.c

#46
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
Hi meklort, thanks also to slice, now it works, but there is a problem with gui(?).
If i boot with -v, loader works well, without problems.
If i boot in normal mode, ... nothing, completely nothing, load apple logo and nothing. Everything stopped.

Thank you

#47
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 358 posts
I compiled revision 725 (fixed the Adler definition using Slice's hint) and it is working on my HP Mini 311, with and without -v

#48
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,993 posts
  • Gender:Male
  • Location:Moscow
Sorry, Meklort. Something wrong with my svn database. Some files may commited to your branch instead of my. I am going to cleanup the directory before next commits.

#49
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts

I compiled revision 725 (fixed the Adler definition using Slice's hint) and it is working on my HP Mini 311, with and without -v


I don't know, i have this problem, btw...

#50
Slice

Slice

    InsanelyMacaholic

  • Local Moderators
  • 2,993 posts
  • Gender:Male
  • Location:Moscow

Hi meklort, thanks also to slice, now it works, but there is a problem with gui(?).
If i boot with -v, loader works well, without problems.
If i boot in normal mode, ... nothing, completely nothing, load apple logo and nothing. Everything stopped.

Thank you

I may propose that here is not correct
if (useGUI && initGUI())
	{
		// initGUI() returned with an error, disabling GUI.
		useGUI = false;
	}
	else
	{	// will be here if useGUI==false ?!
so I think
if (useGUI && initGUI())
	{
		// initGUI() returned with an error, disabling GUI.
		useGUI = false;
	}
	if (useGUI)
	{


#51
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 358 posts

I don't know, i have this problem, btw...


what is your machine setup (the good habit is to list it on the signature)? had it (meklort's booter) ever worked for you?

#52
Carstiman

Carstiman

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 117 posts
  • Gender:Male
hello meklort,
this is the first time i could try your loader 726 because i was unable to compile your source by myself to get it work.

so far it works fine for me but ivé got the same error as with the other ones:

nVidia GeForce GTS 450 1024MB NVc3 [10de:0dc4] :: PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x0)
bad display config block signature (0x55555155)
ERROR: nVidia ROM Patching Failed!

are you able to fix graphics enabler open issues 48 for the new geforce 4... cards.

it would be real great. so many people got probs to get these cards running.

would be great if slice could add suport for these cards in his nvclock too :)

thx for your nice work :)

Attached Files

  • Attached File  726.txt   2.6KB   4 downloads


#53
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,097 posts
  • Gender:Male
  • Location:UK
Hi Meklort

Just tried rev728 and can boot just fine.
One question. What is uClibc++.dylib for? as without it I can boot just fine though I see a message reading unable to locate it?
Attached File  Message.jpg   42.65KB   45 downloads

If I don't need it then should I see a warning that it's missing?

#54
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male
It's a c++ library.

There is some code in a makefile that basically was an ugly hack and removed that dependency if it wasn't required (the only one that uses it is HelloWorld in svn), however I removed that code. I'm planning on fixing that the correct way soon.


As for nvidia cards, I'll take a look at it sometime.

#55
denzel

denzel

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
Hi mek, now ti works well, always, nothing problem, ;)
All works.. question: when it will be trunk?
Thank you

#56
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,097 posts
  • Gender:Male
  • Location:UK
Thanks meklort. I guess the answer was is the filename ;)
And I'll test future updates when I can.

Well done with your incredible restructuring work.

#57
Hacktrix2006

Hacktrix2006

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 423 posts
  • Gender:Male
hi meklort i have been trying to compile 731 but have the following errors after running make embedtheme.


gui.c:28:17: error: art.h: No such file or directory
gui.c: In function ‘getEmbeddedImageIndexByName’:
gui.c:193: error: ‘embeddedImages’ undeclared (first use in this function)
gui.c:193: error: (Each undeclared identifier is reported only once
gui.c:193: error: for each function it appears in.)
gui.c: In function ‘loadThemeImage’:
gui.c:269: error: ‘embeddedImages’ undeclared (first use in this function)
gui.c: In function ‘initGUI’:
gui.c:705: error: ‘__theme_plist’ undeclared (first use in this function)
gui.c: In function ‘loadBootGraphics’:
gui.c:1847: error: ‘__boot_png’ undeclared (first use in this function)
gui.c:1847: error: ‘__boot_png_len’ undeclared (first use in this function)
make[3]: *** [gui.o] Error 1
make[2]: *** [embedtheme] Error 2
make[1]: *** [embedtheme] Error 2
make: *** [embedtheme] Error 2

any idea how to compile without this error ?

#58
meklort

meklort

    InsanelyMac Geek

  • Developers
  • 136 posts
  • Gender:Male
Just run make, make embedtheme is broken for now.

EDIT: Should be fixed now.

#59
aikidoka25

aikidoka25

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 358 posts
Just a small update, I just compiled (make only) revision 741 and it works on my HP Mini 311.

#60
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,097 posts
  • Gender:Male
  • Location:UK
Hi meklort

Rev743 is working well here. Both with and without GUI module. Top job :rolleyes:





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy