LinuxÄÚºËѧϰ±Ê¼ÇÖ®Íø¿¨Çý¶¯µÄÏêϸ·ÖÎö
ѧϰӦ¸ÃÊÇÒ»¸öÏÈ°ÑÎÊÌâ¼òµ¥»¯£¬ÔÚ°ÑÎÊÌ⸴ÔÓ»¯µÄ¹ý³Ì¡£Ò»¿ªÊ¼¾Í×ÅÊÖ´¦Àí¸´ÔÓµÄÎÊÌ⣬ÄÑÃâÈà ÈËÓÐÐľªµ¨²ü£¬×½½ó¼ûÖâµÄ¸Ð¾õ¡£¶ÁLinuxÍø¿¨Çý¶¯Ò²ÊÇÒ»Ñù¡£Ädz¤³¤µÄÔ´Âë¼ÐÔÓ×ÅÄÇЩÎÒÃÇÄ°ÉúµÄ±äÁ¿ºÍ·ûºÅ£¬Íû¶øÉúη±ãÊÇÀíËùµ±È»µÄÁË¡£²»Òªµ£ÐÄ£¬ÊÂÇé ×ÜÓнâ¾öµÄ°ì·¨£¬ÏÈ°ÑһЩÎÒÃǹܲ»×ŵĴúÂëÇиî³öÈ¥£¬ÁôϱØÐëµÄ²¿·Ö£¬°Ñ¿ò¼ÜÕÆÎÕÁË£¬ÄÄÆäËûµÄÊÂÇé×ÔÈ»¾ÍË®µ½Çþ³ÉÁË£¬ÕâÊDZÊÕßµÄÐĵá£
Ò»°ãÔÚʹÓõÄLinuxÍø¿¨Çý¶¯´úÂ붯éü3000ÐÐ×óÓÒ£¬Õâ¸ö´úÂëÁ¿ÒÔ¼°ËüËù±í´ï³öÀ´µÄ֪ʶÁ¿ÎÞÒÉÊÇÅÓ´óµÄ£¬ÎÒÃÇÓÐûÓа취Ëõ¶ÌÒ»ÏÂÕâ¸ö´úÂëÁ¿£¬Ê¹ÎÒÃÇµÄ Ñ§Ï°±äµÄ¼òµ¥Ð©ÄØ£¬¾¹ý±ÊÕߵIJ»Ð¸Å¬Á¦£¬ÔÚÈÔÈ»Äܹ»Ê¹ÍøÂçÉ豸Õý³£¹¤×÷µÄÇ°ÌáÏ£¬°ÑËüËõ¼õµ½ÁË600¶àÐУ¬ÎÒÃÇ°ÑÔÝʱ»¹Óò»ÉϵŦÄÜÏȸî³öÈ¥¡£ÕâÑùÒ»À´£¬ ÊÂÇé¾Í¼òµ¥¶àÁË£¬ÕæµÄ¾ÍÊ£ÏÂÒ»¸ö¿ò¼ÜÁË¡£ÏÂÃæÎÒÃǾÍÀ´ÆÊÎöÕâ¸ö¿ÉÒÔÖ´ÐеĿò¼Ü¡£
ÏÞÓÚƪ·ù£¬ÒÔÏ·ÖÎöÓõ½µÄËùÓÐÉæ¼°µ½ÄÚºËÖеĺ¯Êý´úÂ룬ÎÒ¶¼²»ÓèÁгö£¬µ«¸ø³öÔÚÄĸö¾ßÌåÎļþÖУ¬Çë¶ÁÕß×ÔÐвéÔÄ¡£
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´¿´É豸µÄ³õʼ»¯¡£µ±ÎÒÃÇÕýÈ·±àÒëÍêÎÒÃǵijÌÐòºó£¬ÎÒÃǾÍÐèÒª°ÑÉú³ÉµÄÄ¿±êÎļþ¼ÓÔص½ÄÚºËÖÐÈ¥£¬ÎÒÃÇ»áÏÈifconfig eth0 downºÍrmmod 8139tooÀ´Ð¶ÔØÕýÔÚʹÓõÄÍø¿¨Çý¶¯£¬È»ºóinsmod 8139too.o°ÑÎÒÃǵÄÇý¶¯¼ÓÔؽøÈ¥£¨ÆäÖÐ8139too.oÊÇÎÒÃDZàÒëÉú³ÉµÄÄ¿±êÎļþ£©¡£¾ÍÏñC³ÌÐòÓÐÖ÷º¯Êýmain£¨£©Ò»Ñù£¬Ä£¿éÒ²ÓеÚÒ»¸öÖ´ÐÐ µÄº¯Êý£¬¼´module_init(rtl8139_init_module);ÔÚÎÒÃǵijÌÐòÖУ¬rtl8139_init_module£¨£©ÔÚ insmodÖ®ºóÊ×ÏÈÖ´ÐУ¬ËüµÄ´úÂëÈçÏ£º
static int __init rtl8139_init_module (void)
{
return pci_module_init (&rtl8139_pci_driver);
}
ËüÖ±½Óµ÷ÓÃÁËpci_module_init£¨£©£¬Õâ¸öº¯Êý´úÂëÔÚLinux/drivers/net/eepro100.cÖУ¬²¢ÇÒ°Ñ rtl8139_pci_driver£¨Õâ¸ö½á¹¹ÊÇÔÚÎÒÃǵÄÇý¶¯´úÂëÀﶨÒåµÄ£¬ËüÊÇÇý¶¯³ÌÐòºÍPCIÉ豸ÁªÏµµÄŦ´ø£©µÄµØÖ·×÷Ϊ²ÎÊý´«¸øÁËËü¡£ rtl8139_pci_driver¶¨ÒåÈçÏ£º
static struct pci_driver rtl8139_pci_driver = {
name: MODNAME,
id_table: rtl8139_pci_tbl,
probe: rtl8139_init_one,
remove: rtl8139_remove_one,
};
pci_module_init£¨£©ÔÚÇý¶¯´úÂëÀïûÓж¨Ò壬ÄãÒ»¶¨Ïëµ½ÁË£¬ËüÊÇLinuxÄÚºËÌṩ¸øÄ£¿éÊÇÒ»¸ö±ê×¼½Ó¿Ú£¬ÄÇôÕâ¸ö½Ó¿Ú¶¼¸ÉÁËЩʲô£¬±ÊÕß ¸ú×ÙÁËÕâ¸öº¯Êý¡£ÀïÃæµ÷ÓÃÁËpci_register_driver£¨£©£¬Õâ¸öº¯Êý´úÂëÔÚLinux/drivers/pci/pci.cÖУ¬ pci_register_driver×öÁËÈý¼þÊÂÇé¡£
¢ÙÊÇ°Ñ´ø¹ýÀ´µÄ²ÎÊýrtl
Ïà¹ØÎĵµ£º
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
void peek_interfaces(int ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øÓ²ÅÌ·ÖÒ»¸öÇø£¬ÓÃ×÷Îļþϵͳ¡£²ÎÕÕu-boot-ppc±àÒë˵Ã÷Ò»ÎÄ¡£
£²¡¢ÓÃmke2fs¸ñʽ»¯Ó²Å̵ÄÒ»¸ö·ÖÇømke2fs /dev/sd ......
-------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//ƽ̨powerpc mpc8379e linux 2.6.22
£±¡¢ÏÈÓÃfdisk ¸øSD¿¨·ÖÇø£¬ÓÃ×÷Îļþϵͳ¡£
½«¶Á¿¨Æ÷²åÈëPC»úÐéÄâ»ú£¬ÔÚPC»úÉÏÖ´ÐÐfdisk /dev/sdb
Ñ¡Ôñn¡¡¡£¡£¡£¡£¡£¡£¡£¡£² ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
Linux
ÊÀ½çºÜ¾«²Ê£¬ÁîÈËÑÛ»¨çÔÂÒ¡£½üÆÚÒÔÀ´£¬¸÷ÖÖÇáÐÍ
Linux
°æ±¾²»¶ÏµÇ̨ÁÁÏ֪࣬ÃûµÄ
Puppy
£¨Ð¡¹·Ö®Ãû£©±ãÊÇÒ»Àý¡£ºÎ¹Ê£¿
......