① 濡备綍鍦↙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搴撹锋眰钬濈殑涓婚樸