ÒÆÖ²½»»»Ð¾Æ¬SDKµ½Linuxϵͳ
ÐèÇó
£º
°Ñ88E6131½»»»Ð¾Æ¬µÄ
sdkÒÆÖ²µ½ÏÖÓÐǶÈëʽ
linuxϵͳÖУ¬Ê¹µÃÒÔºóÄÜͨ¹ýÉϲ㺯ÊýÔÚ¶Ô½»»»Ð¾Æ¬½øÐÐÅäÖòÙ×÷£¨Èç
lanÅäÖã©¡£
ÒÑÖªÌõ¼þ£º
*Óн»»»Ð¾Æ¬µÄÎĵµ
,sdkÔ´Âë
,Àý×Ó
,ÎÞÕë¶ÔÏÖÓÐϵͳµÄÖ±½Ó½â¾ö·½°¸
.
ʵÏÖ·½·¨¸ÅÊö£º
* ±àÒë
SDKÖ®ºó»áÉú³ÉÒ»¸ö
qdDriver.oÎļþ¡£
* ×Ô¼ºÐ´Ò»¸ö
mainº¯Êý£¬
gccµÄʱºò°ÑÕâ¸ö
.oÎļþÒ²×÷Ϊ±àÒëÄ¿±êÖ®Ò»¡£×îºó±àÒë³öÀ´µÄ¾ÍÊÇÒ»¸ö
linkÁË
mainº¯ÊýÓë
sdkµÄÄ¿±êÎļþ¡£
* Õâ¸öÄ¿±êÎļþÅÜÔÚ
LinuxµÄÓû§²ã¡£Èí¼þ¹¤³ÌʦҪÔÚÕâÀïÃæʵÏÖ
2¸ö½Ó¿Ú£¨
mii_read/mii_write£©¡£ÕâÑùÓû§²ãµÄ
SDK¾ÍÄܶÔÓ²¼þ¼Ä´æÆ÷½øÐвÙ×÷ÁË¡£
¶Ô½Ó¿ÚµÄʵÏÖ·½·¨£º
ÔÚÄں˲ãÃ棬ÀûÓÃ
linux
µÄ
device_attr ()£¬ÔÚÎļþϵͳÖÐÔö¼ÓÉ豸ÊôÐÔ¡£
ÀûÓÃlinux µÄ device_attr ()£¬ÔÚÎļþϵͳÖÐÔö¼ÓÉ豸ÊôÐÔ¡£
static ssize_t sysfs_reg_io(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
struct phy_device *phydev = to_phy_device(dev);
struct mii_bus *bus = phydev->bus;
reg_io_mode_t mode = REG_IO_MODE_UNKNOWN;
int busaddr = 0;
u16 regnum = 0;
u16 val = 0;
int result = -1;
//validate input command format
if((buf[0] == 'R' || buf[0] == 'r') && (buf[11] == '\n' || buf[11] == '\0')) {
mode = REG_IO_MODE_READ;
} else if ((buf[0] == 'W' || buf[0] == 'w') && (buf[18] == '\n' || buf[18] == '\0')) {
mode = REG_IO_MODE_WRITE;
} else {
return result;
}
busaddr = (int)((char2hex(buf[4]) << 4) + char2hex(buf[5]));
regnum = (u16)((char2hex(buf[9]) << 4) + char2hex(buf[10]));
if(mode == REG_IO_MODE_READ){
result = mii_bus_read(bus, busaddr, regnum);
} else if(mode == REG_IO_MODE_WRITE){
val = (u16)((char2hex(buf[14]) << 12) + (char2hex(buf[15]) << 8) +
(char2hex(buf[16]) << 4) + char2hex(buf[17]));
result = mii_bus_write(bus, busaddr, regnum, val);
}
return result;
}
static DEVICE_ATTR(reg_io, S_IWUSR
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
Qt
for Embedded Linux Architecture
http://doc.qt.nokia.com/4.6/qt-embedded-architecture.html
Õë¶ÔǶÈëʽLINUX²Ù×÷ϵͳµÄQTµÄ¼Ü¹¹
¹«Ë¾½«ÔËÐÐÔÚǶÈëʽLINUXÉ豸£¨Ç¶ÈëʽÉ豸£»¸ÃÉ豸ÉÏÔËÐеIJÙ×÷ϵͳÊÇLINUX£©ÉϵÄQT×öÁËһЩ¶¨ÖƺÍÐ޸ģ¬Ê¹Æä¸üÊʺÏǶÈëʽÉ豸ÉϵÄLINUXϵͳÉÏÔËÐС£ÒÔϽ«ÕâÑùÕë¶ÔLINUXǶÈëʽÉè± ......
shell½Å±¾Ô´Âë: widget.sh #!/bin/bash
####################±äÁ¿¶¨Òå####################
shellroot=/var/shell
shdir=${shellroot}/sh
source_dir=${shellroot}/source
tmp_dir=${shellroot}/temp
target_dir=${shellroot}/target
js_dir=${shellroot}/js
##################³ ......
·½·¨Ò» È¥µôPCÀ®°ÈµÄÇý¶¯Ä£¿é
#rmmod pcspkr ÒѲâÊÔ
¿ÉÒÔ½«ÃüÁîдµ½ /etc/rc.local ÕâÑùÏ´ÎϵͳÆô¶¯µÄʱºò¾Í»áÈ¥µôpcspkrÄ£¿éÁË¡£
Õû¸öÊÀ½ç¶¼Çå¾²ÁË£¡
·½·¨¶þ ÐÞ¸Ä /etc/inputrc Îĵµ
½« set bell-style none ÃüÁîÐм¤»î£¬ÖØÆôϵͳ¡£
ÍƼö·½·¨¶þ ......