linux pppoe
ÊÖÍ·Óиöep9315µÄ°å£¬½ñÌìͻȻÏëÆðÅÜÒ»ÏÂadslÉÏÍø¡£ÍíÉÏ»ØÀ´¾Í¿ªÊ¼¸ã¡£
´Ó10µãµ½ÏÖÔÚ£¬ÖÕÓÚÄܹ»ÅÜÆðÀ´¡£
¸ø´ó¼Ò½è¼øһϡ£
1.±àÒëÄںˣ¬°ÑpppµÄÄÇЩѡÏîÑ¡ÉÏ¡£ (ÎÒÓÃ2.6.8.1µÄkernel£¬cirrus µÄpatch)
2.libpcap-0.9.1 Õâ¸ö°üÊÇpppdÐèÒªµÄ¡£
./configure CC=arm-linux-gcc CFLAGS=-msoft-float --target=arm-linux --host=i686-linux --with-pcap=linux --prefix=/usr/local/arm/3.4
make; make install
3. ppp-2.4.3
./configure --target=arm-linux --enable-arm --prefix=/cirrus/usr
make CC=arm-linux-gcc; make install
Ìæ»»Makefile£¨ºÜ¶àĿ¼Ï¶¼ÓУ©ÖеÄÄÇЩinstall -s Ñ¡ÏÒòΪÕâ¸öÑ¡Ïî»áÓõ½stripÕâ¸öÃüÁµ«ÊÇhost°æ±¾²»ÄܶÔarm bin²Ù×÷£¬¶øÎÒ²»ÖªµÀÔõôarm-linux-strip£¬ÄÇλ֪µÀµÄ˵һÏ¡£
4.rp-pppoe-3.8
./configure --host=arm-linux --prefix=/cirrus
make; make install
×îÖÕÔÚ/cirrus/sbinÏ°²×°ÁËpppd pppoe pppoe-setup pppoe-start pppoe-stopµÈ¡£
ÆäÖÐpppoeÊÇ¿ÉÖ´ÐÐÎļþ£¬pppoe-xxxÊǽű¾¡£
ÓÉÓÚÎÒµÄ./configureÃüÁîÓеãÎÊÌ⣬ÐèÒªÐÞ¸ÄÒ»ÏÂpppoe-setup pppoe-start pppoe-connectÖеÄÖ´Ðз¾¶¡£ÎÒ²ÂÏë¿ÉÒÔÓÃ--exec-prefixÀ´½â¾ö£¬²»¹ýÏë˯¾õÁË£¬½ñÌì²»ÏëÊÔÁË¡£
5.±ðÍüÁËÔÚ/cirrus/devÏ mknod ppp c 108 0
6.pppoe-setup °´ÕÕʵ¼ÊÇé¿öÉèÖÃÓû§ÃÜÂëDNSµÈ
7.pppoe-start
8.ping gznet.com ....................... OK
9. Èç¹ûÓÐÎÊÌ⣬±ÈÈç..........TIMEOUTµÈ´íÎ󣬿ÉÒÔ
export DEBUG=1
pppoe-start
È»ºóÔÚ/cirrus/tmp/ppp........µÄĿ¼Ï»áÓÐÒ»¸ödebugµÄÐÅÏ¢Îļþ£¬×Ðϸ¿´¿´Ê²Ã´ÎÊÌâ¡£
¾ÍÕâô¶àÁË¡£Ï£Íû´ó¼ÒÀ´²¹³ä¡£
×îºó£¬ËµÃ÷һϣºÄǸö/cirrusÊÇÔÚÎÒµÄlinux hostÉÏÓÃÀ´´æ·ÅÄ¿±ê°åÎļþϵͳµÄĿ¼¡£Ä¿±ê°åʹÓÃnfsÀ´mount Õâ¸öĿ¼²¢×÷Ϊrootfs¡£
Ïà¹ØÎĵµ£º
LinuxϵÄsvnÃüÁî svnÔÚlinuxϵÄʹÓã¨svnÃüÁ
1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn add test.php(Ìí¼Ótest.php)
svn add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓ ......
ѧϰlinuxϵÄc/c++±à³Ì
1£¬ÏÈÓÐlinux»·¾³
´îminGWºÍcygwin¶¼ÓеãÂé·³£¬×î×î¼òµ¥µÄ°ì·¨»¹ÊÇ×°¸öÕæÕýµÄlinux£¬ÓÃÐéÄâ»úÒ²ºÃ£¬ÔÚÍøÂçÉϵÄÁíһ̨»úÆ÷Ò²ºÃ¡£ÕâÑù²»½ö¿ì£¬¶øÇÒÄãÓÐÁËÕæÕýµÄ»·¾³¡£
2.»áC/C++ÓïÑÔ£¨¹À¼ÆÄã»áµÄ£©
3.ÈëÃŽ׶ÎÊìϤgccÃüÁîÐУ¬×î»ù±¾µÄ²ÎÊý£¬È磬-g,-W,-O,-o,-c ½¨Òé¿´man gcc(ºÜ´óÕÒÏ ......
ÓüÇʱ¾Ð´C³ÌÐò£¬²¢±àÒë¡£ ¸Õ×°ºÃµÄϵͳ
ÖÐÒѾÓÐGCCÁË£¬µ«ÊÇÕâ¸öGCCʲôÎļþ¶¼²»ÄܱàÒ룬ÒòΪûÓÐһЩ±ØÐëµÄÍ·Îļþ£¬ËùÒÔÒª°²×°build-essentialÕâ¸öÈí¼þ
°ü£¬°²×°ÁËÕâ¸ö°ü»á×Ô¶¯°²×°ÉÏg++,libc6-dev,linux
-libc-dev,libstdc++6-4.1-devµÈһЩ±ØÐëµÄÈí¼þºÍÍ·ÎļþµÄ¿â¡£
¿ÉÒÔÔÚÐÂÁ¢µÃÀïÃæË ......
ÕâƪÈÕÖ¾»¹ÊÇÏÈ´ÓÒ»¸öÄܹ»ÔËÐÐÆðÀ´µÄÀý×Ó³ö·¢£¬Ò»µ©ÄÜ˳ÀûµÄ¿´µ½³ÌÐòµÄ³É¹¦ÔËÐУ¬ÄÇô½ÓÏÂÀ´µÄʼþÎÒÏëÓ¦¸ÃÊÇÎÊΪʲôÁË£¿ËƺõÕâÑù¸ü¼ÓÈÝÒ×Àí½âºÍÕÆÎÕ¡£
¶ÔÓÚsocket³ÌÐòµÄ¸ÅÄîÕâÀï¾Í²»¶àдÁË£¬µ«ÎÒÏàÐÅ£¬Èç¹ûÄÜ¿´ÍêÕâÕûƪÎÄÕ£¬ÎÒÏàÐŲ»»áÔÙÓÐÕâÑùµÄÒÉÎʵġ£
ÏÂÃ潫±àдһ¸öc/s½á¹¹µÄ³ÌÐò£¬Ö÷Òª¹¦ÄÜÊÇclient½«Ïòserver·¢Ë ......
gcc£¬gdbµÄʹÓÃ
×÷Õߣºzccst
ÉÏÖÜÎåÔÚͼÊé¹Ý½èÁËÒ»±¾¡¶LinuxÈí¼þ¹¤³Ìʦ£¨CÓïÑÔ£©ÊµÓý̡̳·£¬ÈÃÎÒÊÕ»ñÁ¼¶à¡£²»½ö½öÊÇÊéÖеÄ֪ʶ£¬»¹ÓжÔ֪ʶÌåϵºÍ¼Ü¹¹ÈÏʶµÄÉîÈë¡£
LinuxÏÂC¿ª·¢£º
1£¬gcc,gdbµÄʹÓá£
2£¬MakefileÎļþµÄ±àд¡£
3£¬ÏµÍ³º¯ÊýµÄʹÓÃ
4£¬Îļþ²Ù×÷
5£¬´®ÐÐͨÐÅ
6£¬½ø³Ì¿ØÖÆ
7£¬½ø³Ì¼ ......