10-23-2011
establishing connection with e-kermit running on LINUX from my operating system
we designed a primitive operating system for learning basics fundamentals and we created process switching, interrupt/polled IO for device drivers like UART and printers. We accomplish this by using our own tools called SPEDE (for downloading compiled elf image from host ubuntu system that have SPEDE specific old c compiler to the target system RAM using UART com1 port). One of my project work is to extend this to write device drivers for IDE and integrate file system say FAT16 and download files from host to target using another UART cable-connection.
url is
github.com/bicepjai/nanos/tree/master/nanos_src
I am in the last part of downloading and used simple e-kermit to download files from host to target, but i am facing problems like data loss in transmission. I have taken out all the extra code and have the code just for downloading files from host to target in
the url is
github.com/bicepjai/nanos/tree/master/download_file_uart
The code have some printf statements, but they are omitted since it takes more time to execute. I have disabled the interrupt driven system and using polled IO for preventing any kind of loss. still i have data loss in transmission and have been trying to get over it for more than a month.
Any suggestions will be much appreciated.
9 More Discussions You Might Find Interesting
1. IP Networking
hi all,
Using kermit, i made serial dialup connetion between two PCs through telephone line and transfered files trough this line. The code appears as like this,
set modem type generic #Setting the modem type.
set modem data-compression on #Data compression on to speed up transfer.... (0 Replies)
Discussion started by: pcsaji
0 Replies
2. Shell Programming and Scripting
Hi everybody i need your help on this I have LAN which run Sun microsystem with solaris 7 OS on each of the servers. The LAN was working fine before an interruption of power supply which makes servers to operating as standalone servers. i.e none of the servers have access to one another. How do i... (2 Replies)
Discussion started by: sbmada
2 Replies
3. SuSE
Hi, I am trying to use nomachine nx server and client. But somehow it doen't work. What happens is the following:
1.- Client starts up
2.- Client authenticates with Server
3.- The NoMachine window appears for 2-4 seconds
4.- The NoMachine window exists
Somehow a "closeEvent" is sent.... (3 Replies)
Discussion started by: blackicecube
3 Replies
4. AIX
Hi All,
I was wondering if I can install AIX 6.1 on my D harddrive and have Windows 7 on my C harddrive. If so, can anybody help me with the installation of AIX? I am totally new to AIX and don't know how to install it. Tried getting info from google on how to install AIX but couldn't... (2 Replies)
Discussion started by: AIX_Beginner
2 Replies
5. Shell Programming and Scripting
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced. Each product will be produced in different production line. Ready products will be placed
in a buffer area located at the end of each production line. Packaging workers will pack the... (1 Reply)
Discussion started by: paradise
1 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced.... (1 Reply)
Discussion started by: paradise
1 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced.... (0 Replies)
Discussion started by: paradise
0 Replies
8. Linux
hi guys,
i got job recently in a company which provide a product for data backup and data recovery... as dis product is wrriten in c++ am workin in c++.. now am under training and i want to learn abt Operating System concepts and OS programming using c and c++. i know basic c and c++ programming... (3 Replies)
Discussion started by: senthil.march
3 Replies
9. UNIX for Beginners Questions & Answers
Hi Everyone,
I am trying to send files from Linux to DataPower server using public key based authentication but it's not working as expected and every-time password expecting for sftp transfer.
Can someone please help on this?
Steps I fallowed:
Created keys pair at source server... (4 Replies)
Discussion started by: renukeswar
4 Replies
LEARN ABOUT SUNOS
scsi_transport
scsi_transport(9F) Kernel Functions for Drivers scsi_transport(9F)
NAME
scsi_transport - request by a SCSI target driver to start a command
SYNOPSIS
#include <sys/scsi/scsi.h>
int scsi_transport(struct scsi_pkt *pkt);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
pkt Pointer to a scsi_pkt(9S) structure.
DESCRIPTION
Target drivers use scsi_transport() to request the host adapter driver to transport a command to the SCSI target device specified by pkt.
The target driver must obtain resources for the packet using scsi_init_pkt(9F) prior to calling this function. The packet may be initial-
ized using one of the makecom(9F) functions. scsi_transport() does not wait for the SCSI command to complete. See scsi_poll(9F) for a
description of polled SCSI commands. Upon completion of the SCSI command the host adapter calls the completion
routine provided by the target driver in the pkt_comp member of the scsi_pkt pointed to by pkt.
RETURN VALUES
scsi_transport() returns:
TRAN_ACCEPT The packet was accepted by the transport layer.
TRAN_BUSY The packet could not be accepted because there was already a packet in progress for this target/lun, the host
adapter queue was full, or the target device queue was full.
TRAN_BADPKT The DMA count in the packet exceeded the DMA engine's maximum DMA size.
TRAN_FATAL_ERROR A fatal error has occurred in the transport layer.
CONTEXT
scsi_transport() can be called from user or interrupt context.
EXAMPLES
Example 1: Using scsi_transport()
if ((status = scsi_transport(rqpkt)) != TRAN_ACCEPT) {
scsi_log(devp, sd_label, CE_WARN,
"transport of request sense pkt fails (0x%x)
", status);
}
SEE ALSO
tran_start(9E), makecom(9F), scsi_init_pkt(9F), scsi_pktalloc(9F), scsi_poll(9F), scsi_pkt(9S)
Writing Device Drivers
SunOS 5.10 30 Aug 1995 scsi_transport(9F)