Author Topic: ChameleonPrefPane revived  (Read 25879 times)

0 Members and 1 Guest are viewing this topic.

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #60 on: December 10, 2011, 11:29:51 PM »
I see please replace line 29

   if ([di isValid] && [di.vUUID length] >0)

by
if (true)

Should force the dump ...
and also comment out the line 76
  testDiskInfoWith(@"disk0s2");   
like this
// testDiskInfoWith(@"disk0s2");   

that should display only disk0s3 ..

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #61 on: December 10, 2011, 11:34:01 PM »
I think I understand that this guy has no volume name !
So when I check if it is bootable, it fails to check the partition...
maybe in that case I could test a default name l?
Waiting for your test dump that should confirm that ;)

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #62 on: December 10, 2011, 11:34:40 PM »
I see please replace line 29

   if ([di isValid] && [di.vUUID length] >0)

by
if (true)

Should force the dump ...
Line 22?
This results with:
Code: [Select]
2011-12-10 22:33:30.560 test_util[594:707] Key: DADeviceInternal, Value: 1
2011-12-10 22:33:30.560 test_util[594:707] Key: DAMediaName, Value: Mac
2011-12-10 22:33:30.561 test_util[594:707] Key: DAMediaLeaf, Value: 1
2011-12-10 22:33:30.561 test_util[594:707] Key: DAMediaBlockSize, Value: 512
2011-12-10 22:33:30.561 test_util[594:707] Key: DAVolumeUUID, Value: <CFUUID 0x40030ed00> E3EA05BB-E64C-3ED9-96C5-832B84677FE0
2011-12-10 22:33:30.562 test_util[594:707] Key: DAMediaWhole, Value: 0
2011-12-10 22:33:30.562 test_util[594:707] Key: DADeviceRevision, Value: CR100-12
2011-12-10 22:33:30.562 test_util[594:707] Key: DABusPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0
2011-12-10 22:33:30.563 test_util[594:707] Key: DAVolumeName, Value: Mac
2011-12-10 22:33:30.563 test_util[594:707] Key: DAMediaEjectable, Value: 0
2011-12-10 22:33:30.563 test_util[594:707] Key: DAMediaSize, Value: 80000000000
2011-12-10 22:33:30.564 test_util[594:707] Key: DAVolumeNetwork, Value: 0
2011-12-10 22:33:30.564 test_util[594:707] Key: DABusName, Value: PMP
2011-12-10 22:33:30.564 test_util[594:707] Key: DADeviceProtocol, Value: SATA
2011-12-10 22:33:30.565 test_util[594:707] Key: DAMediaRemovable, Value: 0
2011-12-10 22:33:30.565 test_util[594:707] Key: DAVolumeKind, Value: hfs
2011-12-10 22:33:30.565 test_util[594:707] Key: DAMediaWritable, Value: 1
2011-12-10 22:33:30.566 test_util[594:707] Key: DAMediaBSDMajor, Value: 14
2011-12-10 22:33:30.566 test_util[594:707] Key: DADeviceModel, Value: SAMSUNG HD501LJ                         
2011-12-10 22:33:30.566 test_util[594:707] Key: DADevicePath, Value: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice
2011-12-10 22:33:30.567 test_util[594:707] Key: DAMediaBSDMinor, Value: 2
2011-12-10 22:33:30.567 test_util[594:707] Key: DAMediaUUID, Value: <CFUUID 0x40030f300> 15473CA9-015F-4CB2-8DA5-63CA832F5124
2011-12-10 22:33:30.567 test_util[594:707] Key: DAMediaContent, Value: 48465300-0000-11AA-AA11-00306543ECAC
2011-12-10 22:33:30.568 test_util[594:707] Key: DAMediaBSDUnit, Value: 0
2011-12-10 22:33:30.568 test_util[594:707] Key: DADeviceUnit, Value: 0
2011-12-10 22:33:30.568 test_util[594:707] Key: DAMediaPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0/@0:2
2011-12-10 22:33:30.569 test_util[594:707] Key: DAMediaIcon, Value: {
    CFBundleIdentifier = "com.apple.iokit.IOStorageFamily";
    IOBundleResourceFile = "Internal.icns";
}
2011-12-10 22:33:30.569 test_util[594:707] Key: DAVolumePath, Value: file://localhost/Volumes/Mac/
2011-12-10 22:33:30.570 test_util[594:707] Key: DAMediaKind, Value: IOMedia
2011-12-10 22:33:30.570 test_util[594:707] Key: DAMediaBSDName, Value: disk0s2
2011-12-10 22:33:30.570 test_util[594:707] Key: DAVolumeMountable, Value: 1
2011-12-10 22:33:30.571 test_util[594:707] Key: DAAppearanceTime, Value: 345247371.407952
2011-12-10 22:33:30.571 test_util[594:707] Key: DAMediaLeaf, Value: 1
2011-12-10 22:33:30.572 test_util[594:707] Key: DADeviceUnit, Value: 0
2011-12-10 22:33:30.572 test_util[594:707] Key: DADeviceInternal, Value: 1
2011-12-10 22:33:30.572 test_util[594:707] Key: DAMediaEjectable, Value: 0
2011-12-10 22:33:30.573 test_util[594:707] Key: DABusPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0
2011-12-10 22:33:30.573 test_util[594:707] Key: DAMediaContent, Value: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
2011-12-10 22:33:30.573 test_util[594:707] Key: DADevicePath, Value: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice
2011-12-10 22:33:30.574 test_util[594:707] Key: DAMediaWhole, Value: 0
2011-12-10 22:33:30.574 test_util[594:707] Key: DAMediaBSDName, Value: disk0s3
2011-12-10 22:33:30.574 test_util[594:707] Key: DAVolumeUUID, Value: <CFUUID 0x40030a9c0> BE0653E2-9179-42EE-A8C6-A2EF4651EFF7
2011-12-10 22:33:30.575 test_util[594:707] Key: DAMediaSize, Value: 79999008768
2011-12-10 22:33:30.575 test_util[594:707] Key: DAMediaUUID, Value: <CFUUID 0x40020cc00> 50AB387B-2545-4FA5-BEDC-18BDECC4719D
2011-12-10 22:33:30.575 test_util[594:707] Key: DAMediaIcon, Value: {
    CFBundleIdentifier = "com.apple.iokit.IOStorageFamily";
    IOBundleResourceFile = "Internal.icns";
}
2011-12-10 22:33:30.576 test_util[594:707] Key: DAMediaKind, Value: IOMedia
2011-12-10 22:33:30.576 test_util[594:707] Key: DADeviceProtocol, Value: SATA
2011-12-10 22:33:30.576 test_util[594:707] Key: DAAppearanceTime, Value: 345247371.407253
2011-12-10 22:33:30.577 test_util[594:707] Key: DAMediaBSDMajor, Value: 14
2011-12-10 22:33:30.577 test_util[594:707] Key: DADeviceModel, Value: SAMSUNG HD501LJ                         
2011-12-10 22:33:30.577 test_util[594:707] Key: DAMediaBSDMinor, Value: 3
2011-12-10 22:33:30.578 test_util[594:707] Key: DAVolumeMountable, Value: 1
2011-12-10 22:33:30.578 test_util[594:707] Key: DAMediaWritable, Value: 1
2011-12-10 22:33:30.578 test_util[594:707] Key: DAMediaName, Value: WIN8
2011-12-10 22:33:30.579 test_util[594:707] Key: DAVolumeNetwork, Value: 0
2011-12-10 22:33:30.579 test_util[594:707] Key: DAMediaBSDUnit, Value: 0
2011-12-10 22:33:30.579 test_util[594:707] Key: DAMediaBlockSize, Value: 512
2011-12-10 22:33:30.580 test_util[594:707] Key: DABusName, Value: PMP
2011-12-10 22:33:30.580 test_util[594:707] Key: DAMediaPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0/@0:3
2011-12-10 22:33:30.580 test_util[594:707] Key: DAMediaRemovable, Value: 0
2011-12-10 22:33:30.581 test_util[594:707] Key: DADeviceRevision, Value: CR100-12
2011-12-10 22:33:30.581 test_util[594:707] Key: DAVolumePath, Value: file://localhost/Volumes/Untitled/
2011-12-10 22:33:30.581 test_util[594:707] Key: DAVolumeKind, Value: ntfs

