ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

2 Pages V   1 2 >  
Start a new topicClosed
> Fakenvram
Slice
post Oct 16 2010, 09:22 AM
Post #1
I begin new investigation.
Look here
Attached File  Screen_shot_2010_10_16_at_11.12.30.png ( 46.97K ) Number of downloads: 326

Why there are no any bootable volumes?
I want to choose a volumes, click restart and go to drink koffee while the system restarted to chosen volume. It may be mounted .dmg image! Fantastic? In MacOS 9 it's happen!
But we have no instant memory to keep NVRAM settings sad.gif So I propose to make it inside a file.
1. Make shutdown script
nvram -p >/nvram.dat
2. Improve Chameleon to read the file and use its settings.
That's all?!

Related problems:
1. For some configuration AppleEFINVRAM paniced (as for my Samsung P29) so it needs to create alternative kext.
2. As at picture above there are no volumes in Startup panel. It is happen for MBR partitioning drives. But Samsung with Tiger and MBR works!
Attached File  post_5488_069564300_1286301125_thumb.png ( 56.99K ) Number of downloads: 216

Why? Because of a Tiger?
I need an answer to the question.
It may be related to bless utility that is not intended for MBR. Only for GUID.
This utility is opensource so it is possible to create new one. Bless for MBR.

Is there any related solutions in the world?
I know that Chameleon is based on boot-123 and works with MBR. Any tricks useful to remake bless?
Any information about boot.efi, Firmware.scap?
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
modbin
post Oct 16 2010, 03:12 PM
Post #2
first an efi based bootloader is recommended as it already has nvram. 2nd bless is looking for / setting the boot volume in the dev tree key efi-boot-device.

I hope that helps a bit

greets modbin
Slice
post Oct 16 2010, 06:17 PM
Post #3
sad.gif No, sorry!
1. nvram is a hardware, so no efi based bootloader can have it. After restart all keys in nvram will be loose because of no such hardware.
2. bless is not search for a key "efi-boot-device". It creates one.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
iNDi
post Oct 16 2010, 06:29 PM
Post #4
QUOTE (Slice @ Oct 16 2010, 07:17 PM) *
sad.gif No, sorry!
1. nvram is a hardware, so no efi based bootloader can have it. After restart all keys in nvram will be loose because of no such hardware.
2. bless is not search for a key "efi-boot-device". It creates one.


perhaps you should at least check out what modbin has told you.

duet indeed does provide nvram using the filesystem to store the data.

it even provides the runtime functions.
Slice
post Oct 16 2010, 08:23 PM
Post #5
QUOTE (iNDi @ Oct 16 2010, 10:29 PM) *
perhaps you should at least check out what modbin has told you.

duet indeed does provide nvram using the filesystem to store the data.

it even provides the runtime functions.

If so, sorry! I supposed that the problem is resolved by somebody and ask about. unsure.gif

So I see Chameleon is far from main road?

PS. You means XPC?
The project is dead.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
iNDi
post Oct 17 2010, 01:48 PM
Post #6
QUOTE (Slice @ Oct 16 2010, 09:23 PM) *
If so, sorry! I supposed that the problem is resolved by somebody and ask about. unsure.gif

So I see Chameleon is far from main road?

PS. You means XPC?
The project is dead.


no i dont mean xpc. its a feature of duet itself.


a chameleon branch also could load grub2 runtime module which did the same.

regards.

iNDi
Slice
post Oct 17 2010, 04:03 PM
Post #7
May be you are right but I see no modern DUET-based bootloader and I have no answers to my questions in topic.
My development will be continued.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
iNDi
post Oct 17 2010, 07:06 PM
Post #8
QUOTE (Slice @ Oct 17 2010, 05:03 PM) *
May be you are right but I see no modern DUET-based bootloader and I have no answers to my questions in topic.
My development will be continued.


cool, but you'll need some fault tolerant filesystem i would think.

have you thought about what happens during say a page fault or an abnormal shutdown / restart ?

and remember a .kext can not write to the filesystem iirc
Slice
post Oct 18 2010, 06:26 AM
Post #9
Kernel panics is outputed on screen by some procedure. I think it calls also NVRAM->savePanicInfo().
Yes, kext can't write to file but they can send a message "terminate" to some process that can write.
The process working in user space waiting for event "onTerminate".

And a question about NVRAM file placement. The best place is a special partition on a hard drive but I don't know yet about it's visibility for the utility.
Can a special kext write to a separate partition? Chameleon can.
Also it is possible to provide calls from kernel to FakeEFI.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
tea
post Oct 18 2010, 12:22 PM
Post #10
You think some process can work after kernel panic?
Slice
post Oct 18 2010, 01:42 PM
Post #11
QUOTE (tea @ Oct 18 2010, 04:22 PM) *
You think some process can work after kernel panic?

Someone print registers dump on the screen after KP. wink.gif
CODE
    if (!PE_parse_boot_argn("nvram_paniclog", &commit_paniclog_to_nvram, sizeof (commit_paniclog_to_nvram)))
        commit_paniclog_to_nvram = 1;

