Discuss [Solved] Kext doesn't load at boot time :( at the Kernel / Kext (Driver) Support - Hackint0sh.org; Hi all.
I'm a new mac ( ) user.
My PC is a HP Pavilion ...
-
-
-
OK, I've managed how to run a script at boot time in Leopard before user logs in (that is launching a Daemon).
I made a script called com.apple.yukon.plist in/Library/LaunchDaemons/ containing the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>com.apple.yukon</string>
<key>ProgramArguments</key>
<array>
<string>//sbin/kextload</string>
<string>/System/Library/Extensions/AppleYukon2.kext</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>UserName</key>
<string>root</string>
</dict>
</plist>
As you see I have divided the command line in two parts called arguments as I thounght of them as a command (kextload) and its argument.
Then I added that script to the daemons running at startup with the following command:
launchctl load -w /Library/LaunchDaemons/com.apple.yukon.plist
You can then verify it's in the list of daemons running at startup with:
launchctl list
In this way you can run whatever you might like (as you see I load a driver!)
That's all.
I hope this will help someone in the future 
Bye bye.
-
-
Hackint0sh Moderator
Array
Hey thx for sharing, surely will help other members
HP Pavilion Elite m9250f
Snow Leopard 10.6.6, Asus IPIBL-LB MOD BIOS, Intel Quad Core Q6600, 4GB RAM (800mhz), 2x500GB, nVidia 8600GT (Works), ALC888S (Works), Wireless RT73 (Works), LAN (Works) -
How to Install -
Blog -
Hardware Combos -
FAQ by TJ2K7 Macbook Pro 13" iPhone 4
Follow meh:
@icchansan If you just want to support hackint0sh.org with a donation click here 
-
I want to modify your daemon to load my VoodooPS2Controller.kext automatically. The problem I have is that somehow this kext interferes with the boot process and stalls the boot so that it never completes. If the boot completes, I can manually load this kext to enable both the keyboard & trackpad of a hackintosh laptop. The problem is that your script loads too soon, I need a short delay, probably just a few seconds. I know this should be simple, but I'm new to this. I'm keeping this kext in my /Extra folder with root:wheel ownership&permissions. Here's what I've got so far, which works, but loads too early, causing a panic somehow. When I manually load it using an external USB keyboard & mouse I have zero problems, so a tiny delay will likely solve this issue. How would I add a short delay before the kext loads?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>org.voodoo.PS2Controller</string>
<key>ProgramArguments</key>
<array>
<string>//sbin/kextload</string>
<string>/Extra/VoodooPS2Controller.kext</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/dev/null</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
<key>UserName</key>
<string>root</string>
</dict>
</plist>
-
Similar Threads
-
By Whitefangsz in forum Kernel / Kext (Driver) Support
Replies: 0
Last Post: 07-14-2010, 10:40 PM
-
By idioteque in forum AppleTV 1
Replies: 0
Last Post: 11-03-2009, 06:18 PM
-
By TwistyValhalla in forum Free Toolchain Software
Replies: 0
Last Post: 09-24-2008, 04:14 AM
-
By eduardoSA in forum iPhone "2G" (Rev. 1)
Replies: 4
Last Post: 01-27-2008, 11:26 AM
-
By juaid in forum Archiv (Leopard)
Replies: 4
Last Post: 04-23-2007, 07:50 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks