establishing connection with e-kermit running on LINUX from my operating system


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu establishing connection with e-kermit running on LINUX from my operating system
# 1  
Old 10-23-2011
Question 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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sftp connection not establishing from Linux to DataPower

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

2. Linux

Linux Operating system concepts

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

3. Homework & Coursework Questions

Operating system LINUX

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

4. Homework & Coursework Questions

Operating system LINUX

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

5. Shell Programming and Scripting

Operating system LINUX

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. AIX

Can I install AIX operating system on a PC that is running windows 7?

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

7. SuSE

NoMachine NX window closes after establishing connection

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

8. Shell Programming and Scripting

Problem establishing Connection on the LAN

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

9. IP Networking

Kermit- dialup and network connection

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
Login or Register to Ask a Question
UART(4) 						   BSD Kernel Interfaces Manual 						   UART(4)

NAME
uart -- driver for Universal Asynchronous Receiver/Transmitter (UART) devices SYNOPSIS
device uart device puc device uart device scc device uart In /boot/device.hints: hint.uart.0.disabled="1" hint.uart.0.baud="38400" hint.uart.0.port="0x3f8" hint.uart.0.flags="0x10" With flags encoded as: 0x00010 device is potential system console 0x00080 use this port for remote kernel debugging 0x00100 set RX FIFO trigger level to ``low'' (NS8250 only) 0x00200 set RX FIFO trigger level to ``medium low'' (NS8250 only) 0x00400 set RX FIFO trigger level to ``medium high'' (default, NS8250 only) 0x00800 set RX FIFO trigger level to ``high'' (NS8250 only) DESCRIPTION
The uart device driver provides support for various classes of UARTs implementing the EIA RS-232C (CCITT V.24) serial communications inter- face. Each such interface is controlled by a separate and independent instance of the uart driver. The primary support for devices that contain multiple serial interfaces or that contain other functionality besides one or more serial interfaces is provided by the puc(4), or scc(4) device drivers. However, the serial interfaces of those devices that are managed by the puc(4), or scc(4) driver are each indepen- dently controlled by the uart driver. As such, the puc(4), or scc(4) driver provides umbrella functionality for the uart driver and hides the complexities that are inherent when elementary components are packaged together. The uart driver has a modular design to allow it to be used on differing hardware and for various purposes. In the following sections the components are discussed in detail. Options are described in the section that covers the component to which each option applies. CORE COMPONENT At the heart of the uart driver is the core component. It contains the bus attachments and the low-level interrupt handler. HARDWARE DRIVERS The core component and the kernel interfaces talk to the hardware through the hardware interface. This interface serves as an abstraction of the hardware and allows varying UARTs to be used for serial communications. SYSTEM DEVICES System devices are UARTs that have a special purpose by way of hardware design or software setup. For example, Sun UltraSparc machines use UARTs as their keyboard interface. Such an UART cannot be used for general purpose communications. Likewise, when the kernel is configured for a serial console, the corresponding UART will in turn be a system device so that the kernel can output boot messages early on in the boot process. KERNEL INTERFACES The last but not least of the components is the kernel interface. This component ultimately determines how the UART is made visible to the kernel in particular and to users in general. The default kernel interface is the TTY interface. This allows the UART to be used for termi- nals, modems and serial line IP applications. System devices, with the notable exception of serial consoles, generally have specialized ker- nel interfaces. HARDWARE
The uart driver supports the following classes of UARTs: o NS8250: standard hardware based on the 8250, 16450, 16550, 16650, 16750 or the 16950 UARTs. o SCC: serial communications controllers supported by the scc(4) device driver. FILES
/dev/ttyu? for callin ports /dev/ttyu?.init /dev/ttyu?.lock corresponding callin initial-state and lock-state devices /dev/cuau? for callout ports /dev/cuau?.init /dev/cuau?.lock corresponding callout initial-state and lock-state devices SEE ALSO
puc(4), scc(4) HISTORY
The uart device driver first appeared in FreeBSD 5.2. AUTHORS
The uart device driver and this manual page were written by Marcel Moolenaar <marcel@xcllnt.net>. BSD
March 12, 2008 BSD