LinuxÉ豸Çý¶¯³ÌÐòѧϰ֮É豸ģÐͶþ
LinuxÉ豸Çý¶¯³ÌÐòѧϰ±Ê¼ÇϵÁÐÎÄÕÂÔ×÷ÕßÊÇ£ºTekkaman Ninja£¬Ëû²©¿ÍµØÖ·£º
http://blog.chinaunix.net/u1/34474/showart_404278.html
ÔÚ´ËÏòTekkaman Ninja±íʾ¸Ðл£¬Ð´³öÕâôºÃµÄÎÄÕ£¬Ê¹ÎÒÉÙ×ßÁ˺ܶàÍä·¡£
ͨ¹ýÒ»¸öÉ豸ÔÚÄÚºËÖÐÉúÃüÖÜÆڵĸ÷¸ö½×¶Î£¬¿ÉÒÔ¸üºÃµØÀí½âLinuxÉ豸ģÐÍ¡£ÎÒ½«Í¨¹ý·ÖÎölddbusºÍsculldµÄÔ´ÂëÀ´Á˽âLinuxÉ豸ģÐÍÖи÷»·½ÚµÄÕûºÏ¡£¡¶LDD3¡·Öеģ¨PCI×ÜÏߣ©¸÷»·½ÚµÄÕûºÏÕⲿ·ÖÄÚÈÝ×÷Ϊ²Î¿¼×ÊÁÏ£¬ÒòΪǶÈëʽLinux±È½ÏÉÙÓõ½PCI×ÜÏß¡£¿´Õⲿ·ÖÄÚÈÝÒ»¶¨ÒªÏÈÊìϤһÏ lddbus ºÍ sculld µÄÔ´Âë¡£
Ò»¡¢lddbusÄ£¿é£ºÌí¼Ó×ÜÏß¡¢µ¼³ö×ÜÏßÉ豸ºÍÉ豸Çý¶¯µÄ×¢²áº¯Êý¡£
lddbus×ÓϵͳÉùÃ÷ÁËÒ»¸öbus_type½á¹¹£¬³ÆΪldd_bus_type ¡£Ô´ÂëÊÇÔÚ±àÒëʱ³õʼ»¯ÁËÕâ¸ö½á¹¹Ì壬ԴÂ룺
/*
* And the bus type.
*/
struct bus_type ldd_bus_type = {
.name = "ldd",
.match = ldd_match,
.uevent = ldd_uevent,
};
ÔÚ½«lddbus×ÓϵͳװÔص½Äں˺ʹÓÄÚºËжÔصÄÔ´ÂëÈçÏ£º
static int __init ldd_bus_init(void)
{
int ret;
ret = bus_register(&ldd_bus_type); /*×¢²á×ÜÏߣ¬ÔÚµ÷ÓÃÕâ¸öº¯ÊýÖ®ºóldd_bus_type ½á¹¹Ì彫ÏòÄÚºË×¢²á£¬ÔÚ/sys/busÖгöÏÖlddÎļþ¼Ð£¬ÆäÖаüº¬Á½¸öĿ¼£ºdevices ºÍ drivers */
if (ret)
return ret;
if (bus_create_file(&ldd_bus_type, &bus_attr_version)) /*Ìí¼Ó×ÜÏßÊôÐÔ,½«ÔÚ/sys/bus/lddĿ¼ÖгöÏÖversionÊôÐÔÎļþ*/
printk(KERN_NOTICE "Unable to create version attribute ! \n");
ret = device_register(&ldd_bus);/*½«×ÜÏß×÷ΪÉ豸ע²á¡£ÒòΪ×ÜÏßÒ²¿ÉÒÔÊÇÒ»¸öÉ豸£¬±ÈÈçÔÚS3C2440ÖÐSPI×ÜÏß¿ØÖÆÆ÷Ïà¶ÔÓÚARM920TºËÐÄÀ´Ëµ£¬Æäʵ¾ÍÊÇÒ»¸öÍâÉè¡£µ÷Óô˺¯Êýºó£¬¾Í»áÔÚ/sys/devicesÖгöÏÖldd0Ŀ¼*/
if (ret)
printk(KERN_NOTICE "Unable to register ldd0 ! \n");
printk(KERN_NOTICE "Mount lddbus ok
Ïà¹ØÎĵµ£º
Ò»¡¢°²×°ÐéÄâ»úVMware
¶þ¡¢ÔÚÐéÄâ»úÉÏ°²×°linux
Èý¡¢°²×°VMware tools
1¡¢ÐéÄâ»ú²Ëµ¥À¸—>VM—>Install VMware Tools
2¡¢½øÈë²Ù×÷ϵͳ°²×°VMware Tools
ËÄ¡¢¸üÐÂÔ´²¢¸üпÉÓõijÌÐòÁбí
......
LinuxÎļþI/OÖ÷ÒªÓÉread¡¢write¡¢open¡¢close¡¢lseekÎå¸öº¯Êý×é³É£»
Ò»¡¢ÎļþÃèÊö·û
ÔÚǶÈëʽLinuxÖÐÿ´ò¿ªÒ»¸öÎļþ¶¼ÓÐÒ»¸öÃèÊö·ûÓëÖ®¶ÔÓ¦£¬¸ÃÃèÊö·ûÊÇÒ»¸ö·Ç¸ºÕûÊý£»
µ±ÓÃopen´ò¿ª»òн¨Ò»¸öÎļþʱ£¬¸Ãº¯ÊýµÄ·µ»ØÖµ¾ÍÊǸÃÎļþµÄÃèÊö·û£»
......
Linux²»Êǽâ¾öÖйú·¢Õ¹¹ý³ÌÖдæÔÚµÄËùÓÐÎÊÌâµÄÍòÄÜÒ©£¬ËüÖ»ÊÇΪÎÒÃÇÌṩÁËÒ»¸ö¿ÉÒÔÃ÷ÏÔ½µµÍ³É±¾¡¢´Ù½ø¹ú¼ÊºÏ×÷ºÍ»ñµÃ¸ü¹ãÀ«·¢Õ¹Ç°¾°µÄÑ¡ÏîÖ®Ò»¡£Í¨³£Çé¿öÏ£¬¹ÍÓùúÍâÓÅÐã¹ÜÀíºÍ¼¼ÊõÈËÔ±ËùÐèµÄ·ÑÓûá¸ßµÄ¾ªÈË¡£²»½öÒªÏòÕâЩÈËÖ§¸¶¸ß¶îµÄ³ê½ð£¬Í¬Ê±ÒªÎªËûÃÇÓªÔìÒ ......
°²×°ºó
ÔËÐÐsnavigator
³öÏÖ
Can't find a usable tk.tcl in the following directories:
/opt/sourcenav/share/tk8.3
/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll ......
sudo rm ½â³ýËøÎļþ¼Ð
sudo chmod 777 / ÓÐÁËËùÓÐȨÏÞ
yjh@ubuntu:~$ cd /etc
yjh@ubuntu:/etc$ sudo chmod 777 bash.bashrc ³¬¼¶Óû§È¨ÏÞ ÐÞ¸Äbash.bashrc
yjh@ubuntu:/etc$ gedit bash.bashrc
yjh@ubuntu:/etc$
etcÏ»·¾³±äÁ¿ ÐÞ¸Ä bash.bashrv
×îº ......