and also comment out the line 76
  testDiskInfoWith(@"disk0s2");   
like this
// testDiskInfoWith(@"disk0s2");   

that should display only disk0s3 ..
Code: [Select]
2011-12-10 22:34:35.808 test_util[621:707] Key: DAMediaLeaf, Value: 1
2011-12-10 22:34:35.809 test_util[621:707] Key: DADeviceUnit, Value: 0
2011-12-10 22:34:35.809 test_util[621:707] Key: DADeviceInternal, Value: 1
2011-12-10 22:34:35.809 test_util[621:707] Key: DAMediaEjectable, Value: 0
2011-12-10 22:34:35.810 test_util[621:707] Key: DABusPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0
2011-12-10 22:34:35.810 test_util[621:707] Key: DAMediaContent, Value: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
2011-12-10 22:34:35.810 test_util[621:707] Key: DADevicePath, Value: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleAHCI/PRT1@1/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice
2011-12-10 22:34:35.811 test_util[621:707] Key: DAMediaWhole, Value: 0
2011-12-10 22:34:35.811 test_util[621:707] Key: DAMediaBSDName, Value: disk0s3
2011-12-10 22:34:35.811 test_util[621:707] Key: DAVolumeUUID, Value: <CFUUID 0x40030ed00> BE0653E2-9179-42EE-A8C6-A2EF4651EFF7
2011-12-10 22:34:35.812 test_util[621:707] Key: DAMediaSize, Value: 79999008768
2011-12-10 22:34:35.812 test_util[621:707] Key: DAMediaUUID, Value: <CFUUID 0x40030f300> 50AB387B-2545-4FA5-BEDC-18BDECC4719D
2011-12-10 22:34:35.812 test_util[621:707] Key: DAMediaIcon, Value: {
    CFBundleIdentifier = "com.apple.iokit.IOStorageFamily";
    IOBundleResourceFile = "Internal.icns";
}
2011-12-10 22:34:35.813 test_util[621:707] Key: DAMediaKind, Value: IOMedia
2011-12-10 22:34:35.813 test_util[621:707] Key: DADeviceProtocol, Value: SATA
2011-12-10 22:34:35.813 test_util[621:707] Key: DAAppearanceTime, Value: 345247371.407253
2011-12-10 22:34:35.814 test_util[621:707] Key: DAMediaBSDMajor, Value: 14
2011-12-10 22:34:35.814 test_util[621:707] Key: DADeviceModel, Value: SAMSUNG HD501LJ                         
2011-12-10 22:34:35.814 test_util[621:707] Key: DAMediaBSDMinor, Value: 3
2011-12-10 22:34:35.815 test_util[621:707] Key: DAVolumeMountable, Value: 1
2011-12-10 22:34:35.815 test_util[621:707] Key: DAMediaWritable, Value: 1
2011-12-10 22:34:35.815 test_util[621:707] Key: DAMediaName, Value: WIN8
2011-12-10 22:34:35.815 test_util[621:707] Key: DAVolumeNetwork, Value: 0
2011-12-10 22:34:35.816 test_util[621:707] Key: DAMediaBSDUnit, Value: 0
2011-12-10 22:34:35.816 test_util[621:707] Key: DAMediaBlockSize, Value: 512
2011-12-10 22:34:35.816 test_util[621:707] Key: DABusName, Value: PMP
2011-12-10 22:34:35.817 test_util[621:707] Key: DAMediaPath, Value: IODeviceTree:/PCI0@0/SATA@1F,2/PRT1@1/PMP@0/@0:3
2011-12-10 22:34:35.817 test_util[621:707] Key: DAMediaRemovable, Value: 0
2011-12-10 22:34:35.818 test_util[621:707] Key: DADeviceRevision, Value: CR100-12
2011-12-10 22:34:35.818 test_util[621:707] Key: DAVolumePath, Value: file://localhost/Volumes/Untitled/
2011-12-10 22:34:35.818 test_util[621:707] Key: DAVolumeKind, Value: ntfs
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #63 on: December 10, 2011, 11:41:00 PM »
Aha !
This volume gets the untitled name, very interesting case BlackOSX!
Gonna check that problem and come back with a fix in few minutes ;)

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #64 on: December 10, 2011, 11:47:45 PM »
I'll be here to test :)
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #65 on: December 11, 2011, 12:14:46 AM »
I'll be here to test :)
Untitled partition now also handled Fixed in 458 :)


Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #66 on: December 11, 2011, 12:20:53 AM »
Yes it does (screenshot attached).
Well done Rek  ;D

