LinuxÖ¡»º³åÉ豸Çý¶¯³ÌÐò¿ò¼Ü¼°Í¼ÐνçÃæGUIµÄÒÆÖ²
Ó²¼þƽ̨
¡¡¡¡S3C2410XÊÇÈýÐǹ«Ë¾µÄ»ùÓÚARM920TµÄS3C2410XоƬ¡£S3C2410X¼¯³ÉÁËÒ»¸öLCD¿ØÖÆÆ÷(Ö§³ÖSTNºÍTFT´øÓд¥ÃþÆÁµÄÒº¾§ÏÔʾÆÁ)¡¢SDRAM¡¢´¥ÃþÆÁ¡¢USB¡¢SPI¡¢SDºÍMMCµÈ¿ØÖÆÆ÷£¬4¸ö¾ßÓÐPWM¹¦ÄܵļÆʱÆ÷ºÍ1¸öÄÚ²¿Ê±ÖÓ£¬8ͨµÀµÄ10λADC£¬117λͨÓÃI/O¿ÚºÍ24λÍⲿÖжÏÔ´£¬8ͨµÀ10λAD¿ØÖÆÆ÷£¬´¦ÀíÆ÷¹¤×÷ƵÂÊ×î¸ß´ïµ½203MHz¡£
¡¡¡¡S3C2410ÖеÄLCD¿ØÖÆÆ÷¿ÉÖ§³Öµ¥É«/²ÊÉ«LCDÏÔʾÆ÷¡£Ö§³Ö²ÊÉ«TFTʱ£¬¿ÉÌṩ4/8/12/16λÑÕɫģʽ£¬ÆäÖÐ16λÑÕɫģʽÏ¿ÉÒÔÏÔʾ65536ÖÖÑÕÉ«¡£ÅäÖÃLCD¿ØÖÆÆ÷ÖØÒªµÄÒ»²½ÊÇÖ¸¶¨ÏÔʾ»º³åÇø£¬ÏÔʾµÄÄÚÈݾÍÊÇ´Ó»º³åÇøÖжÁ³öµÄ£¬Æä´óСÓÉÆÁÄ»·Ö±æÂʺÍÏÔʾÑÕÉ«Êý¾ö¶¨¡£ÎÄÖвÉÓõÄÊÇ̨ÍåԪ̫V16C6448ACTFTÏÔʾģ¿é£¬ÔÚ640*480·Ö±æÂÊÏ¿ÉÌṩ16λ²ÊÉ«ÏÔʾ¡£
¡¡¡¡Qt/Embeddedµ×²ãÖ§³Ö·ÖÎö
¡¡¡¡Qt/EmbeddedµÄµ×²ãͼÐÎÒýÇæÊÇ»ùÓÚÖ¡»º³å(Frame Buffer)£¬Ö¡»º³åÊdzöÏÖÔÚ2.2.xÒÔÉÏÄں˵İ汾µ±ÖеÄÒ»ÖÖÇý¶¯³ÌÐò½Ó¿Ú¡£ÕâÖÖ½Ó¿Ú²ÉÓÃmmapϵͳµ÷Ó㬽«ÏÔʾÉ豸³éÏóΪ֡»º³åÇø¡£Óû§¿ÉÒÔ½«Ëü¿´³ÉÊÇÏÔʾÄÚ´æµÄÒ»¸öÓ³Ïñ£¬½«ÆäÓ³Éäµ½½ø³ÌµØÖ·¿Õ¼äÒԺ󣬾ͿÉÒÔÖ±½Ó½øÐжÁд²Ù×÷ÁË£¬¶øд²Ù×÷¿ÉÒÔÁ¢¼´·´Ó³ÔÚÆÁÄ»ÉÏ¡£Ö¡»º³åÇý¶¯³ÌÐòÊÇ×îÖØÒªµÄÇý¶¯³ÌÐòÖ®Ò»£¬ÕýÊÇÕâ¸öÇý¶¯³ÌÐò²ÅÄÜʹϵͳÆÁÄ»ÏÔʾÄÚÈÝ£¬ÆäʵÏÖ·ÖΪÁ½¸ö·½Ã棺һÊǶÔLCD¼°ÆäÏà¹Ø²¿¼þµÄ³õʼ»¯£¬°üÀ¨»Ã滺³åÇøµÄ´´½¨ºÍ¶ÔDMAͨµÀµÄÉèÖ㻶þÊǶԻÃ滺³åÇøµÄ¶Áд£¬¾ßÌåµ½´úÂëΪread£¬writeµÈϵͳµ÷Óýӿڡ£
¡¡¡¡Ö¡»º³åÊÇLinuxΪͼÐÎÉ豸ÌṩµÄÒ»¸ö³éÏó½Ó¿Ú£¬ËüÔÊÐíÉϲãÓ¦ÓóÌÐòÔÚͼÐÎģʽÏÂÖ±½Ó¶ÔÏÔʾ»º³åÇø½øÐжÁд²Ù×÷¡£ÕâÖÖ²Ù×÷ÊdzéÏóµÄ¡¢Í³Ò»µÄ¡£Ó¦ÓóÌÐò²»±Ø¹ØÐÄÎïÀíÏÔ´æµÄλÖᢻ»Ò³»úÖƵȵȾßÌåϸ½Ú¡£ÕâЩ¶¼ÊÇÓÉÖ¡»º³åÉ豸Çý¶¯À´Íê³ÉµÄ¡£Ö¡»º³åÉ豸¶ÔÓ¦µÄÉ豸Îļþͨ³£Îª/dev/fb031£¬LinuxµÄÖ¡»º³åÉ豸µÄÇý¶¯Ö÷Òª»ùÓÚÁ½¸öÎļþ£º
¡¡¡¡1)linux/include/linux/fb.h£»
¡¡¡¡2)linux/drivers/video/fbmem.c¡£
¡¡¡¡Ö¡»º³åÉ豸ÊôÓÚ×Ö·ûÉ豸£¬²ÉÓÓÎļþ²ã-Çý¶¯²ã”µÄ½Ó¿Ú·½Ê½¡£
¡¡¡¡Ö¡»º³åÉ豸ÔÚÇý¶¯²ãËùÒª×öµÄ¹¤×÷½ö½öÊǶÔLinuxΪ֡»º³åµÄÇý¶¯²ã½Ó¿Úfb-info½øÐгõʼ»¯£¬È»ºóµ÷ÓÃÕâÁ½¸öº¯Êý¶ÔÆä×¢²á»ò×¢Ïú¡£Ö¡»º³åÉ豸Çý¶¯²ã½Ó¿ÚÖ±½Ó¶ÔLCDÉ豸Ӳ¼þ½øÐвÙ×÷£¬¶øfbmem.c¿ÉÒԼǼºÍ¹ÜÀí¶à¸öµ×²ãÉ豸Çý¶¯¡£
¡¡¡¡Îļþfbmem.cÖж¨ÒåÁËÖ¡»º³åÉ豸µÄÎļþ²ã½Ó¿Úfile-operations½á¹¹Ì壬Ëü¶ÔÓ¦ÓóÌÐò¿É¼û£¬¸Ã½á¹¹ÌåµÄ¶¨ÒåÈçÏ£º
¡¡¡¡staticstructfile-operationsfb-fops=
¡¡¡¡{
¡¡¡¡own
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
linuxµÄÍø¿¨IPµØÖ·ÊÇ´æ·ÅÔÚÎĵµÖеģ¬Õâ¸öÅäÖÃÎĵµÔÚ/etc/sysconfig/network-scriptsÏ£¬Ãû³Æ·Ö±ðΪifcfg-eth0,ifcfg-eth1....¼ÙÈçÄúÓÐÒ»¿éÍø¿¨£¬¾ÍÖ»ÓÐifcfg-eth0Ò»¸öÎĵµ£¬¼ÙÈçÄúÓÐÁ½¿é»òÁ½¿éÒÔÉϵÄÍø¿¨£¬¾Í»áÓÐifcfg-eth1¡¢ifcfg-eth2µÈÎĵµµÄ³öÏÖ¡£
Îĵµ½á¹¹£º
DEVICE=eth0 &n ......
×÷ÕߣºCMK ³ö´¦£ºUnix°®ºÃÕß¼ÒÔ°unix-cd.com ¸üÐÂʱ¼ä£º 2006Äê05ÔÂ22ÈÕ
ÎÞÂÛÊÇÔÚLinux»¹ÊÇÔÚUnix»·¾³ÖУ¬make¶¼ÊÇÒ»¸ö·Ç³£ÖØÒªµÄ±àÒëÃüÁî¡£²»¹ÜÊÇ×Ô¼º½øÐÐÏîÄ¿¿ª·¢»¹ÊÇ°²×°Ó¦ÓÃÈí¼þ£¬ÎÒÃǶ¼¾³£ÒªÓõ½make»òmake install¡£ÀûÓÃmake¹¤¾ß£¬ÎÒÃÇ¿ÉÒÔ½«´óÐ͵Ŀª·¢ÏîÄ¿·Ö½â³ÉΪ¶à¸ö¸üÒ×ÓÚ¹ ......
general setup
---> enable deprecated sysfs features which may confuse old
userspace tools
insmod: error inserting '/lib/dm-region-hash.ko' : -1 File exists
½â¾ö
cp /boot/initrd-2.6.x.img /tmp
cd /tmp
mkdir newinitrd
cd newinitrd/
zcat ../initrd-2.6.x.img |cpio -i
ÏÂ ......
ÊäÈëÃüÁ
sudo gedit /etc/fonts/conf.d/49-sansserif.conf
ÔÎĵÄÄÚÈÝÊÇ£º
Html´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://kmplayer.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://kmplayer.javaeye.com/javascripts/syntaxhighlighter/clipboar ......