linuxһЩ¿âÎļþµÄ½»²æ±àÒë
²Î¿¼³ö´¦£ºÒ»²½²½½ÌÄã½»²æ±àÒëǶÈëʽlinux GUI-directfb+gtk
Ò»¡¢×¢Òâµã£º
1¡¢ÔÚ./configureµÄ--hostµÄÑ¡Ïî¿ÉÒÔΪarm-linux»òarm-none-linux-gnueabi£¨±àÒ빤¾ßcross-4.3.2£¬Ò²ÊDZ¾´ÎÓõıàÒ빤¾ß£¬ÔÚ°²×°Ä¿Â¼ÏµÄ/binÎļþ¼ÐÀï¿ÉÒÔÓÃls -l¿´µ½±àÒ빤¾ß³ýÁËarm-linux-gccºÍarm-none-linux-gnueabi-gcc,arm-linux-g++ºÍarm-none-linux-gnueabi-g++²»Í¬Í⣬ÆäÓàµÄ¶¼Ïàͬ£¬¶¼ÊÇÁ¬½Ó£©£¬ËûÃÇÁ½¸öÊDz»Í¬µÄ£¬Ç°ÕßòËƲÉÓÃeabi£¬ºóÕß²ÉÓÃoabi£¨ÐÂÊÖÒ»¸ö£¬²Â²âµÄ£©.Õâ¹Øϵµ½Ê¹ÓÃÕâЩ¿âµÄ³ÌÐòÔÚ°åÉϵÄÎÞ·¨ÔËÐÐ(³öÏÖµÃ×î¶àµÄÊÇÔÚ°åÔËÐгÌÐòʱ»á³öÏÖ£ºillegal instruction)£¬Èç¹ûÄں˴ò¿ª¶ÔEABIµÄÖ§³Ö£¬ÄÇô×îºÃʹÓÃEABI½øÐбàÒ루ÎҵİåÉÏlinuxÄں˰汾ÊÇ2.6.29£¬ÒѾ´ò¿ªÁ˶ÔEABIµÄÖ§³Ö£¬ÇÒqtopia2.20µÄÎļþϵͳҲ֧³ÖEABI£©£¬ËùÒÔ²ÉÓÃarm-linux½øÐбàÒë¡£
¾ßÌå¿ÉÒԲο¼£º
arm Linux 2.6¸ß°æ±¾ÖеÄϵͳµ÷Ó÷½Ê½
GNU arm »ã±àÇóÖú
2¡¢Èç¹û²ÉÓÃÒ»ÖÖ±àÒëÆ÷½øÐбàÒ룬ÄÇô±»ÒÀÀµµÄÄǸö¿âÒ²Ò»ÑùÒªÓÃͬÖÖ±àÒëÆ÷½øÐбàÒë¡£
¶þ¡¢ÉèÖû·¾³±äÁ¿£¨±¾ÈËÓõÄÊÇubuntu9.04£©
export SOURCE_PATH=/home/evix/src
export PREFIX=/opt/arm
export LDFLAGS=-L$PREFIX/lib
export CFLAGS="-g -I$PREFIX/include"
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig
Èý¡¢±àÒë¿âÎļþ£¨££ÔÚ×îÇ°Ç°ÃæµÄ±íʾעÊÍ£©
1.½»²æ±àÒëtslib£¬ ÒÀÀµµÄ¿â£º ÎÞ
=========¿ªÊ¼½»²æ±àÒëtslib=========
°²×°±àÒë¹ý³ÌÐèÓõ½µÄ³ÌÐò
apt-get install autoconf£¨»òautoconf2.13£©
apt-get install automake
apt-get install libtool
cd ${BUILDDIR}
tar xzvf ${SOURCE_PATH}/tslib-1.4.tar.gz
cd tslib
source autogen.sh
./configure --host=arm-linux --prefix=$PREFIX ac_cv_func_malloc_0_nonnull=yes
make
make install
2.½»²æ±àÒëglib£¬ ÒÀÀµµÄ¿â£º ÎÞ
=========¿ªÊ¼½»²æ±àÒëglib=========
cd ${BUILDDIR}
tar xzvf ${SOURCE_PATH}/glib-2.22.2.tar.gz
cd glib-2.22.2
echo "glib_cv_stack_grows=no" > arm-linux.cache
echo "glib_cv_has__inline=yes" >> arm-linux.cache
echo "glib_cv_working_bcopy=no" >> arm-linux.cache
echo "glib_cv_uscore=no" >> arm-linux.cache
echo "ac_cv_func_posix_getpwuid_r=yes" >> arm-linux.cache
echo "ac_cv_func_posix_getgrgid_r=yes" >> arm-linux.cache
./config
Ïà¹ØÎĵµ£º
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
·¢Õ¹
Linux
µÄ×îÖÕÄ¿µÄÊÇ´ø¸øÈËÃÇÒ»¸öÍêÃÀµÄ×ÀÃ棨
Desktop
£©
,
ÓÃÓÚ¹¤×÷ºÍÓéÀÖ£¬ÆäÓàÊÂÇ鶼ÊǵڶþλµÄ¡£Õ⻰˵µÃÓеã¾ø¶Ô£¬µ«ÊÇ£¬ÏÖÔÚ²»µÃ²»Õâô˵¡£ÎªÊ²Ã´£¿
&n ......
Linux¸ùĿ¼”/“ϸ÷¸öϵͳÎļþ¼ÐµÄº¬ÒåºÍÓÃ;
/boot ¸ÃĿ¼ĬÈÏÏ´æ·ÅµÄÊÇLinuxµÄÆô¶¯ÎļþºÍÄںˡ£
/initrd ËüµÄÓ¢Îĺ¬ÒåÊÇboot loader initialized RAM disk,¾ÍÊÇÓÉboot loader³õʼ»¯µÄÄÚ´æÅÌ¡£ÔÚlinuxÄÚºËÆô¶¯Ç°£¬boot loader»á½«´æ´¢½éÖÊ(Ò»°ãÊÇÓ²ÅÌ)ÖеÄinitrdÎļþ¼ÓÔص½Äڴ棬ÄÚºËÆô¶¯Ê±»áÔÚ·ÃÎÊÕæÕýµÄ¸ ......
linuxµÄchmodÓëchownÃüÁîÏê½â
linuxµÄchmodÃüÁîʹÓÃÏê½â
ʹÓ÷½Ê½ : chmod [-cfvR] [--help] [--version] mode file...
˵Ã÷ : Linux/Unix µÄµµ°¸´æȡȨÏÞ·ÖΪÈý¼¶ : µµ°¸ÓµÓÐÕß¡¢Èº×é¡¢ÆäËû¡£ÀûÓà chmod ¿ÉÒÔ½åÒÔ¿ØÖƵµ°¸ÈçºÎ±»ËûÈËËù´æÈ¡¡£
mode : ȨÏÞÉ趨×Ö´®£¬¸ñʽÈçÏ : [ugoa...][[+-=][rw ......
ͨ¹ýcÓïÑÔ»ù´¡¿â´Ó»ñÈ¡linuxÓû§µÄ»ù±¾ÐÅÏ¢¡£
1¡¢Ê¹ÓÃstruct passwd¹ÜÀíÓû§ÐÅÏ¢¡£
struct passwd
{
char *pw_name; /* Óû§µÇ¼Ãû */
char *pw_passwd;   ......
Linux sort ÃüÁîÏê½â
2007-06-23 02:34
Óï·¨¸ñʽ
sort [ -A ] [ -b ] [ -c ] [ -d ] [ -f ] [ -i ] [ -m] [ -n ] [ -r ] [ -u ] [ -o OutFile ]
[ -t Character ] [ -T Directory ] [ -y [ Kilobytes ] ] [ -z RecordSize ] [ [ + [ FSkip ]
[ .CSkip ] [ b ] [ d ] [ f ] [ i ] [ n ] [ r ] ] [ - [ FSkip ] [ .C ......