Jump to content
buoo

RevoBoot

290 posts in this topic

Recommended Posts

Advertisement
Thanks man ;)

I'm curious to know how you translate this: briaco...

 

My Mrs speaks more languages than I've got fingers on one hand ;)

 

Inebriated? :D

 

lol - I'd hope so

Share this post


Link to post
Share on other sites

@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/sleepimage
Jun 16 23:37:44 BlackSnowMain kernel[0]: sizeof(IOHibernateImageHeader) == 512
Jun 16 23:37:44 BlackSnowMain kernel[0]: Opened file /var/vm/sleepimage, size 4294967296, partition base 0x44805000, maxio 400000 ssd 0
Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate image major 14, minor 8, blocksize 512, pollers 5
Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate_alloc_pages flags 00000000, gobbling 0 pages
Jun 16 23:37:44 BlackSnowMain kernel[0]: hibernate_setup(0) took 0 ms
Jun 16 23:37:46 BlackSnowMain kernel[0]: System SafeSleep
Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall start 0x4698b000, 0x469de000
Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall time: 77 ms
Jun 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 0
Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_page_list_setall found pageCount 340494
Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0
Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(0)
Jun 16 23:38:57 BlackSnowMain kernel[0]: writing 339294 pages
Jun 16 23:38:57 BlackSnowMain kernel[0]: encryptEnd 75cd440
Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_machine_init: state 2, image pages 153112, sum was 4bd17c41, image1Size e711400, conflictCount 2, nextFree 184
Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(), ml_get_interrupts_enabled 0
Jun 16 23:38:57 BlackSnowMain kernel[0]: IOHibernatePollerOpen(0)
Jun 16 23:38:57 BlackSnowMain kernel[0]: hibernate_machine_init reading
Jun 16 23:38:57 BlackSnowMain kernel[0]: PMStats: Hibernate read took 9704 ms
Jun 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=4095
Jun 16 23:29:43 localhost kernel[0]: PAE enabled
Jun 16 23:29:43 localhost kernel[0]: 64 bit mode enabled
Jun 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_I386
Jun 16 23:29:43 localhost kernel[0]: vm_page_bootstrap: 1021746 free pages and 18638 wired pages
Jun 16 23:29:43 localhost kernel[0]: standard timeslicing quantum is 10000 us
Jun 16 23:29:43 localhost kernel[0]: mig_table_max_displ = 73
Jun 16 23:29:43 localhost kernel[0]: IntelThermal: Based on code by mercurysquad, superhai ©2008
Jun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=0 LocalApicId=0 Enabled
Jun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=1 Enabled
Jun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 Disabled
Jun 16 23:29:43 localhost kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=3 Disabled
Jun 16 23:29:43 localhost kernel[0]: calling mpo_policy_init for Quarantine
Jun 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 Sandbox
Jun 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 TMSafetyNet
Jun 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, 1993
Jun 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 initialized
Jun 16 23:29:43 localhost kernel[0]: using 16384 buffer headers and 4096 cluster IO buffer headers
Jun 16 23:29:43 localhost kernel[0]: IOAPIC: Version 0x20 Vectors 64:87
Jun 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 © 2009
Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Modified for plugins support by mozodojo © 2010 v3.0
Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Idea of FakeSMC plugins and code sample by usr-sse2
Jun 16 23:29:43 localhost kernel[0]: FakeSMC: Thanks to slice for help with hardware support code and plugins
Jun 16 23:29:43 localhost kernel[0]: FakeSMCDevice: 17 keys added
Jun 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 0
Jun 16 23:29:43 localhost kernel[0]: IntelThermal: CPU Tjmax 100
Jun 16 23:29:43 localhost kernel[0]: AppleIntelCPUPowerManagement: initialization complete
Jun 16 23:29:43 localhost kernel[0]: NVClockX: Vendor ID: 10de, Device ID: 611
Jun 16 23:29:43 localhost kernel[0]: NVClockX: Architecture: 40000
Jun 16 23:29:43 localhost kernel[0]: NVClockX: G92 [GeForce 8800 GT]
Jun 16 23:29:43 localhost kernel[0]: NVClockX: Memory mapped successfully
Jun 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 read
Jun 16 23:29:43 localhost kernel[0]: NVClockX: Speed: 399
Jun 16 23:29:43 localhost kernel[0]: NVClockX: 350
Jun 16 23:29:43 localhost kernel[0]: NVClockX: Speed:399
Jun 16 23:29:43 localhost kernel[0]: IT87x: found ITE IT8718F
Jun 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-169D119EE678
Jun 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 start
Jun 16 23:29:43 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
Jun 16 23:29:43 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready
Jun 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@3
Jun 16 23:29:43 localhost kernel[0]: BSD root: disk1s3, major 14, minor 8
Jun 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 false
Jun 16 23:29:50 localhost kernel[0]: Waiting for DSMOS...
Jun 16 23:29:54 BlackSnowMain kernel[0]: Previous Shutdown Cause: 3
Jun 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 arrived
Jun 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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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 directory
smbios2struct.c: In function ‘main’:
smbios2struct.c:57: error: dereferencing pointer to incomplete type
smbios2struct.c:58: error: dereferencing pointer to incomplete type
smbios2struct.c:59: error: dereferencing pointer to incomplete type
smbios2struct.c:60: error: dereferencing pointer to incomplete type
smbios2struct.c:61: error: dereferencing pointer to incomplete type
smbios2struct.c:62: error: dereferencing pointer to incomplete type
smbios2struct.c:64: error: dereferencing pointer to incomplete type
smbios2struct.c:67: error: dereferencing pointer to incomplete type
smbios2struct.c:68: error: dereferencing pointer to incomplete type
smbios2struct.c:71: error: dereferencing pointer to incomplete type
smbios2struct.c:72: error: dereferencing pointer to incomplete type
smbios2struct.c:73: error: dereferencing pointer to incomplete type
smbios2struct.c:74: error: dereferencing pointer to incomplete type
smbios2struct.c:75: error: dereferencing pointer to incomplete type
smbios2struct.c:77: error: dereferencing pointer to incomplete type
smbios2struct.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 ;)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

smbios2struct.zip

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 ;)

Share this post


Link to post
Share on other sites
I've found a previous executable of the original smbios2struct and have attached it here for you to see.

smbios2struct.zip

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.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×