i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
tea
post Oct 18 2010, 05:27 PM
Post #12
It's a kernel
model_dep.c

This post has been edited by tea: Oct 18 2010, 05:28 PM
Slice
post Oct 18 2010, 06:39 PM
Post #13
QUOTE (tea @ Oct 18 2010, 09:27 PM) *
It's a kernel
model_dep.c

I know.
If kernel can write on screen AFTER KP then it can write on disk.

And a step over.
Attached File  ______________2.png ( 54.48K ) Number of downloads: 138
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
Krazubu
post Oct 19 2010, 12:08 AM
Post #14
QUOTE
The best place is a special partition on a hard drive

Tho I like the idea of having some emulated NVRAM, I don't share this idea, it will just make things a bit more messy.
IMO, OSX has already been turned into a gas refinery with pseudo-handy things like /extra or putting stuff on EFI partitions. Adding one more partition for that is useless and will just be one more pain. Just store that stuff in a simple file on the root.
Slice
post Oct 19 2010, 06:04 PM
Post #15
If we suppose to restart to other partitiion then restart again in first... In what partition must be the nvram-file?
I see some solutions:
1. Always on active partition.
2. Chameleon remembers.
3. PrefPane to setup a place for the file.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
Slice
post Oct 20 2010, 06:51 PM
Post #16
QUOTE (cparm @ Oct 20 2010, 08:24 PM) *
hi slice, i want to add:
'and reset the value to the default partition (for the next boot) while booting the tmp partition, exactly like a real mac.'
It is good idea.
QUOTE
i think this will be the hardest part, but a possible way is the cmos, that is a non volatile memory,

it seems to be possible to read and write into it -> http://linux.dell.com/libsmbios/main/namespacecmos.html

No. We discussed a possibility to use CMOS and decided do not touch it at all for different reasons.
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
гык-sse2
post Nov 7 2010, 09:15 AM
Post #17
QUOTE (Slice @ Oct 18 2010, 09:39 PM) *
I know.
If kernel can write on screen AFTER KP then it can write on disk.

And a step over.
Attached File  ______________2.png ( 54.48K ) Number of downloads: 138

Not after, but during KP. And it attepmts to commit panic log to NVRAM (you can see it if you boot with debug=0x108)
UEFI is a great way to get the best of the best in the world of imagination and creativity. ©Google Scribe
iostres
post Jul 24 2011, 05:33 PM
Post #18
QUOTE (Slice @ Oct 19 2010, 07:04 PM) *
If we suppose to restart to other partitiion then restart again in first... In what partition must be the nvram-file?
I see some solutions:
1. Always on active partition.
2. Chameleon remembers.
3. PrefPane to setup a place for the file.


What about leaving unpartitioned space right after MBR table and before first partition start -> and write nvram info there? It should be safer in case of KP since you can't be sure in which state journaling fs will be after KP. If you write to raw unpartitioned space - that should not do any damage to any partition even if it does not succeed.

BR,
i.
Slice
post Oct 27 2011, 10:52 AM
Post #19
I made working StartDisk.prefPane if boot by Clover.
Attached File  Screen_shot_2011_10_27_at_13.50.36.png ( 59.86K ) Number of downloads: 66

Click Restart and go drink coffee until automatic reboot into selected partition!
i3-2120 GA-H61M-S1 UEFI, Radeon HD6670-UEFI, ALC887(VoodooHDA 2.8.6), OS⌘10.9.4, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
D-an-W
post Nov 28 2011, 07:01 AM
Post #20
QUOTE (Slice @ Oct 27 2011, 11:52 AM) *
I made working StartDisk.prefPane if boot by Clover.
Attached File  Screen_shot_2011_10_27_at_13.50.36.png ( 59.86K ) Number of downloads: 66

Click Restart and go drink coffee until automatic reboot into selected partition!


Hi Slice, would this FakeNVRAM allow the "Find My Mac" (iCloud) tick box to remain selected following a reboot? If so, it's exactly the kind of thing I am looking for but I really need to better understand it (Not even sure what Clover is, used instead of Chameleon maybe?).
* CPU: Intel i7-3770K @ Stock * Cooling: Corsair H80i / Noctua NF-F12 x2 * MoBo: Gigabyte GA-Z77X-UD5H (Rev. 1.1 - BIOS F16 M7) * RAM: Crucial 1600MHz DDR3 32GB (4x8GB) * GPU: Intel HD 4000 (768MB) *
* Mon 1: Dell U2410 (A07) * Mon 2: Panasonic TX-P55VT50B * Cam: Logitech C910 HD * BD: Pioneer BDR-208DBK * HD 1: Crucial SSD M4-CT256M4SSD2 256GB *
* HD 2: Western Digital Caviar Green 3TB * BT: Apple Module 820-1829-A * IR: Apple Infrared Board 922-7195 * WiFi: Apple BCM94322MC (Mini PCI-E to PCI-E Adapter) * PSU: Seasonic M12 - 600W *

2 Pages V   1 2 >
ClosedStart a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: