Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > The Linux Kernel > Communication over network during Kernel Bootup

Forgot Password?
 The Linux Kernel   Compiling, theory, programming or other discussion about the linux kernel

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-13-2009   #1 (permalink)
Just Joined!
 
Join Date: Aug 2009
Location: I can be found out in desert of Arizona or in Green fields of western India.
Posts: 4
Communication over network during Kernel Bootup

Hello All,
I am facing a particular question regarding the Networking and TCP-IP modules in Linux system.

In my current study work, i am trying to fetch some data into my local PC from a remote PC while the Kernel is booting. The remote PC is fully functional but local PC is just booting into the kernel. During this time, TCP-IP protocol is not available as i guess it is the part of OS and not the linux Kernel code. So in order to achieve this, I need some kind of barebone network driver which can communicate over the network even when the TCP-IP is not initialized. Is it possible at the first place? Is anything like this available in existing linux kernel or some other open source development?

Please help me out. Thanks in advance.
Rish is offline  



Reply With Quote
Old 08-17-2009   #2 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 3,779
Basic TCP/IP code is in the current kernel code, but drivers for your network hardware might not be enabled or loaded. Please be more specific as to what exactly you are trying to do. Why do you need to do this before the kernel is loaded? You can do this at init time after the kernel is loaded and shut down the system if something required from the remote system is not available, or some security protocol you are using is violated.
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is online now   Reply With Quote
Old 08-17-2009   #3 (permalink)
Just Joined!
 
Join Date: Aug 2009
Location: I can be found out in desert of Arizona or in Green fields of western India.
Posts: 4
Quote:
Originally Posted by Rubberman View Post
Basic TCP/IP code is in the current kernel code, but drivers for your network hardware might not be enabled or loaded. Please be more specific as to what exactly you are trying to do. Why do you need to do this before the kernel is loaded? You can do this at init time after the kernel is loaded and shut down the system if something required from the remote system is not available, or some security protocol you are using is violated.



I would like to rephrase my problem again .

Two PCs host-1 and host-2 are connected in a LAN. Host-2 has already booted and running the OS, where as host-1 has just started to boot. While booting the kernel (and at this moment i guess, TCP-IP protocol hasn't been initialized as it is a part of OS rather than kernel) in host-1, the host-1 connects with host-2 in order to fetch some configuration settings of host-2. Now my problem here is that as the TCP-IP protocol is not available at this moment in the kernel, which protocol (if any) or driver should I use to connect my host-1 and host-2 over the network while host-1 is just booting.... Both host-1 and host-2 have linux. So do we have any network protocol which is the part of linux kernel?

I actually tried to put the TCP-IP client code in kernel at various places but at every place, socket is being created but at the time of Connect, it's giving error 101 which means the network is not reachable. Can u point out the problem with this approach?
Rish is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:39 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1