① 濡備綍鍦↙inux寮鍙戝伐鍏蜂腑鍚鍔║SB椹卞姩紼嬪簭
USB椹卞姩紼嬪簭鏀鎸佸湪鍘熺敓Linux鎻愪緵浜嗐
鏂規硶瑕佹眰鍚鐢ㄩ┍鍔,浣嗘槸,鍙栧喅浜庝綘鎵浣跨敤鐨勫垎甯冨拰鍐呮牳鐗堟湰銆
鍝涓鍙戣岀増鏀鎸乁SBFS錛
宸茬煡鎻愪緵USBFS鏀鎸侊細
Ubuntu 9.04鎴栦互涓,
Ubuntu 9.10鐨勫唴鏍2.6.31-19鏈嶅姟鍣,
CentOS鐨4.8,
CentOS鐨5.4,
涓鑸鎯呭喌涓,浠諱綍鍒嗗竷鐢ㄥ唴鏍哥増鏈<2.6.32
宸茬煡涓嶆彁渚沀SBFS鏀鎸侊細
Ubuntu 10.04,
涓鑸鎯呭喌涓,浠諱綍鍒嗗竷鐢ㄥ唴鏍哥増鏈> = 2.6.32
鏂規硶1錛歎SBFS鏀鎸
濡傛灉浣犵殑鍙戣岀増鎻愪緵浜哢SBFS鏀鎸,閭d箞涓嬮潰鐨勫懡浠ゅ皢宸ヤ綔錛
mount -t usbfs none /proc/bus/usb -o devmode=0666
涓轟簡浣胯繖縐嶆洿鏀規案涔,紜淇濅笅闈涓琛屾槸鍦/ etc / fstab鏂囦歡涓錛
none /proc/bus/usb usbfs defaults,devmode=0666 0 0
榪欏皢鑷鍔ㄥ畨瑁呭湪緋葷粺鍚鍔ㄣ
涓鏃 /etc/fstab娣誨姞宸茬粡鍋氬畬,涓涓綆鍗曠殑鍛戒護搴旇ユ寕杞経SBFS鏂囦歡緋葷粺錛
mount /proc/bus/usb
鏃犺烘槸FTDI / XTAG鍜孹TAG-2鐨勮皟璇曢傞厤鍣ㄧ幇鍦ㄥ簲璇ュ伐浣溿
鏂規硶2錛氭病鏈塙SBFS鏀鎸
涓轟簡紜淇濆湪浠諱綍涓涓狥TDI / XTAG鎴朮TAG-2璋冭瘯閫傞厤鍣ㄦ彃鍏ユ椂鐨勬潈闄愭槸鍦ㄨ懼囦笂鏄姝g『鐨,鎮ㄩ渶瑕侀厤緗鈥渦dev鈥濇潵璇嗗埆榪欎釜璁懼囥
鍒涘緩涓涓鏂囦歡鈥/etc/udev/rules.d/99-xmos.rules鈥,鍏跺唴瀹瑰備笅錛
SUBSYSTEM!="usb|usb_device", GOTO="xmos_rules_end"
ACTION!="add", GOTO="xmos_rules_end"
# 20b1:f7d1 for xmos xtag2
ATTRS{idVendor}=="20b1", ATTRS{idProct}=="f7d1", MODE="0666", SYMLINK+="xtag2-%n"
# 20b1:f7d3 for xmos startkit
ATTRS{idVendor}=="20b1", ATTRS{idProct}=="f7d3", MODE="0666", SYMLINK+="startkit-%n"
# 0403:6010 for XC-1 with FTDI al-uart chip
ATTRS{idVendor}=="0403", ATTRS{idProct}=="6010", MODE="0666", SYMLINK+="xc1-%n"
LABEL="xmos_rules_end"
娉ㄦ剰錛氭湰ATTRS,MODE鍜孲YMLINK鑺傚繀欏誨叏閮ㄥ湪鍚屼竴琛,鍥犱負姣忎釜瑙勫垯鍙鑳藉湪涓琛屼笂銆
鐜板湪鍛婅瘔udev榪涜岄噸鏂板姞杞,浠ョ『淇濇枃浠舵坊鍔犳柊鐨勮勫垯錛
service udev reload
榪樺繀欏繪嫈涓嬪苟閲嶆柊鎻掍笂USB綰,璁﹗dev鐨勮瘑鍒璁懼囩殑鏂拌勫垯銆傛垨鑰呰Е鍙戦噸鏂版彃涓婄殑udev綾誨瀷涓衡渦devadm瑙﹀彂鈥濇垨鈥渦devtrigger鈥濆懡浠,鍙栧喅浜庡湪浣犵殑Linux鍒嗗竷涓妘dev鐨勭増鏈銆
FTDI / XTAG鍏朵粬娉ㄦ剰浜嬮」
FTDI鐨勫簱闇瑕乁SB璁懼囩殑鏂囦歡閮藉彲浠ヤ粠/ proc /bus/ USB,涓嶆敮鎸佺殑/dev/bus/usb浣滀負鏂囦歡鐨勪綅緗銆
浣嗘槸,濡傛灉浣犵殑鍙戣岀増涓嶆敮鎸乁SBFS錛堜互涓婃柟娉1錛,浣嗙『瀹炴湁涓涓鐨/proc/bus/usb絀虹洰褰,浣犲彲浠ヤ嬌鐢ㄤ笅闈㈢殑緇戝畾mount鍛戒護鐨勮В鍐蟲柟娉曪細
mount --bind /dev/bus/usb /proc/bus/usb
濡傛灉浣犵殑鍙戣岀増涓嶆敮鎸乁SBFS,涔熸病鏈変竴涓鐨/proc/bus/usb鐩褰曪紙榪欐槸杈冩柊鐨勫唴鏍哥殑鎯呭喌涓,澶х害浠2.6.32寮濮嬶級,鐒跺悗鑱旂郴XMOS鐨剅the璁懼囧簱鐨勯潪瀹樻柟琛ヤ竵鐨勭増鏈; 鍙戦乆MOS鐨勬敮鎸佹爣絳,鍏朵腑鍖呮嫭鈥淟inux鐨凢TDI搴撹鋒眰鈥濈殑涓婚樸