[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 • View topic - How to use tty0tty?

How to use tty0tty?

ZC2580(8M), ZC2564(64M) SPI Memory Emulators Discussions

How to use tty0tty?

Postby Hanming » Wed Jul 27, 2011 2:03 pm

Open your browser, go to google.com then search tty0tty
click on SourceForge.net: Linux null-modem emulator - Project Web Hosting ... from search results
then click on "Download Linux null-modem emulator files"
then click on Download tty0tty-1.0.tar.gz (13.4 KB) to enter download page
You can wait 5 seconds to start download or click direct link to start download
After finish downloading, close browser
open a terminal then switch to download folder to untar
use command: tar -xvf tty0tty-1.0.tar.gz to untar the file
after untared, switch to tty0tty-1.0/modely
you'll see two files in this folder, Makefile and tty0tty.c
before make file, you need to fix some make error
use text editor modify tty0tty.c
nano tty0tty.c
find -> init_MUTEX(&tty0tty->sem);
then change init_MUTEX(&tty0tty->sem); to sema_init(&tty0tty->sem, 1);
you can use ctrl+w to search
then ctrl+o to save
ctrl+x to exit
then run make
after make, check if there is a file call tty0tty.ko
then run sudo insmod tty0tty.ko
after you press the enter key, you can find 6 ports under /dev named tnt0 to tnt7
you need to do this each time after you reboot your system
you can add it to a corn job if you want

install putty:
sudo apt-get install putty
after installed putty
you need to run putty with super user permission
run
sudo putty
then select serial
type in the port name you desired under serial line
such as /dev/tnt0
then open another terminal, switch to samefile folder
then
sudo ./samefile -u /dev/tnt1

Hanming
 
Posts: 2
Joined: Tue Jul 26, 2011 7:20 pm

Return to ZC25 Series Emulators

Who is online

Users browsing this forum: No registered users and 2 guests

replica watches 1:1 best edition replica watches 高仿手表