ǶÈëʽLinuxÖгÌÐò×ÔÆô¶¯ÎÊÌâ
ÂòÀ´µÄ¿ª·¢°åÒ»Æô¶¯¾Í½øÈëQtopiaµÄ½çÃæ£¬ºÜÏñ¸öÊÖ»ú£¬µ«ÎÒÏëÈÃËü¿ª»ú¾ÍÖ´ÐÐÎҵijÌÐò£¬Ôõô°ìÄØ£¿
ÔÚÍøÉϲéÕÒ¹ØÓÚLinuxÆô¶¯µÄÎÄÕ£¬·¢ÏÖÕâ¸öÎļþÅäÖÃÁËÆô¶¯Ëù×öµÄ²Ù×÷£º/etc/inittab.
# This is run first except when booting
::sysinit:/etc/init.d/rcS
# Start an "askfirst" shell on the console
# shell routine
::askfirst:/bin/bash
# Stuff to do when restarting the init process
# init routine
::restart:/sbin/init
# a routine
::once:/usr/sbin/inetd
::once:/usr/etc/rc.local
# Stuff to do before rebooting
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
×Ðϸ¿´Õâ¶Î´úÂë·¢ÏÖºÜÓÐÒâ˼£¬Ó﷨ͦ¼òµ¥£ºsysinit£¨ÏµÍ³³õʼ»¯£©Ê±Ö´ÐÐ/etc/init.d/rcS£»askfirst£¨²»ÖªµÀʲôÒâ˼£©Ê±Ö´ÐÐ/bin/bash£»restart£¨ÖØÆô£©Ê±Ö´ÐÐ/sbin/init£»once£¨Ö´ÐÐÒ»´Î£¬ÎҲµģ¬ÎÒÖ¸Õý£©µÄÓÐ/usr/sbin/inetdºÍ/usr/etc/rc.local£»°´ÏÂCtrl+Alt+DelʱִÐÐ/sbin/reboot£»shutdown£¨¹Ø»úʱִÐУ©/bin/umount¡£
Á˽âÁËÕâЩ£¬ÎÒ¾ÍÒ»¸öÒ»¸öÎļþÈ¥Éî¶È±éÀú£¬×îÖÕÕÒµ½ÁË——/usr/etc/rc.local
#!/bin/bash
. /usr/etc/profile
/sbin/ifconfig lo 127.0.0.1 up
#/sbin/ifconfig eth0 192.168.2.223 netmask 255.255.255.0 up
#/bin/route add default gw 192.168.2.1 eth0
#/sbin/inetd
/usr/sbin/makelinks
source /.bashrc
/bin/cp -rf /Qtopia/qtopia-free-1.7.0/wjluv/* /tmp/
/bin/cp -rf /Qtopia/ppp/resolv.conf /tmp
/bin/mkdir /tmp/udisk
/bin/mkdir /tmp/images
/bin/mkdir /tmp/flashdisk
/bin/mkdir /tmp/sdcard
cd /tmp
. /testshell
×îÏÂÃæÒ»ÐоÍÊÇÕýÖ÷ÁË£¬testshellÖаüº¬ÁËÆô¶¯qtopiaµÄ½Å±¾£¬Ð޸ĺóÉÕÈ뿪·¢°å£¬³É¹¦¡£
½«Ç¶ÈëʽÉ豸µÄÎļþϵͳ¹ÒÔØµ½¼ÆËã»úʱ£¬Òª×¢Òâ·¾¶ÎÊÌ⣬²»ÒªÊ¹ÓÃvim /usr/etc/rc.localÕâÑùµÄÃüÁÄã»á´ò¿ªÁ˱¾µØ¼ÆËã»úµÄrc.local£¬ÎÒ¾ÍÊÇÒòΪÕâ¸öÎÊÌâßäÁËÒ»ÉÏÎç¡£
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ÔÚ UNIX ϵͳÖУ¬Óû§´´½¨Ò»¸öнø³ÌµÄΨһ·½·¨¾ÍÊǵ÷ÓÃϵͳµ÷Óà fork¡£µ÷ Óà fork µÄ½ø³Ì³ÆÎª¸¸½ø³Ì£¬¶øÐ´´½¨µÄ½ø³Ì½Ð×ö×Ó½ø³Ì¡£ÏµÍ³µ÷ÓõÄÓï·¨¸ñʽ£º
pid = fork();
ÔÚ´Óϵͳµ÷Óà fork Öзµ»ØÊ±£¬Á½¸ö½ø³Ì³ýÁË·µ»ØÖµ pid ²»Í¬Í⣬¾ßÓÐÍêȫһÑùµÄÓû§¼¶ÉÏÏÂÎ ......
×ܽ᣺1¡¢80X86ʹÓÃС¶Ë·¨£¬ÍøÂç×Ö½ÚÐòʹÓôó¶Ë·¨¡£
2¡¢¶þ½øÖƵÄÍøÂç±à³ÌÖУ¬´«ËÍÊý¾Ý£¬×îºÃÒÔunsigned char, unsigned short, unsigned int
À´´¦Àí£¬ unsign ......
1. ÊäÈë·¨£ºIbus¡£·Ç³£ºÃÓ㬿ÉÒÔ¼ÇÒä´ÊÓïµÄʹÓÃÆµÂÊ£¬Ò²ÄÜÖÇÄÜÆ´Òô£¬¿ÉÒÔ°²×°¶àÖÖÊäÈë·¨£¬ÄÚǶ¡£
2. ä¯ÀÀÆ÷£ºfirefox¡£
3. Îļþ²îÒì±È½ÏÆ÷£º meld diff viewer¡£
4. office: Ê×µ±Æä³åµÄopen office£¡£¡
5. ÉãÏñÍ·£º cheese webcam booth¡£ÅÄÕÕ»¹ÓÐģʽѡÔñ¡£
6. Îļþͬ²½£ºGrsyn ......