[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
 Samedisk • 檢視主題 - 如何使用tty0tty

如何使用tty0tty

ZC2580(8Mb),ZC2564(64Mb),ZC25128(128Mb)之SPI 介面高速記憶體模擬器適用 ~ 安裝、使用上等問題都歡迎在此討論~

如何使用tty0tty

文章Hanming » 週三 7月 27, 2011 1:41 pm

首先打開瀏覽器到google搜尋tty0tty
然後點選第一個 SourceForge.net: Linux null-modem emulator - Project Web Hosting ...
打開後點Download Linux null-modem emulator files連結
然後Download tty0tty-1.0.tar.gz (13.4 KB)
進入下載頁面後可以等待五秒或直接點上方direct link進行下載
檔案下載完畢後關閉瀏覽器
打開terminal然後切換到下載資料夾進行解壓縮
用tar -xvf tty0tty-1.0.tar.gz進行解壓縮
解完後進入tty0tty-1.0/modely資料夾內會有兩個檔案
用文字編輯器修改tty0tty.c
打開檔案後找到 init_MUTEX(&tty0tty->sem);
將init_MUTEX(&tty0tty->sem); 改成 sema_init(&tty0tty->sem, 1);
存檔退出後執行make
make完後檢查看有沒有tty0tty.ko
沒有的話表示make有問題
執行sudo insmod tty0tty.ko後在/dev底下就會多出tnt0 到tnt7
共六個PORT
tyt0tty沒有安裝功能 所以每次重開機都需要執行 sudo insmod tty0tty.ko
如果覺得麻煩就把它加到corn進去
安裝putty:
sudo apt-get install putty
安裝完後必須用sudo來開啟putty
開啟putty後在右邊點選serial
然後在serial line輸入你要使用的port
如/dev/tnt0
建立連線後再開另一個terminal
切換到samefile的位置
執行sudo ./samefile -u /dev/tnt1
tnt對應方式
0 <-> 1
2 <-> 3
4 <-> 5
6 <-> 7
所以putty選取的port在samefile就得對應另一個
有問題嗎? 沒有

謝謝收看
Hanming
 
文章: 6
註冊時間: 週五 12月 24, 2010 1:34 pm

回到 ZC25系列 SPI 介面 高速記憶體模擬仿真器

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 2 位訪客

cron