Ãʺ¸¸¦ À§ÇÑ kext °ü·Ã ÆÁ

February 04,2009                      hit:(8003)

.kext ¿¡ °üÇÏ¿©...



ÃÖ±Ùµé¾î ÇØŲ¿¡ °ü½ÉÀ» °®°í »õ·Î µµÀüÇϽô ºÐµéÀÌ ¸¹¾ÆÁö°í ÀÖÀ½À» ´À³¦´Ï´Ù. °¢Á¾ Áú¹®µéÀÌ ¸¹¾ÆÁö°í ÀÖ°í¿ä. Àúµµ Ãʺ¸Áö¸¸ Ãʺ¸ÀûÀÎ °üÁ¡¿¡¼­ kext¿¡ °üÇÑ ÆÁÀ» Çϳª ¸¸µé¾îº¸°íÀÚ Çß½À´Ï´Ù. Àúµµ »ç½Ç Á¦´ë·Î ÀÌÇØÇϴ°ÍÀÌ ¾Æ´Ï¶ó¼­ Ȥ½Ã ¼öÁ¤À̳ª º¸Ãæ¼³¸íÀÌ ÇÊ¿äÇÏ´Ù ´À³¢½Ã´Â ºÎºÐµé¿¡ ´ëÇØ °í¼ö´Ôµé°ú ¿©Å¸ ȸ¿ø´Ôµé²²¼­ ÁöÀûÇØÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.



ÀÏ´Ü ¼³¸íÀÇ ÁÙ±â´Â x86project.org/wiki/index.php/Hardware_.kext_Patching_List¿¡¼­ target=_blank>http://wiki.osx86project.org/wiki/index.php/Hardware_.kext_Patching_List¿¡¼­ ¹ßÃéÇß½À´Ï´Ù.

