Jump to content

RevoBoot


  • Please log in to reply
283 replies to this topic

#81
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK
@flAked - I've done another hibernation test.
Same result as before, where Chameleon loads the sleep image but your modded RevoBoot doesn't.

With Chameleon I see the following in the kernel.log
Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate image path: /var/vm/sleepimageJun 16 23:37:44 BlackSnowMain kernel[0]: sizeof(IOHibernateImageHeader) == 512Jun 16 23:37:44 BlackSnowMain kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, partition base 0x44805000, maxio 400000 ssd 0Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate image major 14, minor 8, blocksize 512, pollers 5Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate_alloc_pages flags 00000000, gobbling 0 pagesJun 16 23:37:44 BlackSnowMain kernel[0]: hibernate_setup(0) took 0 msJun 16 23:37:46 BlackSnowMain kernel[0]: System SafeSleepJun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall start 0x4698b000, 0x469de000Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall time: 77 msJun 16 23:38:57 BlackSnowMain kernel[0]: pages 340494, wire 77200, act 102259, inact 34148, spec 126887, zf 0, throt 0, could discard act 0 inact 0 purgeable 0 spec 0Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall found pageCount 340494Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(0)Jun 16 23:38:57 BlackSnowMain kernel[0]: writing 339294 pagesJun 16 23:38:57 BlackSnowMain kernel[0]: encryptEnd 75cd440Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_machine_init: state 2, image pages 153112, sum was 4bd17c41, image1Size e711400, conflictCount 2, nextFree 184Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(), ml_get_interrupts_enabled 0Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(0)Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_machine_init readingJun 16 23:38:57 BlackSnowMain kernel[0]: PMStats: Hibernate read took 9704 msJun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_machine_init pagesDone 416406 sum2 6646a5d0, time: 9704 ms
Here's the kernel.log when booting with your modded RevoBoot
I have #define HIBERNATE_SUPPORT set to 1
Jun 16 23:29:43 localhost kernel[0]: npvhash=4095Jun 16 23:29:43 localhost kernel[0]: PAE enabledJun 16 23:29:43 localhost kernel[0]: 64 bit mode enabledJun 16 23:29:43 localhost kernel[0]: Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386Jun 16 23:29:43 localhost kernel[0]: vm_page_bootstrap: 1021746 free pages and 18638 wired pagesJun 16 23:29:43 localhost kernel[0]: standard timeslicing quantum is 10000 usJun 16 23:29:43 localhost kernel[0]: mig_table_max_displ = 73Jun 16 23:29:43 localhost kernel[0]: IntelThermal: Based on code by mercurysquad, superhai ©2008Jun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=0 LocalApicId=0 EnabledJun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=1 EnabledJun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 DisabledJun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=3 DisabledJun 16 23:29:43 localhost kernel[0]: calling mpo_policy_init for QuarantineJun 16 23:29:43 localhost kernel[0]: Security policy loaded: Quarantine policy (Quarantine)Jun 16 23:29:43 localhost kernel[0]: calling mpo_policy_init for SandboxJun 16 23:29:43 localhost kernel[0]: Security policy loaded: Seatbelt sandbox policy (Sandbox)Jun 16 23:29:43 localhost kernel[0]: calling mpo_policy_init for TMSafetyNetJun 16 23:29:43 localhost kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)Jun 16 23:29:43 localhost kernel[0]: Copyright © 1982, 1986, 1989, 1991, 1993Jun 16 23:29:43 localhost kernel[0]: The Regents of the University of California. All rights reserved.Jun 16 23:29:43 localhost kernel[0]: MAC Framework successfully initializedJun 16 23:29:43 localhost kernel[0]: using 16384 buffer headers and 4096 cluster IO buffer headersJun 16 23:29:43 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87Jun 16 23:29:43 localhost kernel[0]: ACPI: System State [S0 S3 S4 S5] (S3)Jun 16 23:29:43 localhost kernel[0]: RTC: Only single RAM bank (128 bytes)Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Opensource SMC device emulator by netkas © 2009Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Modified for plugins support by mozodojo © 2010 v3.0Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Idea of FakeSMC plugins and code sample by usr-sse2Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Thanks to slice for help with hardware support code and pluginsJun 16 23:29:43 localhost kernel[0]: FakeSMCDevice: 17 keys addedJun 16 23:29:43 localhost kernel[0]: FireWire runtime power conservation disabled. (2)Jun 16 23:29:43 localhost kernel[0]: IntelThermal: CPU family 0x6, model 0x17, stepping 0x6, cores 2, threads 0Jun 16 23:29:43 localhost kernel[0]: IntelThermal: CPU Tjmax 100Jun 16 23:29:43 localhost kernel[0]: AppleIntelCPUPowerManagement: initialization completeJun 16 23:29:43 localhost kernel[0]: NVClockX: Vendor ID: 10de, Device ID: 611Jun 16 23:29:43 localhost kernel[0]: NVClockX: Architecture: 40000Jun 16 23:29:43 localhost kernel[0]: NVClockX: G92 [GeForce 8800 GT]Jun 16 23:29:43 localhost kernel[0]: NVClockX: Memory mapped successfullyJun 16 23:29:43 localhost kernel[0]: FireWire (OHCI) TI ID 8019 PCI now active, GUID 005042f811311561; max speed s400.Jun 16 23:29:43 localhost kernel[0]: BIOS successfully readJun 16 23:29:43 localhost kernel[0]: NVClockX: Speed: 399Jun 16 23:29:43 localhost kernel[0]: NVClockX: 350Jun 16 23:29:43 localhost kernel[0]: NVClockX: Speed:399Jun 16 23:29:43 localhost kernel[0]: IT87x: found ITE IT8718FJun 16 23:29:43 localhost kernel[0]: VoodooMonitor: © 2009 Mojodojo, All Rights Reserved. Based on VoodooPower code by superhai. Special thanks to markswell for cpuid utilities.Jun 16 23:29:43 localhost kernel[0]: mbinit: done (64 MB memory set for mbuf pool)Jun 16 23:29:43 localhost kernel[0]: rooting via boot-uuid from /chosen: 375FE730-B5B9-3E89-8F53-169D119EE678Jun 16 23:29:43 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>Jun 16 23:29:43 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod startJun 16 23:29:43 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeededJun 16 23:29:43 localhost kernel[0]: AppleIntelCPUPowerManagementClient: readyJun 16 23:29:43 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOBlockStorageDriver/SAMSUNG HD501LJ Media/IOGUIDPartitionScheme/SL@3Jun 16 23:29:43 localhost kernel[0]: BSD root: disk1s3, major 14, minor 8Jun 16 23:29:43 localhost kernel[0]: jnl: unknown-dev: replay_journal: from: 3743744 to: 2578944 (joffset 0x1df000)Jun 16 23:29:43 localhost kernel[0]: jnl: unknown-dev: journal replay done.Jun 16 23:29:43 localhost kernel[0]: hfs: Removed 4 orphaned / unlinked files and 0 directories Jun 16 23:29:49 localhost kernel[0]: systemShutdown falseJun 16 23:29:50 localhost kernel[0]: Waiting for DSMOS...Jun 16 23:29:54 BlackSnowMain kernel[0]: Previous Shutdown Cause: 3Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk1s2: replay_journal: from: 4109824 to: 4670464 (joffset 0x9000)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s2: replay_journal: from: 637952 to: 1071104 (joffset 0x9000)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s2: journal replay done.Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk1s2: journal replay done.Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s3: replay_journal: from: 17137152 to: 17471488 (joffset 0xe87000)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s3: journal replay done.Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s4: replay_journal: from: 1656832 to: 1908736 (joffset 0xc32000)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk0s4: journal replay done.Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk1s5: replay_journal: from: 260096 to: 626688 (joffset 0x257000)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk1s5: journal replay done.Jun 16 23:29:54 BlackSnowMain kernel[0]: NVDANV50HAL loaded and registered.Jun 16 23:29:54 BlackSnowMain kernel[0]: [:init] RealtekRTL81xxx.kext v0.0.67 ©2010 by Lnx2Mac (lnx2mac@gmail.com)Jun 16 23:29:54 BlackSnowMain kernel[0]: jnl: disk1s6: replay_journal: from: 1974272 to: 2340864 (joffset 0x3e000)Jun 16 23:29:55 BlackSnowMain kernel[0]: jnl: disk1s6: journal replay done.Jun 16 23:29:55 BlackSnowMain kernel[0]: jnl: disk1s7: replay_journal: from: 9607680 to: 10126848 (joffset 0x74c000)Jun 16 23:29:55 BlackSnowMain kernel[0]: DSMOS has arrivedJun 16 23:29:55 BlackSnowMain kernel[0]: jnl: disk1s7: journal replay done.
Are there any other options I need to enable in settings.h?

briaco (fiorentino) = ubriaco (italian) = drunk, really drunk (english)

Go to bed!

Lol :P

#82
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Thanks for testing. I did a code-review twice and I can't find which part of the code isn't working anymore, very frustrating.

Do you have Lion DP4 installed? I found out that SafeSleep isn't supported any longer, it will always soft sleep and then ask for credentials. So it's not really worth the effort if hibernation is simply no longer available.

It could be that hibernatemode 3 still writes to disc on short power, but that won't apply to desktop machines, so probably no way to force mode 1 alone.

#83
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

Thanks for testing. I did a code-review twice and I can't find which part of the code isn't working anymore, very frustrating.

hmmm.. so you had it working for you?

Do you have Lion DP4 installed? I found out that SafeSleep isn't supported any longer, it will always soft sleep and then ask for credentials. So it's not really worth the effort if hibernation is simply no longer available.

It could be that hibernatemode 3 still writes to disc on short power, but that won't apply to desktop machines, so probably no way to force mode 1 alone.

I have 11A494a installed. I tested with sudo pmset -a hibernatemode 1 and pmset -g shows:
blackosxs-Mac-Pro:bin blackosx$ pmset -g
Active Profiles:
AC Power		-1*
Currently in use:
 hibernatemode	1
 displaysleep	10
 sleep		0 (imposed by 42)
 disksleep	10
 powerbutton	1
 ttyskeepawake	1
 hibernatefile	/var/vm/sleepimage
 autorestart	0
 panicrestart	157680000
