×î½üÔÚ×ösamsung
s3c2416
ÔÚlinuxϵÄspiÇý¶¯³ÌÐò£¬²âÊÔÁËÏÂsamsung·¢²¼µÄspiµÄÄÚºËÔ´´úÂ룬ÎÞÂÛÊDzÉÓÃdma»òÕß·Çdmaģʽ¶¼ÎÞ·¨¹¤×÷¡£ÔĶÁ¸ÃÇý¶¯´úÂ룬·¢ÏÖ
ÕâÂëÓ¦¸ÃÊÇÒ»¸öδÍê³ÉµÄ°æ±¾£¬´æÔںܶàµÄbug¡£ÓÚÊÇÔÚÕâ¸ö°æ±¾µÄ»ù´¡ÉϽøÐÐÐ޸ģ¬ÖØдһ¸ö¿ÉÓõġ¢Ö§³ÖÈ«Ë«¹¤µÄͨѶµÄÇý¶¯¡£Ä¿Ç°²âÊÔ»ù±¾Äܹ»Õý³£¹¤×÷£¬
Ö§³Ö°ëË«¹¤¡¢È«Ë«¹¤¡¢spiÓ²¼þÖжÏģʽºÍdmaģʽ¡£
¶Ôhspi-s3c2443.[ch]Ô´Îļþ¸ù¾ÝÊý¾Ý·¢ËͺͽÓÊÕµÄÁ÷³Ì½øÐзÖÎö£¬ÔÚδ²ÉÓÃdmaģʽÏ£¬º¯Êýµ÷ÓõÄÁ÷³Ì£ºs3c_spi_xfer
-> s3c_spi_doxfer -> s3c_spi_message_start ->
down_interruptible(&spi->sem)£¬µ½ÕâÀӲ¼þ»á²úÉúspiÖжϣ¬½øÈëµ½ÖжϷþÎñ³ÌÐò
s3c_spi_irq ÖУ¬ÖжϺ¯Êýµ÷Óà spi_s3c_irq_nextbyte
½øÐÐÊý¾Ý·¢ËÍ£¬¸ù¾Ýspi->stateµÄÖµ×öÏàÓ¦µÄ²Ù×÷£¬Êý¾Ý·¢ËÍ»ò½ÓÊÕÍê³Éºó£¬µ÷Óà s3c_spi_stop
¹Ø±Õspi£¬²¢up(&spi->sem)£¬³ÌÐòÁ÷³Ì»Øµ½ÁËs3c_spi_doxferº¯ÊýµÄ
down_interruptible(&spi->sem)£¬º¯Êý·µ»ØÍ˳ö£¬Ò»¸öspiµÄÊý¾ÝÊÕ·¢Á÷³ÌÍê³É¡£
&nb ......
×î½üÔÚ×ösamsung
s3c2416
ÔÚlinuxϵÄspiÇý¶¯³ÌÐò£¬²âÊÔÁËÏÂsamsung·¢²¼µÄspiµÄÄÚºËÔ´´úÂ룬ÎÞÂÛÊDzÉÓÃdma»òÕß·Çdmaģʽ¶¼ÎÞ·¨¹¤×÷¡£ÔĶÁ¸ÃÇý¶¯´úÂ룬·¢ÏÖ
ÕâÂëÓ¦¸ÃÊÇÒ»¸öδÍê³ÉµÄ°æ±¾£¬´æÔںܶàµÄbug¡£ÓÚÊÇÔÚÕâ¸ö°æ±¾µÄ»ù´¡ÉϽøÐÐÐ޸ģ¬ÖØдһ¸ö¿ÉÓõġ¢Ö§³ÖÈ«Ë«¹¤µÄͨѶµÄÇý¶¯¡£Ä¿Ç°²âÊÔ»ù±¾Äܹ»Õý³£¹¤×÷£¬
Ö§³Ö°ëË«¹¤¡¢È«Ë«¹¤¡¢spiÓ²¼þÖжÏģʽºÍdmaģʽ¡£
¶Ôhspi-s3c2443.[ch]Ô´Îļþ¸ù¾ÝÊý¾Ý·¢ËͺͽÓÊÕµÄÁ÷³Ì½øÐзÖÎö£¬ÔÚδ²ÉÓÃdmaģʽÏ£¬º¯Êýµ÷ÓõÄÁ÷³Ì£ºs3c_spi_xfer
-> s3c_spi_doxfer -> s3c_spi_message_start ->
down_interruptible(&spi->sem)£¬µ½ÕâÀӲ¼þ»á²úÉúspiÖжϣ¬½øÈëµ½ÖжϷþÎñ³ÌÐò
s3c_spi_irq ÖУ¬ÖжϺ¯Êýµ÷Óà spi_s3c_irq_nextbyte
½øÐÐÊý¾Ý·¢ËÍ£¬¸ù¾Ýspi->stateµÄÖµ×öÏàÓ¦µÄ²Ù×÷£¬Êý¾Ý·¢ËÍ»ò½ÓÊÕÍê³Éºó£¬µ÷Óà s3c_spi_stop
¹Ø±Õspi£¬²¢up(&spi->sem)£¬³ÌÐòÁ÷³Ì»Øµ½ÁËs3c_spi_doxferº¯ÊýµÄ
down_interruptible(&spi->sem)£¬º¯Êý·µ»ØÍ˳ö£¬Ò»¸öspiµÄÊý¾ÝÊÕ·¢Á÷³ÌÍê³É¡£
&nb ......
ÖÐÎÄ°æÊéÄ¿
¡¶Apache CookbookÖÐÎİ棨µÚ¶þ°æ£©¡· New!
¡¶Linux Networking CookbookÖÐÎÄ°æ¡· New!
¡¶Shell½Å±¾Ñ§Ï°Ö¸ÄÏ¡· New!
¡¶×¿ÓгÉЧµÄ³ÌÐòÔ±¡· New!
¡¶´úÂëÖ®ÃÀ¡· New!
¡¶Ç¶ÈëʽӲ¼þÉè¼Æ£¨µÚ¶þ°æ£©¡· New!
¡¶LPI LinuxÈÏ֤ȨÍþÖ¸ÄÏ£¨µÚ¶þ°æ£©¡· New!
¡¶LINUX SERVER HACKS£¨¾í¶þ£©¡· New!
¡¶BSD Hacks¡· New!
¡¶GNU MakeÏîÄ¿¹ÜÀí£¨µÚÈý°æ£©¡· New!
¡¶CVS¾«Ëè¡· New!
¡¶LINUXËæÉíÖ¸ÄÏ¡· New!
¡¶LinuxÉ豸Çý¶¯³ÌÐò£¨µÚÈý°æ£©¡· New!
¡¶Linux×ÀÃæÓ¦Óá· New!
¡¶¹¹½¨Ç¶ÈëʽLinuxϵͳ¡· New!
¡¶sedÓëawk£¨µÚ¶þ°æ£©¡·
¡¶Linux Server Hacks¡·
¡¶LinuxÉ豸Çý¶¯³ÌÐò¡·
¡¶UNIX²Ù×÷ϵͳ£¨µÚËİ棩¡·
¡¶LINUX¼¼ÊõÊֲᣨµÚÈý°æ£©¡·
¡¶ÏµÍ³ÐÔÄÜÓÅ»¯£¨µÚ¶þ°æ£©¡·
¡¶LinuxȨÍþÖ¸ÄÏ£¨µÚÈý°æ£©¡·
¡¶LinuxÍøÂç¹ÜÀíÔ±Ö¸ÄÏ£¨µÚ¶þ°æ£©¡·
¡¶Ñ§Ï°bash£¨µÚ¶þ°æ£©¡·
¡¶Ñ§Ï°GNU Emacs£¨µÚ¶þ°æ£©¡·
¡¶ÊµÕ½Samba¡·
¡¶UNIX³¬¼¶¹¤¾ß£¨µÚ¶þ°æ£©ÉÏ¡¢ÏÂ¾í¡·
¡¶UNIXϵͳ±à³Ì©¤©¤»ùÓÚSVR4¡·
¡¶Unix±¸·ÝÓë»Ö¸´¡·
¡¶UNIX¼¼ÊõÊֲᣨµÚÈý°æ£©¡·
¡¶UNIXϵͳ¹ÜÀí£¨µÚ¶þ°æ£©¡·
¡¶ÉîÈëÀí½âLinuxÄںˣ¨µÚÈý°æ£©¡· New!
¡¶LINUXÉ豸Çý¶¯³ÌÐò£¨µÚ¶þ°æ£©¡·
¡¶LinuxÍøÂç¹ÜÀíÔ±Ö¸ÄÏ£ ......
ÈçºÎÓÃÓï¾äɱËÀËùÓÐoracle´ø(LOCAL=NO)µÄ½ø³Ì£¿
·½·¨Ò»£º(½øÈëoracleÓû§ÏÂ)
$ a=`ps -ef |grep oracle$ORACLE_SID|grep LOCAL=NO |awk '{print $2}'`
»òÕß (È¥³ýµ±Ç°grep½ø³Ì)
$ a=`ps -ef |grep oracle$ORACLE_SID|grep LOCAL=NO |grep -v grep|awk '{print $2}'`
$ echo $a
$ kill -9 $a
·½·¨¶þ£º£¨Ö±½Óɱ£©
$ ps -ef |grep oracle$ORACLE_SID|grep LOCAL=NO|awk '{print $2}'|xargs kill -9 ......
-----------------------------------------------------------
#!/bin/bash
#
# Startup script for the tomcat
#
# chkconfig: 345 95 15
# description: tomcat service script
#
# Source function library.
. /etc/rc.d/init.d/functions
TOMCAT_HOME=/home/tomcat
RETVAL=0
checkjava(){
if [ -z "$JAVA_HOME" ]; then
export JAVA_HOME=/home/jdk1.6.0_07
fi
}
start(){
checkjava
checkrun
if [ $RETVAL -eq 0 ]; then
echo "Starting tomcat"
#¹Ø¼ü¾ÍÔÚÇл»Óû§×Å£¬Ã»ÓÐÏÂÃæÕâ¾ä¾ÍÎÞ·¨Õý³£Æô¶¯
su - root -c "$TOMCAT_HOME/bin/startup.sh"
touch /var/lock/subsys/tomcat
else
echo "tomcat allready running"
fi
}
stop(){
checkjava
checkrun
if [ $RETVAL -eq 1 ]; then
echo "Shutting down tomcat"
su - root-c "$TOMCAT_HOME/bin/shutdown.sh"
#while [ $RETVAL -eq 1 ]; do
# sleep 5
# checkrun
#done
rm -f /var/lock/subsys/tomcat
else
echo "tomcat not running"
fi
checkrun
}
checkrun(){
ps ax --width=1000 | grep "[o]rg.apache.catalina.startup.Bootstrap start" | awk ......
Ò»¡¢bash shellµÄ·ÖÀࣺ
µÇ¼shell:Óû§µÇ¼linuxÖ÷»úʱȡµÃµÄshell.
·ÇµÇ¼shell£ºÓû§µÇ¼linuxÖ÷»úºó£¨È¡µÃÁ˵Ǽshell£©ÓÉÓÚÐèÒªÆô¶¯Ö´ÐеÄshell,È磺ÓÃsuÇл»Óû§ºóÈ¡µÃµÄshell;ÔڵǼshellÖÐ
Æô¶¯µÄ csh shell;ͼÐÎÓû§½çÃæÏÂÆô¶¯µÄÖն˵ȡ£
¶þ¡¢¶ÔÓڵǼshell
1¡¢Ä¬ÈÏÇé¿öÏ£¬ÔÚshellϸıäµÄ±äÁ¿¡¢umask¡¢alias¡¢Ö»Ôڴ˴εǼÖÐÓÐЧ¡£Ò»µ©logoutºóÔÙlogin,Ôò É趨»Ö¸´³õʼֵ¡£
2¡¢Ò»¸öͨ¹ýµÇ¼¶øµÃµ½µÄshell£¬Ò»°ãÊÇÓû§µÄ³õʼshell.
3¡¢ÔڵǼshellϼ¤»îµÄshell²ÉÓõǼµÄshellµÄ»·¾³É趨
4¡¢µÇ¼shell´ÓÅäÖÃÎļþÖжÁÈ¡Æä»·¾³É趨¡£
5¡¢ÅäÖÃÎļþ
È«¾ÖÅäÖÃÎļþ
/etc/profile:´ËÎļþΪϵͳµÄÿ¸öÓû§ÉèÖ ......
Linux Îļþϵͳ¸ÅÊö
×÷Õߣº±±ÄÏÄϱ±
À´×Ô£ºLinuxSir.Org
ÕªÒª£º ±¾ÎÄͨ¹ýÎļþϵͳµÄ¶¨Òå˵Æð£¬È»ºóͨ¹ýÒýÎļòµ¥µÄ½éÉÜÁËÒ»ÏÂÎļþϵͳÀàÐÍ£»¶ÔLinux³£ÓõÄext2¡¢ext3¼°reiserfs ¸ù¾Ý±¾ÈËʹÓþÑéÒ²·º·ºµÄ̸ÁË̸£¬µ«²¢²»ÊÇרҵµÄ¡£ÈçºÎÔĶÁ±¾ÎÄ£¬»¹ÊÇÓÃÂí¿Ë˼ÀíÂÛ¸æËßÎÒÃǵķ½·¨£ºÒ»·ÖΪ¶þ£¬±ß¿´±ßÅú°É£»
Ŀ¼Ë÷Òý
Ò»¡¢Ê²Ã´ÊÇÎļþϵͳ £¨Filesystem£©
1£©´ÅÅ̵ķָ
2£©ÎļþϵͳµÄ´´½¨£º
3£©¹ÒÔØ£¨mount£©£º
4£©Îļþϵͳ¿ÉÊӵļ¸ºÎ½á¹¹£º
1¡¢³£¼û¶¨Òå·½·¨£»
2¡¢Àí½âÎļþϵͳµÄ¹Ø½¡´Ê£»
¶þ¡¢ÎļþϵͳµÄÀàÐÍ£»
Èý¡¢Linux ÎļþϵͳµÄÑ¡ÔñºÍ°²È«ÐÔ£»
1£©ext2 Îļþϵͳ£»
2£©ext3 Îļþϵͳ£ºÊÇÓÉext2Îļþϵͳ·¢Õ¹¶øÀ´£»
3£©reiserfs Îļþϵͳ£»
4£©ext3¡¢reiserfs¡¢ext2 Îļþϵͳ¶Ô´óÎļþÖ§³ÖµÄ¶Ô±È£»
1£©ext2¡¢ext3ºÍreiserfs Îļþϵͳ×Ô¶¯ÐÞ¸´ÄÜÁ¦¶Ô±È£»
2£©ext2¡¢ext3ºÍreiserfs ·´É¾³ý¹¦ÄܶԱȣ»
1¡¢Linux²Ù×÷ϵͳ°²×°¹ý³ÌÖеÄÎļþϵͳµÄÑ¡Ôñ£»
2¡¢ext2¡¢ext3¼°reiserfsÎļþϵͳµÄ°²È«ÐÔ£»
ËÄ¡¢Linux Ö§³ÖµÄÎļþϵͳ£»
Îå¡¢ÎļþϵͳµÄÌØÐÔ£»
Áù¡¢ÔÚLinuxÖУ¬ÎļþϵͳµÄ´´½¨ºÍ¹ÒÔØ£»
Æß¡¢¹ØÓÚ±¾ÎÄ£»
°Ë¡¢²Î¿¼Îĵµ£»
¾Å¡¢Ïà¹ØÎĵµ ......