¶Ç ´ÏÅ°´Ô(http://x86osx.com/bbs/view.php?id=osxtips&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=reg_update&desc=desc&no=472)ÀÇ ±ÇÇѺ¹±¸ µîÀ» ÀοëÇß±¸¿ä.



Quote:UPDATE

´«¿¡ ¶çÀ̱淡...¾à°£ÀÇ Ãß°¡ ¼³¸íÀ» ´õÇؽÀ´Ï´Ù. ÄʽºÆ®ÀÇ ¼³Ä¡°¡ »ç½Ç ¸®¾ó¸Æ¿¡¼­´Â µð½ºÅ©À¯Æ¿¸®Æ¼ÀÇ ±ÇÇѺ¹±¸¸¦ ÀÌ¿ëÇؼ­ °£´ÜÈ÷ ¼³Ä¡°¡ µÈ´Ù´Â °í¼ö´ÔÀÇ ¾ê±â°¡ ÀÖ¾ú½À´Ï´Ù. ±×·¡¼­ Á»´õ ¼³¸íÀ» µéÃ纸´Ï±î...ÇÏ´Â ¸»¾¸ÀÌ ÇØŲ¿¡¼± µð½ºÅ©À¯Æ¿¸®Æ¼ÀÇ ±ÇÇѺ¹±¸·Î ÄʽºÆ®¼³Ä¡°¡ ºÒ°¡´ÉÇϱ⠶§¹®¿¡ ÀÌ ¾Æ·¡¿¡ ³ª¿À´Â ¼³Ä¡¹æ¹ýÀ» ½á¾ßÇÑ´Ù°í ÇÏ´õ±º¿ä. ±×·¡¼­ ¿ì¸®°¡ »ðÁúÀ» ÇÏ´Â °ÍÀÌ´Ù¶ó´Â ¸»¾¸À̾ú½À´Ï´Ù...






1. .kext ÆÐÄ¡



".kext"¶õ MAC OSX ½Ã½ºÅÛÀÇ ÇϺα¸Á¶¶ó°í º¼ ¼ö ÀÖ´Â "kernel extensions" ÀÔ´Ï´Ù. ÀÏÁ¾ÀÇ 'ÀåÄ¡µå¶óÀ̹ö'¶ó°íµµ º¼ ¼ö ÀÖÁö¸¸ ¸Æ¿¡¼± Ä¿³Î È®ÀåÀÚ·Î ºÒ¸³´Ï´Ù.



".kext"´Â ´ÜÀÏ ÆÄÀÏÀÌ ¾Æ´Õ´Ï´Ù. ÆÄÀÏ µð·ºÅ丮 ±¸Á¶¸¦ °®°í ÀÖ´Â ÁýÇÕüÀÌ¸ç ¼­ºêÆú´õ¿¡ À§Ä¡ÇÑ ÆÄÀϵé°ú ÇÔ²² ½Ã½ºÅÛ Ä¿³ÎÀ» Áö¿øÇÏ´Â È®ÀåÀÚÀÇ ¿ªÇÒÀ» ÇÏ´Â °ÍÀÔ´Ï´Ù. (¿¹, ¸¶¿ì½º Ä¿¼­·Î kext ÆÄÀÏÀ» ¿ìŬ¸¯ÇÑ ´ÙÀ½ show package contents¸¦ ¼±ÅÃÇÏ¸é ±× ³»¿ë¹°À» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)



¸®¾ó ¸Æ¿¡¼­´Â ½Å°æ¾µÀÏÀÌ ¾øÁö¸¸ ÇØŲ¿¡¼­´Â ÀÚ½ÅÀÇ Çϵå¿þ¾î »ç¾ç¿¡ ¸Â´Â ÇØ´ç ".kext"ÀÇ ¼³Ä¡°¡ ¿ä±¸µÇ°í¿ä, Çϵå¿þ¾î°¡ º¯°æµÆÀ» °æ¿ì  "ÆÐÄ¡" ÀÛ¾÷ÀÌ ÇÊ¿äÇÑ °ÍÀÔ´Ï´Ù.



kext ÀÇ À§Ä¡´Â System/Library/Extensions ÀÔ´Ï´Ù.



OSX ¾÷µ¥ÀÌÆ® ÈÄ ÀÌ»ó Áõ¼¼°¡ ¹ß°ßµÈ´Ù¸é ÀÌÀü ¹öÁ¯¿¡¼­ Á¤»ó ÀÛµ¿ÇÏ´ø ÇØ´ç ".kext"¸¦ À缳ġÇÏ´Â °ÍÀ¸·Î ÇØ°áÇÏ½Ç ¼ö ÀÖ°í¿ä. ¾Æ´Ï¸é, ".kext" ³»ºÎ¿¡ ÀÖ´Â "info.plist" ÀÇ ¼öÁ¤À» ÅëÇØ ¹®Á¦¸¦ ÇØ°áÇÒ ¼öµµ ÀÖ½À´Ï´Ù.



"info.plist"´Â PNP(plug-and-play)Çü½ÄÀÇ µð¹ÙÀ̽º ¾ÆÀ̵ð ÄÚµå·Î ³ªÅ¸³ª´Â Á¤º¸ÀÌ¸ç µû¶ó¼­ ".kext" ÆÐÄ¡°¡ ¿ä±¸µÉ¶§ ÀÌ µð¹ÙÀ̽º ¾ÆÀ̵𸦠º¯°æÇØÁÖ´Â ¹æ¹ýÀ¸·Î °°Àº È¿°ú¸¦ º¼ ¼ö ÀÖ½À´Ï´Ù.



".kext"ÆÄÀÏÀ» °°Àº °æ·Î¿¡ º¹»ç, »ðÀÔÇÒ °æ¿ì ¹ÝµíÀÌ "±ÇÇÑ º¹±¸" (Repair Permission) ÀÛ¾÷ÀÌ µû¶óÁà¾ß º¯°æµÈ ".kext"°¡ Á¦´ë·Î ¼³Ä¡µË´Ï´Ù.



2. ".kext" ¼³Ä¡:  ±× ÁøÇà °úÁ¤Àº Copy>Paste>Repair Permission ¼øÀÔ´Ï´Ù. ´Ù½Ã ¸»ÇÏÀÚ¸é kext´Â »ç½Ç ¼³Ä¡¶ó±â º¸´Ù Ä«ÇÇ>ÆÐÀ̽ºÆ®>±ÇÇѺ¹±¸ÀÇ ÀýÂ÷¸¦ °ÅÄ¡´Â °ÍÀ¸·Î ÆÐÄ¡°¡ µÈ´Ù°í º¸½Ã¸é µË´Ï´Ù. ±ÇÇѺ¹±¸´Â Áï, º¯°æµÈ kext¸¦ È°¼ºÈ­½ÃÄÑÁÖ´Â °ÍÀÔ´Ï´Ù.



a. Å͹̳ÎÀ» ÀÌ¿ëÇÑ ¼öµ¿¼³Ä¡ ( by : http://x86osx.com/bbs/view.php?id=osxtips&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=reg_update&desc=desc&no=472)



Å͹̳ÎÀ» ¿©½ÅÈÄ sudo -s, password ÀÔ·ÂÈÄ ´ÙÀ½Ã³·³ µû¶óÇÏ½Ã¸é µË´Ï´Ù.



chmod -R 755 /System/Library/Extensions/aaa.kext ¿£ÅÍ(aaa.kext´Â ÇØ´ç kext À̸§...µÇµµ·Ï ´ë¼Ò¹®ÀÚµµ ±¸º°ÇÏ½Ã´Â°Ô ÁÁ½À´Ï´Ù.)

chown -R root:wheel /System/Library/Extensions/aaa.kext ¿£ÅÍ



ÇϽøé ÀÏ´Ü ±âº»ÀûÀÎ ±ÇÇÑÀº ¼³Á¤ µË´Ï´Ù.

±×·±ÈÄ

kextload -t /System/Library/Extensions/aaa.kext ¿£ÅÍ

Çؼ­ ±ÇÇÑÀ» ¼³Á¤ÇÑ kext ÆÄÀÏÀ» Á¦´ë·Î ·ÎµùµÇ´ÂÁö È®ÀÎÇغ¸½Ã±¸¿ä.(¿©±â¼­ ¼º°øÀ̶ó´Â ¸Þ¼¼Áö°¡ ³ª¿Í¾ßÇÕ´Ï´Ù.)

¸ðµç kext ÆÄÀÏÀÇ ±ÇÇÑÀ» ´Ù ¼³Á¤Çß´Ù¸é

exit ¿£ÅÍÈÄ RebootÇÏ½Ã¸é µË´Ï´Ù.



b. kexthelper, OSXTools, kextutility: ÀÌ ¼¼°¡Áö ¾îÇÃÀº ÀÚ·á½Ç¿¡ ÀÖ½À´Ï´Ù. µû¶ó¼­ ´Ù¿î¹Þ¾Æ¼­ °£´ÜÇÏ°Ô kext ÆÄÀÏÀ» ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. ´Ü, Áß¿äÇÑ Á¡ÀÌ ÀÖ½À´Ï´Ù. ÀÌ ÀÚµ¿ ¼³Ä¡ ¼ÒÇÁÆ®¿þ¾î¸¦ ¼³Ä¡Çصµ ¼³Ä¡µÆ´Ù Ç®¸®´Â °æ¿ìµµ ÀÖ°í Á¦´ë·Î ¼³Ä¡°¡ ¾ÈµÇ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. µû¶ó¼­ (a.) ´ÔÀÇ ÆÁÀ» ²Ä²ÄÈ÷ ÀÐ°í ¼öµ¿¼³Ä¡¹ýÀ» ¼öÇàÇÏ´Â°Ô °¡Àå ÁÁÀº ¹æ¹ýÀÓÀ» ÃßõÇÕ´Ï´Ù.



c. info.plist ¼öÁ¤: ÇØ´ç kext¸¦ Ŭ¸¯Çؼ­ contents º¸±â (¸¶¿ì½º ¿ìŬ¸¯ ¼±ÅÃ)¸¦ Çϸé info.plist ¸¦ º¼ ¼ö  ÀÖ½À´Ï´Ù. ÀÌ ÆÄÀÏÀ» º¹»çÇؼ­ µ¥½ºÅ©ÅéÀ¸·Î ¿Å±ä ÈÄ texteditor·Î ¼öÁ¤ÈÄ À纹»ç, µ¤¾î¾º¿ì±â¸¦ ÇÕ´Ï´Ù.

info.plist ¼öÁ¤Àº µð¹ÙÀ̽º ¾ÆÀ̵𸦠Á¤È®ÇÏ°Ô Ã£¾Æ³»°í ¹Ù²ãÁÙ ¾ÆÀ̵𸦠Á¤È®ÇÏ°Ô ¾Ë°í ÀÖÀ»¶§ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ª½Ã ±ÇÇÑ º¹±¸°¡ ÇÊ¿äÇÕ´Ï´Ù.



d. ±ÇÇѺ¹±¸ (Repair Permission) ¹æ¹ý



°¡Àå ½¬¿î ¹æ¹ýÀº application/utility¿¡ ÀÖ´Â disk utility¸¦ »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù. µð½ºÅ©À¯Æ¿¸®Æ¼¸¦ ½ÇÇàÇϽðí ÇØ´ç Çϵ庼·ýÀ» ¼±ÅÃÇÏ½Ã°í ±ÇÇѺ¹±¸(repair permisison)¸¦ ´­·¯ÁÖ½Ã¸é µË´Ï´Ù.

¶Ç, Å͹̳ÎÀ» ÀÌ¿ëÇÑ ¹æ¹ýÀ¸·Î´Â Å͹̳Π¿©½Ã°í sudo -s, password ÇÑ ÈÄ



chown -R root:wheel /System/Library/Extensions



¶Ç´Â OSXtoolsÀÇ Repair PermissionÀ» ÀÌ¿ëÇϼŵµ µË´Ï´Ù.



e. Å͹̳ÎÀ» ÀÌ¿ëÇÑ kext testing

ÀÌ¹Ì À§ a.)¿¡¼­ ´ÏÅ°´ÔÀÌ ¼³¸íÇØÁֽŠ°Í°ú ¸¶Âù°¡ÁöÀÔ´Ï´Ù. Å͹̳Π¿©½Ã°í sudo -s, password ÇÑ ÈÄ



kextload -t /System/Library/Extensions/aaa.kext  (¿£ÅÍ)



¶Ç´Â



cd /System/Library/Extensions/aaa.kext/Contents/PlugIns/ (¿£ÅÍ)

kextload aaa.kext (¿£ÅÍ)



È®ÀÎÇÏ½Ã°í ¸®º×



f.  Å͹̳ÎÀ» ÀÌ¿ëÇÑ kext »óÅÂÈ®ÀÎ



kextstat (¿£ÅÍ)

·ÎµåµÈ ÄʽºÆ®¸¦ º¸¿©ÁÝ´Ï´Ù. ÀÌ ¸í·É¾î¸¦ ÀÌ¿ëÇؼ­ ÀÚ½ÅÀÌ ÆÐÄ¡ÇÑ ÄʽºÆ®¸¦ Àç»ï È®ÀÎÇÒ ¼ö Àְųª ¾îµð¼­ À߸øµÆ³ª¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù
¿ø±Û Æ÷½ºÆà Ãâó : http://x86osx.com/bbs/view.php?id=osxtips&no=1368

comment : (0)

      [Save a Comment]

[Prev]
 LA
 SEOUL
   JP
   Mission Viejo, CA,
   United States
   THE GREEN FUSE (RSS ±¸µ¶)
   LaymenBlog
   x86osx.com