When entering sleep, the monitor goes to sleep and the system fans spin for a while before shutting off (same as I see with Snow Leopard). But rebooting with Chameleon and using ForceWake=Yes, fails to recognise a sleep image though a sleep image does exist.
blackosxs-Mac-Pro:vm blackosx$ ls -al /var/vm
total 8519680
drwxr-xr-x   4 root  wheel		 136 16 Jun 23:55 .
drwxr-xr-x  28 root  wheel		 952 15 Jun 18:45 ..
-rw------T   1 root  wheel  4294967296 16 Jun 23:54 sleepimage
-rw-------   1 root  wheel	67108864 16 Jun 23:55 swapfile0


#84
fbifido

fbifido

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 150 posts
  • Gender:Male
  • Location:Jamaica
how about some vidz and picz :P

#85
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

how about some vidz and picz :P

A video or pics of a hack booting? not much to see really.
Or have I misunderstood your question?

#86
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets

hmmm.. so you had it working for you?

Yeah, it worked once. Then I did some cleanup and optimization and then commited it to my local repro. Arg.

#87
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male

Go to bed!


lol - hows the head today!

#88
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

lol - hows the head today!

I'm feeling good with my head. My problem is maths ( :thumbsup_anim: ) monday I'll have my last examination before degree thesis!

#89
FKA

FKA

    are we there yet?

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,626 posts
  • Gender:Male
sure you be fine. but good luck anyway :wacko:

#90
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male
Hi all :)
I'm trying to help magnifico10 to get a STATIC_SMBIOS_DATA with the smbios2struct tool.
But I can't compile the tool, or better, I just compiled the smbios2struct2 and the smbios2struct3 but not the smbios2struct.
Indeed if I use the command in terminal
cc -I . smbios2struct.c -o smbios2struct -Wall -framework IOKit -framework CoreFoundation
I get this errors
smbios2struct.c:20:24: error: essentials.h: No such file or directorysmbios2struct.c: In function ‘main’:smbios2struct.c:57: error: dereferencing pointer to incomplete typesmbios2struct.c:58: error: dereferencing pointer to incomplete typesmbios2struct.c:59: error: dereferencing pointer to incomplete typesmbios2struct.c:60: error: dereferencing pointer to incomplete typesmbios2struct.c:61: error: dereferencing pointer to incomplete typesmbios2struct.c:62: error: dereferencing pointer to incomplete typesmbios2struct.c:64: error: dereferencing pointer to incomplete typesmbios2struct.c:67: error: dereferencing pointer to incomplete typesmbios2struct.c:68: error: dereferencing pointer to incomplete typesmbios2struct.c:71: error: dereferencing pointer to incomplete typesmbios2struct.c:72: error: dereferencing pointer to incomplete typesmbios2struct.c:73: error: dereferencing pointer to incomplete typesmbios2struct.c:74: error: dereferencing pointer to incomplete typesmbios2struct.c:75: error: dereferencing pointer to incomplete typesmbios2struct.c:77: error: dereferencing pointer to incomplete typesmbios2struct.c:80: error: dereferencing pointer to incomplete type
So, what of the 3 tools we have to use to get the STATIC_SMBIOS_DATA?