Thank you very much.. and now it's bed time for me. Over and out.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #67 on: December 11, 2011, 12:22:13 AM »
NP BlackOSX  :)
And thank you for testing the  preference pane!

ErmaC

  • Resident
  • Posts: 134
Re: ChameleonPrefPane revived
« Reply #68 on: December 11, 2011, 03:36:23 AM »
Feature Request.
Would be nice (if possible) to add into "Startup windows" like a tooltip showing the current boot-loader (if installed) version?

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #69 on: December 11, 2011, 03:42:59 AM »
Hi ErmaC, what do you mean please, I don't understand what you meant here?
Did you mean the chameleon booter current  version ?
Thanks

ErmaC

  • Resident
  • Posts: 134
Re: ChameleonPrefPane revived
« Reply #70 on: December 11, 2011, 03:58:46 AM »
Sorry.... :(

When I move the mouse cursor over the name of the partition, it would be possible to display the version of the bootloader installed on that partition?

Fabio
P6T Deluxe v1 i7 940 Quadro Fx 5600
P6T SE i7 920 GeForce GT 240

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #71 on: December 11, 2011, 06:40:16 AM »
Well, the boot file has no version to read from in a standard way, at least that I know of.
Yet, it is possible to achieve that functionality by populating a file with the versions, date time, and sizes.
With that list (could be a plist file in the resources folder of the chameleon prefpane  bundle ) I could then seek into it and find if a boot file matches ...

... the only problem would be the maintenance of such a file, one would have to add any single version of the booter :)
« Last Edit: December 11, 2011, 09:57:41 AM by rekursor »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: ChameleonPrefPane revived
« Reply #72 on: December 11, 2011, 10:20:31 AM »
Hey Rek