Thanks ;)

#91
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
RevoBuilder includes a compiled version. Haven't got the time to look at the source about the error atm.

#92
magnifico

magnifico

    Retired

  • Donators
  • 2,559 posts
  • Gender:Male

RevoBuilder includes a compiled version. Haven't got the time to look at the source about the error atm.


;)
but it can be resolved?

#93
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

Hi all ;)
I'm trying to help magnifico10 to get a STATIC_SMBIOS_DATA with the smbios2struct tool.
But I can't compile the tool, or better, I just compiled the smbios2struct2 and the smbios2struct3 but not the smbios2struct.

Hi mrmojorisin17

I also get those errors when compiling smbios2struct.c, but why do you want to use that when you can successfully compile smbios2struct3.c?

If you double click the compiled executable smbios2struct3, you'll see the static data presented in the windows that opens up. You can then copy and paste the relevant info in to a text file and save it as data.h for adding in to /config/SMBIOS. If you don't want to see the 'Table' info, then change #define VERBOSE to 0 in to smbios2struct3.c source before compiling it.

#94
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
Did someone made a benchmark about dynamic vs static smbios data?

#95
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

Did someone made a benchmark about dynamic vs static smbios data?

I haven't seen any figures but it would probably only be around 1 second difference? does that sound realistic?

#96
magnifico

magnifico

    Retired

  • Donators
  • 2,559 posts
  • Gender:Male

Hi mrmojorisin17

I also get those errors when compiling smbios2struct.c, but why do you want to use that when you can successfully compile smbios2struct3.c?

If you double click the compiled executable smbios2struct3, you'll see the static data presented in the windows that opens up. You can then copy and paste the relevant info in to a text file and save it as data.h for adding in to /config/SMBIOS. If you don't want to see the 'Table' info, then change #define VERBOSE to 0 in to smbios2struct3.c source before compiling it.


;)
Simone you have understood?
Thank's Black...you are a likeable man

#97
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

Hi mrmojorisin17

I also get those errors when compiling smbios2struct.c, but why do you want to use that when you can successfully compile smbios2struct3.c?

Because I didn't know if is the same to use one tool or the other ;)

If you double click the compiled executable smbios2struct3, you'll see the static data presented in the windows that opens up. You can then copy and paste the relevant info in to a text file and save it as data.h for adding in to /config/SMBIOS. If you don't want to see the 'Table' info, then change #define VERBOSE to 0 in to smbios2struct3.c source before compiling it.

I know, but I thought that the static data obtained with smbios2struct3 was different from the one obtained with smbios2struct and that I had to use the last one ;)

Did someone made a benchmark about dynamic vs static smbios data?

Have you made one?
I'll make one a.s.a.p.

#98
blackosx

blackosx

    InsanelyMacaholic

  • Coders
  • 3,170 posts
  • Gender:Male
  • Location:UK

I know, but I thought that the static data obtained with smbios2struct3 was different from the one obtained with smbios2struct and that I had to use the last one ;)

I've found a previous executable of the original smbios2struct and have attached it here for you to see.
Attached File  smbios2struct.zip   3.71KB   22 downloads
As for the differences between the versions, I think v2 produced a more slimline SMBIOS using only the tables we need. v3 was a bug fix from v2.

Thank's Black...you are a likeable man

yw. Thanks ;)

#99
mrmojorisin17

mrmojorisin17

    InsanelyMacaholic

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,942 posts
  • Gender:Male

I've found a previous executable of the original smbios2struct and have attached it here for you to see.
Attached File  smbios2struct.zip   3.71KB   22 downloads

Thanks man ;)

As for the differences between the versions, I think v2 produced a more slimline SMBIOS using only the tables we need. v3 was a bug fix from v2.

Thanks for explanation.

#100
flAked

flAked

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 470 posts
  • Gender:Male
  • Location:internets
To measure the time setupSMBIOS takes, you could do:
void setupSMBIOS(void)
{
unsigned int starttime = time18(); //at the beginning of the function
...
unsigned int endtime = time18(); //at the end of the function before the debug_sleep
unsigned int diff = endtime - starttime;
printf("relative time %d\n", diff);

_SMBIOS_DEBUG_SLEEP(15);
}

This is 18-based, so 1 second = 18 * time18

Don't forget to enable SMBIOS_DEBUG!





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