You know I asked you to hide all non-bootable partitions in the pref pane? Well I've been thinking of doing it differently.. and am presenting to you an idea.

Currently with the pref pane as it is now, if I want to hide a partition from Chameleon's GUI then I have to add the partition numbers in to the Hide Partitions section of the Boot Setup page. Could it be done with a checkbox in the Startup Disk page? this would involve re-showing the non-bootable partitions though. See the attached mockup to hopefully show what I mean.

I know it would mean a lot more code changes but I think it will make hiding partitions easy. Just a thought.  :P


Well, the boot file has no version to read from in a standard way, at least that I know of.
There's always this line by Zhell
http://forum.voodooprojects.org/index.php/topic,1431.msg7041.html#msg7041
« Last Edit: December 11, 2011, 11:06:15 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #73 on: December 11, 2011, 06:25:55 PM »
LOL BlackOSX, you really read my mind (or reminders of the current source code) :)
Yes, it is planned to hide automatically the drives; the only differences in my work in progress is the check box hide column is the first left ....
Agreed this is the next cool feature for 2.2 :P
« Last Edit: December 11, 2011, 06:36:49 PM by rekursor »

rekursor

  • VoodooLabs
  • Posts: 47
Re: ChameleonPrefPane revived
« Reply #74 on: December 11, 2011, 06:30:52 PM »
There's always this line by Zhell
http://forum.voodooprojects.org/index.php/topic,1431.msg7041.html#msg7041
When one thinks he knows enough of the power of unix command line tools, well one is wrong :)

BlackOSX, please remind me to add zhell for this nice cmd once I implement the code that will call it ...  :lol:

-Rek